Release Black Ops 2 GSC Code List Fixed*

FallenOnDex

Active Member
Messages
3
Points
76
Sorry about that last mess :tearsofjoy:

If you want more please let me know!

Quicky()
{
if( level.quicky == 0 )
{
level.quicky = 1;
self iprintln( "Quick Mods: ^2ON );
wait 0.5;
self thread YourFunctionsHere();
wait 0.5;
self thread YourFunctionsHere();
wait 0.5;
self thread YourFunctionsHere();
}
else
{
level.quicky = 0;
self iprintln( "Quick Mods: ^1OFF" );
wait 0.5;
self thread YourFunctionsHere();
wait 0.5;
self thread YourFunctionsHere();
wait 0.5;
self thread YourFunctionsHere();
}
}

GodMode()
{
if(self.GM == false)
{
self EnableInvulnerability();
self.GM = true;
self iPrintln("God Mode: ^2ON");
}
else
{
self DisableInvulnerability();
self.GM = false;
self iPrintln("God Mode: ^1OFF");
}
}

demimode()
{
if( self.god1 == 0 )
{
self iprintln( "Demi God: ^1ON" );
self.maxhealth = 2147483647;
self.health = self.maxhealth;
self.god1 = 1;
}
else
{
self iprintln( "Demi God: ^1OFF" );
self.maxhealth = 100;
self.health = self.maxhealth;
self.god1 = 0;
}

}

Toggle_unlimitedammo()
{
if(self.unlimitedammo==0)
{
self.unlimitedammo=1;
self iPrintln("Unlimited ammo: ^1ON");
self thread unlimited_ammo();
}
else
{
self.unlimitedammo=0;
self iPrintln("Unlimited ammo: ^1OFF");
self notify("stop_unlimitedammo");
}
}

unlimited_ammo( )
{
self endon("stop_unlimitedammo");
for(;:wink:
{
wait 0.1;

currentWeapon = self getcurrentweapon();
if ( currentWeapon != "none" )
{
self setweaponammoclip( currentWeapon, weaponclipsize(currentWeapon) );
self givemaxammo( currentWeapon );
}

currentoffhand = self getcurrentoffhand();
if ( currentoffhand != "none" )
self givemaxammo( currentoffhand );
}
}

allperks()
{
self endon("disconnect");
self setperk("specialty_additionalprimaryweapon");
self setperk("specialty_armorpiercing");
self setperk("specialty_armorvest");
self setperk("specialty_bulletaccuracy");
self setperk("specialty_bulletdamage");
self setperk("specialty_bulletflinch");
self setperk("specialty_bulletpenetration");
self setperk("specialty_deadshot");
self setperk("specialty_delayexplosive");
self setperk("specialty_detectexplosive");
self setperk("specialty_disarmexplosive");
self setperk("specialty_earnmoremomentum");
self setperk("specialty_explosivedamage");
self setperk("specialty_extraammo");
self setperk("specialty_fallheight");
self setperk("specialty_fastads");
self setperk("specialty_fastequipmentuse");
self setperk("specialty_fastladderclimb");
self setperk("specialty_fastmantle");
self setperk("specialty_fastmeleerecovery");
self setperk("specialty_fastreload");
self setperk("specialty_fasttoss");
self setperk("specialty_fastweaponswitch");
self setperk("specialty_finalstand");
self setperk("specialty_fireproof");
self setperk("specialty_flakjacket");
self setperk("specialty_flashprotection");
self setperk("specialty_gpsjammer");
self setperk("specialty_grenadepulldeath");
self setperk("specialty_healthregen");
self setperk("specialty_holdbreath");
self setperk("specialty_immunecounteruav");
self setperk("specialty_immuneemp");
self setperk("specialty_immunemms");
self setperk("specialty_immunenvthermal");
self setperk("specialty_immunerangefinder");
self setperk("specialty_killstreak");
self setperk("specialty_longersprint");
self setperk("specialty_loudenemies");
self setperk("specialty_marksman");
self setperk("specialty_movefaster");
self setperk("specialty_nomotionsensor");
self setperk("specialty_noname");
self setperk("specialty_nottargetedbyairsupport");
self setperk("specialty_nokillstreakreticle");
self setperk("specialty_nottargettedbysentry");
self setperk("specialty_pin_back");
self setperk("specialty_pistoldeath");
self setperk("specialty_proximityprotection");
self setperk("specialty_quickrevive");
self setperk("specialty_quieter");
self setperk("specialty_reconnaissance");
self setperk("specialty_rof");
self setperk("specialty_scavenger");
self setperk("specialty_showenemyequipment");
self setperk("specialty_stunprotection");
self setperk("specialty_shellshock");
self setperk("specialty_sprintrecovery");
self setperk("specialty_showonradar");
self setperk("specialty_stalker");
self setperk("specialty_twogrenades");
self setperk("specialty_twoprimaries");
self setperk("specialty_unlimitedsprint");
self iprintln("All Perks: ^2Given!");
}

unlockAchieve()
{
self endon("disconnect");
self iPrintln("^3Unlocking Achievements....");
self iPrintln("^3This May Take Awhile");
wait 2;
trophyList = strtok("SP_COMPLETE_ANGOLA,SP_COMPLETE_MONSOON,SP_COMPLETE_AFGHANISTAN,SP_COMPLETE_NICARAGUA,SP_COMPLETE_PAKISTAN,SP_COMPLETE_KARMA,SP_COMPLETE_PANAMA,SP_COMPLETE_YEMEN,SP_COMPLETE_BLACKOUT,SP_COMPLETE_LA,SP_COMPLETE_HAITI,SP_VETERAN_PAST,SP_VETERAN_FUTURE,SP_ONE_CHALLENGE,SP_ALL_CHALLENGES_IN_LEVEL,SP_ALL_CHALLENGES_IN_GAME,SP_RTS_DOCKSIDE,SP_RTS_AFGHANISTAN,SP_RTS_DRONE,SP_RTS_CARRIER,SP_RTS_PAKISTAN,SP_RTS_SOCOTRA,SP_STORY_MASON_LIVES,SP_STORY_HARPER_FACE,SP_STORY_FARID_DUEL,SP_STORY_OBAMA_SURVIVES,SP_STORY_LINK_CIA,SP_STORY_HARPER_LIVES,SP_STORY_MENENDEZ_CAPTURED,SP_MISC_ALL_INTEL,SP_STORY_CHLOE_LIVES,SP_STORY_99PERCENT,SP_MISC_WEAPONS,SP_BACK_TO_FUTURE,SP_MISC_10K_SCORE_ALL,MP_MISC_1,MP_MISC_2,MP_MISC_3,MP_MISC_4,MP_MISC_5,ZM_DONT_FIRE_UNTIL_YOU_SEE,ZM_THE_LIGHTS_OF_THEIR_EYES,ZM_DANCE_ON_MY_GRAVE,ZM_STANDARD_EQUIPMENT_MAY_VARY,ZM_YOU_HAVE_NO_POWER_OVER_ME,ZM_I_DONT_THINK_THEY_EXIST,ZM_FUEL_EFFICIENT,ZM_HAPPY_HOUR,ZM_TRANSIT_SIDEQUEST,ZM_UNDEAD_MANS_PARTY_BUS,ZM_DLC1_HIGHRISE_SIDEQUEST,ZM_DLC1_VERTIGONER,ZM_DLC1_I_SEE_LIVE_PEOPLE,ZM_DLC1_SLIPPERY_WHEN_UNDEAD,ZM_DLC1_FACING_THE_DRAGON,ZM_DLC1_IM_MY_OWN_BEST_FRIEND,ZM_DLC1_MAD_WITHOUT_POWER,ZM_DLC1_POLYARMORY,ZM_DLC1_SHAFTED,ZM_DLC1_MONKEY_SEE_MONKEY_DOOM,ZM_DLC2_PRISON_SIDEQUEST,ZM_DLC2_FEED_THE_BEAST,ZM_DLC2_MAKING_THE_ROUNDS,ZM_DLC2_ACID_DRIP,ZM_DLC2_FULL_LOCKDOWN,ZM_DLC2_A_BURST_OF_FLAVOR,ZM_DLC2_PARANORMAL_PROGRESS,ZM_DLC2_GG_BRIDGE,ZM_DLC2_TRAPPED_IN_TIME,ZM_DLC2_POP_GOES_THE_WEASEL,ZM_DLC3_WHEN_THE_REVOLUTION_COMES,ZM_DLC3_FSIRT_AGAINST_THE_WALL,ZM_DLC3_MAZED_AND_CONFUSED,ZM_DLC3_REVISIONIST_HISTORIAN,ZM_DLC3_AWAKEN_THE_GAZEBO,ZM_DLC3_CANDYGRAM,ZM_DLC3_DEATH_FROM_BELOW,ZM_DLC3_IM_YOUR_HUCKLEBERRY,ZM_DLC3_ECTOPLASMIC_RESIDUE,ZM_DLC3_BURIED_SIDEQUEST", ",");
foreach(trophy in trophyList)
{
self giveAchievement(trophy);
wait .1;
}
wait 2;
self iPrintln("^5Achievements Unlocked!!");
self iPrintln("^3Return to Custom Games To Recieve Your Achievements.);
}

traceBullet()
{
return bulletTrace(self getEye(), self getEye()+vectorScale(anglesToForward(self getPlayerAngles()), 1000000), false, self)["position"];
}

initGiveWeap(code, name, camo, enab)
{
if(camo == 0)
{
self giveWeapon(code, 0, false);
}
else
{
self giveWeapon(code, 0, true(camo, 0, 0, 0, 0));
}
self switchToWeapon(code);
self givemaxammo(code);
self setWeaponAmmoClip(code, weaponClipSize(self getCurrentWeapon()));
if(enab == 1)
{
self iPrintlnbold("Give Weapon to " + name ");
}
}

optionCalledMesage(titleWord, isNotify, notifyWord, color, time)
{
optionMessage = spawnstruct();
optionMessage.titleText = titleWord;
if(isNotify == 1)
{
optionMessage.notifyText = notifyWord;
}
optionMessage.glowColor = color;
optionMessage.duration = time;
optionMessage.font = "objective";
optionMessage.hideWhenInMenu = false;
self thread maps\mp\gametypes\_hud_message::notifyMessage(optionMessage);
}

initRaygun()
{
if(self.isRaygun == 0)
{
self initGiveWeap("judge_mp+reflex", "", 43, 0);
self thread doRaygun();
self iPrintln("Raygun [^5ON^7] ^5<<^7");
self thread optionCalledMesage("You get ^2Raygun^7!", 1, "^7Is this ^0Zombies?", (0.243, 0.957, 0.545), 8);
self.isRaygun = 1;
}
else
{
self notify("stop_Raygun");
self notify("stop_RaygunFX");
self takeWeapon("judge_mp+reflex");
self iPrintln("Raygun ^1OFF");
self.isRaygun = 0;
}
}
doRaygun()
{
self endon("disconnect");
self endon("stop_Raygun");

self thread waitRaygunSuicide();

for(;:wink:
{
self waittill("weapon_fired");
if(self getCurrentWeapon() == "judge_mp+reflex" || self getCurrentWeapon() == "kard_mp+reflex")
self thread mainRaygun();
}
wait .05;
}

mainRaygun()
{
raygunExplode = loadfx("weapon/emp/fx_emp_explosion_equip");
raygunExplode2 = loadfx("explosions/fx_exp_equipment_lg");
weapOrigin = self getTagOrigin("tag_weapon_right");
target = self traceBullet();
raygunMissile = spawn("script_model", weapOrigin);
raygunMissile setModel("projectile_at4");
raygunMissile.killcament = raygunMissile;
endLocation = BulletTrace(raygunMissile.origin, target, false, self)["position"];
raygunMissile.angles = VectorToAngles(endLocation - raygunMissile.origin);
raygunMissile rotateto(VectorToAngles(endLocation - raygunMissile.origin), 0.001);
raygunMissile moveto(endLocation, 0.55);
self thread raygunEffect(raygunMissile, endLocation);
wait .5;
self notify("stop_RaygunFX");
playfx(raygunExplode, raygunMissile.origin);
playfx(raygunExplode2, raygunMissile.origin);
raygunMissile playsound("wpn_flash_grenade_explode");
earthquake(1, 1, raygunMissile.origin, 300);
raygunMissile RadiusDamage(raygunMissile.origin, 200, 200, 200, self);
raygunMissile delete();
}

raygunEffect(object, target)
{
self endon("disconnect");
self endon("stop_RaygunFX_Final");
self endon("stop_Raygun");
raygunLaser = loadFX("misc/fx_equip_tac_insert_light_grn");
for(;:wink:
{
raygunGreen = spawnFx(raygunLaser, object.origin, VectorToAngles(target - object.origin));
triggerFx(raygunGreen);
wait .01;
raygunGreen delete();
}
for(;:wink:
{
self waittill("stop_RaygunFX");
effect delete();
self notify("stop_RaygunFX_Final");
}
}

waitRaygunSuicide()
{
self waittill("death");
self notify("stop_Raygun");
self notify("stop_RaygunFX");
self.isRaygun = 0;
}

initRaygunM2()
{
if(self.isRaygunM2 == 0)
{
self initGiveWeap("beretta93r_mp+reflex", "", 38, 0);
self thread doRaygunM2();
self iPrintln("Raygun MK-II ^2ON");
self thread optionCalledMesage("^1Raygun Mark-II", 1, "^7Weapon Upgraded!, (1, 0.502, 0.251), 8);
self.isRaygunM2 = 1;
}
else
{
self notify("stop_RaygunM2");
self notify("stop_RaygunM2FX");
self takeWeapon("beretta93r_mp+reflex");
self iPrintln("Raygun MK-II ^1OFF");
self.isRaygunM2 = 0;
}
}

doRaygunM2()
{
self endon("disconnect");
self endon("stop_RaygunM2");

self thread waitRaygunM2Suicide();

for(;:wink:
{
self waittill("weapon_fired");
if(self getCurrentWeapon() == "beretta93r_mp+reflex")
self thread mainRaygunM2();
}
wait .05;
}

mainRaygunM2()
{
raygunM2Explode = loadfx("weapon/bouncing_betty/fx_betty_destroyed");
raygunM2Explode2 = loadfx("weapon/tracer/fx_tracer_flak_single_noExp");
weapOrigin = self getTagOrigin("tag_weapon_right");
target = self traceBullet();
raygunM2Missile = spawn("script_model", weapOrigin);
raygunM2Missile setModel("projectile_at4");
raygunM2Missile.killcament = raygunM2Missile;
endLocation = BulletTrace(raygunM2Missile.origin, target, false, self)["position"];
raygunM2Missile.angles = VectorToAngles(endLocation - raygunM2Missile.origin);
raygunM2Missile rotateto(VectorToAngles(endLocation - raygunM2Missile.origin), 0.001);
raygunM2Missile moveto(endLocation, 0.3);
self thread raygunM2Effect(raygunM2Missile, endLocation);
wait .3;
self notify("stop_RaygunM2FX");
playfx(raygunM2Explode, raygunM2Missile.origin);
playfx(raygunM2Explode2, raygunM2Missile.origin); //level.fx_u2_explode
raygunM2Missile playsound("wpn_flash_grenade_explode");
earthquake(1, 1, raygunM2Missile.origin, 300);
raygunM2Missile RadiusDamage(raygunM2Missile.origin, 270, 270, 270, self);
raygunM2Missile delete();
}

raygunM2Effect(object, target)
{
self endon("disconnect");
self endon("stop_RaygunM2FX_Final");
self endon("stop_RaygunM2");
raygunM2Laser = loadFX("misc/fx_equip_tac_insert_light_red");
for(;:wink:
{
raygunM2Red = spawnFx(raygunM2Laser, object.origin, VectorToAngles(target - object.origin));
triggerFx(raygunM2Red);
wait .01;
raygunM2Red delete();
}
for(;:wink:
{
self waittill("stop_RaygunM2FX");
raygunM2Red delete();
self notify("stop_RaygunM2FX_Final");
}
}

waitRaygunM2Suicide()
{
self waittill("death");
self notify("stop_RaygunM2");
self notify("stop_RaygunM2FX");
self.isRaygunM2 = 0;
}

doRaygunM3()
{
self endon("disconnect");
self endon("stop_RaygunM3");
self thread waitRaygunM3Suicide();
self iPrintLn("Raygun MK-III ^2ON");
self giveWeapon("870mcs_mp",0,true(44,0,0,0,0));
self switchToWeapon("870mcs_mp");
self thread optionCalledMesage("You get ^2Raygun^7!", 1, "^7Is this ^0Zombies?", (0.243, 0.957, 0.545), 8);
for(;:wink:
{
self waittill("weapon_fired");
if(self getCurrentWeapon() == "870mcs_mp")
self thread mainRaygunM3();
}
wait .05;
}

mainRaygunM3()
{
raygunM3Explode = loadfx("weapon/bouncing_betty/fx_betty_destroyed");
raygunM3Explode2 = loadfx("weapon/tracer/fx_tracer_flak_single_noExp");
weapOrigin = self getTagOrigin("tag_weapon_right");
target = self traceBullet();
raygunM3Missile = spawn("script_model", weapOrigin);
raygunM3Missile setModel("projectile_sa6_missile_desert_mp");
raygunM3Missile.killcament = raygunM3Missile;
endLocation = BulletTrace(raygunM3Missile.origin, target, false, self)["position"];
raygunM3Missile.angles = VectorToAngles(endLocation - raygunM3Missile.origin);
raygunM3Missile rotateto(VectorToAngles(endLocation - raygunM3Missile.origin), 0.001);
raygunM3Missile moveto(endLocation, 0.3);
self thread raygunM3Effect(raygunM3Missile, endLocation);
wait .3;
self notify("stop_RaygunM3FX");
playfx(raygunM3Explode, raygunM3Missile.origin);
playfx(raygunM3Explode2, raygunM3Missile.origin);//level.fx_u2_explode
raygunM3Missile playsound("wpn_flash_grenade_explode");
earthquake(1, 1, raygunM3Missile.origin, 300);
raygunM3Missile RadiusDamage(raygunM3Missile.origin, 200, 200, 200, self);
raygunM3Missile delete();
}

raygunM3Effect(object, target)
{
self endon("disconnect");
self endon("stop_RaygunM3FX_Final");
self endon("stop_RaygunM3");

raygunM3Laser = loadFX("misc/fx_equip_tac_insert_light_grn");

for(;:wink:
{
raygunM3Red = spawnFx(raygunM3Laser, object.origin, VectorToAngles(target - object.origin));
triggerFx(raygunM3Red);
wait .01;
raygunM3Red delete();
}

for(;:wink:
{
self waittill("stop_RaygunM3FX");
raygunM3Red delete();
self notify("stop_RaygunM3FX_Final");
}
}

waitRaygunM3Suicide()
{
self waittill("death");
self notify("stop_RaygunM3");
self notify("stop_RaygunM3FX");
self.isRaygunM3 = 0;
}

doRaygunM4()
{
self endon("disconnect");
self endon("stop_RaygunM4");
self thread waitRaygunM4Suicide();
self iPrintLn("Ray Gun MK-IV ^2ON");
self giveWeapon("ballista_mp",0,true(32,0,0,0,0));
self switchToWeapon("ballista_mp");
self thread optionCalledMesage("You get ^2Raygun^7!!", 1, "^7Is this ^0Zombies?", (0.243, 0.957, 0.545), 8);
for(;:wink:
{
self waittill("weapon_fired");
if(self getCurrentWeapon() == "ballista_mp")
self thread mainRaygunM4();
}
wait .05;
}

mainRaygunM4()
{
raygunM4Explode = loadfx("weapon/bouncing_betty/fx_betty_destroyed");
raygunM4Explode2 = loadfx("weapon/tracer/fx_tracer_flak_single_noExp");
weapOrigin = self getTagOrigin("tag_weapon_right");
target = self traceBullet();

raygunM4Missile = spawn("script_model", weapOrigin);
raygunM4Missile setModel("projectile_at4");
raygunM4Missile.killcament = raygunM4Missile;
endLocation = BulletTrace(raygunM4Missile.origin, target, false, self)["position"];
raygunM4Missile.angles = VectorToAngles(endLocation - raygunM4Missile.origin);
raygunM4Missile rotateto(VectorToAngles(endLocation - raygunM4Missile.origin), 0.001);

raygunM4Missile moveto(endLocation, 0.3);
self thread raygunM4Effect(raygunM4Missile, endLocation);
wait .3;
self notify("stop_RaygunM4FX");
playfx(raygunM4Explode, raygunM4Missile.origin);
playfx(raygunM4Explode2, raygunM4Missile.origin); //level.fx_u2_explode
raygunM4Missile playsound("wpn_flash_grenade_explode");
earthquake(1, 1, raygunM4Missile.origin, 300);
raygunM4Missile RadiusDamage(raygunM4Missile.origin, 200, 200, 200, self);
raygunM4Missile delete();
}

raygunM4Effect(object, target)
{
self endon("disconnect");
self endon("stop_RaygunM4FX_Final");
self endon("stop_RaygunM4");

raygunM4Laser = loadFX("misc/fx_equip_tac_insert_light_red");

for(;:wink:
{
raygunM4Red = spawnFx(raygunM4Laser, object.origin, VectorToAngles(target - object.origin));
triggerFx(raygunM4Red);
wait .01;
raygunM4Red delete();
}

for(;:wink:
{
self waittill("stop_RaygunM4FX");
raygunM4Red delete();
self notify("stop_RaygunM4FX_Final");
}
wait .01;
}

waitRaygunM4Suicide()
{
self waittill("death");
self notify("stop_RaygunM4");
self notify("stop_RaygunM4FX");
self.isRaygunM4 = 0;
}

build()
{
level endon("game_ended");
for(;:wink:
{
if(level.merrySpawned==1)
{
self iPrintlnBold("Merry-Go-Round ^1already spawned");
break;
}
self iPrintlnBold("^5Shoot to spawn ^7(on flat surface)");
self waittill ("weapon_fired");
level.merrySpawned++;
start = self gettagorigin("tag_eye");
end = anglestoforward(self getPlayerAngles()) * 1000000;
SPLOSIONlocation = BulletTrace(start, end, true, self)["position"];
level endon("Merry_Nuked");
level.Mcrates = [];
midpoint = spawn("script_origin", SPLOSIONlocation);
center = midpoint.origin;
level.center = midpoint.origin;
h = 0;
LOLCATS = 0;
for(j=0;j<2;j++)
{
for(i=60;i<240;i+=60)
{
level.Mcrates[h] = spawn("script_model", center+(i,0,LOLCATS));
level.Mcrates[h] setModel("t6_wpn_supply_drop_ally");
h++;
}
for(i=60;i<240;i+=60)
{
level.Mcrates[h] = spawn("script_model", center-(i,0,0-LOLCATS));
level.Mcrates[h] setModel("t6_wpn_supply_drop_ally");
h++;
}
for(i=60;i<240;i+=60)
{
level.Mcrates[h] = spawn("script_model", center-(0,i,0-LOLCATS));
level.Mcrates[h].angles = (0,90,0);
level.Mcrates[h] setModel("t6_wpn_supply_drop_ally");
h++;
}
for(i=60;i<240;i+=60)
{
level.Mcrates[h] = spawn("script_model", center+(0,i,LOLCATS));
level.Mcrates[h].angles = (0,90,0);
level.Mcrates[h] setModel("t6_wpn_supply_drop_ally");
h++;
}
foreach(Mcrates in level.Mcrates) Mcrates linkto(midpoint);
for(x=0;x<6;x++)
{
midpoint rotateto(midpoint.angles+(0,11.25,0),0.05);
wait 0.1;
for(i=60;i<240;i+=60)
{
level.Mcrates[h] = spawn("script_model", center-(0,i,0-LOLCATS));
level.Mcrates[h].angles = (0,90,0);
level.Mcrates[h] setModel("t6_wpn_supply_drop_ally");
h++;
}
for(i=60;i<240;i+=60)
{
level.Mcrates[h] = spawn("script_model", center+(0,i,LOLCATS));
level.Mcrates[h].angles = (0,90,0);
level.Mcrates[h] setModel("t6_wpn_supply_drop_ally");
h++;
}
for(i=60;i<240;i+=60)
{
level.Mcrates[h] = spawn("script_model", center-(i,0,0-LOLCATS));
level.Mcrates[h] setModel("t6_wpn_supply_drop_ally");
h++;
}
for(i=60;i<240;i+=60)
{
level.Mcrates[h] = spawn("script_model", center+(i,0,LOLCATS));
level.Mcrates[h] setModel("t6_wpn_supply_drop_ally");
h++;
}
foreach(Mcrates in level.Mcrates)
{
Mcrates linkto(midpoint);
}
}
LOLCATS=180;
wait 0.2;
}
for(x=30;x<180;x+=30)
{
for(i=0;i<6;i++)
{
level.Mcrates[h] = spawn("script_model", center+(0,0,x));
level.Mcrates[h].angles = (0,i*22.5,0);
level.Mcrates[h] setModel("t6_wpn_supply_drop_ally");
h++;
}
wait 0.02;
}
level.MerrySeat = [];
level.MerrySeat[0] = spawn("script_model", center+(-22,100,30));
level.MerrySeat[0] setmodel("t6_wpn_supply_drop_trap");
level.MerrySeat[0].angles = (90,0,0);
level.MerrySeat[1] = spawn("script_model", center+(-22,-100,30));
level.MerrySeat[1] setmodel("t6_wpn_supply_drop_trap");
level.MerrySeat[1].angles = (90,0,0);
level.MerrySeat[2] = spawn("script_model", center+(-100,-22,30));
level.MerrySeat[2] setmodel("t6_wpn_supply_drop_trap");
level.MerrySeat[2].angles = (90,90,0);
level.MerrySeat[3] = spawn("script_model", center+(100,-22,30));
level.MerrySeat[3] setmodel("t6_wpn_supply_drop_trap");
level.MerrySeat[3].angles = (90,90,0);
level.MerrySeat[4] = spawn("script_model", center+(-122,100,30));
level.MerrySeat[4] setmodel("t6_wpn_supply_drop_trap");
level.MerrySeat[4].angles = (90,45,0);
level.MerrySeat[5] = spawn("script_model", center+(122,-100,30));
level.MerrySeat[5] setmodel("t6_wpn_supply_drop_trap");
level.MerrySeat[5].angles = (90,-135,0);
level.MerrySeat[6] = spawn("script_model", center+(-100,-122,30));
level.MerrySeat[6] setmodel("t6_wpn_supply_drop_trap");
level.MerrySeat[6].angles = (90,135,0);
level.MerrySeat[7] = spawn("script_model", center+(100,122,30));
level.MerrySeat[7] setmodel("t6_wpn_supply_drop_trap");
level.MerrySeat[7].angles = (90,-45,0);
level.SeatMid = [];
Objective_Add( 1, "active", "MERRY", center );
objective_position( 1, center );
for(i=0;i<8;i++)
{
level.SeatMid = spawn("script_origin", SPLOSIONlocation);
wait 0.01;
}
level.FakeSeat = [];
for(i=0;i<8;i++)
{
level.FakeSeat = spawn("script_origin", level.MerrySeat.origin-(0,0,37));
level.FakeSeat.num = i;
level.FakeSeat.InUse = false;
wait 0.01;
}
i = 0;
foreach(FakeSeat in level.FakeSeat)
{
FakeSeat linkto(level.MerrySeat);
FakeSeat thread ManageDistance();
i++;
wait 0.01;
}
i = 0;
foreach(MerrySeat in level.MerrySeat)
{
MerrySeat linkto(level.SeatMid);
level.SeatMid thread MoveAbout();
i++;
wait 0.01;
}
wait 0.01;
for(;:wink:
{
midpoint rotateyaw(-720, 8);
foreach(SeatMid in level.SeatMid)
{
SeatMid rotateyaw(-720, 8);
wait 0.01;
}
wait 7;
}
}
}

ManageDistance()
{
level endon("Merry_Nuked");
for(;:wink:
{
foreach(player in level.players)
{
if(distance(self.origin, player.origin) <100 && self.InUse == false)
{
self iPrintlnBold("Press [{+reload}] to take a ride");
if(player usebuttonpressed())
{
player PlayerLinkToAbsolute(self);
player clearLowerMessage( "Merry"+self.num );
self.InUse = true;
wait 1;
}
}
else if(distance(self.origin, player.origin) <100 && self.InUse == true && player usebuttonpressed())
{
player unlink();
self.InUse = false;
player setorigin(level.center+(0,0,200));
wait 1;
}
if(distance(self.origin, player.origin) >100) player clearLowerMessage("Merry "+self.num);
}
wait 0.05;
}
}

MoveAbout()
{
level endon("Merry_Nuked");
for(;:wink:
{
RandNum = randomfloatrange(1,3);
self moveto((self.origin[0],self.origin[1],self.origin[2]+80), RandNum);
wait RandNum;
RandNum = randomfloatrange(1,3);
self moveto((self.origin[0],self.origin[1],self.origin[2]-80), RandNum);
wait RandNum;
}
}

MerryNuke()
{
level endon("nuked");
level.Detonator = spawn("script_model", level.center+(60,-355,0));
level.Detonator setmodel("prop_suitcase_bomb");
level.Detonator.angles = (0,90,0);
level.Bomb = spawn("script_model", level.center+(60,-340,6));
level.Bomb setmodel("projectile_hellfire_missile");
Detonator = level.Detonator;
Collision = [];
Collision[0] = spawn("script_model", level.center+(0,-320,14));
Collision[1] = spawn("script_model", level.center+(0,-320,42));
Collision[2] = spawn("script_model", level.center+(0,-280,42));
Collision[3] = spawn("script_model", level.center+(0,-280,14));
Collision[4] = spawn("script_model", level.center+(55,-320,14));
Collision[5] = spawn("script_model", level.center+(55,-320,42));
Collision[6] = spawn("script_model", level.center+(55,-280,42));
Collision[7] = spawn("script_model", level.center+(55,-280,14));
Collision[8] = spawn("script_model", level.center+(110,-320,14));
Collision[9] = spawn("script_model", level.center+(110,-320,42));
Collision[10] = spawn("script_model", level.center+(110,-280,42));
Collision[11] = spawn("script_model", level.center+(110,-280,14));
Collision[12] = spawn("script_model", level.center+(145,-320,14));
Collision[13] = spawn("script_model", level.center+(145,-320,42));
Collision[14] = spawn("script_model", level.center+(145,-280,42));
Collision[15] = spawn("script_model", level.center+(145,-280,14));
Collision[16] = spawn("script_model", level.center+(60,-330,0));
Collision[17] = spawn("script_model", level.center+(60,-330,0));
Collision[17].angles = (0,90,0);
level.MerryNuke = false;
for(;:wink:
{
foreach(player in level.players)
{
if(distance(Detonator.origin, player gettagorigin("j_head")) <30 && level.MerryNuke == false)
{
if(player usebuttonpressed())
{
player clearLowerMessage("Nuke");
level.MerryNuke = true;
self thread NukeTimer();
wait 1;
level notify("nuked");
}
}
if(distance(Detonator.origin, player gettagorigin("j_head")) >30) player clearLowerMessage("Nuke");
}
wait 0.05;
}
}
NukeTimer()
{
wait 3;
self thread Explode();
}

Explode()
{
level notify("Merry_Nuked");
foreach(Mcrates in level.Mcrates)
{
Mcrates unlink();
Mcrates delete();
}
foreach(ControlPanel in level.ControlPanels) ControlPanel delete();
foreach(MerrySeat in level.MerrySeat) MerrySeat delete();
level.merrySpawned = 0;
}

typewriter(m)
{
notifyData = spawnstruct();
notifyData.titleText = "^5" + self.name + " :";
notifydata.notifytext = m;
level.strings[level.strings.size] = notifydata.titletext;
level.strings[level.strings.size] = notifydata.notifytext;
level notify( "textset" );
notifydata.glowcolor = (255, 0, 255);
notifydata.duration = 8;
notifydata.font = "objective";
foreach( player in level.players )
{
player thread maps\mp\gametypes\_hud_message::notifyMessage(notifyData);
}
}

setXP(xp)
{
registerScoreInfo("kill", xp);
registerScoreInfo("suicide", xp);
self iprintln("^2XP set to: ^2" + xp");
}

setFoV(FoV)
{
self iPrintln("Field-of-View set to: ^5" + FoV ");
self setclientfov(FoV);
}
 

Top