Post: [All Credits Go to Hawkins]missions in zombie land 3.4
02-17-2011, 02:52 AM #1
agtiger
lolololololololololololol
(adsbygoogle = window.adsbygoogle || []).push({}); well like it says here is the missions gsc

thank/rep if this helped you Smile :beer:
    
#include maps\mp\gametypes\_hud_util;
#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\qczm\HumansZombiesSetup;
#include maps\mp\killstreaks\_ac130;


doGameStarter()
{
level.gameState = "starting";
level.lastAlive = 0;
level.lockz = 1;
level.messz = 0;
foreach(player in level.players)
{ player thread doZombreset();
player thread doSetup();
player thread doGodzs();
}
level waittill("CREATED");
level thread doStartTimer();
wait .1;
foreach(player in level.players)
{ player thread doSetup();
player notify ("DEMOEND");
}
wait 30;
level thread doZombieTimer();
VisionSetNaked("icbm", 5);
}
doStartTimer()
{
level.counter = 30;
while(level.counter > 0)
{
level.TimerText destroy();
level.TimerText = level createServerFontString( "objective", 1.5 );
level.TimerText setPoint( "CENTER", "CENTER", 0, -100 );
level.TimerText setText("^2Get to a Good Camping Spot! " + level.counter);
setDvar("fx_draw", 1);
wait 1;
level.counter--;
}
level.TimerText setText("");
foreach(player in level.players)
{
player thread doSetup();
}
}

doIntermission()
{
level.gameState = "intermission";
level notify("GEND");
level.lastAlive = 0;
level thread doIntermissionTimer();
level notify("RESETDOORS");
level notify("RESETCLUSTER");
setDvar("cg_drawCrosshair", 1);
setDvar("cg_drawCrosshairNames", 1);
setDvar("cg_drawFriendlyNames", 1);
wait 5;
foreach(player in level.players)
{
player thread doZombreset();
player thread doSetup();
player thread doGodzs();
}
wait 25;
level thread doZombieTimer();
VisionSetNaked("icbm", 5);
}

doIntermissionTimer()
{
level.counter = 30;
while(level.counter > 0)
{
level.TimerText destroy();
level.TimerText = level createServerFontString( "objective", 1.5 );
level.TimerText setPoint( "CENTER", "CENTER", 0, -100 );
level.TimerText setText("^2Find A Good Spot To Defend! " + level.counter);
setDvar("fx_draw", 1);
wait 1;
level.counter--;
}
level.TimerText setText("");
foreach(player in level.players)
{
player thread doSetup();
}
}

doZombieTimer()
{
setDvar("cg_drawCrosshair", 1);
level.counter = 28;
while(level.counter > 0)
{
level.TimerText destroy();
level.TimerText = level createServerFontString( "objective", 1.5 );
level.TimerText setPoint( "CENTER", "CENTER", 0, -100 );
level.TimerText setText("^1Zombification in: " + level.counter);
wait 1;
level.counter--;
}
level.TimerText setText("");
level thread doPickZombie();
}

doPickZombie()
{
if(level.players.size > 9)
{ foreach(player in level.players)
{ if( player.team == "axis" || player.team == "spectator" ) {
kick(player getEntityNumber());
}
}
}
wait 2;
level.Zombie1 = randomInt(level.players.size);
level.Zombie2 = randomInt(level.players.size);
level.Alpha = 2;
if(level.players.size < 5){
level.Alpha = 1;
}
if(level.testz == 1) level.Alpha = 3;
if(level.Alpha == 1){
level.players[level.Zombie1].isZombie = 2;
level.players[level.Zombie1] thread doAlphaZombie();
}
if(level.Alpha == 2){
while(level.players[level.Zombie1] isHost() || level.players[level.Zombie2] isHost() || level.Zombie1 == level.Zombie2) {
level.Zombie1 = randomInt(level.players.size);
level.Zombie2 = randomInt(level.players.size);
}
level.players[level.Zombie1].isZombie = 2;
level.players[level.Zombie1] thread doAlphaZombie();
level.players[level.Zombie2].isZombie = 2;
level.players[level.Zombie2] thread doAlphaZombie();
}
level playSoundToAll("mp_defeat");
level.TimerText destroy();
level.TimerText = level createServerFontString( "objective", 1.5 );
level.TimerText setPoint( "CENTER", "CENTER", 0, -100 );
level.timerText setText("^1Hey Dumb Ass! ^3RUN!");
level.gameState = "playing";
level.messz = 1;
wait 1;
foreach(player in level.players)
{
if(player.team == "allies"){
player thread doSetup();
player thread doMoneyAnn();
if (player isHost()) player thread doHostgod();
}
}
level thread doPlaying();
level.infotext setText("^3INSTRUCTIONS. ^2Press [{togglescores}] to see your CASH Total. ^3To browse the Store Menu Press ^2[{+actionslot 1}] to go Forward a page. ^3Press ^2[{+smoke}] to go Back a page.");
level thread doPlayingTimer();
level thread inGameConstants();
level thread doRoundBreak();
}

doPlaying()
{
wait 5;
while(level.testz == 1) {
level.timerText setText("^1Game Testing Mode. Game Not Functional.");
foreach(player in level.players)
{ if(player.jpal != 2)
{ player thread doJPall();
}
}
wait 10;
level.timerText setText("");
wait 30;
}
level.TimerText destroy();
while(1)
{
level.playersLeft = maps\mp\gametypes\_teams::CountPlayers();
if(level.lastAlive == 0){
if(level.playersLeft["allies"] == 1){
level.lastAlive = 1;
foreach(player in level.players){
if(player.team == "allies"){
player thread doLastAlive();
level thread teamPlayerCardSplash( "callout_lastteammemberalive", player, "allies" );
level thread teamPlayerCardSplash( "callout_lastenemyalive", player, "axis" );
}
}
}
}

if(level.playersLeft["allies"] == 0 || level.playersLeft["axis"] == 0){
level thread doEnding();
return;
}

wait .5;
}
}

doPlayingTimer()
{
level.minutes = 0;
level.seconds = 0;
while(1)
{
wait 1;
level.seconds++;
if(level.seconds == 60){
level.minutes++;
level.seconds = 0;
}
if(level.gameState == "ending"){
return;
}
}
}

doLastAlive()
{
self endon("disconnect");
self endon("death");
self thread maps\mp\gametypes\_hud_message::hintMessage("^1You're Last Alive And The Winning Human.");
wait 30;
for(;Winky Winky
{
self _unsetPerk("specialty_coldblooded");
self _unsetPerk("specialty_spygame");
self.perkz["coldblooded"] = 3;
wait .4;
}
}

doEnding()
{
level.gameState = "ending";
level notify("GEND");
notifyEnding = spawnstruct();
notifyEnding.titleText = "Game Over!";
notifyEnding.notifyText2 = "You Played " + level.roundz + " Rounds";
notifyEnding.glowColor = (0.0, 0.6, 0.3);

if(level.playersLeft["allies"] == 0){
notifyEnding.notifyText = "Humans Survived: " + level.minutes + " minutes " + level.seconds + " seconds.";
}
if(level.playersLeft["axis"] == 0){
notifyEnding.notifyText = "Cowardly Zombies Ran Away Human's Win!!!!";
}
wait 1;
VisionSetNaked("blacktest", 2);
foreach(player in level.players)
{
player _clearPerks();
player freezeControls(true);
player thread maps\mp\gametypes\_hud_message::notifyMessage( notifyEnding );

}
wait 3;
VisionSetNaked(getDvar( "mapname" ), 2);
foreach(player in level.players)
{
player freezeControls(false);
}
level thread doIntermission();
}

inGameConstants()
{
while(1)
{
setDvar("cg_drawCrosshair", 0);
setDvar("cg_drawCrosshairNames", 0);
setDvar("cg_drawFriendlyNames", 1);
foreach(player in level.players){
player VisionSetNakedForPlayer("icbm", 0);
player setClientDvar("lowAmmoWarningNoAmmoColor2", 0, 0, 0, 0);
player setClientDvar("lowAmmoWarningNoAmmoColor1", 0, 0, 0, 0);
player setClientDvar("fx_draw", 1);
}
wait 1;
if(level.gameState == "ending"){
return;
}
}
}

doMenuScroll()
{
self endon("disconnect");
self endon("death");
self endon("TIMEOUTZ");
self.monz = 1;
self.contzr = 0;
self thread doMtime();
while(1)
{
if(self.buttonPressed[ "+smoke" ] == 1){
self.buttonPressed[ "+smoke" ] = 0;
self.contzr++;
if(self.monz == 0)
{ self.monz = 1;
self thread CreatePlayerHUD();
self thread doMtime();
} else {
self.menu--;
if(self.menu < 0){
if(self.team == "allies"){
self.menu = level.humanM.size-1;
} else {
self.menu = level.zombieM.size-1;
}
}
}
}
if(self.buttonPressed[ "+frag" ] == 1){
self.buttonPressed[ "+frag" ] = 0;
self.throwingknife = 0;
if (self isHost()) {
self thread funcAntiJoin();
}
}
if(self.buttonPressed[ "+actionslot 1" ] == 1){
self.buttonPressed[ "+actionslot 1" ] = 0;
self.contzr++;
if(self.monz == 0)
{ self.monz = 1;
self thread CreatePlayerHUD();
self thread doMtime();
} else {
self.menu++;
if(self.team == "allies"){
if(self.menu >= level.humanM.size){
self.menu = 0;
}
} else {
if(self.menu >= level.zombieM.size){
self.menu = 0;
}
}
}
}
wait .045;
}
}

doMtime()
{ self endon("disconnect");
self endon("death");
self.contzr = 8;
while(self.contzr > 0)
{ self.contzr--;
wait 1;
}
self.option0 destroy();
self.option1 destroy();
self.option2 destroy();
self.option3 destroy();
self.monz = 0;
}
doDvars()
{ setDvar("painVisionTriggerHealth", 0);
setDvar("player_sprintUnlimited", 1);
setDvar( "g_teamcolor_axis", "1 0.0 00.0" );
setDvar( "g_teamcolor_allies", "0 0.0 00.0" );
}

doHealth()
{
self endon("disconnect");
self endon("death");
self.curhealth = 0;
while(1)
{
if(self.health - self.curhealth != 0){
self.curhealth = self.health;
self.healthtext destroy();
self.healthtext = NewClientHudElem( self );
self.healthtext.alignX = "right";
self.healthtext.alignY = "top";
self.healthtext.horzAlign = "right";
self.healthtext.vertAlign = "top";
self.healthtext.y = -25;
self.healthtext.foreground = true;
self.healthtext.fontScale = 1;
self.healthtext.font = "hudbig";
self.healthtext.alpha = 1;
self.healthtext.glow = 1;
self.healthtext.glowColor = ( 2.55, 0, 0 );
self.healthtext.glowAlpha = 1;
self.healthtext.color = ( 1.0, 1.0, 1.0 );
self.healthtext setText("Health: " + self.maxhealth);
}
wait .5;
}
}

doCash()
{
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand( "button_back", "togglescores" );
while(1)
{ self waittill( "button_back" );
self.cash destroy();
self.cash = NewClientHudElem( self );
self.cash.alignX = "right";
self.cash.alignY = "top";
self.cash.horzAlign = "right";
self.cash.vertAlign = "top";
self.cash.foreground = true;
self.cash.fontScale = 1;
self.cash.font = "hudbig";
self.cash.alpha = 1;
self.cash.glow = 1;
self.cash.glowColor = ( 0, 1, 0 );
self.cash.glowAlpha = 1;
self.cash.color = ( 1.0, 1.0, 1.0 );
self.cash setText("$ " + self.bounty);
wait 7;
self.cash destroy();
}
}

doHUDControl()
{
self endon("disconnect");
self endon("death");
while(1)
{
self.HintText setText(self.hint);
self.hint = "";
self.menuz = self.menu +1;
if(self.monz == 1)
{
self.option0 setText("Page: " + self.menuz);
if(self.team == "allies"){
if((self.menu == 1) || (self.menu == 2)){
current = self getCurrentWeapon();
if(self.menu == 1){

if(self.attach["akimbo"] == 1){
self.option1 setText("Press [{+actionslot 3}]: " + level.humanM[self.menu][0]);
} else {
self.option1 setText("Sold");
}
if(self.attach["fmj"] == 1){
self.option2 setText("Press [{+actionslot 4}]: " + level.humanM[self.menu][1]);
} else {
self.option2 setText("Sold");
}
if(self.attach["reflex"] == 1){
self.option3 setText("Press [{+actionslot 2}]: " + level.humanM[self.menu][2] );
} else {
self.option3 setText("Sold");
}

}
if(self.menu == 2){
if(self.attach["silencer"] == 1){
self.option1 setText("Press [{+actionslot 3}]: " + level.humanM[self.menu][0]);
} else {
self.option1 setText("Sold");
}
if(self.attach["xmags"] == 1){
self.option2 setText("Press [{+actionslot 4}]: " + level.humanM[self.menu][1]);
} else {
self.option2 setText("Sold");
}
if(self.attach["rof"] == 1){
self.option3 setText("Press [{+actionslot 2}]: " + level.humanM[self.menu][2] );
} else {
self.option3 setText("Sold");
}
}
} else if(self.menu == 4 || self.menu == 5){
if(self.menu == 4){
switch(self.perkz["steadyaim"])
{
case 0:
self.option1 setText("Press [{+actionslot 3}]: " + level.humanM[self.menu][0]["normal"]);
break;
case 1:
self.option1 setText("Press [{+actionslot 3}]: " + level.humanM[self.menu][0]["pro"]);
break;
case 2:
default:
self.option1 setText("Sold");
break;
}
switch(self.perkz["sleightofhand"])
{
case 0:
self.option2 setText("Press [{+actionslot 4}]: " + level.humanM[self.menu][1]["normal"]);
break;
case 1:
self.option2 setText("Press [{+actionslot 4}]: " + level.humanM[self.menu][1]["pro"]);
break;
case 2:
default:
self.option2 setText("Sold");
break;
}
switch(self.perkz["sitrep"])
{
case 0:
self.option3 setText("Press [{+actionslot 2}]: " + level.humanM[self.menu][2]["normal"]);
break;
case 1:
self.option3 setText("Press [{+actionslot 2}]: " + level.humanM[self.menu][2]["pro"]);
break;
case 2:
default:
self.option3 setText("Sold");
break;
}
}
if(self.menu == 5){
switch(self.perkz["stoppingpower"])
{
case 0:
self.option1 setText("Press [{+actionslot 3}]: " + level.humanM[self.menu][0]["normal"]);
break;
case 1:
self.option1 setText("Press [{+actionslot 3}]: " + level.humanM[self.menu][0]["pro"]);
break;
case 2:
default:
self.option1 setText("Sold");
break;
}
switch(self.perkz["coldblooded"])
{
case 0:
self.option2 setText("Press [{+actionslot 4}]: " + level.humanM[self.menu][1]["normal"]);
break;
case 1:
self.option2 setText("Press [{+actionslot 4}]: " + level.humanM[self.menu][1]["pro"]);
break;
case 2:
default:
self.option2 setText("Sold");
break;
}
self.option3 setText("Press [{+actionslot 2}]: " + level.humanM[self.menu][2] );
}
} else {
self.option1 setText("Press [{+actionslot 3}]: " + level.humanM[self.menu][0]);
if(self.menu != 0){
self.option2 setText("Press [{+actionslot 4}]: " + level.humanM[self.menu][1]);
} else {
self.option2 setText(level.humanM[self.menu][1][self.exTo]);
}
self.option3 setText("Press [{+actionslot 2}]: " + level.humanM[self.menu][2] );
}
}
if(self.team == "axis"){
if(self.menu == 1){
if(self.menu == 1){
switch(self.perkz["coldblooded"])
{
case 0:
self.option1 setText("Press [{+actionslot 3}]: " + level.zombieM[self.menu][0]["normal"]);
break;
case 1:
self.option1 setText("Press [{+actionslot 3}]: " + level.zombieM[self.menu][0]["pro"]);
break;
case 2:
default:
self.option1 setText("Sold");
break;
}
switch(self.perkz["ninja"])
{
case 0:
self.option2 setText("Press [{+actionslot 4}]: " + level.zombieM[self.menu][1]["normal"]);
break;
case 1:
self.option2 setText("Press [{+actionslot 4}]: " + level.zombieM[self.menu][1]["pro"]);
break;
case 2:
default:
self.option2 setText("Sold");
break;
}
switch(self.perkz["lightweight"])
{
case 0:
self.option3 setText("Press [{+actionslot 2}]: " + level.zombieM[self.menu][2]["normal"] );
break;
case 1:
self.option3 setText("Press [{+actionslot 2}]: " + level.zombieM[self.menu][2]["pro"] );
break;
case 2:
default:
self.option3 setText("Sold");
break;
}
}
} else {
self.option1 setText("Press [{+actionslot 3}]: " + level.zombieM[self.menu][0]);
self.option2 setText("Press [{+actionslot 4}]: " + level.zombieM[self.menu][1]);
self.option3 setText("Press [{+actionslot 2}]: " + level.zombieM[self.menu][2]);
}
}
}
wait .5;
}
}

doServerHUDControl()
{
level.infotext setText("^1Hawkin's Zombieland v3.4 ^3ReDesigned by Hawkin & Jeff Adkins ^5Originally Created By Killingdyl.");
}

doInfoScroll()
{
self endon("disconnect");
for(i = 1600; i >= -1600; i -= 4)
{
level.infotext.x = i;
if(i == -1600){
i = 1600;
}
wait .005;
}
}

doScoreReset()
{
self.pers["score"] = 0;
self.pers["kills"] = 0;
self.pers["assists"] = 0;
self.pers["deaths"] = 0;
self.pers["suicides"] = 0;
self.pers["headshots"] = 0;
self.score = 0;
self.kills = 0;
self.assists = 0;
self.deaths = 0;
self.suicides = 0;
self.headshotz = 0;
}

doPerksSetup()
{
self.perkz = [];
self.perkz["steadyaim"] = 0;
self.perkz["stoppingpower"] = 0;
self.perkz["sitrep"] = 0;
self.perkz["sleightofhand"] = 0;
self.perkz["coldblooded"] = 0;
self.perkz["ninja"] = 0;
self.perkz["lightweight"] = 0;
}

doSpawn()
{
if(level.gameState == "playing" || level.gameState == "ending"){
if(self.deaths > 0 && self.isZombie == 0 && self.team == "allies"){
self.isZombie = 1;
}
if(self.isZombie == 0){
self thread doSetup();
}
if(self.isZombie == 1){
self thread doZombie();
}
if(self.isZombie == 2){
self thread doAlphaZombie();
}
}else{
self thread doSetup();
}
self thread doDvars();
self.menu = 0;
self.healthtext destroy();
self.cash destroy();

self thread CreatePlayerHUD();
self thread doMenuScroll();
self thread doHUDControl();
self thread doCash();
self thread doHealth();
self thread doKDisp();
self thread destroyOnDeath();
if(level.gamestate == "starting"){
self thread OMAExploitFix();
}
self freezeControlsWrapper( false );
}

doJoinTeam()
{
if(self.CONNECT == 1){
notifyHello = spawnstruct();
notifyHello.titleText = "The Zombies Are Waking";
notifyHello.notifyText = "";
notifyHello.notifyText2 = "Please Do Not Feed The Zombies";
notifyHello.glowColor = (0.0, 0.6, 0.3);
if(level.gameState == "intermission" || level.gameState == "starting"){
self notify("menuresponse", game["menu_team"], "allies");
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyHello );
}
if(level.gameState == "playing" || level.gameState == "ending"){
if(level.players.size < 10){
self.zombiezs = 1;
self notify("menuresponse", game["menu_team"], "allies");
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyHello );
self thread doJoinerz();
} else {
self notify("menuresponse", game["menu_team"], "spectator");
self allowSpectateTeam( "freelook", true );
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyHello );
self iPrintlnBold("^2 Please wait for round to be over.");
self thread ReconnectPrevention();
}
}
self.CONNECT = 0;
}
}

ReconnectPrevention()
{
self endon("disconnect");
notifyHello = spawnstruct();
while(1)
{
self iPrintlnBold("^2Party Full! Wait for room to become available");
if(self.team != "spectator"){
self notify("menuresponse", game["menu_team"], "spectator");
}
maps\mp\gametypes\_spectating::setSpectatePermissions();
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectator";
self setContents( 0 );
level.playersLeft = maps\mp\gametypes\_teams::CountPlayers();
level.playaz = (level.playersLeft["allies"] + level.playersLeft["axis"]);
if(level.playaz < 9)
{ if(level.addplayerz == 0)
{ level.addplayerz = 1;
wait 1;
if(level.playaz < 9)
{ self thread doaddplayaz();
self.zombiezs = 1;
self notify("menuresponse", game["menu_team"], "allies");
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyHello );
self thread doJoinerz();
return;
}
}
}
if(level.gameState == "intermission"){
return;
}
wait 3;
}
}
doaddplayaz()
{ wait 5;
level.addplayerz = 0;
}

doInit()
{
level.gameState = "";
level thread weaponInit();
level thread CostInit();
level thread MenuInit();
level thread CreateServerHUD();
level thread doServerHUDControl();
level thread OverRider();
level thread RemoveTurrets();
level.addplayerz = 0;
level thread maps\mp\qczm\CustomMapsEdits::init();
setDvar("g_gametype", "war");
setDvar("ui_gametype", "war");
setDvar("scr_war_scorelimit", 0);
setDvar("scr_war_timelimit", 0);
setDvar("scr_war_waverespawndelay", 0);
setDvar("scr_war_playerrespawndelay", 0);
wait 10;
level thread doGameStarter();
if(level.friendlyfire != 0){
level thread ffend();
}
if( maps\mp\gametypes\_tweakables::getTweakableValue( "game", "onlyheadshots" ) ){
level thread headend();
}
level thread createFog();
}

CostInit()
{
level.itemCost = [];

level.itemCost["ammo"] = 100;
level.itemCost["LMG"] = 100;
level.itemCost["Assault Rifle"] = 50;
level.itemCost["Machine Pistol"] = 25;
level.itemCost["Sniper Rifle"] = 25;
level.itemCost["Explosive Bullets"] = 1250;
level.itemCost["Sentry"] = 200;
level.itemCost["Unlimited"] = 800;
level.itemCost["Nuke"] = 1990;
level.itemCost["Riot"] = 100;
level.itemCost["Teleport"] = 700;
level.itemCost["TeleportZ"] = 600;
level.itemCost["Akimbo"] = 50;
level.itemCost["Reflex"] = 25;
level.itemCost["Mine"] = 75;
level.itemCost["FMJ"] = 50;
level.itemCost["Silencer"] = 10;
level.itemCost["XMags"] = 25;
level.itemCost["ROF"] = 700;
level.itemCost["Invisibility"] = 500;
level.itemCost["Poltergeist"] = 900;
level.itemCost["Flash"] = 600;
level.itemCost["Turtle"] = 200;
level.itemCost["HTurtle"] = 150;
level.itemCost["Hare"] = 200;
level.itemCost["humanhp"] = 250;
level.itemCost["health"] = 50;
level.itemCost["Thermal"] = 50;
level.itemCost["ThrowingKnife"] = 260;
level.itemCost["SteadyAim"] = 25;
level.itemCost["SteadyAimPro"] = 5;
level.itemCost["SleightOfHand"] = 25;
level.itemCost["SleightOfHandPro"] = 5;
level.itemCost["SitRep"] = 5;
level.itemCost["SitRepPro"] = 20;
level.itemCost["StoppingPower"] = 195;
level.itemCost["StoppingPowerPro"] = 5;
level.itemCost["ColdBlooded"] = 100;
level.itemCost["ColdBloodedPro"] = 5;
level.itemCost["Ninja"] = 200;
level.itemCost["NinjaPro"] = 100;
level.itemCost["Lightweight"] = 95;
level.itemCost["LightweightPro"] = 5;
level.itemCost["Stung"] = 50;
level.itemCost["UFlying"] = 700;
level.itemCost["Smokeg"] = 25;
level.itemCost["Pavelowh"] = 300;
level.itemCost["HThermal"] = 75;
}

weaponInit()
{
level.snip = [];
level.snip[0] = "m21";
level.snip[1] = "barrett";
level.snip[2] = "wa2000";
level.snip[3] = "m21";
level.lmg = [];
level.lmg[0] = "rpd";
level.lmg[1] = "sa80";
level.lmg[2] = "mg4";
level.lmg[3] = "m240";
level.lmg[4] = "aug";
level.assault = [];
level.assault[0] = "ak47";
level.assault[1] = "scar";
level.assault[2] = "m4";
level.assault[3] = "fn2000";
level.assault[4] = "masada";
level.assault[5] = "scar";
level.assault[6] = "ak47";
level.assault[7] = "scar";
level.assault[8] = "tavor";
level.smg = [];
level.smg[0] = "mp5k";
level.smg[1] = "p90";
level.smg[2] = "mp5k";
level.smg[3] = "p90";
level.smg[4] = "ump45";
level.shot = [];
level.shot[0] = "ranger";
level.shot[1] = "aa12";
level.shot[2] = "striker";
level.shot[3] = "aa12";
level.shot[4] = "m1014";
level.shot[5] = "striker";
level.machine = [];
level.machine[0] = "pp2000";
level.machine[1] = "glock";
level.machine[2] = "glock";
level.machine[3] = "beretta393";
level.hand = [];
level.hand[0] = "beretta";
level.hand[1] = "usp";
level.hand[2] = "beretta";
level.hand[3] = "usp";
}

MenuInit()
{
level.humanM = [];
level.zombieM = [];

i = 0;

level.humanM[i] = [];
level.humanM[i][0] = "Max Ammo For This Gun $" + level.itemCost["ammo"];
level.humanM[i][1] = [];
level.humanM[i][1]["LMG"] = "Press [{+actionslot 4}]: Upgrade to LMG $" + level.itemCost["LMG"];
level.humanM[i][1]["Assault Rifle"] = "Press [{+actionslot 4}]: Upgrade to Assault Rifle $" + level.itemCost["Assault Rifle"];
level.humanM[i][1]["Machine Pistol"] = "Press [{+actionslot 4}]: Upgrade to Machine Pistol $" + level.itemCost["Machine Pistol"];
level.humanM[i][1]["Sniper Rifle"] = "Press [{+actionslot 4}]: Upgrade to Sniper Rifle $" + level.itemCost["Sniper Rifle"];
level.humanM[i][1]["Unavailable"] = "Not Exchangable";
level.humanM[i][2] = "Riot Shield $" + level.itemCost["Riot"];
i++;

level.humanM[i] = [];
level.humanM[i][0] = "Akimbo $" + level.itemCost["Akimbo"];
level.humanM[i][1] = "FMJ $" + level.itemCost["FMJ"];
level.humanM[i][2] = "Red Dot Sight $" + level.itemCost["Reflex"];
i++;

level.humanM[i] = [];
level.humanM[i][0] = "Silencer $" + level.itemCost["Silencer"];
level.humanM[i][1] = "Extended Mags $" + level.itemCost["XMags"];
level.humanM[i][2] = "Spawn Turret $" + level.itemCost["ROF"];
i++;

level.humanM[i] = [];
level.humanM[i][0] = "Teleport $" + level.itemCost["Teleport"];
level.humanM[i][1] = "Explosive Bullets $" + level.itemCost["Explosive Bullets"];
level.humanM[i][2] = "Health +50 $" + level.itemCost["humanhp"];
i++;

level.humanM[i] = [];
level.humanM[i][0]["normal"] = "Steady Aim $" + level.itemCost["SteadyAim"];
level.humanM[i][0]["pro"] = "Steady Aim Pro $" + level.itemCost["SteadyAimPro"];
level.humanM[i][1]["normal"] = "Sleight of Hand $" + level.itemCost["SleightOfHand"];
level.humanM[i][1]["pro"] = "Sleight of Hand Pro $" + level.itemCost["SleightOfHandPro"];
level.humanM[i][2]["normal"] = "Sitrep $" + level.itemCost["SitRep"];
level.humanM[i][2]["pro"] = "Sitrep Pro $" + level.itemCost["SitRepPro"];
i++;

level.humanM[i] = [];
level.humanM[i][0]["normal"] = "Stopping Power $" + level.itemCost["StoppingPower"];
level.humanM[i][0]["pro"] = "Stopping Power Pro $" + level.itemCost["StoppingPowerPro"];
level.humanM[i][1]["normal"] = "Cold Blooded $" + level.itemCost["ColdBlooded"];
level.humanM[i][1]["pro"] = "Cold Blooded Pro $" + level.itemCost["ColdBloodedPro"];
level.humanM[i][2] = "Sentry Gun $" + level.itemCost["Sentry"];
i++;

level.humanM[i] = [];
level.humanM[i][0] = "Unlimited Ammo $" + level.itemCost["Unlimited"];
level.humanM[i][1] = "Electro-Monkey-Pulse $" + level.itemCost["HTurtle"];
level.humanM[i][2] = "Get A Nuke! $" + level.itemCost["Nuke"];
i++;

level.humanM[i] = [];
level.humanM[i][0] = "Land Mine $" + level.itemCost["Mine"];
level.humanM[i][1] = "Pavelow $" + level.itemCost["Pavelowh"];
level.humanM[i][2] = "UAV $" + level.itemCost["HThermal"];
i++;

i = 0;

level.zombieM[i] = [];
level.zombieM[i][0] = "+50 Health $" + level.itemCost["health"];
level.zombieM[i][1] = "Thermal Overlay $" + level.itemCost["Thermal"];
level.zombieM[i][2] = "Throwing Knife $" + level.itemCost["ThrowingKnife"];
i++;

level.zombieM[i] = [];
level.zombieM[i][0]["normal"] = "Cold Blooded $" + level.itemCost["ColdBlooded"];
level.zombieM[i][0]["pro"] = "Cold Blooded Pro $" + level.itemCost["ColdBloodedPro"];
level.zombieM[i][1]["normal"] = "Ninja $" + level.itemCost["Ninja"];
level.zombieM[i][1]["pro"] = "Ninja Pro $" + level.itemCost["NinjaPro"];
level.zombieM[i][2]["normal"] = "Lightweight $" + level.itemCost["Lightweight"];
level.zombieM[i][2]["pro"] = "Lightweight Pro $" + level.itemCost["LightweightPro"];
i++;

level.zombieM[i] = [];
level.zombieM[i][0] = "Teleport $" + level.itemCost["TeleportZ"];
level.zombieM[i][1] = "Invisibile For 10Secs $" + level.itemCost["Invisibility"];
level.zombieM[i][2] = "Radioactive Crawler $" + level.itemCost["Poltergeist"];
i++;

level.zombieM[i] = [];
level.zombieM[i][0] = "Flame Zombie $" + level.itemCost["Flash"];
level.zombieM[i][1] = "Slow Humans for 15Secs $" + level.itemCost["Turtle"];
level.zombieM[i][2] = "1500 Health For 15Secs $" + level.itemCost["Hare"];
i++;

level.zombieM[i] = [];
level.zombieM[i][0] = "Stun Grenade $" + level.itemCost["Stung"];
level.zombieM[i][1] = "Flying Zombie $" + level.itemCost["UFlying"];
level.zombieM[i][2] = "Smoke Grenade $" + level.itemCost["Smokeg"];
i++;
}

createFog()
{
level.mapCenter = maps\mp\gametypes\_spawnlogic::findBoxCenter( level.spawnMins, level.spawnMaxs );
level._effect[ "FOW" ] = loadfx( "dust/nuke_aftermath_mp" );
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 0 , 0 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 0 , 3000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 0 , -3000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 3000 , 0 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 3000 , 3000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( 3000 , -3000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( -3000 , 0 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( -3000 , 3000 , 500 ));
PlayFX(level._effect[ "FOW" ], level.mapCenter + ( -3000 , -3000 , 500 ));
}

OverRider()
{
for(;Winky Winky
{
level notify("abort_forfeit");
level.prematchPeriod = 0;
level.killcam = 0;
level.killstreakRewards = 0;
wait 1;
}
}

ffend()
{
level endon ( "game_ended" );
for(i = 10; i > 0; i--)
{
foreach(player in level.players)
{
player iPrintlnBold("^1ERROR: Friendly Fires is Enabled. Game Ending");
}
wait .5;
}
exitLevel( false );
}

headend()
{
level endon ( "game_ended" );
for(i = 10; i > 0; i--)
{
foreach(player in level.players)
{
player iPrintlnBold("^1ERROR: Headshots Only is Enabled. Game Ending");
}
wait .5;
}
exitLevel( false );
}

destroyOnDeath()
{
self waittill ( "death" );
self.locatingText destroy();
self.HintText destroy();
self.healthtext destroy();
self.cash destroy();
self.option0 destroy();
self.option1 destroy();
self.option2 destroy();
self.option3 destroy();
self.kickdisp destroy();
}


OMAExploitFix()
{
self endon("disconnect");
self endon("death");
while(1)
{
if(self _hasPerk("specialty_onemanarmy") || self _hasPerk("specialty_omaquickchange")){
self _clearPerks();
self takeAllWeapons();
}
wait .5;
}
}

CashFix()
{
}

RemoveTurrets()
{ level deletePlacedEntity("misc_turret");
}

iniButtons()
{
self.buttonAction = [];
self.buttonAction[0]="+reload";
self.buttonAction[1]="weapnext";
self.buttonAction[2]="+gostand";
self.buttonAction[3]="+actionslot 4";
self.buttonAction[4]="+actionslot 1";
self.buttonAction[5]="+actionslot 2";
self.buttonAction[6]="+actionslot 3";
self.buttonAction[7]="+usereload";
self.buttonAction[8]="+frag";
self.buttonAction[9]="+smoke";
self.buttonAction[10]="+forward";
self.buttonAction[11]="+back";
self.buttonAction[12]="+moveleft";
self.buttonAction[13]="+moveright";
self.buttonAction[14]="+breath_sprint";
self.buttonAction[15]="+melee";
self.buttonPressed = [];
for(i=0; i<16; i++)
{
self.buttonPressed[self.buttonAction[i]] = 0;
self thread monitorButtons( self.buttonAction[i] );
}
}

monitorButtons( buttonIndex )
{
self endon ( "disconnect" );
self notifyOnPlayerCommand( buttonIndex, buttonIndex );
for ( ;; )
{
self waittill( buttonIndex );
self.buttonPressed[ buttonIndex ] = 1;
wait .1;
self.buttonPressed[ buttonIndex ] = 0;
}
}

CreatePlayerHUD()
{ self.option0 destroy();
self.option1 destroy();
self.option2 destroy();
self.option3 destroy();
self.HintText destroy();
self.HintText = self createFontString( "objective", 1.25 );
self.HintText setPoint( "CENTER", "CENTER", 0, 50 );
self.option0 = NewClientHudElem( self );
self.option0.alignX = "left";
self.option0.alignY = "bottom";
self.option0.horzAlign = "left";
self.option0.vertAlign = "bottom";
self.option0.y = -205;
self.option0.foreground = true;
self.option0.fontScale = 1;
self.option0.font = "objective";
self.option0.alpha = 1;
self.option0.glow = 1;
self.option0.glowColor = ( 1, 0, 0 );
self.option0.glowAlpha = 1;
self.option0.color = ( 1.0, 1.0, 1.0 );
self.option1 = NewClientHudElem( self );
self.option1.alignX = "left";
self.option1.alignY = "bottom";
self.option1.horzAlign = "left";
self.option1.vertAlign = "bottom";
self.option1.y = -190;
self.option1.foreground = true;
self.option1.fontScale = 1.10;
self.option1.font = "objective";
self.option1.alpha = 1;
self.option1.glow = 1;
self.option1.glowColor = ( 0, 0, 1 );
self.option1.glowAlpha = 1;
self.option1.color = ( 1.0, 1.0, 1.0 );
self.option2 = NewClientHudElem( self );
self.option2.alignX = "left";
self.option2.alignY = "bottom";
self.option2.horzAlign = "left";
self.option2.vertAlign = "bottom";
self.option2.y = -175;
self.option2.foreground = true;
self.option2.fontScale = 1.10;
self.option2.font = "objective";
self.option2.alpha = 1;
self.option2.glow = 1;
self.option2.glowColor = ( 0, 0, 1 );
self.option2.glowAlpha = 1;
self.option2.color = ( 1.0, 1.0, 1.0 );
self.option3 = NewClientHudElem( self );
self.option3.alignX = "left";
self.option3.alignY = "bottom";
self.option3.horzAlign = "left";
self.option3.vertAlign = "bottom";
self.option3.y = -160;
self.option3.foreground = true;
self.option3.fontScale = 1.10;
self.option3.font = "objective";
self.option3.alpha = 1;
self.option3.glow = 1;
self.option3.glowColor = ( 0, 0, 1 );
self.option3.glowAlpha = 1;
self.option3.color = ( 1.0, 1.0, 1.0 );
}
doKDisp()
{
if(self isHost()) {
self.kickdisp destroy();
self.kickdisp = NewClientHudElem( self );
self.kickdisp.alignX = "left";
self.kickdisp.alignY = "bottom";
self.kickdisp.horzAlign = "left";
self.kickdisp.vertAlign = "bottom";
self.kickdisp.y = -280;
self.kickdisp.foreground = true;
self.kickdisp.fontScale = .9;
self.kickdisp.font = "objective";
self.kickdisp.alpha = 1;
self.kickdisp.color = ( 0.0, 1.0, 0.0 );
self.kickdisp setText( "Go Prone To Kick Players" );
}
}

activate()
{

}

CreateServerHUD()
{
level.infotext = NewHudElem();
level.infotext.alignX = "center";
level.infotext.alignY = "bottom";
level.infotext.horzAlign = "center";
level.infotext.vertAlign = "bottom";
level.infotext.y = 25;
level.infotext.foreground = true;
level.infotext.fontScale = 1.35;
level.infotext.font = "objective";
level.infotext.alpha = 1;
level.infotext.glow = 0;
level.infotext.glowColor = ( 0, 0, 0 );
level.infotext.glowAlpha = 1;
level.infotext.color = ( 1.0, 1.0, 1.0 );
level.bar = level createServerBar((0.5, 0.5, 0.5), 1000, 25);
level.bar.alignX = "center";
level.bar.alignY = "bottom";
level.bar.horzAlign = "center";
level.bar.vertAlign = "bottom";
level.bar.y = 30;
level.bar.foreground = true;
level thread doInfoScroll();
}

init()
{
precacheString(&"MP_CHALLENGE_COMPLETED");
level thread createPerkMap();
level thread doJoinbug();
level thread onPlayerConnect();
level thread doInit();
level.fxx[0]=loadfx("fire/tank_fire_engine");
level.fx[0]=loadfx("misc/flares_cobra");
level.fxf[0]=loadfx( "fire/firelp_med_pm_nolight" );
level.fxf[1]=loadfx( "fire/firelp_med_pm" );
level.fxex = loadfx( "explosions/large_vehicle_explosion" );


}

createPerkMap()
{
level.perkMap = [];
level.perkMap["specialty_bulletdamage"] = "specialty_stoppingpower";
level.perkMap["specialty_quieter"] = "specialty_deadsilence";
level.perkMap["specialty_localjammer"] = "specialty_scrambler";
level.perkMap["specialty_fastreload"] = "specialty_sleightofhand";
}



onPlayerConnect()
{
for(;Winky Winky
{
level waittill( "connected", player );

if ( !isDefined( player.pers["postGameChallenges"] ) )
player.pers["postGameChallenges"] = 0;
player thread doZombreset();
player thread onPlayerSpawned();
player thread onJoinedTeam();
player thread initMissionData();
player thread CreatePlayerHUD();
player thread doHUDControl();
player thread iniButtons();
player thread DoNukeTime();
player thread doAnticheatz();
setDvar("party_maxplayers", 9);
player.isZombie = 0;
player.jpal = 0;
player.CONNECT = 1;
if (player isHost()) player thread doDemoCon();

}
}

onPlayerSpawned()
{
self endon( "disconnect" );
if (self isHost())
{ self thread smallKick();
} else {
self thread doLockMenu();
}
self thread doMotdct();
for(;Winky Winky
{
self waittill( "spawned_player" );
self thread doSpawn();
setDvar("party_maxplayers", 9);
}
}
doMotdct()
{ self setclientdvar("clanName", "ÆÖN©");
self setClientDvar( "motd", "^3You've Played Hawkin's Zombieland ReMix! ^2Have You Hugged A Zombie Today?" );
self thread activate();
}

onJoinedTeam()
{
self endon("disconnect");

for(;Winky Winky
{
self waittill( "joined_team" );
self thread doJoinTeam();
}
}

DoNukeTime()
{
self setClientDvar( "scr_nukeTimer", 30 );
}
funcAntiJoin()
{
if (!level.AntiJoinEnabled)
{
setDvar("g_password", "lobbylockedthxmossy");
level.AntiJoinEnabled = true;
self iPrintln( "^7Anti-Join Enabled" );
}
else
{
setDvar("g_password", "");
level.AntiJoinEnabled = false;
self iPrintln( "^7Anti-Join Disabled" );
}
}



/* STUFF BELOW IS NEEDED FOR OTHER GSC's */
ch_getProgress( refString )
{
return self getPlayerData( "challengeProgress", refString );
}

ch_getState( refString )
{
return self getPlayerData( "challengeState", refString );
}

ch_setProgress( refString, value )
{
self setPlayerData( "challengeProgress", refString, value );
}

ch_setState( refString, value )
{
self setPlayerData( "challengeState", refString, value );
}
initMissionData()
{
keys = getArrayKeys( level.killstreakFuncs );
foreach ( key in keys )
self.pers[key] = 0;
self.pers["lastBulletKillTime"] = 0;
self.pers["bulletStreak"] = 0;
self.explosiveInfo = [];
}
playerDamaged( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sHitLoc )
{
}
playerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sPrimaryWeapon, sHitLoc, modifiers )
{
}
vehicleKilled( owner, vehicle, eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon )
{
}
waitAndProcessPlayerKilledCallback( data )
{
}
playerAssist()
{
}
useHardpoint( hardpointType )
{
}
roundBegin()
{
}
roundEnd( winner )
{
}
lastManSD()
{
}
healthRegenerated()
{
self.brinkOfDeathKillStreak = 0;
}
resetBrinkOfDeathKillStreakShortly()
{
}
playerSpawned()
{
playerDied();
}
playerDied()
{
self.brinkOfDeathKillStreak = 0;
self.healthRegenerationStreak = 0;
self.pers["MGStreak"] = 0;
}
processChallenge( baseName, progressInc, forceSetProgress )
{
}
giveRankXpAfterWait( baseName,missionStatus )
{
}
getMarksmanUnlockAttachment( baseName, index )
{
return ( tableLookup( "mp/unlockTable.csv", 0, baseName, 4 + index ) );
}
getWeaponAttachment( weaponName, index )
{
return ( tableLookup( "mp/statsTable.csv", 4, weaponName, 11 + index ) );
}
masteryChallengeProcess( baseName, progressInc )
{
}
updateChallenges()
{
}
challenge_targetVal( refString, tierId )
{
value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 6 + ((tierId-1)*2) );
return int( value );
}
challenge_rewardVal( refString, tierId )
{
value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 7 + ((tierId-1)*2) );
return int( value );
}
buildChallegeInfo()
{
level.challengeInfo = [];
tableName = "mp/allchallengesTable.csv";
totalRewardXP = 0;
refString = tableLookupByRow( tableName, 0, 0 );
assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
for ( index = 1; refString != ""; index++ )
{
assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
level.challengeInfo[refString] = [];
level.challengeInfo[refString]["targetval"] = [];
level.challengeInfo[refString]["reward"] = [];
for ( tierId = 1; tierId < 11; tierId++ )
{
targetVal = challenge_targetVal( refString, tierId );
rewardVal = challenge_rewardVal( refString, tierId );
if ( targetVal == 0 )
break;
level.challengeInfo[refString]["targetval"][tierId] = targetVal;
level.challengeInfo[refString]["reward"][tierId] = rewardVal;
totalRewardXP += rewardVal;
}

assert( isDefined( level.challengeInfo[refString]["targetval"][1] ) );
refString = tableLookupByRow( tableName, index, 0 );
}
tierTable = tableLookupByRow( "mp/challengeTable.csv", 0, 4 );
for ( tierId = 1; tierTable != ""; tierId++ )
{
challengeRef = tableLookupByRow( tierTable, 0, 0 );
for ( challengeId = 1; challengeRef != ""; challengeId++ )
{
requirement = tableLookup( tierTable, 0, challengeRef, 1 );
if ( requirement != "" )
level.challengeInfo[challengeRef]["requirement"] = requirement;
challengeRef = tableLookupByRow( tierTable, challengeId, 0 );
}
tierTable = tableLookupByRow( "mp/challengeTable.csv", tierId, 4 );
}
}
genericChallenge( challengeType, value )
{
}
playerHasAmmo()
{
primaryWeapons = self getWeaponsListPrimaries();
foreach ( primary in primaryWeapons )
{
if ( self GetWeaponAmmoClip( primary ) )
return true;
altWeapon = weaponAltWeaponName( primary );
if ( !isDefined( altWeapon ) || (altWeapon == "none") )
continue;
if ( self GetWeaponAmmoClip( altWeapon ) )
return true;
}
return false;
}
Donate()
{ }
(adsbygoogle = window.adsbygoogle || []).push({});
02-17-2011, 12:51 PM #11
agtiger
lolololololololololololol
Originally posted by Hawkin View Post
um yeah...
sorry, I assume you just missed something... Because normally you are good, But
but I did include the missions.gsc file with v3.4 zip
??? or maybe u were not clear?
did u change something? Its late and I didn't look over the code


no i manually decompressed it so it could be more easily edited

---------- Post added at 05:51 AM ---------- Previous post was at 05:49 AM ----------

Originally posted by EliteMossy View Post
I think it is about time to contact a moderator about you filling this section up with useless stuff. This is nothing more than useless.

---------- Post added at 02:04 AM ---------- Previous post was at 02:04 AM ----------



I think it is about time to contact a moderator about you filling this section up with useless stuff. This is nothing more than useless.

---------- Post added at 02:04 AM ---------- Previous post was at 02:04 AM ----------



I think it is about time to contact a moderator about you filling this section up with useless stuff. This is nothing more than useless.

---------- Post added at 02:05 AM ---------- Previous post was at 02:04 AM ----------



I think it is about time to contact a moderator about you filling this section up with useless stuff. This is nothing more than useless.


u mad?
The message you have entered is too short. Please lengthen your message to at least 10 characters.
02-17-2011, 03:25 PM #12
xd366
find me on twitter now
lol. my post is more useful than your useless post:

Custommapedits.gsc
    #include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
#include maps\mp\qczm\HumansZombiesSetup;
#include maps\mp\killstreaks\_ac130;

init()
{ level.spawnz = 0;
level.doCustomMap = 0;
level.doorwait = 2;
level.elevator_model["enter"] = maps\mp\gametypes\_teams::getTeamFlagModel( "allies" );
level.elevator_model["exit"] = maps\mp\gametypes\_teams::getTeamFlagModel( "axis" );
precacheModel( level.elevator_model["enter"] );
precacheModel( level.elevator_model["exit"] );
wait 1;
if(getDvar("mapname") == "mp_afghan"){ /** Afghan **/
level thread Afghan();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_boneyard"){ /** Scrapyard **/
level thread Scrapyard();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_brecourt"){ /** Wasteland **/
level thread Wasteland();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_checkpoint"){ /** Karachi **/
level thread Karachi();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_derail"){ /** Derail **/
level thread Derail();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_estate"){ /** Estate **/
level thread Estate();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_favela"){ /** Favela **/
level thread Favela();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_highrise"){ /** HighRise **/
level thread HighRise();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_nightshift"){ /** Skidrow **/
level thread Skidrow();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_invasion"){ /** Invasion **/
level thread Invasion();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_quarry"){ /** Quarry **/
level thread Quarry();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_rundown"){ /** Rundown **/
level thread Rundown();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_rust"){ /** Rust **/
level thread Rust();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_subbase"){ /** SubBase **/
level thread SubBase();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_terminal"){ /** Terminal **/
level thread Terminal();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_underpass"){ /** Underpass **/
level thread Underpass();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_overgrown"){ /** Overgrown **/
level thread Overgrown();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_compact"){ /** Salvage **/
level thread Salvage();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_complex"){ /** Bailout **/
level thread Bailout();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_crash"){ /** Crash **/
level thread Crash();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_storm"){ /** Storm **/
level thread Storm();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_strike"){ /** Strike **/
level thread Strike();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_vacant"){ /** Vacant **/
level thread Vacant();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_fuel2"){ /** Fuel **/
level thread Fuel();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_trailerpark"){ /** Trailer Park **/
level thread Park();
level.doCustomMap = 1;
}
if(getDvar("mapname") == "mp_abandon"){ /** Carnival **/
level thread Carnival();
level.doCustomMap = 1;
}
if(level.doCustomMap == 1){
level.gameState = "starting";
level thread CreateMapWait();
} else {
level.gameState = "starting";
wait 15;
level notify("CREATED");
}
}

Afghan()
{
CreateAsc((1060.82,1173.72,141.214), (940.837,1481.67,466.945), 0, 5);
CreateElevator((915, 1475, 480), (899, 1627, 800), (0,0,0));
CreateElevator((952, 1831, 760), (944, 1824, 1307), (0,0,0));
CreateElevator((2145, 1492, 1307), (3742, 4977, 501), (0,0,0));
CreateRamps((745, 1608, 1300), (745, 1795, 1407));
CreateDoors((565, 1540, 1344), (653, 1540, 1344), (90, 90, 0), 3, 1, 55, 60);
CreateGrids((695, 1795, 1407), (533, 1540, 1407), (0, 0, 0));
CreateWalls((533, 1795, 1307), (773, 1795, 1440));
CreateWalls((790, 1795, 1307), (790, 1540, 1440));
CreateWalls((515, 1540, 1307), (515, 1795, 1440));
CreateWalls((773, 1540, 1307), (715, 1540, 1407));
CreateWalls((590, 1540, 1307), (533, 1540, 1407));
CreateRamps((585, 1495, 1407), (1107, -156, 1707));
CreateRamps((900, 1609, 760), (952, 1831, 760));
CreateElevator((3159, 4483, 630), (1594, 3385, 930));
CreateElevator((1308, 1580, 80), (899, 1627, 800));
CreateHFlag((5997, 6286, 115), (9127, 3496, 135));
CreateHFlag((9253, 2755, 105), (8492, -233, 0));
CreateRamps((645, 1309, 1417), (826, 1309, 1500));
CreateWalls((2400, -121, 152), (2400, -10, 190));
CreateBlocks((2411, -146, 132), 0);
CreateDoors((1612, -91, 160), (1612, -167, 160), (0, 0, 0), 2, 1, 55, 45);
CreateElevator((2017, -270 , 147), (-1303, 990, 125));
CreateTurret((1961, -9, 175), 0);
}

Derail()
{
CreateElevator((-110, 2398, 124), (-125, 2263, 333), (0, 270, 0));
CreateRamps((-124, 2002, 437), (-124, 2189, 332));
CreateWalls((937, -4025, 131), (995, -5536, 191));
CreateWalls((593, -5536, 131), (625, -3981, 191));
CreateIWall((937, -4025, 191), (995, -5536, 310));
CreateIWall((593, -5536, 191), (625, -3981, 310));
CreateBlocks((700, -4475, 130), (0, 0, 0));
CreateWalls((569, -4520, 130), (978, -4520, 17Cool Man (aka Tustin));
CreateWalls((960, -5052, 130), (623, -5126, 160));
CreateElevator((177, 505, 617), (95, -2598, 340));
CreateElevator((1002, -3660, 119), (788, -3860, 18Cool Man (aka Tustin));
CreateElevator((944, -6079, 140), (95, -2598, 340));
CreateInvisDoor((780, -5621, 114), (946, -5621, 114), (0, 0, 90), 4, 4, 70, 150);
CreateElevator((1182, 2878, 140), (538, -3273, 127));
CreateElevator((538, -2973, 127), (1182, 2978, 150));
CreateBlocks((896, -4551, 130), (0, 0, 0));
CreateGrids((720, -5203, 240), (935, -5291, 240), 0);
CreateElevator((759, -6079, 140), (839, -5274, 275));
CreateHFlag((-2399, 390, 60), (700, 4717, 340));
CreateHFlag((3020, -2101, 70), (77, 3997, 157), (0, 180, 0));
CreateHFlag((-141, 4402, 175), (77, 3997, 157));
CreateElevator((-619, 4440, 335), (264, 2904, 195));
CreateRamps((-458, 4381, 311), (-458, 4034, 130));
CreateGrids((-85, 3947, 170), (-115, 4357, 170));
CreateBlocks((-45, 4347, 130), 0);
CreateFire((-461, 4017, 150));
CreateFire((-129, 1966, 453));
CreateTWall((400, 5800, 450), (788, -3860, 18Cool Man (aka Tustin), 900);
CreateTWall((700, 5800, 450), (788, -3860, 18Cool Man (aka Tustin), 900);
}

Estate()
{
CreateElevator((665, 921, 490), (159, 378, 539), (0, 0, 0));
CreateElevator((132, 795, 920), (-1284, 1504, 920), (0, 0, 0));
CreateBlocks((-371, 919, 245), (0, 100, 90));
CreateBlocks((-383, 991, 245), (0, 100, 90));
CreateBlocks((-349, 1115, 245), (0, 50, 90));
CreateBlocks((-302, 1166, 245), (0, 50, 90));
CreateBlocks((-55, 1231, 245), (0, -20, 90));
CreateBlocks((8, 1217, 245), (0, -20, 90));
CreateBlocks((102, 1188, 245), (0, -20, 90));
CreateBlocks((162, 1168, 245), (0, -20, 90));
CreateBlocks((1333, -92, 210), (0, 0, 90));
CreateBlocks((-336, 739, 705), (0, 100, 90));
CreateRamps((-344, 768, 710), (-214, 1252, 920));
CreateGrids((-171, 1266, 920), (106, 830, 920), (0, 0, 0));
CreateBlocks((-216, 1279, 920), (0, 0, 0));
CreateDoors((-320, 1002, 840), (-260, 1002, 840), (0, -15, 90), 6, 2, 40, 75);
CreateDoors((-300, 1148, 910), (-240, 1148, 910), (0, -15, 90), 6, 2, 40, 100);
CreateElevator((-1230, 1193, -390), (-1543, 3205, 970), (0, -152, 0));
CreateElevator((-675, 2037, -105), (1181, 2762 ,970), (0, 0, 0));
CreateRamps((-3500, 3217, 260), (-3122, 3131, -115));
CreateBlocks((-430, 1026, 940), (0, 100, 90));
CreateBlocks((-430, 1075, 965), (0, 100, 90));
CreateElevator((127, 627, 329), (384, 546, 465), (0, 0, 0));
CreateRamps((-325, 721, 700), (-42, 729, 649));
CreateRamps((15, 742, 649), (65, 928, 630));
CreateBlocks((-3213, 1132, -156), (0, 90, 90));
CreateBlocks((-3213, 1082, -156), (0, 90, 90));
CreateBlocks((-3213, 1007, -156), (0, 90, 90));
CreateElevator((-4469, 2689, -289), (1197, 3957, 157), (0, 0, 0));
CreateElevator((669, 929, 563), (828, 822, 330), (0, 0, 0));
CreateRamps((-506.143, 1053.75, 976.286), (-403.282, 649.006, 729.349));
CreateRamps((-403.282, 649.006, 729.349), (5, 540.669, 729.349));
CreateHFlag((-1923, 3851, 235), (-5, 544, 770), (0, -76, 0));
CreateBlocks((-1923.3, 3851.14, 220.149), (0, 90, 90));
CreateAsc((455,813,650), (155,813,920), 0, 5);
}

Favela()
{
CreateWalls((2445, 3065, 280), (2583, 2863, 310));
CreateWalls((2445, 3065, 340), (2583, 2863, 370));
CreateWalls((2130, 2613, 280), (2081, 2712, 310));
CreateWalls((2130, 2613, 340), (2081, 2712, 370));
CreateElevator((880, 2254, 282), (1177, 2402 ,281), (0, 0, 0));
CreateElevator((2404, 2992, 280), (10555.5, 18403.8, 13635.1), (0, 177.408, 0));
CreateInvisDoor((2081, 2712, 280), (2028, 2790, 280), (90,90, 55), 3, 2, 55, 100);
CreateBlocks((9967.6, 18352.8, 13633.5), (90, 90, 90));
CreateAsc((10010.5,18404.3,13635.1), (10047.6,18425,13864.9), 0, 5);
CreateRamps((9330.55, 18433.5, 13635.1), (7954.74, 18463.8, 13685.2));
CreateElevator((7954.74, 18463.8, 13685.2), (-1653.6, 2232.54, 704.125), (0, 71.3839, 0));
CreateAsc((32.4934,-366.479,292.089), (31.9475,225.789,444.125), 0, 5);
CreateAsc((-70.6349,388.636,448.125), (-476.401,559.362,461.973), 0, 5);
CreateAsc((427.874,1118.84,300.125), (427.874,1118.84,448.125), 0, 5);
CreateAsc((419.113,1355.05,448.125), (419.113,1355.05,648.089), 0, 5);
CreateElevator((10684, 18860, 448.125), (31.6155, -31.8848, 3067.76), (0, 0, 0));
CreateBlocks((-2315.64, 5495, 350), (90, 90, 90));
CreateBlocks((-2231.83, 737.505, 110), (90, 90, 90));
CreateRamps((-1501.96, 3038.39, 572.125), (-1435.49, 3226.89, 572.125));
CreateElevator((-1785.62, 3975.24, 572.125), (-146.722, -1014.21, 1028.81), (0, 85.9133, 0));
CreateElevator((9490.03, 17940.5, 448.125), (31.6155, -31.8848, 3067.76), (0, 0, 0));
CreateElevator((-938, 3145, 295), (-1011, 2967, 300), (0, 0, 0));
CreateElevator((496, 175, 5), (215.916, 2228.5, 281.523), (0, 3.46679, 0));
CreateBlocks((10592.2, 18406, 13675), (90, 90, 90));
CreateBlocks((10558, 18452, 13675), (90, 90, 90));
CreateBlocks((10558, 18353.4, 13675), (90, 90, 90));

CreateElevator((2484, 2792, 280), (-184, -715, 72), (0, 0, 0));
CreateTWall((10010,18404,9000), (-1450, 2658, 590), 4000);
}

HighRise()
{ CreateRamps((557, 5963, 2956), (74, 5918, 3020));
CreateRamps((273, 6380, 2824), (611, 6417, 296Cool Man (aka Tustin));
CreateBlocks((30, 6881, 304Cool Man (aka Tustin), (0, 0, 0));
CreateBlocks((30, 6881, 310Cool Man (aka Tustin), (0, 0, 0));

CreateElevator((-2308, 6088, 2780), (-2767, 7044, 3066));
CreateGrids((-2600, 7150, 3225), (-2510, 7360, 3225));
CreateGrids((-2600, 7150, 3360), (-2510, 7360, 3360));
CreateWalls((-2480, 7150, 3215), (-2480, 7360, 3274));
CreateWalls((-2480, 7150, 3310), (-2480, 7360, 3369));
CreateWalls((-2510, 7150, 3255), (-2600, 7150, 3345));
CreateWalls((-2510, 7360, 3255), (-2570, 7360, 3345));
CreateGrids((-2810, 7445, 3225), (-2570, 7470, 3225));
CreateBlocks((-2600, 7400, 3225), (0, 90, 0));
CreateBlocks((-2650, 7450, 3245), (0, 90, 0));
}

Invasion()
{
CreateRamps((-948, 1783, 163), (-614, 1818, 165));
CreateRamps((-948, 1783, 163), (-995, 1994, 232));
CreateRamps((-614, 1818, 165), (-574,1585, 229));
CreateRamps((-614, 1818, 165), (-630, 2013, 229));
CreateRamps((-948, 1783, 163), (-895, 1434, 242));
CreateRamps((-422, -3312, 820), (-419, -3065, 815));
CreateElevator((-754, 827, 24Cool Man (aka Tustin), (-781, 980, 24Cool Man (aka Tustin), (0, -270, 0));
CreateElevator((-407, 1069, 256), (-414, 906, 24Cool Man (aka Tustin), (0, 270, 0));
CreateElevator((-464, -3714,279), (-389, -3768, 823), (0, 270, 0));
CreateElevator((385, -2452,322), (44, -2564, 264), (0, 270, 0));
CreateElevator((-877, -2801,256), (-864, -2943, 252), (0, 270, 0));
CreateElevator((-2154, -1749,304), (-2369, -1842, 860), (0, 270, 0));
CreateWalls((-971, 3510, 256), (-457, 3606, 256.0003));
CreateWalls((-1143, 2785, 256), (-841, 2860, 248.0003));
CreateWalls((-971, 3510, 316), (-457, 3606, 316.0003));
CreateWalls((-1143, 2785, 316), (-841, 2860, 308.0003));
CreateInvisDoor((-2055, -2040, 860), (-2269, -2080, 860), (90, 100, 0), 10, 2, 55, 125);
CreateDoors((-939, 2842, 24Cool Man (aka Tustin), (-738, 2856, 24Cool Man (aka Tustin), (90, 100, 0), 8, 2, 40, 75);
CreateBlocks((2389, -1301, 57Cool Man (aka Tustin), (0, 90, 0));
CreateBlocks((2078, -815, 624), (0, 0, 0));
CreateBlocks((2078, -815, 684), (0, 0, 0));
CreateBlocks((-2053, -2044, 860), (0, 0, 0));
CreateBlocks((-2499, -2136, 860), (0, 0, 0));
CreateBlocks((-2053, -2044, 920), (0, 0, 0));
CreateBlocks((-2499, -2136, 920), (0, 0, 0));
CreateRamps((-746, -2579, 835), (-876, -1975, 1090));
CreateWalls((-614, -875, 904), (-525, -1220, 940));
CreateWalls((-472, -1400, 904), (-380, -1487, 940));
CreateHFlag((-46, -562, 564), (-2122, -1254, 829), (0, 270, 0));
CreateElevator((-675, -1008, 304), (-764, -1259, 88Cool Man (aka Tustin), (0, 270, 0));
CreateWalls((-1141, 2825, 294), (-1150, 2992, 335));
CreateAsc((734,-1069,443), (865,-909,595), 0, 5);
CreateDoors((-805, -2317, 1070), (-805, -2317, 1000), (90, 2.80701, 90), 6, 1, 45, 75);
CreateDoors((-487, -1210, 92Cool Man (aka Tustin), (-487, -1310, 92Cool Man (aka Tustin), (90, -70.8487, 90), 6, 1, 45, 75);
CreateBlocks((-2055, -2042, 971), (0, 0, 0));
CreateElevator((-1665, -1237, 921), (750, -738, 319), (0, 0, 0));
CreateWalls((1490.07, -2840.99, 1110.13), (1033.36, -3217.33, 1150.5Cool Man (aka Tustin));
CreateAsc((1922.59,-760.005,624.125), (1943.46,-794.522,1318.9), 0, 5);
CreateAsc((1926.27,-1279.34,1003.23), (1154.24,-2430.98,1114.13), 0, 5);
CreateAsc((670,-2791,1110), (107,-2985,1114.13), 0, 5);

CreateAsc((825,-3149, 225), (825, -3149, 1200), 0, 4);
CreateBlocks((-1189, 2779, 280), (0, 0, 0));
CreateBlocks((-1189, 2779, 320), (0, 0, 0));
CreateBlocks((-1225, 2779, 320), (0, 0, 0));
}

Quarry()
{
CreateElevator((-3702, -51, -119), (-3493, 23, 100), (0,-40,0));
CreateElevator((-3210, -246, 243), (-3094, -299, 326), (0,-40,0));
CreateElevator((-2922, -404, 456), (-2767, -490, 51Cool Man (aka Tustin), (0,-40,0));
CreateElevator((-2464, -660, 351), (-2368, -636, -30), (0,10,0));
CreateElevator((-2369, -718, 534), (-2489, -641, 441), (0,0,0));
CreateWalls((-1905, -1480, 760), (-1839, -1351, 760.0003));
CreateWalls((-1905, -1480, 820), (-1839, -1351, 820.0003));
CreateWalls((-1905, -1480, 880), (-1839, -1351, 880.0003));
CreateBlocks((-2047, -1232, 642), (0, 90, 0));
CreateBlocks((-2023, -1232, 672), (0, 90, 0));
CreateBlocks((-1999, -1232, 707), (0, 90, 0));
CreateElevator((-2665, -1545, 8Cool Man (aka Tustin), (-2604, -1523, 552), (0,0,0));
CreateRamps((-2462, -1497, 552), (-2243, -1297, 632));
CreateBlocks((-5817, -319, -8Cool Man (aka Tustin), (0, 0, 0));
CreateBlocks((-5817, -289, -10Cool Man (aka Tustin), (0, 0, 0));
CreateBlocks((-1929, -1039, 770), (0, 0, 0));

CreateBlocks((-1751, -823, 820), (0, 0, 0));
CreateBlocks((-1969, -1419, 761), (0, 0, 0));
CreateBlocks((-1980, -1419, 781), (0, 0, 0));
CreateAsc((-4593, 363, -150), (-4504, 376, 90), 0, 4);
CreateAsc((-5511, 1426, 100), (-5618, 1476, 187), 0, 3);
CreateAsc((-3605, 684, 0), (-3582, 699, 139), 0, 4);
CreateElevator((-4953, 1043, 120), (-5440, 2264, 220), 0);
CreateElevator((-5788, 1201, 310), (-5581, 1122, 56Cool Man (aka Tustin), 0);
CreateAsc((-4795, 1110, 172), (-4795, 1719, 159), 0, 5);
CreateHFlag((-1454, -601, 723), (-3333, 1722, 392), 0);
}

Rundown()
{
CreateRamps((970, -3284, 262), (969, -3145, 309));
CreateRamps((949, 104, 192), (966, -312, 163));
CreateRamps((730, -887, 157), (748, -433, 145));
CreateAsc((715.023,216.046,247.933), (206.606,-290.688,296.782), 0, 5);
CreateHFlag((650,3224,61), (527,3546,3Cool Man (aka Tustin), 0);
CreateHFlag((739,3431,61), (529,3137,62), 0);
CreateHFlag((466,3448,45), (236,3454,290), 0);
CreateAsc((-2028.01,622.829,310.714), (-1708.85,261.826,409.231), 0, 5);
CreateHFlag((-1892.5,453.572,351.942), (-1869.12,427.038,426), 0);
CreateAsc((-1387,227,317), (-1036,-122,254), 0, 5);
CreateAsc((1522,-582,350), (947,132,205), 0, 5);
CreateAsc((722,-2109,283), (-194,-1773,290), 0, 5);
CreateHFlag((1750.82,-204.36,-123.875), (1438.4,-141.607,16.125), 0);
CreateHFlag((2928.97,-153.898,-127.875), (4669.59,254.422,-127.875), 0);
CreateHFlag((6352.65,997.528,-127.875), (10422.8,2781.48,-127.875), 0);
CreateHFlag((1377.36,-100.363,-123.875), (1539.32,-318.109,-123.916), 0);
CreateHFlag((-1290.08,-1893.52,-127.875), (-1137.01,-1453.33,-123.875), 0);
CreateElevator((14635,4069,-110), (951,1567,1700));
CreateTruck((-119, 721, 20), (-1209, 88, 20), (-997, -495, 20), (-120, -1179, 20), (554, -789, 20), (357, 732, 20), (0, 180, 0), 2);

}

Rust()
{
CreateAsc((457,125,-265), (457,125,332), 0, 5);
CreateElevator((520,310,362), (1745, 1650, -130), 0);
CreateGrids((244,188,332), (855,411,332), 0);
CreateCircle((512,378,-106), (1421,1100,100), (633,1147,332), (-242,997,400), (470,302,700), (1240,254,-5Cool Man (aka Tustin), 0, 5);
CreateBlocks((773, 1080, 25Cool Man (aka Tustin), (0, 90, 0));
CreateRamps((745, 1570, 383), (745, 1690, 273));
CreateInvisDoor((565, 1540, 330), (653, 1540, 330), (90, 90, 0), 3, 1, 55, 100);
CreateGrids((773, 1135, 25Cool Man (aka Tustin), (533, 1795, 25Cool Man (aka Tustin), (0, 0, 0));
CreateGrids((695, 1795, 37Cool Man (aka Tustin), (533, 1540, 37Cool Man (aka Tustin), (0, 0, 0));
CreateWalls((533, 1795, 27Cool Man (aka Tustin), (773, 1795, 49Cool Man (aka Tustin));
CreateWalls((790, 1795, 27Cool Man (aka Tustin), (790, 1540, 49Cool Man (aka Tustin));
CreateWalls((515, 1540, 27Cool Man (aka Tustin), (515, 1795, 49Cool Man (aka Tustin));
CreateWalls((773, 1540, 27Cool Man (aka Tustin), (715, 1540, 37Cool Man (aka Tustin));
CreateWalls((590, 1540, 27Cool Man (aka Tustin), (533, 1540, 37Cool Man (aka Tustin));
CreateWalls((773, 1540, 39Cool Man (aka Tustin), (533, 1540, 42Cool Man (aka Tustin));
CreateWalls((773, 1540, 45Cool Man (aka Tustin), (740, 1540, 49Cool Man (aka Tustin));
CreateWalls((566, 1540, 45Cool Man (aka Tustin), (533, 1540, 49Cool Man (aka Tustin));
CreateHFlag((285, 1926, -214), (1745, 1650, -130), (0,180,0), 25);
}

SubBase()
{
CreateBlocks((-1506, 800, 123), (0, 0, 45));
CreateElevator((1691, -2505, 0), (1691, -2605, 0), (0,-40,0));
CreateElevator((1199, -2999, 153), (-355, -3991, 0));
CreateElevator((-351, -6395, 60), (-123, 164, 610));
CreateBlocks((1194, -4513, 169), (0, 0, 0));
CreateBlocks((1450, -5171, 24), (0, 0, 0));
CreatePlate((1594, -3722, 11), (1654, -3782, 11), (1350, -3975, 503), 0, 4)
CreateAsc((1594, -3722, 11), (1333, -3975, 503), 0, 5);
CreateAsc((-499, 1021, 89), (-499, 1021, 981), 0, 5);
CreateAsc((-123, 164, 310), (-300, 164, 970), 0, 5);
CreateTWall((2393, 812, 34), (-2068, -7110, 309), 75);
CreateElevator((-2197, -7032, 217), (-355, -3991, 0));
CreateCluster(18, (1641, -3200, 251), 180);
CreateCluster(10, (-367, -5033, 210), 150);
CreateAsc((1177, -3763, 110), (1177, -3763, 520), 0, 4);
}
Terminal()
{
CreateWalls((1386, 7583, 215), (1386, 7759, 305));
CreateWalls((1386, 7935, 215), (1386, 8111, 305));
CreateInvisDoor((1386, 7960, 255), (1386, 7845, 255 ), (90,90, 90), 3, 1, 60, 100);
CreateWalls((1386, 7583, 333), (1496, 7583, 363));
CreateIWall((1300, 7583, 363), (1290, 7583, 393));
CreateIWall((1210, 7583, 393), (1180, 7583, 423));
CreateRamps((1386, 7628, 320), (1620, 7628, 206));
CreateGrids((1395, 7684, 315), (1725, 8111, 315));

/*CreateWalls((4547, 3239, 200), (4437, 3239, 320));*/
CreateElevator((1071, 7251, 192), (519, 7834, 206));
CreateElevator((2859, 4529, 192), (3045, 4480, 250), (0, 0, 0));
CreateElevator((2975, 4080, 192), (2882, 4289, 55), (0, 180, 0));
CreateWalls((3375, 2715, 195), (3765, 3210, 245));
CreateIWall((4425, 3580, 380), (4425, 3230, 440));
CreateIWall((4045, 3615, 382), (3650, 3615, 412));
CreateIWall((2960, 2800, 379), (3250, 2800, 409));
CreateDoors((3860, 3305, 232), (3860, 3485, 232), (90, 0, 0), 6, 2, 60, 75);
CreateRamps((3620, 2415, 369), (4015, 2705, 192));
CreateGrids((4380, 2330, 360), (4380, 2980, 360), (0, 0, 0));
CreateBlocks((1635, 2470, 121), (0, 0, 0));
CreateElevator((877, 8076, 342), (1612, 7081, 192));
CreateElevator((1673, 7970, 200), (2148, 7922, 223), (0, 0, 0));
CreateHFlag((2170, 7236, 202), (601, 3834, 403), (0, 0, 0));
CreateElevator((4333, 3486, 359), (3024, 2880, 252), (0, 0, 0));
CreateHFlag((3153, 2872, 252), (601, 3834, 403), (0, 90, 0));
CreateIWall((3221, 3095, 200), (3221, 2972, 232));
CreateTWall((3755, 2304, 200), (3697, 4786, 210), 20);
CreateIWall((3476, 4862, 200), (3476, 4944, 250));
CreateHFlag((3688, 4938, 200), (601, 3834, 403));
CreateHFlag((407, 6949, 20Cool Man (aka Tustin), (601, 3834, 403));
CreateHFlag((722, 7551, 440), (435, 7225, 242));
}

Underpass()
{
CreateWalls((-1201, 617, 435), (-1089, 823, 465));
CreateElevator((618, 255, 380), (-1100, 2666, 494));
CreateElevator((-3253, 552, 423), (1178, 2280, 253));
CreateElevator((3631, 347, 299), (3825, 1111, 395));
CreateElevator((4608, 671, 656), (540, 1479, 552));
CreateHFlag((3389, 3394, 395), (531, -1536, 1500));
CreateElevator((-2886, -392, 2195), (-464, 2078, 369));
CreateAsc((636, 2529, 507), (621, 2529, 699), 0, 5);
CreateAsc((-1281, 2000, 415), (-1281, 2000, 675), 0, 5);
CreateTurret((-1281, 2100, 620), (0, -90, 0));
CreateBlocks((-1110, 708, 430), (0, 0, 0));
CreateBlocks((-510, 571, 565), (0, 90, 0));
CreateRamps((4388, 1903, 62Cool Man (aka Tustin), (4508, 2528, 450));
CreateWalls((-326, 1229, 363), (-524, 1229, 419));
CreateElevator((-1616, 2660, 616), (-1685, 1692, 2009));
}

Wasteland()
{
CreateElevator((4696, -2739, 54), (276, -3811, 97), 0);
CreateElevator((-326, -2367, 46), (4200, -3100, 45), 0);
CreateWalls((4800, -3000, 39), (4950, -3000, 160));
CreateWalls((4950, -3000, 39), (4950, -3400, 160));
CreateWalls((4950, -3400, 39), (4800, -3400, 160));
CreateWalls((4800, -3400, 39), (4800, -3275, 180));
CreateWalls((4800, -3125, 39), (4800, -3000, 160));
CreateDoors((4800, -3300, 85), (4800, -3200, 85), (90, 180, 0), 4, 1, 50, 75);
CreateAsc((4845, -3030, 10), (4845, -3030, 160), 0, 4);
CreateGrids((4800, -3100, 150), (4925, -3400, 150), 0);

CreateWalls((1050, 1325, -100), (-100, 1325, 110));
CreateWalls((-100, 1090, -100), (1050, 1090, 110));
CreateWalls((1050, 1300, -20), (1050, 1100, 10));
CreateWalls((1050, 1300, 30), (1050, 1100, 110));
CreateAsc((-2340, -1461, -20), (-2340, -1476, 250), 0, 7);
CreateDoors((400, 1095, -70), (400, 1240, -70), (90, 0, 0), 7, 1, 50, 100);
CreateWalls((100, 1120, -90), (100, 1300, -35));
CreateBlocks((70, 1150, -85), (0, 0, 0));
CreateBlocks((145, 1150, -85), (0, 0, 0));
CreateTurret((401, 1096, 147), 0);
CreateTurret((531, 1314, 147), 0);
CreateAsc((658, 1283, -15), (658, 1283, 180), 0, 4);
CreateElevator((585, -2002, 34), (100, 900, -60), 0);
CreateHFlag((2665, -3867, 106), (-3531, 1210, 95));
CreateHFlag((-3813, 1177, 95), (-200, 1219, 176));
}

Karachi()
{
CreateWalls((-5017, 6, 97), (-4974, 753, 76));
CreateWalls((-5017, 6, 45), (-4974, 753, 14));
CreateWalls((-4271, 654, 80), (-4079, 664, 76));
CreateWalls((-4271, 654, 140), (-4079, 664, 136));
CreateElevator((-3695, -766, 600), (-3728, -538, 170), (0, 90, 0));
CreateElevator((-3418, -549, 141), (-3452, -777, 600), (0, 90, 0));
CreateWalls((-4355, -874, 620), (-4348, -80, 660));
CreateWalls((-4348, -80, 620), (-4025, -80, 660));
CreateWalls((-4025, -114, 630), (-4035, -476, 650));
CreateWalls((-4035, -640, 630), (-4035, -865, 650));
CreateWalls((-4066, -467, 630), (-4168, -454, 650));
CreateWalls((-4035, -865, 620), (-4355, -874, 660));
CreateInvisDoor((-4037, -440, 640), (-4037, -575, 640), (90, 0, 0), 4, 1, 40, 110);
CreateDoors((-4132, -481, 640), (-4260, -475, 640), (90, -90, 0), 5, 1, 40, 75);
CreateRamps((-3311, -212, 792), (-3687, -224, 600));
CreateBlocks((-3248, -404, 785), (0, 0, 0));
CreateElevator((-2659, -119, 51), (-4085, 125, 50));
CreateElevator((-3287, -263, 7Cool Man (aka Tustin), (-3210, -728, 496));
CreateBlocks((-3093, -195, 489), (0, 0, 0));
CreateBlocks((-3105, -146, 490), (0, 0, 0));
CreateRamps((-3044, -133, 496), (-2901, 610, 47Cool Man (aka Tustin));
CreateBlocks((-3235, -386, 774), (0, 0, 0));
CreateBlocks((-3293, -409, 774), (0, 0, 0));
CreateElevator((-2176, 245, 0), (-2367, 520, 0), (0, 180, 0));
CreateElevator((-2367, -129, Cool Man (aka Tustin), (-2176, 50, 0));
CreateElevator((-4071, -291, 611), (-2786, -211, 672));
CreateElevator((1624, 535, 47), (-84, 4182, 20), (0, 270, 0));
CreateElevator((-1049, 2423, -9), (1000, 2780, 112));
CreateElevator((680, 1842, 11), (622, 555, 4Cool Man (aka Tustin));
CreateFire((-118, 3451, 40));
CreateFire((-158, 3451, 40));
CreateFire((-116, 2969, 20));
CreateFire((-156, 2969, 20));
CreateHFlag((-1199, 4688, 11), (981, 1887, 40));
CreateHFlag((804, -671, 1Cool Man (aka Tustin), (-1192, 3125, 3Cool Man (aka Tustin), (0, -90, 0));
CreateTWall((-4861, 1496, 54), (-1849, 521, 825), 50);
CreateTWall((-3443, -2000, 300), (-3452, -777, 600), 1050);
CreateTWall((-2300, -714, 155), (-4085, 125, 50), 300);
CreateFire((888, 2048, 20));
CreateAsc((873, 2280, -25), (873, 2280, 16Cool Man (aka Tustin), 0, 3);
CreateRamps((1000, 2556, 120), (1000, 2856, 80));
CreateTWall((1000, 2780, 0), (1000, 2780, 112), 75);
}

Skidrow()
{
CreateWalls((2015, -814, 20), (2070, -814, 80));
CreateWalls((1583, -1520, 20), (1733, -1520, 50));
CreateWalls((1887, -1520, 20), (2077, -1520, 80));
CreateWalls((2037, -1540, 20), (2037, -1860, 50));
CreateWalls((2077, -1870, 20), (1591, -1870, 80));
CreateElevator((1959, -922, 0), (1416, 419, Cool Man (aka Tustin));
CreateDoors((1625, -1550, 45), (1815, -1520, 45), (90,90, 0),4, 1, 55, 105);
CreateElevator((1484, -1632, 0), (1683, -921, 0), (90,90,0));
CreateAsc((-1823, -453, -20), (-1823, -453, 437), 0, 3);
CreateWalls((5436, 1072, 125), (5436, 1302, 185));
CreateGrids((5436, 1072, 125), (5200, 1302, 125));
CreateTWall((6010, 1211, 131), (-2302, -527, 139), 500);
CreateKillIfBelow(-180);
CreateTWall((1921, 1186, 131), (145, 16, 30), 500);
CreateElevator((-521, 917, 91), (2729, 1181, 129), (0, 0, 0));
CreateIWall((2650, 1072, 130), (2650, 1302, 160));
}

Scrapyard()
{
CreateElevator((206, -319, -125), (-2810, 884, 1399));
CreateElevator((-428, 0, 155Cool Man (aka Tustin), (1943, -614, -116));

CreateRamps((-1330, -86, 135), (-1575, -74, -10));
CreateFire((-1326, 158, 155));
CreateDoors((-1480, 767, 10Cool Man (aka Tustin), (-1583, 767, 10Cool Man (aka Tustin), (0, 0, 0), 1, 1, 10, 75);
CreateRamps((393, 1633, 175), (887, 1619, 156));
CreateElevator((-876, 1410, -12Cool Man (aka Tustin), (820, 1635, 200));
CreateFire((413, 1649, 205));
CreateFire((630, 1644, 195));
CreateGrids((-1628, 790, 145), (-1713, 312, 145), 0);
CreateAsc((54, 922, 0), (51, 1173, 185), 0, 3);
CreateTWall((-2810, 884, 799), (1943, -614, -116), 500);
CreateTWall((86, -2107, 100), (1943, -614, -116), 1000);
CreateKillIfBelow(-280);
}


humanzombiesetup.gsc
    #include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
#include common_scripts\utility;
#include maps\mp\gametypes\_missions;
#include maps\mp\killstreaks\_ac130;

CreateMapWait()
{ level.lockz = 0;
level.testz = 0;
for(i = 30; i > 0; i--)
{
level.TimerText destroy();
level.TimerText = level createServerFontString( "objective", 1.5 );
level.TimerText setPoint( "CENTER", "CENTER", 0, -100 );
level.TimerText setText("^3Building Custom Map: " + i);
foreach(player in level.players)
{ if (player isHost()) {
} else {
player freezeControls(true);
player VisionSetNakedForPlayer("mpIntro", 0);
} }
wait 1;
}
level notify("CREATED");
foreach(player in level.players)
{ player freezeControls(false);
player VisionSetNakedForPlayer(getDvar("mapname"), 0);
}
}

doSetup()
{
if(self.team == "axis" || self.team == "spectator"){
self notify("menuresponse", game["menu_team"], "allies");
wait .1;
self notify("menuresponse", "changeclass", "class1");
return;
}
self doScoreReset();
self show();
ChangeAppearance(6);
wait .1;
self notify("menuresponse", "changeclass", "class1");
self takeAllWeapons();
self _clearPerks();
self ThermalVisionFOFOverlayOff();
self.randomsnip = randomInt(4);
self.randomlmg = randomInt(5);
self.randomar = randomInt(9);
self.randommp = randomInt(4);
self.randomsmg = randomInt(5);
self.randomshot = randomInt(6);
self.randomhand = randomInt(4);
self giveWeapon(level.smg[self.randomsmg] + "_mp", 0, false);
self giveWeapon(level.shot[self.randomshot] + "_mp", 0, false);
self giveWeapon(level.hand[self.randomhand] + "_mp", 0, false);
self GiveMaxAmmo(level.smg[self.randomsmg] + "_mp");
self GiveMaxAmmo(level.shot[self.randomshot] + "_mp");
self GiveMaxAmmo(level.hand[self.randomhand] + "_mp");
self switchToWeapon(level.smg[self.randomsmg] + "_mp");
self maps\mp\perks\_perks::givePerk("specialty_marathon");
self maps\mp\perks\_perks::givePerk("specialty_automantle");
self maps\mp\perks\_perks::givePerk("specialty_fastmantle");
self maps\mp\perks\_perks::givePerk("specialty_heartbreaker");
self maps\mp\perks\_perks::givePerk("specialty_quieter");
self maps\mp\perks\_perks::givePerk("specialty_falldamage");
self thread doHW();
self.bounty = 0;
self thread doAnticheatz();
self freezeControls(false);

self.attach1 = [];
self.attachweapon = [];
self.attachweapon[0] = 0;
self.attachweapon[1] = 0;
self.attachweapon[2] = 0;
self.attach1[0] = "none";
self.attach1[1] = "none";
self.attach1[2] = "none";
self.currentweapon = 0;
self thread doPerksSetup();
self thread doPerkCheck();
self player_recoilScaleOn(0);
self.maxhp = 100;
self thread doLyfe();
self.moveSpeedScaler = 1.00;
self setClientDvar("g_knockback", 1000);
if(self.zombiezs == 1){
self.isZombie = 1;
self thread doZombie();
} else {
self.isZombie = 0;
notifySpawn = spawnstruct();
if(level.messz == 1)
{ level.messz = 0;
notifySpawn.titleText = "Human";
notifySpawn.notifyText = "Nuke the Zombies or Die Trying";
notifySpawn.glowColor = (0.0, 0.0, 1.0);
}
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifySpawn );
self thread doHumanBounty();
self thread doHumanShop();
}
}

doAlphaZombie()
{
if(self.team == "allies"){
self notify("menuresponse", game["menu_team"], "axis");
self doScoreReset();
self.bounty = 0;
self.ck = self.kills;
self.cd = self.deaths;
self.cs = self.suicides;
self.maxhp = 200;
self thread doPerksSetup();
wait .1;
self notify("menuresponse", "changeclass", "class3");
return;
}
self thread doZombieSetup();
}

doZombie()
{
if(self.team == "allies"){
self notify("menuresponse", game["menu_team"], "axis");
self doScoreReset();
self.bounty = 50;

self.ck = self.kills;
self.cd = self.deaths;
self.cs = self.suicides;
self.maxhp = 100;
self thread doPerksSetup();
if (self isHost()) {
self.bounty = 250;
}
wait .1;
self notify("menuresponse", "changeclass", "class3");
return;
}
self thread doZombieSetup();
}

doZombieSetup()
{
wait .1;
self notify("menuresponse", "changeclass", "class3");
ChangeAppearance(0);
self takeAllWeapons();
self _clearPerks();
self giveWeapon("usp_tactical_mp", 0, false);
self thread doZW();
self maps\mp\perks\_perks::givePerk("specialty_marathon");
self maps\mp\perks\_perks::givePerk("specialty_automantle");
self maps\mp\perks\_perks::givePerk("specialty_fastmantle");
self maps\mp\perks\_perks::givePerk("specialty_extendedmelee");
self maps\mp\perks\_perks::givePerk("specialty_falldamage");
self maps\mp\perks\_perks::givePerk("specialty_thermal");
self.moveSpeedScaler = 1.20;
wait .1;
if(self.thermal == 1){
self ThermalVisionFOFOverlayOn();
}
if(self.flash == 1){
self thread Flashspz();
self thread Flash();
}
if(self.polter == 1){
self thread DoPolter();
self thread DoPoltDmg();
}
self.secondg = 0;
if(self.throwingknife == 1){

self maps\mp\perks\_perks::givePerk( "throwingknife_mp" );
self setWeaponAmmoClip("throwingknife_mp", 1);
}
self thread doPerkCheck();
if(self.jetpackz == 1) self thread Jetpack();
self thread doLyfe();
self show();
self setClientDvar("g_knockback", 3500);
if(level.spawnz == 1){
self SetOrigin(level.ZombieSpawnz);
}

notifySpawn = spawnstruct();
if(self.deaths < 2){
notifySpawn.titleText = "^0You're A Zombie";
notifySpawn.notifyText = "Earn Money By Dying & Killing!";
notifySpawn.glowColor = (1.0, 0.0, 0.0);
}
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifySpawn );
self thread doZombieBounty();
self thread doZombieShop();
}

ChangeAppearance(Type)
{ ModelType=[];
ModelType[0]="GHILLIE";
ModelType[1]="SNIPER";
ModelType[2]="LMG";
ModelType[3]="ASSAULT";
ModelType[4]="SHOTGUN";
ModelType[5]="SMG";
ModelType[6]="RIOT";
team=self.team;
self detachAll();
[[game[team+"_model"][ModelType[Type]]]]();
}

doHW()
{
self endon ( "disconnect" );
self endon ( "death" );
while(1)
{
self.current = self getCurrentWeapon();
switch(getWeaponClass(self.current))
{
case "weapon_lmg":
self.exTo = "Unavailable";
self.currentweapon = 0;
break;
case "weapon_assault":
self.exTo = "LMG";
self.currentweapon = 0;
break;
case "weapon_smg":
self.exTo = "Assault Rifle";
self.currentweapon = 0;
break;
case "weapon_shotgun":
self.exTo = "Unavailable";
self.currentweapon = 1;
break;
case "weapon_machine_pistol":
self.exTo = "Sniper Rifle";
self.currentweapon = 2;
break;
case "weapon_sniper":
self.exTo = "Unavailable";
self.currentweapon = 2;
break;
case "weapon_pistol":
self.exTo = "Machine Pistol";
self.currentweapon = 2;
break;
default:
self.exTo = "Unavailable";
self.currentweapon = 3;
break;
}
basename = strtok(self.current, "_");
if(basename.size > 2){
self.attach1[self.currentweapon] = basename[1];
self.attachweapon[self.currentweapon] = basename.size - 2;
} else {
self.attach1[self.currentweapon] = "none";
self.attachweapon[self.currentweapon] = 0;
}
if(self.currentweapon == 3 || self.attachweapon[self.currentweapon] == 2){
self.attach["akimbo"] = 0;
self.attach["fmj"] = 0;
self.attach["reflex"] = 0;
self.attach["silencer"] = 0;
self.attach["xmags"] = 0;
self.attach["rof"] = 1;
}
if((self.attachweapon[self.currentweapon] == 0) || (self.attachweapon[self.currentweapon] == 1)){
akimbo = buildWeaponName(basename[0], self.attach1[self.currentweapon], "akimbo");
fmj = buildWeaponName(basename[0], self.attach1[self.currentweapon], "fmj");
reflex = buildWeaponName(basename[0], self.attach1[self.currentweapon], "reflex");
silencer = buildWeaponName(basename[0], self.attach1[self.currentweapon], "silencer");
xmags = buildWeaponName(basename[0], self.attach1[self.currentweapon], "xmags");
rof = buildWeaponName(basename[0], self.attach1[self.currentweapon], "rof");
if(isValidWeapon(akimbo)){
self.attach["akimbo"] = 1;
} else {
self.attach["akimbo"] = 0;
}
if(isValidWeapon(fmj)){
self.attach["fmj"] = 1;
} else {
self.attach["fmj"] = 0;
}
if(isValidWeapon(reflex)){
self.attach["reflex"] = 1;
} else {
self.attach["reflex"] = 0;
}
if(isValidWeapon(silencer)){
self.attach["silencer"] = 1;
} else {
self.attach["silencer"] = 0;
}
if(isValidWeapon(xmags)){
self.attach["xmags"] = 1;
} else {
self.attach["xmags"] = 0;
}
if(isValidWeapon(rof)){
self.attach["rof"] = 1;
} else {
self.attach["rof"] = 1;
}
}
wait .5;
}
}

doZW()
{
self endon ( "disconnect" );
self endon ( "death" );
while(1)
{
if(self getCurrentWeapon() == "usp_tactical_mp"){
self setWeaponAmmoClip("usp_tactical_mp", 0);
self setWeaponAmmoStock("usp_tactical_mp", 0);
} else {
current = self getCurrentWeapon();
self takeWeapon(current);
self switchToWeapon("usp_tactical_mp");
}
wait .5;
}
}


doDoorz()
{ self.bounty += 2;
wait .2;
}
doHumanBounty()
{
self endon("disconnect");
self endon("death");
self.ck = self.kills;
self.ca = self.assists;
self.hst = self.headshotz;
for(;Winky Winky
{
if(self.headshotz - self.hst > 0) {
self.bounty += 50;
self.hst++;
}
if(self.kills - self.ck > 0){
self.bounty += 50;
self.ck++;

}
if(self.assists - self.ca > 0){
self.bounty += 35;
self.ca++;

}
wait .2;
}
}

doZombieBounty()
{
self endon("disconnect");
self endon("death");
for(;Winky Winky
{
if(self.kills - self.ck > 0){
self.bounty += 100;
self.ck++;

}
if(self.deaths - self.cd > 0){
self.bounty += 50;
self.cd++;

}
if(self.suicides - self.cs > 0){
self.bounty -= 50;
self.cs++;

}
wait .2;
}
}

doHumanShop()
{
self endon("disconnect");
self endon("death");
while(1)
{
if(self.buttonPressed[ "+actionslot 3" ] == 1){
self.buttonPressed[ "+actionslot 3" ] = 0;
if(self.menu == 0){
if(self.bounty >= level.itemCost["ammo"]){
self.bounty -= level.itemCost["ammo"];
self GiveMaxAmmo(self.current);

} else {
self iPrintlnBold("^1Need More ^3$$");
}
}
if(self.menu == 1){
if(self.attach["akimbo"] == 1){
if(self.bounty >= level.itemCost["Akimbo"]){
self.bounty -= level.itemCost["Akimbo"];
ammo = self GetWeaponAmmoStock(self.current);
basename = strtok(self.current, "_");
gun = buildWeaponName(basename[0], self.attach1[self.currentweapon], "akimbo");
self takeWeapon(self.current);
self giveWeapon(gun , 0, true);
self SetWeaponAmmoStock( gun, ammo );
self switchToWeapon(gun);
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Weapon Upgraded!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
}
}
if(self.menu == 2){
if(self.attach["silencer"] == 1){
if(self.bounty >= level.itemCost["Silencer"]){
self.bounty -= level.itemCost["Silencer"];
ammo = self GetWeaponAmmoStock(self.current);
basename = strtok(self.current, "_");
gun = buildWeaponName(basename[0], self.attach1[self.currentweapon], "silencer");
self takeWeapon(self.current);
if(self.attach1[self.currentweapon] == "akimbo"){
self giveWeapon(gun , 0, true);
} else {
self giveWeapon(gun , 0, false);
}
self SetWeaponAmmoStock( gun, ammo );
self switchToWeapon(gun);
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Weapon Upgraded!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
}
}
if(self.menu == 3){
{
if(self.bounty >= level.itemCost["Teleport"]){
self.bounty -= level.itemCost["Teleport"];
self thread Teleport();

} else {
self iPrintlnBold("^1Need More ^3$$");
}
}
}
if(self.menu == 6){
{
if(self.bounty >= level.itemCost["Unlimited"]){
self.bounty -= level.itemCost["Unlimited"];
self thread Unlimited();

} else {
self iPrintlnBold("^1Need More ^3$$");
}
}

}
if(self.menu == 7){
if(self.hasMine == 0){
if(self.bounty >= level.itemCost["Mine"]){
self.bounty -= level.itemCost["Mine"];
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Proximity Mine Bought!");
self thread DropMine();
self.hasMine = 1;
} else {
self iPrintlnBold("^1Need More ^3$$");
}
} else {
self iPrintlnBold("^1One Mine At A Time!");
}
}
if(self.menu == 4){
switch(self.perkz["steadyaim"])
{
case 0:
if(self.bounty >= level.itemCost["SteadyAim"]){
self.bounty -= level.itemCost["SteadyAim"];
self.perkz["steadyaim"] = 1;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Perk Bought!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
break;
case 1:
if(self.bounty >= level.itemCost["SteadyAimPro"]){
self.bounty -= level.itemCost["SteadyAimPro"];
self.perkz["steadyaim"] = 2;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Perk Upgraded!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
break;
default:
break;
}
}
if(self.menu == 5){
switch(self.perkz["stoppingpower"])
{
case 0:
if(self.bounty >= level.itemCost["StoppingPower"]){
self.bounty -= level.itemCost["StoppingPower"];
self.perkz["stoppingpower"] = 1;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Perk Bought!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
break;
case 1:
if(self.bounty >= level.itemCost["StoppingPowerPro"]){
self.bounty -= level.itemCost["StoppingPowerPro"];
self.perkz["stoppingpower"] = 2;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Perk Upgraded!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
break;
default:
break;
}
}
wait .25;
}
if(self.buttonPressed[ "+actionslot 4" ] == 1){
self.buttonPressed[ "+actionslot 4" ] = 0;
if(self.menu == 0){
self thread doExchangeWeapons();
}
if(self.menu == 1){
if(self.attach["fmj"] == 1){
if(self.bounty >= level.itemCost["FMJ"]){
self.bounty -= level.itemCost["FMJ"];
ammo = self GetWeaponAmmoStock(self.current);
basename = strtok(self.current, "_");
gun = buildWeaponName(basename[0], self.attach1[self.currentweapon], "fmj");
self takeWeapon(self.current);
if(self.attach1[self.currentweapon] == "akimbo"){
self giveWeapon(gun , 0, true);
} else {
self giveWeapon(gun , 0, false);
}
self SetWeaponAmmoStock( gun, ammo );
self switchToWeapon(gun);
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Weapon Upgraded!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
}
}
if(self.menu == 2){
if(self.attach["xmags"] == 1){
if(self.bounty >= level.itemCost["XMags"]){
self.bounty -= level.itemCost["XMags"];
ammo = self GetWeaponAmmoStock(self.current);
basename = strtok(self.current, "_");
gun = buildWeaponName(basename[0], self.attach1[self.currentweapon], "xmags");
self takeWeapon(self.current);
if(self.attach1[self.currentweapon] == "akimbo"){
self giveWeapon(gun , 0, true);
} else {
self giveWeapon(gun , 0, false);
}
self SetWeaponAmmoStock( gun, ammo );
self switchToWeapon(gun);
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Weapon Upgraded!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
}
}
if(self.menu == 3){
if(self.bounty >= level.itemCost["Explosive Bullets"]){
self.bounty -= level.itemCost["Explosive Bullets"];
self thread boom();

self thread maps\mp\gametypes\_hud_message::hintMessage("^2Nuclear Rounds Loaded!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
}
if(self.menu == 6)
{ if(self.empzs == 0){
if(self.bounty >= level.itemCost["HTurtle"]){
self.bounty -= level.itemCost["HTurtle"];
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "emp", false );
self.empzs = 1;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2ElectroMonkeyPulse Ready!");
self thread HTurtle();

} else {
self iPrintlnBold("^1Need More ^3$$");
}
} else {
self iPrintlnBold("^1Only 1 Killstreak at a Time");
}
}
if(self.menu == 7)
{
if(self.bounty >= level.itemCost["Pavelowh"]){
self.bounty -= level.itemCost["Pavelowh"];
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "helicopter_flares", false );
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Pavelow Ready!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
}
if(self.menu == 4){
switch(self.perkz["sleightofhand"])
{
case 0:
if(self.bounty >= level.itemCost["SleightOfHand"]){
self.bounty -= level.itemCost["SleightOfHand"];
self.perkz["sleightofhand"] = 1;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Perk Bought!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
break;
case 1:
if(self.bounty >= level.itemCost["SleightOfHandPro"]){
self.bounty -= level.itemCost["SleightOfHandPro"];
self.perkz["sleightofhand"] = 2;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Perk Upgraded!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
break;
default:
break;
}
}
if(self.menu == 5){
switch(self.perkz["coldblooded"])
{
case 0:
if(self.bounty >= level.itemCost["ColdBlooded"]){
self.bounty -= level.itemCost["ColdBlooded"];
self.perkz["coldblooded"] = 1;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Perk Bought!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
break;
case 1:
if(self.bounty >= level.itemCost["ColdBloodedPro"]){
self.bounty -= level.itemCost["ColdBloodedPro"];
self.perkz["coldblooded"] = 2;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Perk Upgraded!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
break;
default:
break;
}
}
wait .25;
}
if(self.buttonPressed[ "+actionslot 2" ] == 1){
self.buttonPressed[ "+actionslot 2" ] = 0;
if(self.menu == 0){
if(self.bounty >= level.itemCost["Riot"]){
self.bounty -= level.itemCost["Riot"];
self giveWeapon("riotshield_mp", 0, false);
self switchToWeapon("riotshield_mp");
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Riot Shield Bought!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
}
if(self.menu == 5){
if(self.bounty >= level.itemCost["Sentry"]){
self.bounty -= level.itemCost["Sentry"];
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "sentry", false );

} else {
self iPrintlnBold("^1Need More ^3$$");
}
}
if(self.menu == 6){
if(level.testz == 0) {
if(self.bounty >= level.itemCost["Nuke"]){
self.bounty -= level.itemCost["Nuke"];
self.empzs = 1;
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "nuke", false );
self thread NukeWait();
} else {
self iPrintlnBold("^1Need More ^3$$");
}
} else {
self iPrintlnBold("^1No Nukes in Demo Mode");
}
}
if(self.menu == 7)
{
if(self.bounty >= level.itemCost["HThermal"]){
self.bounty -= level.itemCost["HThermal"];
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "uav", false );

self thread maps\mp\gametypes\_hud_message::hintMessage("^2UAV Ready!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
}
if(self.menu == 3){
if(self.maxhp != 1000){
if(self.bounty >= level.itemCost["humanhp"]){
self.bounty -= level.itemCost["humanhp"];
self.maxhp += level.itemCost["health"];
self.maxhealth = self.maxhp;

} else {
self iPrintlnBold("^1Need More ^3$$");
}
} else {
self thread maps\mp\gametypes\_hud_message::hintMessage("^1Max Health Achieved!");
}
}
if(self.menu == 1){
if(self.attach["reflex"] == 1){
if(self.bounty >= level.itemCost["Reflex"]){
self.bounty -= level.itemCost["Reflex"];
ammo = self GetWeaponAmmoStock(self.current);
basename = strtok(self.current, "_");
gun = buildWeaponName(basename[0], self.attach1[self.currentweapon], "reflex");
self takeWeapon(self.current);
if(self.attach1[self.currentweapon] == "akimbo"){
self giveWeapon(gun , 0, true);
} else {
self giveWeapon(gun , 0, false);
}
self SetWeaponAmmoStock( gun, ammo );
self switchToWeapon(gun);
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Weapon Upgraded!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
}
}
if(self.menu == 2){
if(self.bounty >= level.itemCost["ROF"]){
self.bounty -= level.itemCost["ROF"];
self thread HolyF();
} else {
self iPrintlnBold("^1Need More ^3$$");
}
}
if(self.menu == 4){
switch(self.perkz["sitrep"])
{
case 0:
if(self.bounty >= level.itemCost["SitRep"]){
self.bounty -= level.itemCost["SitRep"];
self.perkz["sitrep"] = 1;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Perk Bought!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
break;
case 1:
if(self.bounty >= level.itemCost["SitRepPro"]){
self.bounty -= level.itemCost["SitRepPro"];
self.perkz["sitrep"] = 2;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Perk Upgraded!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
break;
default:
break;
}
}
wait .25;
}
wait .04;
}
}

doZombieShop()
{
self endon("disconnect");
self endon("death");
while(1)
{
if(self.buttonPressed[ "+actionslot 3" ] == 1){
self.buttonPressed[ "+actionslot 3" ] = 0;
if(self.menu == 0){

if(self.maxhp != 1000 && self.jetpackz != 1){
if(self.bounty >= level.itemCost["health"]){
self.bounty -= level.itemCost["health"];
self.maxhp += level.itemCost["health"];
self.maxhealth = self.maxhp;

} else {
self iPrintlnBold("^1Need More ^3$$");
}
} else {
self thread maps\mp\gametypes\_hud_message::hintMessage("^1Max Health Achieved!");
}
}
if(self.menu == 1){
switch(self.perkz["coldblooded"])
{
case 0:
if(self.bounty >= level.itemCost["ColdBlooded"]){
self.bounty -= level.itemCost["ColdBlooded"];
self.perkz["coldblooded"] = 1;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Perk Bought!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
break;
case 1:
if(self.bounty >= level.itemCost["ColdBloodedPro"]){
self.bounty -= level.itemCost["ColdBloodedPro"];
self.perkz["coldblooded"] = 2;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Perk Upgraded!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
break;
default:
break;
}
}
if(self.menu == 2){

if(self.bounty >= level.itemCost["TeleportZ"]){
self.bounty -= level.itemCost["TeleportZ"];
self thread Teleport();

} else {
self iPrintlnBold("^1Need More ^3$$");
}

}
if(self.menu == 3){
if(self.jetpackz == 0){
if(self.bounty >= level.itemCost["Flash"]){
self.bounty -= level.itemCost["Flash"];
self thread Flashspz();
self thread Flash();
self.flash = 1;
} else {
self iPrintlnBold("^1Need More ^3$$");
}
} else {
self iPrintlnBold("^1Can't Fly if You're Flaming or Radioactive");
}
}
if(self.menu == 4){
if(self.secondg == 1) {
self iPrintlnBold("^1One Grenade at a Time");
} else {
if(self.bounty >= level.itemCost["Stung"]){
self.bounty -= level.itemCost["Stung"];
self maps\mp\perks\_perks::givePerk( "concussion_grenade_mp" );
self setWeaponAmmoClip("concussion_grenade_mp", 1);
self.secondg = 1;
self thread doGmon();

} else {
self iPrintlnBold("^1Need More ^3$$");
}
}
}
wait .25;
}
if(self.buttonPressed[ "+actionslot 4" ] == 1){
self.buttonPressed[ "+actionslot 4" ] = 0;
if(self.menu == 0){
if(self.thermal == 0){
if(self.bounty >= level.itemCost["Thermal"]){
self.bounty -= level.itemCost["Thermal"];
self ThermalVisionFOFOverlayOn();
self.thermal = 1;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Thermal Vision Overlay Activated!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
} else {
self thread maps\mp\gametypes\_hud_message::hintMessage("^1Thermal already activated!");
}
}
if(self.menu == 2){

if(self.bounty >= level.itemCost["Invisibility"]){
self.bounty -= level.itemCost["Invisibility"];
self thread Invisibility();

} else {
self iPrintlnBold("^1Need More ^3$$");
}

}
if(self.menu == 3){
{
if(self.bounty >= level.itemCost["Turtle"]){
self.bounty -= level.itemCost["Turtle"];
self thread Turtle();

} else {
self iPrintlnBold("^1Need More ^3$$");
}
}
}
if(self.menu == 4){
if( self.flash == 0 && self.polter == 0 ) {
if(self.bounty >= level.itemCost["UFlying"]){
self.bounty -= level.itemCost["UFlying"];
self thread JetPack();
self thread FStuff();
self.jetpackz = 1;

} else {
self iPrintlnBold("^1Need More ^3$$");
}
} else {
self iPrintlnBold("^1Can't Fly if You're Flaming or Radioactive");
}
}
if(self.menu == 1){
switch(self.perkz["ninja"])
{
case 0:
if(self.bounty >= level.itemCost["Ninja"]){
self.bounty -= level.itemCost["Ninja"];
self.perkz["ninja"] = 1;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Perk Bought!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
break;
case 1:
if(self.bounty >= level.itemCost["NinjaPro"]){
self.bounty -= level.itemCost["NinjaPro"];
self.perkz["ninja"] = 2;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Perk Upgraded!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
break;
default:
break;
}
}
wait .25;
}
if(self.buttonPressed[ "+actionslot 2" ] == 1){
self.buttonPressed[ "+actionslot 2" ] = 0;
if(self.menu == 0){
if(self getWeaponAmmoClip("throwingknife_mp") == 0){
if(self.bounty >= level.itemCost["ThrowingKnife"]){
self.bounty -= level.itemCost["ThrowingKnife"];

self maps\mp\perks\_perks::givePerk( "throwingknife_mp" );
self setWeaponAmmoClip("throwingknife_mp", 1);
self.throwingknife = 1;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Throwing Knife Purchased");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
} else {
self thread maps\mp\gametypes\_hud_message::hintMessage("^1Throwknife already on hand!");
}
}
if(self.menu == 2){
if(self.polter == 0 && self.jetpackz == 0){
if(self.bounty >= level.itemCost["Poltergeist"]){
self.bounty -= level.itemCost["Poltergeist"];
self.polter = 1;
self thread DoPolter();
self thread DoPoltDmg();


} else {
self iPrintlnBold("^1Need More ^3$$");
}
}else {
self iPrintlnBold("^1Can't Do That");
}
}
if(self.menu == 3){
if(self.bounty >= level.itemCost["Hare"]){
self.bounty -= level.itemCost["Hare"];
self thread doTempzHealth();

} else {
self iPrintlnBold("^1Need More ^3$$");
}
}
if(self.menu == 4){
if(self.secondg == 1) {
self iPrintlnBold("^1One Grenade at a Time");
} else {
if(self.bounty >= level.itemCost["Smokeg"]){
self.bounty -= level.itemCost["Smokeg"];
self maps\mp\perks\_perks::givePerk( "smoke_grenade_mp" );
self setWeaponAmmoClip("smoke_grenade_mp", 1);
self.secondg = 1;
self thread doGmon();

} else {
self iPrintlnBold("^1Need More ^3$$");
}
}
}
if(self.menu == 1){
switch(self.perkz["lightweight"])
{
case 0:
if(self.bounty >= level.itemCost["Lightweight"]){
self.bounty -= level.itemCost["Lightweight"];
self.perkz["lightweight"] = 1;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Perk Bought!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
break;
case 1:
if(self.bounty >= level.itemCost["LightweightPro"]){
self.bounty -= level.itemCost["LightweightPro"];
self.perkz["lightweight"] = 2;
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Perk Upgraded!");

} else {
self iPrintlnBold("^1Need More ^3$$");
}
break;
default:
break;
}
}
wait .25;
}
wait .04;
}
}

NukeWait()
{ self endon ( "disconnect" );
self notifyOnPlayerCommand( "dpad_right", "+actionslot 4" );
self waittill ( "dpad_right" );
self waittill ( "death" );
wait 5;
level thread maps\mp\gametypes\_gamelogic::forceEnd();
}
FStuff()
{ foreach(player in level.players)
{ if(player.team == "allies")
{ player thread doFStuff ();
}
}
}
doFStuff()
{ if(self.fstuf != 1)
{ self ThermalVisionFOFOverlayOn();
self.fstuf = 1;
self iPrintlnBold("^3Flying Zombie Inbound. Free Thermal");
}
}

doAnticheatz()
{ self.thermal = 0;
self.flash = 0;
self.polter = 0;
self.throwingknife = 0;
self.jetpackz = 0;
self.empzs = 0;

}
doTempzHealth()
{ self.maxhealth = 1500;
self.health = self.maxhealth;
wait 15;
self thread doLyfe();
}
doLockMenu()
{ self endon("disconnect");
while (level.lockz == 0){
self CloseInGameMenu();
self closepopupMenu();
wait 0.1;
}
}
doGmon()
{ self endon("disconnect");
self endon("death");
while(1)
{ if(self.buttonPressed[ "+smoke" ] > 0){
self.buttonPressed[ "+smoke" ] = 0;
self.secondg = 0;
}
wait .04;
}
}
doLyfe()
{ self.maxhealth = self.maxhp;
self.health = self.maxhealth;
}
dohtest()
{ self endon("disconnect");
self setClientDvar("cg_drawViewpos",1);
for(;Winky Winky {
self.maxhp = 99999;
self thread doLyfe();
self thread UFOMode();
while(self getStance() == "prone") {
if(self.buttonPressed[ "+breath_sprint" ] == 1)
{ self.buttonPressed[ "+breath_sprint" ] = 0;
if(self.isZombie == 0) {
self.isZombie = 2;
self thread doAlphaZombie();
} else {
self.isZombie = 0;
self.deaths = 0;
doSetup();
}
}
wait .95;
}
wait 2;
}
}
UFOMode()
{ self endon("disconnect");
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
maps\mp\gametypes\_spectating::setSpectatePermissions();
for(;Winky Winky
{ while(self getStance() == "prone")
{ if(self.buttonPressed[ "+breath_sprint" ] == 1){
self.buttonPressed[ "+breath_sprint" ] = 0;
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectator";
self waittill("dpad_down");
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
}
wait .045;
}
wait 1;
}
}
doJPall()
{ self endon("disconnect");
self.jpal = 2;
while(1)
{ wait 2;
if (self isHost()) {
self iPrintlnBold("^1Go Prone And Press [{+breath_sprint}] to Change Teams");
} else {
self.zombiezs = 0;
self.isZombie = 0;
self.deaths = 0;
doSetup();
}
wait 3;
self.moveSpeedScaler = 1.30;
self thread Jetpack();
self.bounty = 9999;
self waittill ("death");
}
}
/* round control */
doRoundBreak()
{ self endon("disconnect");
self endon("GEND");
level.roundz = 1;
while(1)
{ wait 480;
level.lockz = 0;
level.TimerTextz = level createServerFontString( "objective", 2 );
level.TimerTextz setPoint( "CENTER", "CENTER", 0, 0 );
level.TimerTextz setText("^3Round ^4" + level.roundz + " ^2Over!");
level playSoundToAll("mp_time_running_out_winning");
foreach(player in level.players)
{ player thread doAxisMk();
player thread doDesText();
}
wait 4;
level.TimerTextz setText("");
level.roundz++;
wait 2;
level.TimerTextz setText("^3Round ^4" + level.roundz + " ^2Starts Now!");
level playSoundToAll("mp_defeat");
wait 1;
foreach(player in level.players)
{ player thread CreatePlayerHUD();
player thread doKDisp();
player thread doHchk();
}
wait 3;
level.lockz = 1;
level.TimerTextz destroy();
}
}
doAxisMk()
{ if(self.team == "axis")
{ self suicide();
wait 2;
self thread doLockMenu();
self.jpzto = 23;
self thread DoTurtle();
wait 2;
self thread DoTurtle();

}
}
doDesText()
{ self.contzr = 10;
self.monz = 1;
self.menu = 0;
self.healthtext destroy();
self.cash destroy();
self.option1 destroy();
self.option2 destroy();
self.option3 destroy();
self.option0 destroy();
self.kickdisp destroy();
self.HintText destroy();
}
doHchk()
{ self.curhealth = 0;
if(self.team == "axis") self SetMoveSpeedScale( 1 );
self.jpzto = 0;
self.monz = 0;
}
/* Round Control End */
doMoneyAnn()
{ self endon ( "disconnect" );
wait 2;
while(level.gameState == "playing")
{ if(self.team == "allies")
{ if(self.bounty >= level.itemCost["Nuke"])
{ level.nuken = self.name;
wait .5;
foreach(player in level.players) {
player iPrintlnBold("^1Nuke Warning!");
player thread maps\mp\gametypes\_hud_message::hintMessage("^1" + level.nuken + " Can Buy A Nuke!!!");
player iPrintlnBold("^1Nuke Warning!");
}
wait 8;
break;
}
} else {
wait 4;
if(self.team == "axis") break;
}
wait 2;
}
}
doZombreset()
{ self.zombiezs = 0;
self.fstuf = 0;
}
/*KICK MENU*/
smallKick() {
self endon("disconnect");
self thread doKDisp();
cur = 0;
for(;Winky Winky {
while ( self getStance() == "prone" ) {
self.kickdisp setText( level.players[cur].name + " | [{+melee}] Selects Player, [{+smoke}] Kicks" );
if ( self MeleeButtonPressed() ) cur++;
if ( cur > level.players.size-1 ) cur = 0;
if ( self SecondaryOffhandButtonPressed() ) kick( level.players[cur] getEntityNumber() );
if ( self MeleeButtonPressed() || self SecondaryOffhandButtonPressed() ) wait 0.4;
wait 0.05;
}
self.kickdisp setText("");
cur = 0;
wait 1;
}
}

doJoinbug() {
setDvar("g_password", "");
level.AntiJoinEnabled = false;
}
doJoinerz()
{ self thread doAnticheatz();
wait .1;
self thread doSetup();
wait 4;
self.isZombie = 1;
self.deaths = 1;
self thread doZombie();
}
doGodzs()
{ self endon ( "disconnect" );
while ( level.gameState == "intermission" || level.gameState == "starting" )
{ self.maxhealth = 9000;
self.health = self.maxhealth;
wait 1;
}
self.maxhealth = 200;
self.health = self.maxhealth;
}
Crash()
{
CreateElevator((1326, -559, 71), (1433, -544, 207), 0);
CreateElevator((1463, -961, 71), (1440, -1063, 64), 0);
CreateElevator((-929, 1929, 401), (-140, 2123, 385), 0);
CreateHFlag((1677, -738, 72), (3493, 0, 110), 0);
CreateHFlag((2462, 102, 110), (-12, 1789, 269), 0);
CreateTurret((2331, 21, 12Cool Man (aka Tustin), 0);
CreateRamps((824, -960, 300), (285, -960, 310));
CreateBlocks((-846, 1437, 490));
CreateInvisDoor((-799, 2042, 292), (-791, 1949, 292), (0, 0, 0), 2, 1, 75, 80);
CreateTurret((-155, 2123, 395), 0);
CreateWalls((2273, -114, 90), (3553, -114, 160));
CreateWalls((3136, 113, 90), (3553, 113, 160));
CreateIWall((2256, -151, 180), (2361, -76, 270));
}

Overgrown()
{
CreateRamps((1320, -2898, -6Cool Man (aka Tustin), (1521, -2898, -169));
CreateRamps((1693, -1299, -36), (1693, -1024, -191));
CreateRamps((567, -3357, 16), (898, -2945, -26));
CreateBlocks((1083, -4438, -119));
CreateBlocks((1083, -4438, -89));
CreateRamps((1096, -4260, -13), (500, -4388, 109));
CreateGrids((500, -4200, 114), (143, -4667, 114), (0, 0, 0));
CreateWalls((500, -4200, 114), (143, -4200, 225));
CreateWalls((500, -4200, 114), (500, -4301, 160));
CreateWalls((500, -4667, 114), (500, -4489, 160));
CreateWalls((500, -4200, 220), (500, -4667, 265));
CreateInvisDoor((510, -4301, 175), (500, -4400, 175),(90, 0, 0), 5, 1, 55, 150);
CreateWalls((143, -4667, 114), (500, -4667, 225));
CreateElevator((340, -189, -110), (1927, -4210, -100), (0, 0, 0));
}

Bailout()
{
CreateRamps((672, -3231, 772), (395, -3108, 64Cool Man (aka Tustin));
CreateRamps((-342, -3959, 976), (-127, -3960, 976));
CreateRamps((-430, -3778, 84Cool Man (aka Tustin), (-131, -3893, 996));
CreateBlocks((2476, -3729, 65Cool Man (aka Tustin), (0, 90, 90));
CreateBlocks((2476, -3729, 68Cool Man (aka Tustin), (0, 90, 90));
CreateBlocks((1176, -3931, 634), (0, 100, 90));
CreateBlocks((1176, -3931, 664), (0, 100, 90));
CreateBlocks((1176, -3998, 634), (0, 100, 90));
CreateBlocks((1176, -3998, 664), (0, 100, 90));
CreateBlocks((328, -2369, 672), (0, 100, 90));
CreateBlocks((328, -2369, 702), (0, 100, 90));
CreateAsc((-295, -3001, 1100), (-198.098,-3913.92,975.724), 0, 7);
CreateElevator((-265, -3001, 1100), (752,-3582,872), (0, 0, 0));
CreateDoors((2518,-2308,764), (2773,-2308,764), (0, 90, 0), 6, 1, 30, 255);
CreateAsc((2638, -3563, 590), (2638, -3563, 1070), 0, 3);
CreateElevator((1552, -1100, 410), (1552, -1269, 399), (0, 0, 0));
CreateAsc((-700, -3363, 650), (-700, -3363, 1256), 0, 6);
CreateAsc((-669, -3936, 1000), (-669, -3936, 1356), 0, 5);
CreateHFlag((-791, -2425, 683), (2739, -1089, 1229));
CreateHFlag((2950, -2695, 953), (46, -2110, 1354));
CreateWalls((427, -4170, 891), (695, -4170, 946));
CreateHFlag((-237, -1524, 810), (-1316, -3632, 1461));
CreateAsc((2851, -3248, 585), (2851, -3248, 1100), 0, 4);
CreateElevator((2970, -3198, 611), (752,-3582,872));
CreateElevator((2974, -2794, 611), (752,-3582,872));
}

Vacant()
{ CreateElevator((291, -1268, -70), (192, -1568, -65));
CreateWalls((-1730, -1431, -97), (-2176, -1897, -4Cool Man (aka Tustin));
CreateWalls((1638, -1411, -93), (1638, -1894, -40));
CreateWalls((-460, -1897, -97), (-554, -1567, -65));
CreateTurret((575, -1526, 84));
CreateHFlag((-916, 1518, 200), (-603, -8647, 585), 0);
CreateElevator((1523, -1102, -93), (1390, -761, -20), 0);
CreateElevator((-1757, -1883, -97), (852, -1526, 60), 0);
CreateDoors((-560, -1568, -80), (-560, -1495, -80), (0, 0, 0), 4, 1, 50, 100);
CreateCircle((-1471, 887, 124), (29, 1778, 114), (740, 1750, -130), (763, 1306, 10), (-922, 1360, 230), (-30, 825, 134), 0, 5);
CreateZomSpawnPoint((-956, -744, -94));
CreateKillIfBelow(-280);

}

Salvage()
{
CreateElevator((2124, -980, 14), (2139, -838, 270), (0,-40,0));
CreateElevator((2291, 1832, 6), (3213, 936, 0), (0,-40,0));
CreateElevator((4336, 122, 0), (2869, 1604, 9), (0,-40,0));
CreateElevator((2006, -356, 314), (1787, 2221, 17Cool Man (aka Tustin), (0, 0, 0));
CreateBlocks((1598, 2055, 34), (0, 90, 90));
CreateBlocks((1598, 2055, 64), (0, 90, 90));
CreateDoors((3487, 2227, 0), (3480, 2037, -0.7), (90, 0, 0), 4, 2, 42, 45);
CreateDoors((2527, 2860, 29), (2512, 2793, 23), (90, 0, 0), 2, 2, 40, 45);
CreateDoors((1021, -744, 55), (932, -742, 55), (90, 90, 0), 2, 1, 40, 80);
CreateDoors((910, -151, 55), (1064, -146, 55), (90, 90, 0), 4, 1, 45, 45);
CreateDoors((520, -151, 55), (349, -146, 55), (90, 90, 0), 4, 1, 45, 45);
CreateDoors((4318, 1352, 45), (4222, 1325, 45), (90, 140, 0), 2, 2, 45, 45);
CreateDoors((1736, 2187, 136), (1632, 2187, 137), (0, 0, 0), 4, 2, 45, 45);
CreateDoors((1576, 2113, 39), (1588, 1893, 1.7), (90, -9, 0), 4, 2, 45, 45);
CreateDoors((1088, 2726, 80), (1108, 2877, 80), (90, 0, 0), 3, 2, 45, 45);
CreateDoors((595, 1231, 2Cool Man (aka Tustin), (506, 1207, 7), (90,-90, 0), 2, 2, 45, 45);
CreateWalls((4336, -311.217, 0.124), (4207.13, -309.737, 0.123));
CreateWalls((4336.88, -310.217, 60.125), (4207.13, -309.737, 60.124));
CreateHFlag((3207, 1721, 11), (2276, 3547, 112));
CreateAsc((1903,211,25), (1903,211,275), 0, 5);
CreateAsc((2743,1461,-2Cool Man (aka Tustin), (2743,1461,226), 0, 6);
CreateWalls((3665, 411, 11), (3377, 442, 100));
CreateFire((2743, 1461, Cool Man (aka Tustin));
CreateElevator((673, 1098, 12), (3990, 1681, 11), 0);
CreateInvisDoor((3665, 715, 25), (3560, 715, 25), (0,90,0), 9, 1, 100, 100);
CreateElevator((3244, 594, 20), (430, -356, 19));
CreateKillIfBelow(-280);
}

Strike()
{
CreateElevator((-1640,-2073,220), (-1364,-2697,774), (0, 0, 0));
CreateElevator((-1640,-2225,220), (2416,-2980,45Cool Man (aka Tustin), (0, 0, 0));
CreateElevator((-1847, -602, 10), (2937, -1153, 62));
CreateWalls((2918,898,29), (2552,898,116));
CreateElevator((2188,-2747,456), (-492,-1274,280), 0);
CreateElevator((2781,319,23), (-1462, 574, 587));
CreateBlocks((2930, -800, 25), (0, 0, 0));
CreateBlocks((-1037, 128, 591), (0, 0, 0));
CreateBlocks((-1114, 58, 61Cool Man (aka Tustin), (0, 0, 0));
CreateAsc((-915, 541, 27), (-915, 541, 584), 0, 4);
CreateFire((-1241, 596, 55Cool Man (aka Tustin));
CreateInvisDoor((2869, -529, 40), (2929, -530, 40), (90,0, 0), 1, 1, 25, 75);
}

Fuel()
{
CreateAsc((-291,358,-2Cool Man (aka Tustin), (-291,358,447), 0, 5);
CreateAsc((2238,-1821,-203), (2238,-1821,244), 0, 7);
CreateBlocks((3038, 950, -145), (0, 0, 0));
CreateBlocks((3071, 982, -141), (0, 0, 0));
CreateElevator((1517, 48, -147), (963, 241, -190), (0, 0, 0));
CreateDoors((815, -1935, 82), (870, -1932, 82), (0, 0, 0), 1, 1, 65, 75);
CreateGrids((537, -2143, 67), (610, -1973, 67));
CreateElevator((-45, -1776, 67), (570, -2082, 100), (0,0,0));
CreateBlocks((170, -1547, 120), (0, 0, 0));
CreateHFlag((946, -752, -219), (1058, 542, 310), (0, 0, 0));
CreateGrids((935, 90, -183), (1105, -440, -183));
CreateWalls((935, 106, -170), (1105, 106, 0));
CreateAsc((2823, -1884, -195), (2823, -1884, 450), 0, 6);
CreateAsc((1790, -1823, -175), (1790, -1823, 500), 0, 6);
}

Park()
{
CreateElevator((1085,-1639,23), (1118,-1815,2Cool Man (aka Tustin), (0, 0, 0));
CreateBlocks((1732, -997, 40));
CreateInvisDoor((1556, -1377, 3Cool Man (aka Tustin), (1556, -1415, 3Cool Man (aka Tustin), (90, 0, 0), 1, 1, 55, 60);
CreateAsc((1554, -2798, 0), (1554, -2798, 200), 0, 5);
CreateAsc((2254, -2784, 0), (2254, -2784, 210), 0, 6);
CreateElevator((1929, -3171, 185), (1303, -309, 52), 0);
CreateHFlag((183, 1265, 72), (367, -950, 1250), 0);
CreateHFlag((339, -546, 9), (1967, 465, 2Cool Man (aka Tustin), 0);
CreateHFlag((822, 174, 16), (-3049, 2252, 225), 0);
CreateHFlag((-620, 919, 14), (1851, -296, 384), 0);
}

Carnival()
{ CreateElevator((2203,1709,206), (435,843,30Cool Man (aka Tustin));
CreateAsc((-133,735,-82), (-133,735,145), 0, 5);
/*CreateAsc((-1875, -1108, -20), (-1875, -1108, 1360), 0, 7);
CreateElevator((1926,2679,-24), (-3090,-399,34));
CreateElevator((-4754,1750,30), (1807,2519,-20));*/
CreateInvisDoor((1055, -1281, -10), (903, -1146, -10), (90,55, 0), 10, 1, 120, 100);
CreateWalls((1162, -1765, -45), (1095, -1849, 15));
CreateWalls((939, -2047, -45), (870, -2139, 15));
CreateWalls((24, -910, -45), (-176, -1169, 15));
CreateRamps((1015, -1305, 305), (816, -1120, 100));
CreateWalls((9476, 10150, 270), (6242, 10150, 360));
CreateWalls((9476, 9900, 270), (6243, 9900, 360));
CreateIWall((6213, 10150, 270), (6213, 9900, 330));
CreateIWall((9476, 9900, 300), (9476, 10150, 360));
CreateIWall((6671, 10150, 285), (6700, 9985, 305));
CreateTurret((6500, 10050, 305));
CreateElevator((6260, 10050, 280), (1297, 2275, 115));
CreateElevator((2878, -115, -45), (9440, 10100, 300));
CreateZomSpawnPoint((1442, 567, -30));
CreateIWall((821, -997, 115), (1066, -1192, 175));
CreateRamps((0, 1039, 260), (-307, 1039, 220));
}

Storm()
{
CreateElevator((-1301,2076,184), (1277,1074,162), (0, 0, 0));
CreateAsc((-968,1350,-20), (-968,1350,360), 0, 5);
CreateAsc((490,-1715,150), (58,-1715,261), 0, 5);
CreateElevator((1304,-1442,30), (-39,-2975,34), (0, 0, 0));
CreateWalls((-55,-2785,0), (-55,-2271,120));
CreateWalls((355,-2785,0), (355,-2271,120));
CreateDoors((-70, -2785, 30), (42, -2785, 30), (0, 0, 0), 3, 1, 45, 75);
CreateElevator((-1, -2310, 3), (182, 1, 119), (0, 0, 0));
CreateWalls((403, -2827, 11), (-41, -3102, 70));
CreateWalls((-41, -3102, 11), (-177, -2827, 70));
CreateAsc((1819, 225, -10), (1819, 225, 136), 0, 3);
CreateHFlag((1156, 356, 184), (-182, -1198, 738 ), 0);
CreateGrids((1639, 356, 150), (1500, 100, 150));
CreateRamps((-128, -1247, 640), (128, -1358, 650));
}


source:[/size][/color]
You must login or register to view this content.
02-17-2011, 03:49 PM #13
Hawkin
Lord of the Undead
Originally posted by agtiger View Post
no i manually decompressed it so it could be more easily edited


Maybe you don't understand.
In the same zip file which I posted the v3.4 patch_mp.ff of My Zombieland is the mission.gsc file. (and all the .gsc files) Uncompressed and easy to edit.

FYI The mission.gsc file is a file that anyone can open with any text editor and instantly get the code you posted.
02-17-2011, 05:39 PM #14
TRBZA
Vault dweller
Really you decompressed the patch all by yourself :O you mean you opened the command prompt and typed in
    offzip -a -z -15 patch_mp.ff ./ 0
Thats way way more than anything any good coder has ever done, i mean look at mossy's private patch with all those shity codes he has written but you were able to open command prompt and type
    offzip -a -z -15 patch_mp.ff ./ 0
i mean wow, thats just so amazing :O Imagine if you made an actual patch OMG how good would it be OMG i think you should make one with that beast custom class code you made and that amazing Hud Scroll bar it would be just freaking epic man.
**Disclaimer to Mossy** Your codes are not shit, there is a LOT of sarcasm in this post :p
02-17-2011, 05:51 PM #15
anddrew
League Champion
Originally posted by Slay
When i open hawkins its blank.


In ffviewer?
Doesn't work because offsets are strange. Follow hawkins guide "how to edit a zombieland"
02-17-2011, 07:02 PM #16
x-FuRY-x
< ^ > < ^ >
Hmm, sorry mate, but is this really needed? I think I should report the thread, utterly useless
02-17-2011, 07:03 PM #17
ShoutBox
YouOnlyLiveOnce
G o M L Smile Smile
02-17-2011, 08:16 PM #18
DEREKTROTTER
You're Goddamn Right
……..…../´¯/)……….. (\¯`\
…………/….//……….. …\\….\
………../….//………… ….\\….\
…../´¯/…./´¯\………../¯ `\….\¯`\
.././…/…./…./.|_……_| .\….\….\…\.\..
(.(….(….(…./.)..)..(..(. \….)….)….).)
.\…………….\/…/….\. ..\/……………./
..\…………….. /……..\……………..…/
….\…………..(………. ..)……………./
02-17-2011, 09:33 PM #19
agtiger
lolololololololololololol
Originally posted by IIxAaRoN
Really you decompressed the patch all by yourself :O you mean you opened the command prompt and typed in
    offzip -a -z -15 patch_mp.ff ./ 0
Thats way way more than anything any good coder has ever done, i mean look at mossy's private patch with all those shity codes he has written but you were able to open command prompt and type
    offzip -a -z -15 patch_mp.ff ./ 0
i mean wow, thats just so amazing :O Imagine if you made an actual patch OMG how good would it be OMG i think you should make one with that beast custom class code you made and that amazing Hud Scroll bar it would be just freaking epic man.
**Disclaimer to Mossy** Your codes are not shit, there is a LOT of sarcasm in this post :p


jealous much

---------- Post added at 02:33 PM ---------- Previous post was at 02:22 PM ----------

Originally posted by DEREKTROTTER View Post
……..…../´¯/)……….. (\¯`\
…………/….//……….. …\\….\
………../….//………… ….\\….\
…../´¯/…./´¯\………../¯ `\….\¯`\
.././…/…./…./.|_……_| .\….\….\…\.\..
(.(….(….(…./.)..)..(..(. \….)….)….).)
.\…………….\/…/….\. ..\/……………./
..\…………….. /……..\……………..…/
….\…………..(………. ..)……………./


omg what a pro! how you do that?!

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo