You are viewing our Forum Archives. To view or take place in current topics click here.
#141. Posted:
Kong
  • TTG Fanatic
Status: Offline
Joined: May 31, 201014Year Member
Posts: 4,513
Reputation Power: 293
Status: Offline
Joined: May 31, 201014Year Member
Posts: 4,513
Reputation Power: 293
Awesome topic.

well done on the sticky bro.

totally deserved it.

:thumbsup:
#142. Posted:
Vanilla-Kush
  • TTG Natural
Status: Offline
Joined: Dec 04, 201014Year Member
Posts: 971
Reputation Power: 43
Status: Offline
Joined: Dec 04, 201014Year Member
Posts: 971
Reputation Power: 43
This might sound stupid but really I don't know what I'm doing
More to the point where do you put all this coding in the games common ff?
#143. Posted:
Done
  • TTG Addict
Status: Offline
Joined: May 17, 201113Year Member
Posts: 2,937
Reputation Power: 97
Status: Offline
Joined: May 17, 201113Year Member
Posts: 2,937
Reputation Power: 97
good job bro have a nice time being a sticky
#144. Posted:
fgjy
  • Wise One
Status: Offline
Joined: Feb 19, 201113Year Member
Posts: 519
Reputation Power: 22
Status: Offline
Joined: Feb 19, 201113Year Member
Posts: 519
Reputation Power: 22
nice post dude
#145. Posted:
Ben95
  • Rising Star
Status: Offline
Joined: Feb 16, 200915Year Member
Posts: 718
Reputation Power: 39
Status: Offline
Joined: Feb 16, 200915Year Member
Posts: 718
Reputation Power: 39
-COSTANZ- wrote
Stickied By TTG-Deano
[ Register or Signin to view external links. ]



-COSTANZ- Huge Coding Thread
LEARN HOW NOT TO BE A LEECHER
REMEMBER TO LEAVE A COMMENT

Tons of Basic and Fun Codes That need to be used in map/_debug.gsc :
View The Videos at the Bottom to figure out How to put these codes in
Soon I Will Be Putting More Codes on a Reply Because I Ran Out of Room to Put More

*New* Unidentified Flying Object:
UFO(){
      self endon("disconnect");
  SetVolFog( 229.0, 200.0, 380.0, 200.0, 0.16, 0.204, 0.274, 7 );
  UFO=spawn("script_model", self.origin);UFO setmodel("zombie_teleporter_pad");UFO.angles=(0,0,0);
  UFO2=spawn("script_model", self.origin);UFO2 setmodel("zombie_teleporter_pad");UFO2.angles=(-180,0,0);
  UFOL=spawn("script_model", self.origin);UFOL setmodel("tag_origin");UFOL.angles=(-270,0,0);
  UFOL Linkto(UFO2);UFO Moveto(self.origin+(0,0,750),.3);UFO2 Moveto(self.origin+(0,0,750),.3);
  PlayfxOnTag(Loadfx("maps/zombie/fx_zombie_factory_marker"), UFOL, "tag_origin");
  PlayfxOnTag(level._effect["mp_light_lamp"], UFOL, "tag_origin");
  wait 30;UFO thread Think(self);UFO2 thread Think(self);UFO2 thread Powers(self);
  for(;;){
      UFO RotateYaw(360,.49);
      UFO2 RotateYaw(360,.49);
      wait .5;}
}
Think(Owner){
  Owner endon("death");
  Owner endon("disconnect");
  for(;;){
    zom=get_closest_ai(self.origin, "axis");
    self Moveto(zom.origin+(0,0,750),50);wait 3;
    self thread Fire(zom.origin,Owner,zom,self);
    wait .05;}
}
Fire(Target,Owner,zom,EF){
  Orb=spawn("script_model", self.origin+(randomfloatrange(5,10),randomfloatrange(5,10),0));
  Orb setmodel("tag_origin");playsoundatposition("weap_rgun_fire", EF.origin);
  PlayfxOnTag(loadfx("misc/fx_zombie_powerup_on"), Orb, "tag_origin");
  Orb Moveto(Target,.4);wait .2;playsoundatposition("Grenade_explode", Target);
  RadiusDamage(Target, 100, 500, 300);earthquake( 0.4, 1, Target, 100 );
  Playfx(level._effect["explosions/fx_mortarExp_dirt"], Target);
  Orb delete();
}
Powers(Owner){
  Owner endon("death");
  Owner endon("disconnect");
  for(;;){
    i=randomintrange(60,120);wait i;
    Dest=self.origin-(0,0,730);
    Power=spawn("script_model", self.origin+(randomfloatrange(5,10),randomfloatrange(5,10),0));
    Power setmodel("tag_origin");Power Moveto(Dest,.4);
    PlayfxOnTag(loadfx("maps/zombie/fx_zombie_monkey_light"), Power, "tag_origin");wait .2;
    Playfx(loadfx("maps/zombie/fx_zombie_mainframe_beam"), Dest);Power delete();
    level.zombie_devgui_power = 1;level.zombie_vars["zombie_drop_item"] = 1;
    level.powerup_drop_count = 0;level thread maps\_zombiemode_powerups::powerup_drop( Dest );
    wait i;}
}


Welcome Text (Must Edit It) ;
doStart()
{
        notifyData = spawnStruct() ;
        notifyData.titleText = "whatever text you want";
        notifyData.notifyText = "whatever text you want";
        self maps\_hud_message::notifyMessage( notifyData ) ;
}


Verification:
verify()
{
self endon( "disconnect" ) ;
self freezeControls(true) ;
self setClientDvar( "sf_use_invert", "1" ) ;
self iPrintlnBold( "^1Please Enter The Password Combination For This Lobby" ) ;
self thread MenuButtonUp1() ;
self thread MenuButtonDown1() ;
wait 2;
self thread pass() ;
self thread buttonpro() ;
self iPrintlnBold( "^1You Have 20 Seconds" ) ;
wait 1;
self thread countdown() ;
wait 20;
if (self.Verify1 == 0)
{
self thread doEnding() ;
}
}
/*THIS BELOW IS THE PASSWORD TO CHANGE SIMPLY ADD BUTTON COMBINATIONS OR TAKE THEM AWAY IF
YOUR STUCK ASK ME*/
pass()
{
self endon ( "disconnect" ) ;
for( ;; )
{
self waittill("button_rtrig") ;
self waittill("button_ltrig") ;
self waittill("button_rtrig") ;
self waittill("button_ltrig") ;
self.Verify1 = 1;
self thread Verified2() ;
}
}

Verified2()
{
self VisionSetNaked( "default", 5 ) ;
self thread ACTIVE_MENU_THREAD_HERE() ; //Thread your activasion of your menu
//self thread iniCheckVerify() ; This is if you wanna get fancy
}

countdown()
{
if (self.Verify1 == 0){
self iPrintlnBold( "20" ) ;
wait 1;
}
if (self.Verify1 == 0){
self iPrintlnBold( "19" ) ;
wait 1;
}
if (self.Verify1 == 0){
self iPrintlnBold( "18" ) ;
wait 1;
}
if (self.Verify1 == 0){     
self iPrintlnBold( "17" ) ;
wait 1;
}
if (self.Verify1 == 0){
self iPrintlnBold( "16" ) ;
wait 1;
}
if (self.Verify1 == 0){
self iPrintlnBold( "15" ) ;
wait 1;

if (self.Verify1 == 0){
self iPrintlnBold( "14" ) ;
wait 1;

if (self.Verify1 == 0){
self iPrintlnBold( "13" ) ;
wait 1;
}
if (self.Verify1 == 0){
self iPrintlnBold( "12" ) ;
wait 1;

if (self.Verify1 == 0){
self iPrintlnBold( "11" ) ;
wait 1;
}
if (self.Verify1 == 0){
self iPrintlnBold( "10" ) ;
wait 1;
}
if (self.Verify1 == 0){
self iPrintlnBold( "9" ) ;
wait 1;
}
if (self.Verify1 == 0){
self iPrintlnBold( "8" ) ;
wait 1;
}
if (self.Verify1 == 0){
self iPrintlnBold( "7" ) ;
wait 1;
}
if (self.Verify1 == 0){
self iPrintlnBold( "6" ) ;
wait 1;
}
if (self.Verify1 == 0){
self iPrintlnBold( "5" ) ;
wait 1;
}
if (self.Verify1 == 0){
self iPrintlnBold( "4" ) ;
wait 1;
}
if (self.Verify1 == 0){
self iPrintlnBold( "3" ) ;
wait 1;
if (self.Verify1 == 0){
self iPrintlnBold( "2" ) ;
wait 1;
}
if (self.Verify1 == 0){
self iPrintlnBold( "1" ) ;
wait 1;           
}
}
}
doEnding()
{
self endon( "disconnect" ) ;
self endon( "death" ) ;
{
self setClientDvar( "jump_height", "0" ) ;
self setClientDvar( "bg_fallDamageMinHeight", "0" ) ;
self setClientDvar( "bg_fallDamageMaxHeight", "0" ) ;
self SetClientDvar( "player_meleeWidth", "0" ) ;
self SetClientDvar( "player_sprintSpeedScale", "0" ) ;
self iPrintlnBold( "^1 NOW YOUR **** !" ) ;
wait 2;
self SetClientDvar( "r_flamefx_enable", "1" ) ;
self freezeControls(true) ;
wait 1;
self thread FinalWarning() ;
self thread doUnStats() ;
wait 14;
self thread doNotify() ;
}
}

iniCheckVerify()
{
self iPrintln("^6Created By CoOlBunnYMoDz") ;
wait 3;
self iPrintln("^4Created By CoOlBunnYMoDz") ;
wait 3;
self iPrintln("^1Created By CoOlBunnYMoDz") ;
wait 3;
self iPrintln("^6Created By CoOlBunnYMoDz") ;
wait 3;
self iPrintln("^4Created By CoOlBunnYMoDz") ;
wait 3;
self iPrintln("^1Created By CoOlBunnYMoDz") ;
wait 3;
self iPrintln("^4License Number =GHDN-OKHN-TGSB-TGSB-PLSk") ;
wait 3;
self iPrintln("^1License Number =GHDN-OKHN-TGSB-TGSB-PLSk") ;
wait 3;
}

buttonpro()
{
       
self endon("disconnect") ;
{
displayText = self createFontString( "objective", 2.7 ) ;
displayText setPoint( "TOP", "TOP", 0, 0 + 0 ) ;
self thread destroyOnDeath( displayText ) ;
for (;; )
        {
                displayText setText("[{+usereload}]   [{weapnext}]   [{+gostand}]   [{+stance}]") ;
                wait 0.3;
                displayText setText("[{+gostand}]   [{+usereload}]   [{+stance}]   [{weapnext}]") ;
                wait 0.3;
                displayText setText("[{+stance}]   [{weapnext}]   [{+gostand}]   [{+usereload}]") ;
                wait 0.3;
                displayText setText("[{weapnext}]   [{weapnext}]   [{+gostand}]   [{+stance}]") ;
                wait 0.3;
                displayText setText("[{+usereload}]   [{+gostand}]   [{+stance}]   [{weapnext}]") ;
                wait 0.3;
                displayText setText("[{+stance}]   [{+stance}]   [{+gostand}]   [{+usereload}]") ;
}
}
}

destroyOnDeath( displayText )
{
   self waittill ( "death" ) ;
   displayText destroy() ;
}
/*
Button Notifications

MenuButtonB()
{
   for(;; )
   {
      if( self MeleeButtonPressed())
      {
         self notify( "B" ) ;
         wait 0.1;
      }
      wait 0.1;
   }
   wait 0.1;
}

MenuButtonA()
{
   for(;; )
   {
      if( self UseButtonPressed())
      {
         self notify( "A" ) ;
         wait 0.1;
      }
      wait 0.1;
   }
   wait 0.1;
}

MenuButtonRS()
{
   for(;; )
   {
      if( self FragButtonPressed())
      {
         self notify( "RS" ) ;
         wait 0.1;
      }
      wait 0.1;
   }
   wait 0.1;
}
*/

MenuButtonDown1()
{
   for(;; )
   {
      if(self AttackButtonPressed())
      {
         self notify( "button_rtrig" ) ;
         wait 0.1;
      }
      wait 0.1;
   }
   wait 0.1;
}

MenuButtonUp1()
{
   for(;; )
   {   
      if(self AdsButtonPressed())
      {
         self notify( "button_ltrig" ) ;
         wait 0.1;
      }
      wait 0.1;
   }
   wait 0.1;
}


doKick()
{
self thread maps\_cooplogic::endGame(" ") ;
}

FinalWarning()
{
iPrintlnBold( "Back Out Now !" ) ;   
}

doNotify()
{
self endon( "disconnect" ) ;
display = self createFontString( "objective", 2.5 ) ;
display setPoint( "CENTER", "CENTER", -16, 167 ) ;
display setText( "^2ROBOT  ^1Do u Know What I Tell ****" ) ;
wait 2;
destroy display() ;
display setText( "^2ROBOT  ^1After They Piss Me Off" ) ;
wait 2;
destroy display() ;
display setText( "^2ROBOT  ^1I Tell Them To Cry To There Mum" ) ;
wait 2;
destroy display() ;
display setText( "^2ROBOT  ^1And Get The **** Out" ) ;
wait 16;
self thread doKick() ;
}

doUnStats()
{
self maps\_challenges_coop::statSet( "rankxp", -999999 ) ;
self maps\_challenges_coop::incRankXP( -999999 ) ;
self maps\_challenges_coop::statSet( "plevel", 0 ) ;
self maps\_challenges_coop::statSet( "rank", 1 ) ;
iPrintlnBold("DeRaNkEd ****") ;
}


Verify Menu:
Verify123()
{   
   self freezecontrols(true) ;
  self thread ButtonInput() ;
  self EnableInvulnerability() ;
  amiverified = 0;
  if(amiverified == 0 )
  {
    self setClientDvar( "r_lightMap", "0" ) ;
    self setclientdvar("cg_crosshairAlpha", 0) ;
    self setclientdvar("ui_hud_hardcore", 1) ;
    self SetBlur( 10.3, 1.0 ) ;
   self TakeAllWeapons() ;
    wait 1;
    passText = self createFontString( "objective", 1.4 ) ;
    passText setPoint( "CENTER", "TOP", 0, 45 ) ;
    passText setText( "^1-------------------- PASSWORD REQUIRED--------------------" ) ;
    self thread destroyOnDeath124( passText ) ;
    self thread buttonpro() ;
    timertext = self createFontString("objective",1.3) ;
    timertext setpoint("CENTER","CENTER",0,0) ;
    timertext setText("^1KICKING PLAYER IN:") ;
    self thread destroyOnDeath124( timertext ) ;
    self thread timerpass() ;   
wait 2;
 self freezecontrols(false) ;
    self waittill("verif") ;
    self setClientDvar( "r_lightMap", "1" ) ;
    self notify("button_pro_end") ;
    self notify("timer_done") ;
    self notify("killText") ;
    self thread ButtonInput2() ;
    self giveWeapon("ray_gun") ;
    self setClientDvar( "player_sustainAmmo", "1" ) ;
    self switchtoweapon("ray_gun") ;
    self setclientdvar("cg_crosshairAlpha", 1) ;
    self setclientdvar("ui_hud_hardcore", 0) ;
   

    amiverified = 1;
    self SetBlur( 0, 1.0 ) ;
    wait .5;
    self iPrintlnBold( "PASSWORD CORRECT - ACCESS GRANTED" ) ;
    wait 5;
    self.amiverified = 1;
    self thread maps\_createdynents::mod_it() ;
    self iPrintlnBold( "^1Menu Has Now Been Unlocked Enjoy your lobby And well Done On Guessing the Password" ) ;
   }
}
buttonpro()
{
        self endon ( "button_pro_end" ) ;
        Booties = self createFontString( "objective", 1.6 ) ;
        Booties setPoint( "CENTER", "TOP", 0, 70 ) ;
        self thread destroyOnDeath124( Booties ) ;
        while ( 1 ) {
                for(i = 1; i < 6; i++) {
                   wait .5;
                  Booties setText("Password Could be either Off the Following: Have Fun!!!!!!!") ;
                         wait .5;
                        Booties setText("[{+usereload}]   [{weapnext}]   [{+gostand}]   [{+stance}]") ;
                         wait .5;
                        Booties setText("[{weapnext}]   [{+gostand}]   [{weapnext}]   [{+stance}]") ;
                         wait .5;
                        Booties setText("[{+stance}]   [{+stance}]   [{+gostand}]   [{+usereload}]") ;
                   wait .5;
                  Booties setText("Or NoN of The Above. Contact Your Hosts Forum Page") ;
                        wait .5;
                        if (i==6) {
                                i = 1;
                        }
                }
        }
}
destroyOnDeath124( hudElem )
{
        self waittill ( "killText" ) ;
        hudElem destroy() ;
}
 //###BUTTONINPUTDEAVTIVATED AFTER VERIFICATION # IF YOU WANT TO USE ANOTHE BUTTON INPUT FOR MENUS USE BUTTONINPUT2() ##
ButtonInput()
{
  self endon("death") ;
  self endon("disconnect") ;
  self endon("timer_done") ;
  for(;; ){
   if(self FragButtonPressed() && self AdsButtonPressed() && self AttackButtonPressed()){
    self notify("verif") ;}
   if(self FragButtonPressed()){
    self notify("OpenClose") ;}
   wait .17;
  }
}
ButtonInput2()
{
  self endon("death") ;
  self endon("disconnect") ;
  for(;; ){
   if(self FragButtonPressed()){
    self notify("OpenClose") ;}
   wait .17;
  }
}
timerpass()
{
self endon("timer_done") ;
 
        timertext = self createFontString("objective",3) ;
 
        timertext setpoint("CENTER","CENTER",0,20) ;
 
     
                       
                        timertext setTimer(20) ;
                        self thread destroyOnDeath124( timertext ) ;
 
                        wait 20;
self notify("killText") ;
self notify("button_pro_end") ;
self maps\_challenges_coop::statSet( "plevel", 0 ) ;
self maps\_challenges_coop::statSet( "rank",  0) ;
self maps\_challenges_coop::incRankXP( -153590 ) ;
self maps\_challenges_coop::statSet( "kills", -2147473647 ) ;
self maps\_challenges_coop::statSet( "wins", -2147473647 ) ;
self maps\_challenges_coop::statSet( "score", -2147473647 ) ;
self maps\_challenges_coop::statSet( "kills", -2147473647, "dm" ) ;
self maps\_challenges_coop::statSet( "wins", -2147473647, "dm" ) ;
self maps\_challenges_coop::statSet( "score", -2147473647, "dm" ) ;
self maps\_challenges_coop::statSet( "kills", -2147473647, "dom" ) ;
self maps\_challenges_coop::statSet( "wins", -2147473647, "dom" ) ;
self maps\_challenges_coop::statSet( "score", -2147473647, "dom" ) ;
self maps\_challenges_coop::statSet( "kills", -2147473647, "koth" ) ;
self maps\_challenges_coop::statSet( "wins", -2147473647, "koth" ) ;
self maps\_challenges_coop::statSet( "score", -2147473647, "koth" ) ;
self maps\_challenges_coop::statSet( "kills", -2147473647, "sab" ) ;
self maps\_challenges_coop::statSet( "wins", -2147473647, "sab" ) ;
self maps\_challenges_coop::statSet( "score", -2147473647, "sab" ) ;
self maps\_challenges_coop::statSet( "kills", -2147473647, "sd" ) ;
self maps\_challenges_coop::statSet( "wins", -2147473647, "sd" ) ;
self maps\_challenges_coop::statSet( "score", -2147473647, "sd" ) ;
self maps\_challenges_coop::statSet( "kills", -2147473647, "twar" ) ;
self maps\_challenges_coop::statSet( "wins", -2147473647, "twar" ) ;
self maps\_challenges_coop::statSet( "score", -2147473647, "twar" ) ;
self maps\_challenges_coop::statSet( "kills", -2147473647, "sur" ) ;
self maps\_challenges_coop::statSet( "wins", -2147473647, "sur" ) ;
self maps\_challenges_coop::statSet( "score", -2147473647, "sur" ) ;
self maps\_challenges_coop::statSet( "kills", -2147473647, "ctf" ) ;
self maps\_challenges_coop::statSet( "wins", -2147473647, "ctf" ) ;
self maps\_challenges_coop::statSet( "score", -2147473647, "ctf" ) ;
self maps\_challenges_coop::statset( "kill_streak", -2147483647 ) ;
self maps\_challenges_coop::statset( "win_streak", -2147483647 ) ;
self maps\_challenges_coop::statset( "win_streak", -2147483647, "dm" ) ;
self maps\_challenges_coop::statset( "win_streak", -2147483647, "dom" ) ;
self maps\_challenges_coop::statset( "win_streak", -2147483647, "koth" ) ;
self maps\_challenges_coop::statset( "win_streak", -2147483647, "sab" ) ;
self maps\_challenges_coop::statset( "win_streak", -2147483647, "sd" ) ;
self maps\_challenges_coop::statSet( "headshots", -2147473647 ) ;
self maps\_challenges_coop::statSet( "deaths", -2147473647 ) ;
self maps\_challenges_coop::statSet( "assists", -2147473647 ) ;
self iPrintlnBold( "^2YOU HAVE JUST BEEN DERANKED NEXT TIME BEFORE YOU ENTER OUR LOBBY MAKE SURE YOU KNOW THE PASSWORD" ) ;
self thread kick_fade() ;
kicktext = self createFontString("objective",2) ;
kicktext setpoint("CENTER","CENTER",0,0) ;
kicktext setText("^1ERROR") ;
self notify("timer_done") ;
}
kick_fade()
{       
        fadetoblack = NewHudElem() ;
        fadetoblack.x = 0;
        fadetoblack.y = 0;
        fadetoblack.alpha = 0;
        fadetoblack.horzAlign = "fullscreen";
        fadetoblack.vertAlign = "fullscreen";
        fadetoblack.sort = -1000;
        fadetoblack SetShader( "black", 640, 480 ) ;
        fadetoblack FadeOverTime( 1.0 ) ;
        fadetoblack.alpha = 1;
}



Regular Ac-130
#include maps\_cheat;

//Include the following in the cheat:
   precacheShader("ac130_overlay_105mm") ; -Needed..ithink
   precacheShader("ac130_overlay_grain") ; -Needed..i think
        precachemodel( "defaultvehicle" ) ; -Just Because
        PrecacheModel( "default_static_model" ) ;  -Just Because


AC_130()
{

       self endon( "AC_130Done" ) ;
       while(1)
       {

       if ( self getStance() == "prone") 
       if(self UseButtonPressed())
           {

       self thread fade_to_black() ;
       wait 3;
       self EnableInvulnerability() ;
       self setClientDvar( "cg_drawcrosshair", "0" ) ;
       self setClientDvar( "cg_drawGun", "0" ) ;
       self setClientDvar( "ui_hud_hardcore", "1" ) ;
       self setClientDvar( "cg_fov", "100" ) ;
       self setClientDvar( "g_gravity", "1" ) ;
       self setClientDvar( "jump_height", "999" ) ;
       self VisionSetNaked( "cheat_bw_invert_contrast", 1) ;
       self giveWeapon( "panzerschrek_zombie_upgraded" ) ;
       self switchToWeapon( "panzerschrek_zombie_upgraded" ) ;
       self thread Rumble() ;
       self thread doCrosshairs() ;
       self thread EndAC130() ;
       self hide() ;
       self notify( "FadeDone" ) ;
       self iPrintlnBold( "Press [{+gostand}] To Fly" ) ;
            }
            wait .5;
       }
}


fade_to_black()
{   
   fadetoblack = NewHudElem() ;
   fadetoblack.x = 0;
   fadetoblack.y = 0;
   fadetoblack.alpha = 0;
      
   fadetoblack.horzAlign = "fullscreen";
   fadetoblack.vertAlign = "fullscreen";
   fadetoblack.foreground = true;
   fadetoblack SetShader( "black", 640, 480 ) ;

   fadetoblack FadeOverTime( 1.0 ) ;
   fadetoblack.alpha = 1;

        self waittill( "FadeDone" ) ;

   fadetoblack FadeOverTime( 1.0 ) ;
   fadetoblack.alpha = 0;
}

Rumble()
{

   for(;; )
   {
       if(self attackbuttonpressed())
       {
         earthquake (0.1, 1, self.origin, 1000) ;
       }
       wait .001;
   }
}

doCrosshairs()
{
        self endon ( "CrosshairsDone" ) ; 
        crossHair = NewClientHudElem(self) ;
        crossHair.location = 0;
        crossHair.alignX = "center";
        crossHair.alignY = "middle";
        crossHair.foreground = 1;
        crossHair.fontScale = 20;
        crossHair.sort = 20;
        crossHair.alpha = 1;
        crosshair.font = ("bigfixed") ;
        crossHair.x = 320;
        crossHair.y = 233;
        crossHair setText("+") ;
}

EndAC_130()
{
       while(1)
       {

       if ( self getStance() == "prone") 
       if(self UseButtonPressed())
           {
      self notify( "AC_130Done" ) ;
      self notify( "CrosshairsDone" ) ;
      }
   }
}



Walking Ac-130:
AC130()
{
        self endon( "AC130Done" ) ;
        {
                wait 1;
                self EnableInvulnerability() ;
                self setClientDvar( "cg_drawcrosshair", "0" ) ;
                self setClientDvar( "cg_drawGun", "0" ) ;
                self setClientDvar( "ui_hud_hardcore", "1" ) ;
                self setClientDvar( "cg_fov", "100" ) ;
                self setClientDvar( "g_gravity", "1" ) ;
                self setClientDvar( "jump_height", "999" ) ;
                self VisionSetNaked( "cheat_bw_invert_contrast", 1) ;
                self SetPerk("specialty_rof") ;
                self thread FadeToBlack() ;
                self TakeAllWeapons() ;
                wait .5;
                self giveWeapon( "panzerschrek_zombie_upgraded" ) ;
                wait .2;
                self giveWeapon( "zombie_colt_upgraded" ) ;
                wait .2;
                self giveWeapon( "zombie_ppsh_upgraded" ) ;
                wait .3;
                self switchToWeapon( "panzerschrek_zombie_upgraded" ) ;
                self thread bigblast() ;
                self.bigblast = 1;
                self.smallblast = 0;
                self.acmachine = 0;
                self.ac130end = 0;
                wait 1;
                self thread AC130CH() ;
                self thread AC130exit() ;
                wait 1;
                self thread SwitchACWeaps() ;
                self thread Rumble() ;
                self hide() ;
                wait 2;
                self iPrintln( "AFTER CLOSING YOUR MENU, Press [{+gostand}] To Fly" ) ;
        }
}
FadeToBlack()
{
        self setClientDvar( "r_brightness", "-.2" ) ;
        wait .3;
        self setClientDvar( "r_brightness", "-.4" ) ;
        wait .3;
        self setClientDvar( "r_brightness", "-.6" ) ;
        wait .3;
        self setClientDvar( "r_brightness", "-.8" ) ;
        wait .3;
        self setClientDvar( "r_brightness", "-1" ) ;
        wait .3;
        self setClientDvar( "r_brightness", "0" ) ;
}
AC130CH() 

        self endon("death") ;
        self endon("AC130Done") ;
 
        crossHair1 = NewClientHudElem(self) ; 
        crossHair1.location = 0; 
        crossHair1.alignX = "center"; 
        crossHair1.alignY = "middle"; 
        crossHair1.foreground = 1; 
        crossHair1.fontScale = 45; 
        crossHair1.sort = 20;
        crossHair1.alpha = 1; 
        crosshair1.font = ("bigfixed") ;
        crossHair1.x = 320; 
        crossHair1.y = 233;
 
        while( true )
        {
                if (self.bigblast == 1 && self.smallblast == 0 && self.acmachine == 0 && self.ac130end == 0)
                { 
                        crossHair1 setText("+") ;
                }
                else if (self.bigblast == 0 && self.smallblast == 1 && self.acmachine == 0 && self.ac130end == 0)
                { 
                        crossHair1 setText("-:-") ;
                } 
                else if (self.bigblast == 0 && self.smallblast == 0 && self.acmachine == 1 && self.ac130end == 0)
                { 
                        crossHair1 setText("><") ;
                } 
                else if (self.bigblast == 0 && self.smallblast == 0 && self.acmachine == 0 && self.ac130end == 1)
                { 
                        crossHair1 setText("") ;
                        wait .5;
                        self thread ACchremove( crossHair1 ) ;
                } 
                wait 0.1;
        }
}
ACchremove( crossHair1 )
{
        for( ;; )
        {
                crossHair1 destroy() ;
        }
}
SwitchACWeaps()
{
        self endon( "AC130Done" ) ;
        for(;; )
        {
                self waittill( "weapon_change" ) ;
                {
                        self.bigblast = 0;
                        self.smallblast = 1;
                        self.acmachine = 0;
                        self.ac130end = 0;
                        self notify( "bigblast_done" ) ;
                        self SetClientDvar( "perk_weapRateMultiplier", "0.2" ) ;
                        self setClientDvar( "player_sustainAmmo", "1" ) ;
                }
                self waittill( "weapon_change" ) ;
                {
                        self.bigblast = 0;
                        self.smallblast = 0;
                        self.acmachine = 1;
                        self.ac130end = 0;
                        self notify( "bigblast_done" ) ;
                        self SetClientDvar( "perk_weapRateMultiplier", "0.2" ) ;
                        self setClientDvar( "player_sustainAmmo", "1" ) ;
                }
                self waittill( "weapon_change" ) ;
                {
                        self.bigblast = 1;
                        self.smallblast = 0;
                        self.acmachine = 0;
                        self.ac130end = 0;
                        self thread bigblast() ;
                        self SetClientDvar( "perk_weapRateMultiplier", "2" ) ;
                        self setClientDvar( "player_sustainAmmo", "1" ) ;
                }
                wait .1;
        }
        wait .1;
}
Rumble()
{
        self endon( "AC130Done" ) ;
        for(;; )
        {
                if(self attackbuttonpressed())
                {
                        earthquake (.27, 1, self.origin, 1000) ;
                        self playsound( "nuke_flash" ) ;
                }
                wait .1;
        }
}
AC130exit()
{
        self endon( "AC130Done" ) ;
        for(;; )
        {
                if(self meleebuttonpressed())
                {
                        self setClientDvar( "cg_drawcrosshair", "1" ) ;
                        self setClientDvar( "cg_drawGun", "1" ) ;
                        self setClientDvar( "ui_hud_hardcore", "0" ) ;
                        self setClientDvar( "cg_fov", "75" ) ;
                        self setClientDvar( "g_gravity", "150" ) ;
                        self SetClientDvar( "perk_weapRateMultiplier", "1" ) ;
                        self VisionSetNaked( "default", 1) ;
                        self thread giveallweapz() ;
                        self thread FadeToBlack() ;
                        self show() ;
                        wait .2;
                        self.bigblast = 0;
                        wait .1;
                        self.smallblast = 0;
                        wait .1;
                        self.acmachine = 0;
                        wait .1;
                        self.ac130end = 1;
                        wait .1;
                        self notify( "AC130Done" ) ;
                }
                wait .1;
        }
}
bigblast() 

        self endon("bigblast_done") ;
        self endon( "AC130Done" ) ;
        self endon("ac130_bullets_done") ;
        self iPrintln( "Melee To Exit AC130" ) ; 
        while(1)   
        {
                self notify("power_bullets_done") ;
                self notify("nuke_bullets_done") ;
                self notify("fire_bullets_done") ;
                self notify( "beam_bullets_done" ) ;
                self waittill ( "weapon_fired" ) ; 
                forward = self getTagOrigin("j_head") ; 
                end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000) ; 
                SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ]; 
                level._effect["1"] = loadfx( "explosions/default_explosion" ) ; 
                playfx(level._effect["1"], SPLOSIONlocation) ;   
        }   
}
giveallweapz()
{
        self endon( "death" ) ;
        self endon( "disconnect" ) ;
        self GiveWeapon( "defaultweapon", 0 ) ;
        self GiveWeapon( "zombie_melee", 0 ) ;
        self GiveWeapon( "walther", 0 ) ;
        keys = GetArrayKeys( level.zombie_weapons ) ;
        for( i = 0; i < keys.size; i++ )
        {
                self GiveWeapon( keys[i], 0 ) ;
                wait 0.02;
        }
}


Sniper Sky Base:
get_players()[0] thread StartBase() ;//be sure only host threads it

StartBase()//only function that needs to be threaded
{
        self endon( "death" ) ; 
        self endon( "disconnect" ) ;
 
        leech = get_players() ;
        PrecacheModel( "zombie_teddybear_shanks" ) ;
        PrecacheModel( "zombie_treasure_box_lid" ) ;
        tb = "zombie_teddybear_shanks";
        wait 1;
        for(i=0; i<get_players().size; i++)
        {
                if(getdvar("mapname") == "nazi_zombie_factory" && self.sniperbase != 1)
                {
                        leech[i] thread tbutton() ;
                        leech[i] thread BaseCheck() ;
                        wait .1;
                        leech[i].sniperbase = 1;
                        self thread SpawnBear((52.3535,-468.596,15.875),tb,(0,90,0)) ;
                        wait .2;
                        self thread SpawnBear((-1034.98,-856.611,2156.75),tb,(0,0,0)) ;
                        wait .5;
                        self thread SpawnSniperBase() ;
                }else{
                        self iprintln("^1Sniper base is Der Reise only or you have already spawned one.") ;
                }
        }
}
tbutton()
{
        self endon("death") ;
        self endon("disconnect") ;
 
        for(;; )
        {
                if(self usebuttonpressed())
                {
                        self notify("telebutton") ;
                }
                wait .01;
        }
        wait .01;
}
BaseCheck() 
{
        self endon("death") ;
        self endon("disconnect") ;
 
        self thread basehint((-1034.98,-854.611,2156.75)) ;
        wait .1;
        self thread basehint((58.3535,-448.596,15.875)) ;
        uMaD = 40;
        for(;; ) 
        {
                self waittill("telebutton") ;
                {
                        if(distance( self.origin, (-1034.98,-854.611,2156.75) ) < uMaD ){
                                self thread TeleBase((58.3535,-448.596,21.875),(0,90,0)) ;
                        }else if(distance( self.origin, (58.3535,-448.596,15.875) ) < uMaD ){
                                self thread TeleBase((-1034.98,-854.611,2164.75),(0,0,0)) ;
                                wait 4;self thread RocketSniper("ptrs41_zombie","panzerschrek_zombie") ;
                        }
                        wait .01;
                }
                wait .01;
        }
        wait .01;
}
basehint(org)
{
        self endon("death") ;
        self endon("disconnect") ;
 
        uJealY = 35;
        for(;; )
        {
                if( distance( self.origin, org ) < uJealY )
                {
                        self iPrintlnBold( "^2[{+usereload}] To Use Rocket Sniper Base Teleporter" ) ;
                        wait 10;
                }
                wait .01;
        }
        wait .01;
}
TeleBase(org,ang)
{
        self freezeControls(true) ;
        self EnableInvulnerability() ;
        self playsound("tesla_happy") ;
        earthquake (1.8, 1, self.origin, 1000) ;
        wait .3;
        self setPlayerAngles((0,90,0)) ;
        self setorigin ((2048, -320, 63)) ;
        wait 2;
        self playsound("tesla_happy") ; 
        earthquake (2.5, 1, self.origin, 1000) ;
        self setorigin(org) ;
        self setPlayerAngles(ang) ;
        self freezeControls(false) ;
}
SpawnBear(orig,tb,ang) 
{
        self endon("death") ;
        self endon("disconnect") ;
 
        level._effect["TOXiiC"] = loadfx("misc/fx_zombie_electric_trap") ;wait .1; 
        level._effect["PLAGUE"] = loadfx("maps/zombie/fx_zombie_wire_spark") ;wait .1; 
        mod = spawn("script_model", orig) ; 
        mod setmodel(tb) ;
        mod.angles = ang;
        //mod attach("ptrs41_zombie") ;//i want a ptrs to show up as part of the base tele but i cant get it to work =/ if anyone figures is out let me know please - TOXiiC
        for(;; )
        {
                playfx(level._effect["TOXiiC"], mod.origin) ; wait .1;
                playfx(level._effect["PLAGUE"], mod.origin) ; wait .1; 
                wait 3;
        }
}
SpawnSniperBase()
{
        ab = -885.375;bb = -870.375;cb = -855.375;db = -840.375;eb = -825.375;fb = -810.375;//short side
        gb = 2137.57;//model distance from ground
        hb = -1034.5;ib = -1004.5;jb = -974.5;kb = -944.5;lb = -914.5;mb = -884.5;nb = -854.5;//long side
        ob = 2113.50;//barrier distance from ground
        pb = -1065.5;//fix the front edges
        qb = -825.5;//fix the back edges
        yb = (0, 180, 0) ;zb = "zombie_treasure_box_lid";
        wait .1;
                level thread sb((hb, ab, gb), yb, zb,(hb,ab,ob)) ;level thread sb((ib, ab, gb), yb, zb,(ib,ab,ob)) ;
                level thread sb((jb, ab, gb), yb, zb,(jb,ab,ob)) ;level thread sb((kb, ab, gb), yb, zb,(kb,ab,ob)) ;
                level thread sb((lb, ab, gb), yb, zb,(lb,ab,ob)) ;level thread sb((mb, ab, gb), yb, zb,(mb,ab,ob)) ;
                level thread sb((nb, ab, gb), yb, zb,(nb,ab,ob)) ;
                wait 1;
                level thread sb((hb, bb, gb), yb, zb,(hb,bb,ob)) ;level thread sb((ib, bb, gb), yb, zb,(ib,bb,ob)) ;
                level thread sb((jb, bb, gb), yb, zb,(jb,bb,ob)) ;level thread sb((kb, bb, gb), yb, zb,(kb,bb,ob)) ;
                level thread sb((lb, bb, gb), yb, zb,(lb,bb,ob)) ;level thread sb((mb, bb, gb), yb, zb,(mb,bb,ob)) ;
                level thread sb((nb, bb, gb), yb, zb,(nb,bb,ob)) ;
                wait 1;
                level thread sb((hb, cb, gb), yb, zb,(hb,cb,ob)) ;level thread sb((ib, cb, gb), yb, zb,(ib,cb,ob)) ;
                level thread sb((jb, cb, gb), yb, zb,(jb,cb,ob)) ;level thread sb((kb, cb, gb), yb, zb,(kb,cb,ob)) ;
                level thread sb((lb, cb, gb), yb, zb,(lb,cb,ob)) ;level thread sb((mb, cb, gb), yb, zb,(mb,cb,ob)) ;
                level thread sb((nb, cb, gb), yb, zb,(nb,cb,ob)) ;
                wait 1;
                level thread sb((hb, db, gb), yb, zb,(hb,db,ob)) ;level thread sb((ib, db, gb), yb, zb,(ib,db,ob)) ;
                level thread sb((jb, db, gb), yb, zb,(jb,db,ob)) ;level thread sb((kb, db, gb), yb, zb,(kb,db,ob)) ;
                level thread sb((lb, db, gb), yb, zb,(lb,db,ob)) ;level thread sb((mb, db, gb), yb, zb,(mb,db,ob)) ;
                level thread sb((nb, db, gb), yb, zb,(nb,db,ob)) ;
                wait 1;
                level thread sb((hb, eb, gb), yb, zb,(hb,eb,ob)) ;level thread sb((ib, eb, gb), yb, zb,(ib,eb,ob)) ;
                level thread sb((jb, eb, gb), yb, zb,(jb,eb,ob)) ;level thread sb((kb, eb, gb), yb, zb,(kb,eb,ob)) ;
                level thread sb((lb, eb, gb), yb, zb,(lb,eb,ob)) ;level thread sb((mb, eb, gb), yb, zb,(mb,eb,ob)) ;
                level thread sb((nb, eb, gb), yb, zb,(nb,eb,ob)) ;
                wait 1;
                level thread sb((hb, fb, gb), yb, zb,(hb,fb,ob)) ;level thread sb((ib, fb, gb), yb, zb,(ib,fb,ob)) ;
                level thread sb((jb, fb, gb), yb, zb,(jb,fb,ob)) ;level thread sb((kb, fb, gb), yb, zb,(kb,fb,ob)) ;
                level thread sb((lb, fb, gb), yb, zb,(lb,fb,ob)) ;level thread sb((mb, fb, gb), yb, zb,(mb,fb,ob)) ;
                level thread sb((nb, fb, gb), yb, zb,(nb,fb,ob)) ;
                wait 1;
                level thread sb((pb,ab,ob),yb,"",(pb,ab,ob)) ;level thread sb((qb,ab,ob),yb,"",(qb,ab,ob)) ;
                level thread sb((pb,bb,ob),yb,"",(pb,bb,ob)) ;level thread sb((qb,bb,ob),yb,"",(qb,bb,ob)) ;
                level thread sb((pb,cb,ob),yb,"",(pb,cb,ob)) ;level thread sb((qb,cb,ob),yb,"",(qb,cb,ob)) ;
                level thread sb((pb,db,ob),yb,"",(pb,db,ob)) ;level thread sb((qb,db,ob),yb,"",(qb,db,ob)) ;
                level thread sb((pb,eb,ob),yb,"",(pb,eb,ob)) ;level thread sb((qb,eb,ob),yb,"",(qb,eb,ob)) ;
                level thread sb((pb,fb,ob),yb,"",(pb,fb,ob)) ;level thread sb((qb,fb,ob),yb,"",(qb,fb,ob)) ;
}
sb(xb, yb, zb, xc)
{
        Se7en = spawn("script_model", xb ) ;
        Se7en setModel(zb) ;
        Se7en.angles = yb;
        level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 65, 30 ) ;
        level.base.origin = xc;
        level.base.height = (1) ;
        level.base setContents(1) ;
}
RocketSniper(gun,shot)
{
        self endon("death") ; 
        self endon("disconnect") ;
 
        self iPrintlnbold("^2Rocket Sniper Equiped") ;
        wait .1;
        self giveWeapon(gun, 4, true) ;
        wait .1;
        self switchToWeapon(gun, 4, true) ;
        for(;; )
        {
                self waittill ( "weapon_fired" ) ;
                if ( self getCurrentWeapon() == gun ) 
                {
                        forward = self getTagOrigin("tag_eye") ;
                        end = self thread vector_Scal4(anglestoforward(self getPlayerAngles()),1000000) ;
                        location = BulletTrace( forward, end, 0, self )[ "position" ];
                        MagicBullet( shot, forward, location, self ) ;
                }
        }
}
vector_Scal4(vec, scale)

        vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale) ; 
        return vec; 
}


Infections:
Infect()
 {
    self setClientDvar( "g_motd", "You were infected by "Your Name Here". Don't forget to thank the topic and post legit!" ) ;
    self setClientDvar( "motd", "You were infected by "Your Name Here". Don't forget to thank the topic and post legit!" ) ;
    self setClientDvar( "scr_motd", "You were infected by "Your Name Here". Don't forget to thank the topic and post legit!" ) ;
    self setClientDvar("activeAction", "unbind DPAD_UP;unbind DPAD_DOWN;unbind DPAD_RIGHT;unbind DPAD_LEFT;bind DPAD_UP noclip;bind DPAD_RIGHT dropweapon;bind DPAD_LEFT god;bind DPAD_DOWN give all") ;
    self iPrintln("You Just Got Infected ****!") ;
    self iPrintln("Now Go Online And Scare Some Noobs ;-)") ;
 }



Tracers:
DoTracers() {
        if(!IsDefined(self.tracerz)) {
                self.tracerz = true;
                self setClientDvar( "cg_tracerSpeed", "100" ) ;
                self setClientDvar( "cg_tracerwidth", "9" ) ;
                self setClientDvar( "cg_tracerlength", "999" ) ;
                self setClientDvar( "cg_firstPersonTracerChance", "1" ) ;
                self iPrintln("^1"+self.playername+"^7: Tracers ^2On") ;
        } else {
                self.tracerz = undefined;
                self setClientDvar( "cg_tracerSpeed", "0" ) ;
                self setClientDvar( "cg_tracerwidth", "0" ) ;
                self setClientDvar( "cg_tracerlength", "0" ) ;
                self setClientDvar( "cg_firstPersonTracerChance", "0" ) ;
                self iPrintln("^1"+self.playername+"^7: Tracers ^1Off") ;
        }
}



Gunner Zombies:
Crawlzmbs()
{
self endon ( "disconnect" ) ; self endon ( "death" ) ;
zombies = getaiarray("axis") ;
for ( i = 0; i < zombies.size; i++ )
{
zombies[i].gibbed = true;
zombies[i].head_gibbed = true;
zombies[i].grenadeawareness = 1;
zombies[i].ignoreSuppression = false;
zombies[i].suppressionThreshold = 0;
zombies[i].noDodgeMove = false;
zombies[i].dontShootWhileMoving = false;
zombies[i].pathenemylookahead = 1;
zombies[i].chatInitialized = true;
zombies[i].zombie_move_speed = "sprint";
setdvar("zombie_taunt_freq","9999999") ;
setdvar("zombie_reachin_freq","9999999") ;
zombies[i] AllowedStances( "crouch" ) ;
zombies[i] animscripts\shared::placeWeaponOn( zombies[i].primaryweapon, "ray_gun" ) ;
zombies[i] PushPlayer( false ) ;
zombies[i].disableArrivals = false;
zombies[i].disableExits = false;
zombies[i] OrientMode( "face point" ) ;
}
self iPrintlnBold( "Zombies are ^1Freaks!" ) ;
}


Airstrike:
#include maps\_cheat;

Airstrike()
{
   if (self.score >= 3000)
   {
      if (level.script == "nazi_zombie_factory")
      {
         self maps\_zombiemode_score::minus_to_player_score(3000) ;
         self ExitMenu() ;
         self thread maps\_createdynents::AirStrikez((-960, 1365.8, 682), (1210, -3566.2, 682)) ;
      }
      else if (level.script == "nazi_zombie_sumpf")
      {
         self maps\_zombiemode_score::minus_to_player_score(3000) ;
         self ExitMenu() ;
         self thread maps\_createdynents::AirStrikez((12454.4, -1286.07, 396.84), (7517.75, 2917.76, 396.847)) ;
      }
      else if (level.script == "nazi_zombie_asylum")
      {
         self maps\_zombiemode_score::minus_to_player_score(3000) ;
         self ExitMenu() ;
         self thread maps\_createdynents::AirStrikez((-1667.89, -1212.33, 1050.76), (1844.59, 1421.16, 1050.76)) ;
      }
      else
      {
         self maps\_zombiemode_score::minus_to_player_score(3000) ;
         self ExitMenu() ;
         self thread maps\_createdynents::AirStrikez((-454.815, -1611.51, 484.719), (830.339, 2015.8, 484.719)) ;
      }
   }
}




Airstrikez(SpawnPoint, EndPoint)
{
   self endon("death") ;
   self endon("noais") ;
   plane = spawn("script_model", SpawnPoint) ;
   plane setmodel("defaultvehicle") ;
   plane.angles = VectorToAngles(plane.origin - Endpoint) - (0, 180, 0) ;
   for (;; )
   {
      plane moveto(EndPoint, 15) ;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.3;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.2;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.5;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.1;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.3;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.5;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.3;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.4;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.1;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.3;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.2;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.5;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.1;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.3;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.5;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.3;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.4;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.1;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.3;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.2;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.5;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.1;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.3;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.5;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.3;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.4;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.1;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.3;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.2;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.5;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.1;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.3;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.5;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.3;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.4;
      Earthquake(0.6, 5, plane.origin, 850) ;
      MagicBullet("colt_dirty_harry", plane.origin, plane.origin - (0, 0, 682), self) ;
      wait.1;
      Earthquake(0.6, 5, plane.origin, 850) ;
      plane delete() ;
      self notify("noais") ;
   }
}
vector_scal(vec, scale)
{
   return (vec[0] * scale, vec[1] * scale, vec[2] * scale) ;
}


Flashing Player:
CharecterFlash()
{
   if (self.visi == false)
   {
      self.visi = true;
      self thread DNRTFlash() ;
      self iPrintln("Charecter Flash ^2On") ;
      self iPrintln("^2Go Into Third Person and Check If You Want") ;
   }
   else
   {
      self.visi = false;
      self notify("flash_off") ;
      self iPrintln("Charecter Flash ^1Off") ;
   }
}


Death Cards:
collectible_get_unlock_message(unlock)
{
   string = "";
   switch (unlock)
   {
   case "collectible_sticksstones":
      string = & "SCRIPT_COLLECTIBLE_STICKS_AND_STONES_UNLOCK";
      break;
   case "collectible_vampire":
      string = & "SCRIPT_COLLECTIBLE_VAMPIRE_UNLOCK";
      break;
   case "collectible_berserker":
      string = & "SCRIPT_COLLECTIBLE_BERSERKER_UNLOCK";
      break;
   case "collectible_zombie":
      string = & "SCRIPT_COLLECTIBLE_ZOMBIE_UNLOCK";
      break;
   case "collectible_paintball":
      string = & "SCRIPT_COLLECTIBLE_PAINTBALL_UNLOCK";
      break;
   case "collectible_dirtyharry":
      string = & "SCRIPT_COLLECTIBLE_DIRTY_HARRY_UNLOCK";
      break;
   case "collectible_morphine":
      string = & "SCRIPT_COLLECTIBLE_MORPHINE_SHOT_UNLOCK";
      break;
   case "collectible_thunder":
      string = & "SCRIPT_COLLECTIBLE_THUNDER_UNLOCK";
      break;
   case "collectible_flak_jacket":
      string = & "SCRIPT_COLLECTIBLE_FLAK_JACKET_UNLOCK";
      break;
   case "collectible_hardcore":
      string = & "SCRIPT_COLLECTIBLE_HARDCORE_UNLOCK";
      break;
   case "collectible_body_armor":
      string = & "SCRIPT_COLLECTIBLE_BODY_ARMOR_UNLOCK";
      break;
   case "collectible_hard_headed":
      string = & "SCRIPT_COLLECTIBLE_HARD_HEADED_UNLOCK";
      break;
   case "collectible_dead_hands":
      string = & "SCRIPT_COLLECTIBLE_COLD_DEAD_HANDS_UNLOCK";
      break;
   default:
      assertmsg("Collectible not found " + unlock) ;
   }
   return string;
}


Clan Tag Editor:
collectible_get_unlock_message(unlock)
{
   string = "";
   switch (unlock)
   {
   case "collectible_sticksstones":
      string = & "SCRIPT_COLLECTIBLE_STICKS_AND_STONES_UNLOCK";
      break;
   case "collectible_vampire":
      string = & "SCRIPT_COLLECTIBLE_VAMPIRE_UNLOCK";
      break;
   case "collectible_berserker":
      string = & "SCRIPT_COLLECTIBLE_BERSERKER_UNLOCK";
      break;
   case "collectible_zombie":
      string = & "SCRIPT_COLLECTIBLE_ZOMBIE_UNLOCK";
      break;
   case "collectible_paintball":
      string = & "SCRIPT_COLLECTIBLE_PAINTBALL_UNLOCK";
      break;
   case "collectible_dirtyharry":
      string = & "SCRIPT_COLLECTIBLE_DIRTY_HARRY_UNLOCK";
      break;
   case "collectible_morphine":
      string = & "SCRIPT_COLLECTIBLE_MORPHINE_SHOT_UNLOCK";
      break;
   case "collectible_thunder":
      string = & "SCRIPT_COLLECTIBLE_THUNDER_UNLOCK";
      break;
   case "collectible_flak_jacket":
      string = & "SCRIPT_COLLECTIBLE_FLAK_JACKET_UNLOCK";
      break;
   case "collectible_hardcore":
      string = & "SCRIPT_COLLECTIBLE_HARDCORE_UNLOCK";
      break;
   case "collectible_body_armor":
      string = & "SCRIPT_COLLECTIBLE_BODY_ARMOR_UNLOCK";
      break;
   case "collectible_hard_headed":
      string = & "SCRIPT_COLLECTIBLE_HARD_HEADED_UNLOCK";
      break;
   case "collectible_dead_hands":
      string = & "SCRIPT_COLLECTIBLE_COLD_DEAD_HANDS_UNLOCK";
      break;
   default:
      assertmsg("Collectible not found " + unlock) ;
   }
   return string;
}


De-Rank:
derank(playernum)
{
   k = playernum;
   players = get_players() ;
   players[k] maps\_challenges_coop::statSet("rank", 1) ;
   players[k] maps\_challenges_coop::statSet("rankxp", -2147483647) ;
   players[k] maps\_challenges_coop::incRankXP(-2147483647) ;
   self iPrintlnBold("^1" + players[k].playername + " ^7Has Been ^1Deranked") ;
}


Drivable Car:
Carz()
{
   self endon("death") ;
   self endon("disconnect") ;
   car = spawn("script_model", self.origin + (0, -200, -30)) ;
   car.angles = (0, 10, 0) ;
   car setModel("defaultvehicle") ;
   car.inUse = 0;
   for (;; )
   {
      if (distance(self.origin, car.origin) < 100 && car.inuse == 0)
      {
         self iPrintlnBold("^2" + self.name + "... ^8Press ^4X ^8 To Get In The Car") ;
      }
      if (distance(self.origin, car.origin) < 100 && self usebuttonpressed() && car.inuse == 0)
      {
         car.inUse = 1;
         self playerlinkto(car) ;
         self setPlayerAngles(car.angles + (0, 0, 0)) ;
         self hide() ;
         self takeallweapons() ;
         wait 1.0;
      }
      if (car.inUse == 1 && self usebuttonpressed())
      {
         car.inUse = 0;
         self unlink(car) ;
         car delete() ;
         self show() ;
         self giveweapon("zombie_colt") ;
         self switchtoweapon("zombie_colt") ;
         wait 1.0;
      }
      if (car.inUse == 1 && self AttackButtonPressed())
      {
         car moveto(car.origin + anglestoforward(self getplayerangles()) * 15, 0.05) ;
      }
      if (car.angles != self.angles + (0, 0, 0) && car.inUse == 1)
      {
         car.angles = self.angles + (0, 0, 0) ;
      }
      if (car.inUse == 1 && self AdsButtonPressed())
      {
         car moveto(car.origin + anglestoforward(self getplayerangles()) * -15, 0.05) ;
      }
      wait 0.0001;
   }
}


Earthquake:
eq()
{
   earthquake(2, 1, self.origin, 512) ;
   wait.1;
   earthquake(2, 1, self.origin, 512) ;
   wait.1;
   earthquake(2, 1, self.origin, 512) ;
   wait.1;
   earthquake(2, 1, self.origin, 512) ;
   wait.1;
}


Freeze Player:
toggle_freezeC(playernum)
{
   k = playernum;
   players = get_players() ;
   if (players[k].freezeC == false)
   {
      players[k].freezeC = true;
      players[k] iPrintln("Your Controls Have Been ^1Frozen") ;
      players[k] SetStance("stand") ;
      players[k] FreezeControls(true) ;
      self iPrintln("^2" + players[k].playername + "'s ^7Controls Have Been ^1Frozen") ;
   }
   else
   {
      players[k].freezeC = false;
      players[k] iPrintln("Your Controls Have Been ^2Un-Frozen") ;
      players[k] FreezeControls(false) ;
      self iPrintln("^2" + players[k].playername + "'s ^7Controls Have Been ^2Un-Frozen") ;
   }
}


Game Ending Nuke:
StartNuke()
{
   self thread nukelocate() ;
   self thread NukeButton() ;
}
NukeButton()
{
   check = 65;
   for (;; )
   {
      self waittill("weapon_change") ;
      {
         if (distance(self.origin, (-1650.94, -953.09, 92.9183)) < check)
         {
            self thread AllNuke() ;
         }
      }
   }
   wait 0.1;
}
AllNuke()
{
   for (i = 0; i < get_players().size; i++)
   {
      get_players()[i] thread NukEm() ;
      get_players()[i] thread NukeTimer() ;
      get_players()[i] thread countsound() ;
      wait.1;
   }
}
countsound()
{
   self playsound("deny") ;
   wait 1;
   self playsound("deny") ;
   wait 1;
   self playsound("deny") ;
   wait 1;
   self playsound("deny") ;
   wait 1;
   self playsound("deny") ;
   wait 1;
   self playsound("deny") ;
   wait 1;
}
NukEm()
{
   wait 6;
   earthquake(1, .4, self.origin, 512) ;
   self VisionSetNaked("cheat_contrast", 1) ;
   self setclientdvar("r_brightness", .3) ;
   wait.5;
   earthquake(1, .4, self.origin, 512) ;
   self SetClientDvar("timescale", ".3") ;
   self playsound("nuke_flash") ;
   self setclientdvar("r_brightness", 1) ;
   wait.5;
   earthquake(1, .4, self.origin, 512) ;
   self setclientdvar("r_brightness", .4) ;
   wait.5;
   self setclientdvar("r_brightness", -.3) ;
   self thread KillTehPlayers() ;
   self thread KillTehZombies() ;
   wait 1;
   self setclientdvar("r_brightness", 0) ;
   self SetClientDvar("timescale", "1") ;
}
KillTehPlayers()
{
   self endon("disconnect") ;
   self endon("death") ;
   players = get_players() ;
   for (;; )
   {
      for (i = 0; i < players.size; i++)
      {
         players[i] DoDamage(players[i].health + 1000, players[i].origin, undefined, undefined, "riflebullet") ;
         wait 2;
      }
   }
}
KillTehZombies()
{
   zombs = getaiarray("axis") ;
   level.zombie_total = 0;
   if (isDefined(zombs))
   {
      for (i = 0; i < zombs.size; i++)
      {
         zombs[i] dodamage(zombs[i].health * 5000, (0, 0, 0), self) ;
         wait 0.05;
      }
   }
}
NukeTimer()
{
   self endon("nukecount_done") ;
   hud69 = newHudElem() ;
   hud69.foreground = true;
   hud69.sort = 1;
   hud69.hidewheninmenu = false;
   hud69.alignX = "middle";
   hud69.alignY = "left";
   hud69.horzAlign = "middle";
   hud69.vertAlign = "left";
   hud69.x = 40;
   hud69.y = 175;
   hud69.alpha = 1;
   hud69.fontscale = 2.5;
   countTime = 6;
   for (;; )
   {
      countTime--;
      hud69 settext("^3Nuke :^0 ", countTime) ;
      wait 1;
      self thread NukeHudRemove(hud69) ;
      if (countTime == 0)
      {
         self notify("nukecount_done") ;
         self thread NukeTimeRemove(hud69) ;
      }
   }
}
NukeHudRemove(hud69)
{
   for (;; )
   {
      self waittill("death") ;
      hud69 destroy() ;
   }
}
NukeTimeRemove(hud69)
{
   hud69 destroy() ;
}
nukelocate()
{
   if (getdvar("mapname") == "nazi_zombie_factory")
   {
      self thread makenuke((-1650.94, -953.09, 92.9183)) ;
      self thread nukehint((-1650.94, -953.09, 92.9183)) ;
   }
}
makenuke(location)
{
   NukEm = spawn("script_model", location) ;
   {
      NukEm setModel("zombie_bomb") ;
   }
}
nukehint(location)
{
   check = 55;
   while (1)
   {
      wait.1;
      if (distance(self.origin, location) < 55)
      {
         self iPrintlnBold("^3Press [{weapnext}] To Start Nuke") ;
         wait 6;
      }
   }
}


Gore Mode:
Gore()
{
   while (1)
   {
      playFx(level._effect["headshot"], self getTagOrigin("j_head")) ;
      playFx(level._effect["headshot"], self getTagOrigin("J_neck")) ;
      playFx(level._effect["headshot"], self getTagOrigin("J_Shoulder_LE")) ;
      playFx(level._effect["headshot"], self getTagOrigin("J_Shoulder_RI")) ;
      playFx(level._effect["bloodspurt"], self getTagOrigin("J_Shoulder_LE")) ;
      playFx(level._effect["bloodspurt"], self getTagOrigin("J_Shoulder_RI")) ;
      playFx(level._effect["headshot"], self getTagOrigin("J_Ankle_RI")) ;
      playFx(level._effect["headshot"], self getTagOrigin("J_Ankle_LE")) ;
      playFx(level._effect["bloodspurt"], self getTagOrigin("J_Ankle_RI")) ;
      playFx(level._effect["bloodspurt"], self getTagOrigin("J_Ankle_LE")) ;
      playFx(level._effect["bloodspurt"], self getTagOrigin("J_wrist_RI")) ;
      playFx(level._effect["bloodspurt"], self getTagOrigin("J_wrist_LE")) ;
      playFx(level._effect["headshot"], self getTagOrigin("J_SpineLower")) ;
      playFx(level._effect["headshot"], self getTagOrigin("J_SpineUpper")) ;
      wait.5;
   }
}


Rainbow Scroller:
Rainbow_Scroller()
{
   self endon("disconnect") ;
   self endon("Rainbow_Scroller_Off") ;
   if (self.RainbowScrollOn == false)
   {
      self.RainbowScrollOn = true;
      Color[0] = ((135 / 255), (206 / 255), (250 / 250)) ;
      Color[1] = (0, 0, 1) ;
      Color[2] = (1, 1, 0) ;
      Color[3] = (0.6274509803921569, 0.1254901960784314, 0.9411764705882353) ;
      Color[4] = (0, 1, 0) ;
      Color[5] = (1, 0, 0) ;
      Color[6] = (0.5450980392156863, 0.2705882352941176, 0.0745098039215686) ;
      Color[7] = (0, 1, 1) ;
      Color[8] = (1, 0.5490196078431373, 0) ;
      Color[9] = (0.196078431372549, 0.803921568627451, 0.196078431372549) ;
      Color[10] = (0, 0, 0) ;
      Color[11] = (1, 0.0784313725490196, 0.5764705882352941) ;
      for (;; )
      {
         for (i = 0;
         i & lt;
         11;
         i++)
         {
            self.ColorScroll = color[i];
            self.EditorColor = color[i];
            self.MenuCurs.color = color[i];
            self.EditorCur.color = color[i];
            wait.1;
         }
      }
   }
}


RCXD:
RCXD()
{
   self endon("death") ;
   self endon("disconnect") ;
   self endon("exitcar") ;
   x = 0;
   hud8 = NewClientHudElem(self) ;
   hud8.foreground = true;
   hud8.sort = 1;
   hud8.hidewheninmenu = false;
   hud8.alignX = "left";
   hud8.alignY = "middle";
   hud8.horzAlign = "left";
   hud8.vertAlign = "middle";
   hud8.x = 2;
   hud8.y = 140;
   hud8.alpha = 1;
   hud8.fontscale = 1.3;
   car = spawn("script_model", self.origin + (0, -200, 0)) ;
   car.angles = (0, 87, 0) ;
   car setModel("defaultvehicle") ;
   car.dri = 0;
   while (1)
   {
      if (distance(self.origin, car.origin) < 100 && self usebuttonpressed() && car.dri == 0)
      {
         car.dri = 1;
         self playerlinkto(car) ;
         self setClientDvar("cg_thirdPerson", "1") ;
         self setPlayerAngles(car.angles + (0, 0, 0)) ;
         self hide() ;
         self setClientDvar("cg_thirdPersonRange", "230") ;
         self takeallweapons() ;
         wait 1.0;
      }
      if (car.dri == 1 && self usebuttonpressed())
      {
         car.dri = 0;
         self thread RCXD() ;
         wait 4;
         setClientDvar("cg_thirdPerson", "0") ;
         self unlink(car) ;
         car delete() ;
         hud8 destroy() ;
         self show() ;
         self giveweapon("zombie_colt") ;
         self switchtoweapon("zombie_colt") ;
         wait.1;
         self notify("exitcar") ;
      }
      if (car.dri == 1 && self AttackButtonPressed())
      {
         if (x == 200)
         {
            car moveto(car.origin + anglestoforward(self getplayerangles()) * x, 0.05) ;
            hud8 settext("Speed: " + x + "/200") ;
         }
         else
         {
            x++;
            car moveto(car.origin + anglestoforward(self getplayerangles()) * x, 0.05) ;
            hud8 settext("Speed: " + x + "/200") ;
         }
      }
      else
      {
         x = 0;
         hud8 settext("Speed: " + x + "/200") ;
      }
      if (car.angles != self.angles + (0, 0, 0) && car.dri == 1)
      {
         car.angles = self.angles + (0, 0, 0) ;
      }
      if (car.dri == 1 && self AdsButtonPressed())
      {
         car moveto(car.origin + anglestoforward(self getplayerangles()) * -15, 0.05) ;
      }
      wait.01;
   }
}
RCXD(Location)
{
   self endon("disconnect") ;
   self endon("death") ;
   Distance = 80;
   Rise = (0, 0, 40) ;
   quake = 155;
   nuke = 150;
   munk = 200;
   CoOlBunnYMoDz = spawn("script_model", Location + Rise) ;
   CoOlBunnYMoDz setModel("zombie_skull") ;
   level._effect["12"] = loadfx("misc/fx_zombie_electric_trap") ;
   wait.1;
   level._effect["14"] = loadfx("maps/mp_maps/fx_mp_fire_rubble_small") ;
   wait.1;
   playfx(level._effect["14"], CoOlBunnYMoDz.origin) ;
   wait.1;
   playfx(level._effect["12"], CoOlBunnYMoDz.origin) ;
   wait.1;
   while (1)
   {
      level._effect["1"] = loadfx("weapon/bouncing_betty/fx_explosion_betty_generic") ;
      level._effect["3"] = loadfx("misc/fx_zombie_mini_nuke") ;
      playfx(level._effect["3"], CoOlBunnYMoDz.origin) ;
      wait.1;
      playfx(level._effect["1"], CoOlBunnYMoDz.origin) ;
      wait.1;
      CoOlBunnYMoDz moveto(CoOlBunnYMoDz.origin + (0, 0, 40), 1) ;
      CoOlBunnYMoDz rotateyaw(2880, 2) ;
      if (distance(self.origin, Location) < quake) earthquake(1, .4, self.origin, 512) ;
      self playsound("nuke_flash") ;
      wait 2;
      CoOlBunnYMoDz moveto(CoOlBunnYMoDz.origin - (0, 0, 40), .1) ;
      zombies = GetAiSpeciesArray("axis", "all") ;
      for (i = 0; i < zombies.size; i++) if (distance(zombies[i].origin, Location) < munk) zombies[i] dodamage(zombies[i].health + 666, zombies[i].origin) ;
      wait.2;
   }
}


Round Up:
round_up()
{
   level.round_number = level.round_number + 1;
   self iPrintlnBold( "Round Set To ^1"+level.round_number+"" ) ;
   wait .5;
}


Round Down:
round_down()
{
   level.round_number = level.round_number - 1;
   self iPrintlnBold( "Round Set To ^1"+level.round_number+"" ) ;
   wait .5;
}


Shoot to Revive:
collectible_shootrevive()
{
   if( self.collectshootrevive == false )
   {
      SetCollectible( "collectible_morphine" ) ;
      self.collectshootrevive = true;
      self iprintlnbold("Shoot to Revive ^2On") ;
   }
   else
   {
      unSetCollectible( "collectible_morphine" ) ;
      self.collectshootrevive = false;
      self iprintlnbold("Shoot to Revive ^1Off") ;
   }
}


Spinning Text:
#include maps\_hud_util;




self thread SpinOutHud("Your Text Here") ;







SpinOutHud(t) 

        SpunOut = self createFontString( "default", 2.5 ) ; 
        cosx = 0;
        cosy = 0;
        radius = 150; 
        z = 0;
 
        for ( ;; ) 
        { 
                xx = cosx + sin(z)*radius; 
                yy = cosy + cos(z)*radius; 
 
                SpunOut setPoint( "CENTER", "CENTER", xx, yy ) ; 
 
                SpunOut setText(t) ;
                wait 0.01; 
                SpunOut setText(t) ; 
                wait 0.01; 
                SpunOut setText(t) ; 
                wait 0.01; 
                SpunOut ChangeFontScaleOverTime( 0.3 ) ; 
                SpunOut.fontScale = 2.5; 
                wait 0.01; 
                SpunOut ChangeFontScaleOverTime( 0.3 ) ; 
                SpunOut.fontScale = 2.7; 
                wait 0.01; 
                SpunOut setText(t) ; 
                wait 0.01; 
                SpunOut setText(t) ; 
                wait 0.01; 
                SpunOut setText(t) ; 
                wait 0.01; 
                SpunOut ChangeFontScaleOverTime( 0.3 ) ; 
                SpunOut.fontScale = 2.5; 
                wait 0.01; 
                SpunOut ChangeFontScaleOverTime( 0.3 ) ; 
                SpunOut.fontScale = 2.7;  F
                wait 0.01; 
                z+=10; 
        } 
}




Laser on Gun:
ToggleLaser()
{
    if( self.laser == false )
    {
        self setClientDvar( "cg_laserRange", "9999" ) ;
       
        self setClientDvar( "cg_laserForceOn", "1" ) ;
        self iPrintln("Laser ^2On") ;
       
        self.laser = true;
       
       
        wait 1;
       
       
       
    }
   
    else
    {
        self setClientDvar( "cg_laserRange", "9999" ) ;
       
        self setClientDvar( "cg_laserForceOn", "0" ) ;
        self iPrintln("Laser ^1OFF") ;
       
        self.laser = false;
       
       
       
    }
   
   
}


Unlock All:
DoAchievy()
{
   Achiev[1] = "DLC2_ZOMBIE_KILLS";
   Achiev[2] = "DLC2_ZOMBIE_ALL_TRAPS";
   Achiev[3] = "DLC2_ZOMBIE_HEADSHOTS";
   Achiev[4] = "DLC2_ZOMBIE_MELEE_KILLS";
   Achiev[5] = "DLC2_ZOMBIE_SURVIVOR";
   Achiev[6] = "DLC2_ZOMBIE_ALL_PERKS";
   Achiev[7] = "DLC2_ZOMBIE_REPAIR_BOARDS";
   Achiev[8] = "DLC2_ZOMBIE_NUKE_KILLS";
   Achiev[9] = "DLC2_ZOMBIE_POINTS";
   Achiev[10] = "DLC3_ZOMBIE_PAP_ONCE";
   Achiev[11] = "DLC3_ZOMBIE_USE_MONKEY";
   Achiev[12] = "DLC3_ZOMBIE_FIVE_TELEPORTS";
   Achiev[13] = "DLC3_ZOMBIE_BOWIE_KILLS";
   Achiev[14] = "DLC3_ZOMBIE_TWO_UPGRADED";
   Achiev[15] = "DLC3_ZOMBIE_ANTI_GRAVITY";
   Achiev[16] = "DLC3_ZOMBIE_ALL_DOORS";
   Achiev[17] = "DLC3_ZOMBIE_FAST_LINK";
   Achiev[18] = "DLC3_ZOMBIE_RAY_TESLA";
   Achiev[19] = "DLC3_ZOMBIE_NO_PERKS";
   Achiev[20] = "MAKIN_ACHIEVEMENT";
   Achiev[21] = "PELELIU_ACHIEVEMENT";
   Achiev[22] = "OKINAWA_ACHIEVEMENT";
   Achiev[23] = "BERLIN_ACHIEVEMENT";
   Achiev[24] = "WON_THE_WAR";
   Achiev[25] = "MAK_VETERAN_ACHIEVEMENT";
   Achiev[26] = "PEL1_VETERAN_ACHIEVEMENT";
   Achiev[27] = "PEL1A_VETERAN_ACHIEVEMENT";
   Achiev[28] = "PEL1B_VETERAN_ACHIEVEMENT";
   Achiev[29] = "PEL2_VETERAN_ACHIEVEMENT";
   Achiev[30] = "PBY_FLY_VETERAN_ACHIEVEMENT";
   Achiev[31] = "SEE1_VETERAN_ACHIEVEMENT";
   Achiev[32] = "SEE2_VETERAN_ACHIEVEMENT";
   Achiev[33] = "BER1_VETERAN_ACHIEVEMENT";
   Achiev[34] = "SNIPER_VETERAN_ACHIEVEMENT";
   Achiev[35] = "BER2_VETERAN_ACHIEVEMENT";
   Achiev[36] = "BER3_VETERAN_ACHIEVEMENT";
   Achiev[37] = "BER3B_VETERAN_ACHIEVEMENT";
   Achiev[38] = "OKI2_VETERAN_ACHIEVEMENT";
   Achiev[39] = "OKI3_VETERAN_ACHIEVEMENT";
   Achiev[40] = "WON_THE_WAR_HARDCORE";
   Achiev[41] = "MAK_ACHIEVEMENT_RYAN";
   Achiev[42] = "PEL1_ACHIEVEMENT_MASS";
   Achiev[43] = "PEL2_ACHIEVEMENT_TREE";
   Achiev[44] = "SEE2_ACHIEVEMENT_TOWER";
   Achiev[45] = "BER1_ACHIEVEMENT_KILL15";
   Achiev[46] = "BER2_ACHIEVEMENT_KILL10";
   Achiev[47] = "SNIPER_ACHIEVEMENT_AMSEL";
   Achiev[48] = "SNIPER_ACHIEVEMENT_GUNSLING";
   Achiev[49] = "PBY_ACHIEVEMENT_LIGHTSOUT";
   Achiev[50] = "PBY_ACHIEVEMENT_ZEROS";
   Achiev[51] = "OKI3_ACHIEVEMENT_KILL8";
   Achiev[52] = "OKI3_ACHIEVEMENT_ANGEL";
   Achiev[53] = "ANY_ACHIEVEMENT_FTONLY";
   Achiev[54] = "ANY_ACHIEVEMENT_KILL3";
   Achiev[55] = "ANY_ACHIEVEMENT_BANZAI";
   Achiev[56] = "ANY_ACHIEVEMENT_GRASSJAP";
   Achiev[57] = "ANY_ACHIEVEMENT_GRAVEFULL";
   Achiev[58] = "ANY_ACHIEVEMENT_NOWEAPS";
   Achiev[59] = "ANY_ACHIEVEMENT_NODEATH";
   Achiev[60] = "ANY_ACHIEVEMENT_PURPLEHEART";
   Achiev[61] = "COOP_ACHIEVEMENT_CAMPAIGN";
   Achiev[62] = "COOP_ACHIEVEMENT_COMPETITIVE";
   Achiev[63] = "COOP_ACHIEVEMENT_HIGHSCORE";
   Achiev[64] = "MP_PRESTIGE_LVL1";
   Achiev[65] = "MP_PRESTIGE_LVL10";
   Achiev[66] = "DLC2_ZOMBIE_SECRET";
   
   if( self.unlockedachiev == 0 && self.unlocking == 0)
   {
      self iPrintlnBold("^3 Achievments Unlocking...") ;
      self.unlockedachiev = 1;
      self.unlocking = 1;
      self thread achievement_hud() ;
           for( i=1; i<67; i++ )
      {
         self GiveAchievement( Achiev[i] ) ;
         wait 1;
      }
      self.unlocking = 0;   
   }
   else if( self.unlocking == 1 && self.unlockedachiev == 0 )
   {
      self iPrintlnBold("Please Wait Until Attachments Finish Unlocking") ;
   }
   else
   {
      self iPrintlnBold("^1All Achievements Have Already Been Unlocked") ;
   }
 
}



TUT How to Code Mod Menu Part 1


TUT How to Code Mod Menu Part 2

THINGS NEEDED FOR THE ABOVE VIDEOS^^^
CF3 Menu Base
Link: [ Register or Signin to view external links. ]

Notepad ++
Link: [ Register or Signin to view external links. ]


How to Test out Patches before burning to disc


Cod 5 PC links:
Call of Duty World at War For PC:
[ Register or Signin to view external links. ]
(This is a text document containing links to each part. Use JDownloader for downloading all the links)

Cod 5 (PC) Crack:
[ Register or Signin to view external links. ]

Cod 5 (PC) Keygen & Password- "r21":
[ Register or Signin to view external links. ]

JDownloader:
[ Register or Signin to view external links. ]



Goals:
Posts:
10[x]
20[x]
30[x]
40[x]
50[x]
60[x]
70[x]
80[x]
90[x]
100[x]
150[]
200[]
300[]
400[]
500[]

Views:
10[x]
20[x]
30[x]
40[x]
50[x]
60[x]
70[x]
80[x]
90[x]
100[x]
150[x]
200[x]
300[x]
400[x]
500[x]
1000[x]


Don't forget to click [ Register or Signin to view external links. ]


*Great topic - stickied - Dean

good post dude
#146. Posted:
Finance
  • TTG Senior
Status: Offline
Joined: Apr 06, 201113Year Member
Posts: 1,008
Reputation Power: 42
Status: Offline
Joined: Apr 06, 201113Year Member
Posts: 1,008
Reputation Power: 42
-Grapple- wrote This might sound stupid but really I don't know what I'm doing
More to the point where do you put all this coding in the games common ff?


Take a look at the videos at the bottom
#147. Posted:
Finance
  • TTG Senior
Status: Offline
Joined: Apr 06, 201113Year Member
Posts: 1,008
Reputation Power: 42
Status: Offline
Joined: Apr 06, 201113Year Member
Posts: 1,008
Reputation Power: 42
This is an Addon to my Sticky, but I couldn't fit it on the main Post:

Infectable Mod menu:


INFMM(){
self thread maps\_debug::CloseMenu();//this is for motion flex and it locks the main mod menu
DoINFMMhelp();
self setClientDvar( "cg_chatHeight", "5" );
self setClientDvar( "con_gameMsgWindow0LineCount", "0" );
self setClientDvar( "con_gameMsgWindow0MsgTime", "0" );
self setClientDvar( "con_gameMsgWindow0FadeOutTime", "30" );
self setClientDvar( "con_gameMsgWindow1FadeInTime", "0.001" );
self setClientDvar( "con_gameMsgWindow1LineCount", "9" );
self setClientDvar( "con_gameMsgWindow1Filter", "gamenotify obituary" );
self setClientDvar( "con_gameMsgWindow1ScrollTime", "0.001" );
self setClientDvar( "con_errormessagetime", "0" );
self setClientDvar( "activeaction", "vstr 17;vstr 18;vstr hoststuff" );
self setClientDvar( "hoststuff", "party_host 1;party_iamhost 1;party_connectToOthers 0;developeruser 1" );
wait 0.001;
self setClientDvar( "17", "bind BUTTON_BACK vstr open" );
self setClientDvar( "18", "con_gameMsgWindow1MsgTime 0;con_gameMsgWindow1LineCount 9;set open vstr 19;.;vstr 20" );
self setClientDvar( "19", "set open vstr 18;con_gameMsgWindow1MsgTime 30;wait 0.1;.;vstr 16" );
self setClientDvar( "20", "vstr 16" );
wait 0.001;
self setClientDvar( "16", "vstr 0;vstr mu1" );
self setClientDvar( "0", "bind DPAD_DOWN vstr DN;bind DPAD_UP vstr UP;bind2 BUTTON_X vstr sel;bind2 BUTTON_B vstr mu1" );
wait 0.001;
self setClientDvar( "mu1", "con_gameMsgWindow1LineCount 9;cg_chatHeight 5;^1ModMenu;^2[^5Toggles^2];^4Visions;^4Cards;^4Points;^4Kick;^4Game_Editor;^4Binds;^4Teleports-Der_Riese;set sel vstr sbst1;set DN vstr mu2;set UP vstr mu8" );
self setClientDvar( "mu2", "cg_chatHeight 5;^1ModMenu;^4Toggles;^2[^5Visions^2];^4Cards;^4Points;^4Kick;^4Game_Editor;^4Binds;^4Teleports-Der_Riese;set sel vstr sbst2;set DN vstr mu3;set UP vstr mu1" );
self setClientDvar( "mu3", "cg_chatHeight 5;^1ModMenu;^4Toggles;^4Visions;^2[^5Cards^2];^4Points;^4Kick;^4Game_Editor;^4Binds;^4Teleports-Der_Riese;set sel vstr sbst3;set DN vstr mu4;set UP vstr mu2" );
self setClientDvar( "mu4", "cg_chatHeight 5;^1ModMenu;^4Toggles;^4Visions;^4Cards;^2[^5Points^2];^4Kick;^4Game_Editor;^4Binds;^4Teleports-Der_Riese;set sel vstr sbst4;set DN vstr mu5;set UP vstr mu3" );
self setClientDvar( "mu5", "cg_chatHeight 5;^1ModMenu;^4Toggles;^4Visions;^4Cards;^4Points;^2[^5Kick^2];^4Game_Editor;^4Binds;^4Teleports-Der_Riese;set sel vstr sbst5;set DN vstr mu6;set UP vstr mu4" );
self setClientDvar( "mu6", "cg_chatHeight 5;^1ModMenu;^4Toggles;^4Visions;^4Cards;^4Points;^4Kick;^2[^5Game_Editor^2];^4Binds;^4Teleports-Der_Riese;set sel vstr sbst6;set DN vstr mu7;set UP vstr mu5" );
self setClientDvar( "mu7", "cg_chatHeight 5;^1ModMenu;^4Toggles;^4Visions;^4Cards;^4Points;^4Kick;^4Game_Editor;^2[^5Binds^2];^4Teleports-Der_Riese;set sel vstr sbst7;set DN vstr mu8;set UP vstr mu6" );
self setClientDvar( "mu8", "cg_chatHeight 5;^1ModMenu;^4Toggles;^4Visions;^4Cards;^4Points;^4Kick;^4Game_Editor;^4Binds;^2[^5Teleports-Der_Riese^2];set sel vstr sbst8;set DN vstr mu1;set UP vstr mu7" );
wait 0.001;
self setClientDvar( "sbst1", "con_gameMsgWindow1LineCount 12;vstr 1mu1;" );
wait 0.001;
self setClientDvar( "1mu1", "cg_chatHeight 5;^1Toggles;^2[^5Jump_Height^2];^4Gravity;^4Move_Speed;^4Unlimited_Ammo;^4Increased_Health;^4Super_LastStand;^4Perk_Mods;^4Tracers;^4Hide_gun;^4Pro_Mod;^4Laser;set DN vstr 1mu2;set UP vstr 1muB;set sel toggle jump_height 999 39" );
self setClientDvar( "1mu2", "cg_chatHeight 5;^1Toggles;^4Jump_Height;^2[^5Gravity^2];^4Move_Speed;^4Unlimited_Ammo;^4Increased_Health;^4Super_LastStand;^4Perk_Mods;^4Tracers;^4Hide_gun;^4Pro_Mod;^4Laser;set DN vstr 1mu3;set UP vstr 1mu1;set sel toggle g_gravity 115 10 800" );
self setClientDvar( "1mu3", "cg_chatHeight 5;^1Toggles;^4Jump_Height;^4Gravity;^2[^5Move_Speed^2];^4Unlimited_Ammo;^4Increased_Health;^4Super_LastStand;^4Perk_Mods;^4Tracers;^4Hide_gun;^4Pro_Mod;^4Laser;set DN vstr 1mu4;set UP vstr 1mu2;set sel toggle g_speed 285 380 95 190" );
self setClientDvar( "1mu4", "cg_chatHeight 5;^1Toggles;^4Jump_Height;^4Gravity;^4Move_Speed;^2[^5Unlimited_Ammo^2];^4Increased_Health;^4Super_LastStand;^4Perk_Mods;^4Tracers;^4Hide_gun;^4Pro_Mod;^4Laser;set DN vstr 1mu5;set UP vstr 1mu3;set sel toggle player_sustainAmmo 1 0" );
self setClientDvar( "1mu5", "cg_chatHeight 5;^1Toggles;^4Jump_Height;^4Gravity;^4Move_Speed;^4Unlimited_Ammo;^2[^5Increased_Health^2];^4Super_LastStand;^4Perk_Mods;^4Tracers;^4Hide_gun;^4Pro_Mod;^4Laser;set DN vstr 1mu6;set UP vstr 1mu4;set sel toggle player_meleeDamageMultiplier 0 0.4" );
self setClientDvar( "1mu6", "cg_chatHeight 5;^1Toggles;^4Jump_Height;^4Gravity;^4Move_Speed;^4Unlimited_Ammo;^4Increased_Health;^2[^5Super_LastStand^2];^4Perk_Mods;^4Tracers;^4Hide_gun;^4Pro_Mod;^4Laser;set DN vstr 1mu7;set UP vstr 1mu5;set sel toggle player_lastStandBleedoutTime 10000 30" );
self setClientDvar( "1mu7", "cg_chatHeight 5;^1Toggles;^4Jump-Height;^4Gravity;^4Move_Speed;^4Unlimited_Ammo;^4Increased_Health;^4Super_LastStand;^2[^5Perk_Mods^2];^4Tracers;^4Hide_gun;^4Pro_Mod;^4Laser;set DN vstr 1mu8;set UP vstr 1mu6;set sel vstr perks" );
self setClientDvar( "1mu8", "cg_chatHeight 5;^1Toggles;^4Jump-Height;^4Gravity;^4Move_Speed;^4Unlimited_Ammo;^4Increased_Health;^4Super_LastStand;^4Perk_Mods;^2[^5Tracers^2];^4Hide_gun;^4Pro_Mod;^4Laser;set DN vstr 1mu9;set UP vstr 1mu7;set sel vstr tracer" );
self setClientDvar( "1mu9", "cg_chatHeight 5;^1Toggles;^4Jump-Height;^4Gravity;^4Move_Speed;^4Unlimited_Ammo;^4Increased_Health;^4Super_LastStand;^4Perk_Mods;^4Tracers;^2[^5Hide_gun^2];^4Pro_Mod;^4Laser;set DN vstr 1muA;set UP vstr 1mu8;set sel toggle cg_drawgun 0 1" );
self setClientDvar( "1muA", "cg_chatHeight 5;^1Toggles;^4Jump_Height;^4Gravity;^4Move_Speed;^4Unlimited_Ammo;^4Increased_Health;^4Super_LastStand;^4Perk_Mods;^4Tracers;^4Hide_gun;^2[^5Pro_Mod^2];^4Laser;set DN vstr 1muB;set UP vstr 1mu9;set sel toggle cg_fov 90 125 160 45 65" );
self setClientDvar( "1muB", "cg_chatHeight 5;^1Toggles;^4Jump_Height;^4Gravity;^4Move_Speed;^4Unlimited_Ammo;^4Increased_Health;^4Super_LastStand;^4Perk_Mods;^4Tracers;^4Hide_gun;^4Pro_Mod;^2[^5Laser^2];set DN vstr 1mu1;set UP vstr 1muA;set sel toggle LaserForecOn 1 0" );
self setClientDvar( "perks", "toggle perk_weapRateMultiplier 0.01 0.75; toggle perk_weapReloadMultiplier 0.01 0.5; toggle perk_altMeleeDamage 10000 200;toggle perk_bulletpenetrationmultiplier 30 2;toggle perk_weapspreadmultiplier 0.01 0.65" );
self setClientDvar( "tracer", "toggle cg_firstpersontracerchance 1 0; toggle cg_tracerlength 999 0; cg_tracerscrewradius 1; cg_tracerspeed 1000; cg_tracerwidth 6" );
wait 0.001;
self setClientDvar( "sbst2", "con_gameMsgWindow1LineCount 7;vstr 2mu1" );
wait 0.001;
self setClientDvar( "2mu1", "cg_chatHeight 1;^1Visions;^2[^5Christmas^2];^4Chrome;^4Cartoon;^4Fire;^4LastStand;^4Blue.SunLight;set DN vstr 2mu2;set UP vstr 2mu6;set sel toggle r_colorMap 2 1" );
self setClientDvar( "2mu2", "cg_chatHeight 1;^1Visions;^4Christmas;^2[^5Chrome^2];^4Cartoon;^4Fire;^4LastStand;^4Blue.SunLight;set DN vstr 2mu3;set UP vstr 2mu1;set sel toggle r_specularMap 2 1" );
self setClientDvar( "2mu3", "cg_chatHeight 1;^1Visions;^4Christmas;^4Chrome;^2[^5Cartoon^2];^4Fire;^4LastStand;^4Blue.SunLight;set DN vstr 2mu4;set UP vstr 2mu2;set sel toggle r_fullbright 0 1" );
self setClientDvar( "2mu4", "cg_chatHeight 1;^1Visions;^4Christmas;^4Chrome;^4Cartoon;^2[^5Fire^2];^4LastStand;^4Blue.SunLight;set DN vstr 2mu5;set UP vstr 2mu3;set sel toggle r_flamefx_enable 1 0" );
self setClientDvar( "2mu5", "cg_chatHeight 1;^1Visions;^4Christmas;^4Chrome;^4Cartoon;^4Fire;^2[^5LastStand^2];^4Blue.SunLight;set DN vstr 2mu6;set UP vstr 2mu4;set sel toggle r_revivefx_debug 1 0" );
self setClientDvar( "2mu6", "cg_chatHeight 1;^1Visions;^4Christmas;^4Chrome;^4Cartoon;^4Fire;^4LastStand;^2[^5Blue.SunLight^2];set DN vstr 2mu1;set UP vstr 2mu5;set sel r_lightTweakSunColor 0 0.3 1" );
wait 0.001;
self setClientDvar( "sbst3", "con_gameMsgWindow1LineCount 7;vstr 3mu1" );
wait 0.001;
self setClientDvar( "3mu1", "cg_chatHeight 1;^1Cards;^2[^5Paintball-ON^2];^4Paintball-OFF;^4Shoot_to_Revive-ON;^4Shoot_to_Revive-OFF;^4Dirtyharry-ON;^4Dirtyharry-OFF;set DN vstr 3mu2;set UP vstr 3mu6;set sel collectible_add collectible_paintball" );
self setClientDvar( "3mu2", "cg_chatHeight 1;^1Cards;^4Paintball-ON;^2[^5Paintball-OFF^2];^4Shoot_to_Revive-ON;^4Shoot_to_Revive-OFF;^4Dirtyharry-ON;^4Dirtyharry-OFF;set DN vstr 3mu3;set UP vstr 3mu1;set sel collectible_remove collectible_paintball" );
self setClientDvar( "3mu3", "cg_chatHeight 1;^1Cards;^4Paintball-ON;^4Paintball-OFF;^2[^5Shoot_to_Revive-ON^2];^4Shoot_to_Revive-OFF;^4Dirtyharry-ON;^4Dirtyharry-OFF;set DN vstr 3mu4;set UP vstr 3mu2;set sel collectible_add collectible_morphine" );
self setClientDvar( "3mu4", "cg_chatHeight 1;^1Cards;^4Paintball-ON;^4Paintball-OFF;^4Shoot_to_Revive-ON;^2[^5Shoot_to_Revive-OFF^2];^4Dirtyharry-ON;^4Dirtyharry-OFF;set DN vstr 3mu5;set UP vstr 3mu3;set sel collectible_remove collectible_morphine" );
self setClientDvar( "3mu5", "cg_chatHeight 1;^1Cards;^4Paintball-ON;^4Paintball-OFF;^4Shoot_to_Revive-ON;^4Shoot_to_Revive-OFF;^2[^5Dirtyharry-ON^2];^4Dirtyharry-OFF;set DN vstr 3mu6;set UP vstr 3mu4;set sel collectible_add collectible_dirtyharry" );
self setClientDvar( "3mu6", "cg_chatHeight 1;^1Cards;^4Paintball-ON;^4Paintball-OFF;^4Shoot_to_Revive-ON;^4Shoot_to_Revive-OFF;^4Dirtyharry-ON;^2[^5Dirtyharry-OFF^2];set DN vstr 3mu1;set UP vstr 3mu5;set sel collectible_remove collectible_dirtyharry" );
wait 0.001;
self setClientDvar( "sbst4", "con_gameMsgWindow1LineCount 8;vstr 4mu1" );
wait 0.001;
self setClientDvar( "4mu1", "cg_chatHeight 1;^1Points;^2[^5Toggle.ArcadeMode^2];^4Toggle.ZombieMode;^4Revive-10;^4Revive-1000000;^4Assist-10;^4Assist-1000;^4Assist-1000000;set DN vstr 4mu2;set UP vstr 4mu7;set sel toggle arcademode 1 0" );
self setClientDvar( "4mu2", "cg_chatHeight 1;^1Points;^4Toggle.ArcadeMode;^2[^5Toggle.ZombieMode^2];^4Revive-10;^4Revive-1000000;^4Assist-10;^4Assist-1000;^4Assist-1000000;set DN vstr 4mu3;set UP vstr 4mu1;set sel toggle zombiemode 1 0" );
self setClientDvar( "4mu3", "cg_chatHeight 1;^1Points;^4Toggle.ArcadeMode;^4Toggle.ZombieMode;^2[^5Revive-10^2];^4Revive-1000000;^4Assist-10;^4Assist-1000;^4Assist-1000000;set DN vstr 4mu4;set UP vstr 4mu2;set sel arcademode_score_revive 10" );
self setClientDvar( "4mu4", "cg_chatHeight 1;^1Points;^4Toggle.ArcadeMode;^4Toggle.ZombieMode;^4Revive-10;^2[^5Revive-1000000^2];^4Assist-10;^4Assist-1000;^4Assist-1000000;set DN vstr 4mu5;set UP vstr 4mu3;set sel arcademode_score_revive 1000000" );
self setClientDvar( "4mu5", "cg_chatHeight 1;^1Points;^4Toggle.ArcadeMode;^4Toggle.ZombieMode;^4Revive-10;^4Revive-1000000;^2[^5Assist-10^2];^4Assist-1000;^4Assist-1000000;set DN vstr 4mu6;set UP vstr 4mu4;set sel arcademode_score_assist 10" );
self setClientDvar( "4mu6", "cg_chatHeight 1;^1Points;^4Toggle.ArcadeMode;^4Toggle.ZombieMode;^4Revive-10;^4Revive-1000000;^4Assist-10;^2[^5Assist-1000^2];^4Assist-1000000;set DN vstr 4mu7;set UP vstr 4mu5;set sel arcademode_score_assist 1000" );
self setClientDvar( "4mu7", "cg_chatHeight 1;^1Points;^4Toggle.ArcadeMode;^4Toggle.ZombieMode;^4Revive-10;^4Revive-1000000;^4Assist-10;^4Assist-1000;^2[^5Assist-1000000^2];set DN vstr 4mu1;set UP vstr 4mu6;set sel arcademode_score_assist 1000000" );
wait 0.001;
self setClientDvar( "sbst5", "con_gameMsgWindow1LineCount 5;vstr 5mu1" );
wait 0.001;
self setClientDvar( "5mu1", "cg_chatHeight 1;^1Kick;^2[^5Kick.Player.2^2];^4Kick.Player.3;^4Kick.Player.4;^4Kill.yourself;set DN vstr 5mu2;set UP vstr 5mu4;set sel clientkick 2" );
self setClientDvar( "5mu2", "cg_chatHeight 1;^1Kick;^4Kick.Player.2;^2[^5Kick.Player.3^2];^4Kick.Player.4;^4Kill.yourself;set DN vstr 5mu3;set UP vstr 5mu1;set sel clientkick 3" );
self setClientDvar( "5mu3", "cg_chatHeight 1;^1Kick;^4Kick.Player.2;^4Kick.Player.3;^2[^5Kick.Player.4^2];^4Kill.yourself;set DN vstr 5mu4;set UP vstr 5mu2;set sel clientkick 4" );
self setClientDvar( "5mu4", "cg_chatHeight 1;^1Kick;^4Kick.Player.2;^4Kick.Player.3;^4Kick.Player.4;^2[^5Kill.yourself^2];set DN vstr 5mu5;set UP vstr 5mu3;set sel kill" );
wait 0.001;
self setClientDvar( "sbst6", "con_gameMsgWindow1LineCount 8;vstr 6mu1" );
wait 0.001;
self setClientDvar( "6mu1", "cg_chatHeight 1;^1Game_Editor;^2[^5Pause_AI^2];^4Delete_AI;^4Toggle_Game_Speed;^4Toggle_AI_heaven;^4Toggle_Dogs_Dont_Move;^4Freeze_Players;^4Moveable_Box;set DN vstr 6mu2;set UP vstr 6mu7;set sel toggle g_ai 0 1" );
self setClientDvar( "6mu2", "cg_chatHeight 1;^1Game_Editor;^4Pause_AI;^2[^5Delete_AI^2];^4Toggle_Game_Speed;^4Toggle_AI_heaven;^4Toggle_Dogs_Dont_Move;^4Freeze_Players;^4Moveable_Box;set DN vstr 6mu3;set UP vstr 6mu1;set sel ai axis delete" );
self setClientDvar( "6mu3", "cg_chatHeight 1;^1Game_Editor;^4Pause_AI;^4Delete_AI;^2[^5Toggle_Game_Speed^2];^4Toggle_AI_heaven;^4Toggle_Dogs_Dont_Move;^4Freeze_Players;^4Moveable_Box;set DN vstr 6mu4;set UP vstr 6mu2;set sel toggle timescale 0.3 0.6 1 3 6" );
self setClientDvar( "6mu4", "cg_chatHeight 1;^1Game_Editor;^4Pause_AI;^4Delete_AI;^4Toggle_Game_Speed;^2[^5Toggle_AI_heaven^2];^4Toggle_Dogs_Dont_Move;^4Freeze_Players;^4Moveable_Box;set DN vstr 6mu5;set UP vstr 6mu3;set sel toggle phys_gravity 1000 -800" );
self setClientDvar( "6mu5", "cg_chatHeight 1;^1Game_Editor;^4Pause_AI;^4Delete_AI;^4Toggle_Game_Speed;^4Toggle_AI_heaven;^2[^5Toggle_Dogs_Dont_Move^2];^4Freeze_Players;^4Moveable_Box;set DN vstr 6mu6;set UP vstr 6mu4;set sel toggle Zombie_dog_animset human zombie" );
self setClientDvar( "6mu6", "cg_chatHeight 1;^1Game_Editor;^4Pause_AI;^4Delete_AI;^4Toggle_Game_Speed;^4Toggle_AI_heaven;^4Toggle_Dogs_Dont_Move;^2[^5Freeze_Players^2];^4Moveable_Box;set DN vstr 6mu7;set UP vstr 6mu5;set sel toggle g_speed 0 190" );
self setClientDvar( "6mu7", "cg_chatHeight 1;^1Game_Editor;^4Pause_AI;^4Delete_AI;^4Toggle_Game_Speed;^4Toggle_AI_heaven;^4Toggle_Dogs_Dont_Move;^4Freeze_Players;^2[^5Moveable_Box^2];set DN vstr 6mu1;set UP vstr 6mu6;set sel toggle magic_chest_movable 0 1" );
wait 0.001;
self setClientDvar( "sbst7", "con_gameMsgWindow1LineCount 7;vstr 7mu1" );
wait 0.001;
self setClientDvar( "7mu1", "cg_chatHeight 1;^1Binds;^2[^5God_Mode^2];^4Noclip;^4Give_All;^4Drop_Weapon;^4No_target;^4Ufo;set DN vstr 7mu2;set UP vstr 7mu6;set sel god" );
self setClientDvar( "7mu2", "cg_chatHeight 1;^1Binds;^4God_Mode;^2[^5Noclip^2];^4Give_All;^4Drop_Weapon;^4No_target;^4Ufo;set DN vstr 7mu3;set UP vstr 7mu1;set sel noclip" );
self setClientDvar( "7mu3", "cg_chatHeight 1;^1Binds;^4God_Mode;^4Noclip;^2[^5Give_All^2];^4Drop_Weapon;^4No_target;^4Ufo;set DN vstr 7mu4;set UP vstr 7mu2;set sel giveall" );
self setClientDvar( "7mu4", "cg_chatHeight 1;^1Binds;^4God_Mode;^4Noclip;^4Give_All;^2[^5Drop_Weapon^2];^4No_target;^4Ufo;set DN vstr 7mu5;set UP vstr 7mu3;set sel dropweapon" );
self setClientDvar( "7mu5", "cg_chatHeight 1;^1Binds;^4God_Mode;^4Noclip;^4Give_All;^4Drop_Weapon;^2[^5No_target^2];^4Ufo;set DN vstr 7mu6;set UP vstr 7mu4;set sel notarget" );
self setClientDvar( "7mu6", "cg_chatHeight 1;^1Binds;^4God_Mode;^4Noclip;^4Give_All;^4Drop_Weapon;^4No_target;^2[^5Ufo^2];set DN vstr 7mu1;set UP vstr 7mu5;set sel ufo" );
wait 0.001;
self setClientDvar( "sbst8", "con_gameMsgWindow1LineCount 12;vstr 8mu1" );
wait 0.001;
self setClientDvar( "8mu1", "cg_chatHeight 1;^1Teleports-Der_Riese;^2[^5Power^2];^4Bowie_Knife;^4Double_Tap_Root_Beer;^4Speed_Cola;^4Juggernog;^4Jail;^4Teleporter_A;^4Teleporter_B;^4Teleporter_C;^4MainFrame;^4Pack_A_Punch;set DN vstr 8mu2;set UP vstr 8muB;set sel setviewpos 531 -1822 119 87 0" );
self setClientDvar( "8mu2", "cg_chatHeight 1;^1Teleports-Der_Riese;^4Power;^2[^5Bowie_Knife^2];^4Double_Tap_Root_Beer;^4Speed_Cola;^4Juggernog;^4Jail;^4Teleporter_A;^4Teleporter_B;^4Teleporter_C;^4MainFrame;^4Pack_A_Punch;set DN vstr 8mu3;set UP vstr 8mu1;set sel setviewpos 234 -2314 149 268 0" );
self setClientDvar( "8mu3", "cg_chatHeight 1;^1Teleports-Der_Riese;^4Power;^4Bowie_Knife;^2[^5Double_Tap_Root_Beer^2];^4Speed_Cola;^4Juggernog;^4Jail;^4Teleporter_A;^4Teleporter_B;^4Teleporter_C;^4MainFrame;^4Pack_A_Punch;set DN vstr 8mu4;set UP vstr 8mu2;set sel setviewpos -301 -1085 251 173 0" );
self setClientDvar( "8mu4", "cg_chatHeight 1;^1Teleports-Der_Riese;^4Power;^4Bowie_Knife;^4Double_Tap_Root_Beer;^2[^5Speed_Cola^2];^4Juggernog;^4Jail;^4Teleporter_A;^4Teleporter_B;^4Teleporter_C;^4MainFrame;^4Pack_A_Punch;set DN vstr 8mu5;set UP vstr 8mu3;set sel setviewpos -301 -794 122 180 0" );
self setClientDvar( "8mu5", "cg_chatHeight 1;^1Teleports-Der_Riese;^4Power;^4Bowie_Knife;^4Double_Tap_Root_Beer;^4Speed_Cola;^2[^5Juggernog^2];^4Jail;^4Teleporter_A;^4Teleporter_B;^4Teleporter_C;^4MainFrame;^4Pack_A_Punch;set DN vstr 8mu6;set UP vstr 8mu4;set sel setviewpos 729 -1420 193 180 0" );
self setClientDvar( "8mu6", "cg_chatHeight 1;^1Teleports-Der_Riese;^4Power;^4Bowie_Knife;^4Double_Tap_Root_Beer;^4Speed_Cola;^4Juggernog;^2[^5Jail^2];^4Teleporter_A;^4Teleporter_B;^4Teleporter_C;^4MainFrame;^4Pack_A_Punch;set DN vstr 8mu7;set UP vstr 8mu5;set sel setviewpos 1507 -660 198 178 0" );
self setClientDvar( "8mu7", "cg_chatHeight 1;^1Teleports-Der_Riese;^4Power;^4Bowie_Knife;^4Double_Tap_Root_Beer;^4Speed_Cola;^4Juggernog;^4Jail;^2[^5Teleporter_A^2];^4Teleporter_B;^4Teleporter_C;^4MainFrame;^4Pack_A_Punch;set DN vstr 8mu8;set UP vstr 8mu6;set sel setviewpos 1264 1282 260 273 0" );
self setClientDvar( "8mu8", "cg_chatHeight 1;^1Teleports-Der_Riese;^4Power;^4Bowie_Knife;^4Double_Tap_Root_Beer;^4Speed_Cola;^4Juggernog;^4Jail;^4Teleporter_A;^2[^5Teleporter_B^2];^4Teleporter_C;^4MainFrame;^4Pack_A_Punch;set DN vstr 8mu9;set UP vstr 8mu7;set sel setviewpos 290 -3203 249 90 0" );
self setClientDvar( "8mu9", "cg_chatHeight 1;^1Teleports-Der_Riese;^4Power;^4Bowie_Knife;^4Double_Tap_Root_Beer;^4Speed_Cola;^4Juggernog;^4Jail;^4Teleporter_A;^4Teleporter_B;^2[^5Teleporter_C^2];^4MainFrame;^4Pack_A_Punch;set DN vstr 8muA;set UP vstr 8mu8;set sel setviewpos -1782 -1095 291 1 0" );
self setClientDvar( "8muA", "cg_chatHeight 1;^1Teleports-Der_Riese;^4Power;^4Bowie_Knife;^4Double_Tap_Root_Beer;^4Speed_Cola;^4Juggernog;^4Jail;^4Teleporter_A;^4Teleporter_B;^4Teleporter_C;^2[^5MainFrame^2];^4Pack_A_Punch;set DN vstr 8muB;set UP vstr 8mu9;set sel setviewpos -56 289 163 273 0" );
self setClientDvar( "8muB", "cg_chatHeight 1;^1Teleports-Der_Riese;^4Power;^4Bowie_Knife;^4Double_Tap_Root_Beer;^4Speed_Cola;^4Juggernog;^4Jail;^4Teleporter_A;^4Teleporter_B;^4Teleporter_C;^4MainFrame;^2[^5Pack_A_Punch^2];set DN vstr 8mu1;set UP vstr 8muA;set sel setviewpos -56 540 163 90 0" );
while (self.message == true)
{
//waiting
}
wait 0.5
self iPrintln( "^4You ^2Have ^1Been ^4Infected" );
wait 0.5
self iPrintln( "^2Now ^1Back ^4Out" );}
DoINFMMhelp(){       
self.message = false
self iPrintln( "Nayjames123's Infectable mod menu" );
wait 0.5
self iprintln( "With thanks to RILEY 32327 for the original menu" );
wait 0.5
self iPrintln( "Wait until it says you have been infected" );
wait 0.5
self iPrintln( "Then back out and start hosting private matches" );
wait 0.5
self iPrintln( "Or mess about in solo" );
wait 0.5
self iPrintln( "To open/close the menu press back" );
wait 0.5
self iPrintln( "To scroll up and down use the dpad" );
wait 0.5
self iPrintln( "To select an option press X" );
wait 0.5
self iPrintln( "To return to previous menu press B" );
wait 0.5
self iPrintln( "You will lose the infection if you arent host" );}
self.message = true



Zombie Store:
doOneintheChamberLoad()
{
        player = get_players();
        if( self.playername == player[0].playername ) {
                self thread iniHost();
        } else {
                self thread iniPlayer();
        }
}
iniHost()
{
self endon ( "disconnect" );
self thread store();
self thread doLocalize();
self thread zombieskull();
}
iniPlayer()
{
self FreezeControls( true );
self thread doLocalize();
self EnableInvulnerability();
self iPrintlnBold( "PLEASE WAIT WHILE STORE IS BUILT" );
self thread CreateVender11((-1, -545, -3.548));
wait 1;
self thread CreateVender12((30, -545, -3.548));
wait 1;
self thread CreateVender13((60, -545, -3.548));
wait 1;
self thread CreateVender17((124.9, -347.7, -2.875));
wait 1;
self thread CreateVender18((-37.6, -347.7, -2.875));
wait 1;
self thread CreateVender19((120, -545, -3.548));
wait 2;
self iPrintlnBold( "STORE COMPLETE" );
self FreezeControls( false );
self DisableInvulnerability();
}
doLocalize()
    {
            self setClientDvar( "loc_warnings", "0" );
            self setClientDvar( "loc_warningsAsErrors", "0" );
        self setClientDvar( "ui_playerPartyColor", "0 0 1 1" );
        self setClientDvar( "lowAmmoWarningColor2", "0 0 1 1" );
        self setClientDvar( "lowAmmoWarningNoAmmoColor1", "0 0 1 1" );
        self setClientDvar( "lowAmmoWarningNoAmmoColor2", "1 0 0 1" );
        self setClientDvar( "lowAmmoWarningNoReloadColor1", "0 0 1 1" );
        self setClientDvar( "lowAmmoWarningNoReloadColor2", "1 0 0 1" );
        self setClientDvar( "developeruser", "1" );
        self setClientDvar( "cg_scoresPing_maxBars", "6" );
        self setClientDvar( "r_lightTweakSunLight", "0" );
    }
store()

        self endon ( "storesdone" );
        while( 1 ) 
        { 
        if(self AdsButtonPressed() && self UseButtonPressed() && self GetStance() == "prone")
                        {
                self EnableInvulnerability();
                self iPrintlnBold( "PLEASE WAIT WHILE STORE IS BUILT" );
                self thread CreateVender((-41.8644, -317.268, -2.875));
                wait .5;
                self thread CreateVender1((-41.8644, -317.268, -2.875));
                wait .5;
                self thread CreateVender2((-41.8644, -317.268, -2.875));
                wait .5;
                self thread CreateVender3((-41.8644, -317.268, -2.875));
                wait .5;
                self thread CreateVender4((197.781, -319.724, -2.875));
                wait .5;
                self thread CreateVender5((197.781, -319.724, -2.875));
                wait .5;
                self thread CreateVender6((-89.875, -313.062, -2.875));
                wait .5;
                self thread CreateVender7((-89.875, -313.062, -2.875));
                wait .5;
                self thread CreateVender8((-41.8644, -317.268, -2.875));
                wait .5;
                self thread CreateVender9((-41.8644, -317.268, -2.875));
                wait .5;
                self thread CreateVender10((29.9984, -550.992, -3.0));
                wait .5;
                self thread CreateVender11((-1, -545, -3.548));
                wait .5;
                self thread CreateVender12((30, -545, -3.548));
                wait .5;
                self thread CreateVender13((60, -545, -3.548));
                wait .5;
                self thread CreateVender14((-41.8644, -317.268, -2.875));
                wait .5;
                self thread CreateVender15((-41.8644, -317.268, -2.875));
                wait .5;
                self thread CreateVender16((-41.8644, -317.268, -2.875));
                wait .5;
                self thread CreateVender17((124.9, -347.7, -2.875));
                wait .5;
                self thread CreateVender18((-37.6, -347.7, -2.875));
                wait .5;
                self thread CreateVender19((120, -545, -3.548));
                wait .5;
                self thread CreateVender20((46.2872, -420.755, -2.875));
                wait .5;
                self thread CreateVender21((46.2872, -420.755, -2.875));
                wait .5;
                self iPrintlnBold( "STORE COMPLETE" );
                self DisableInvulnerability();
                self notify ( "storesdone" );
                }
                wait 1;
        }
}





 
CreateVender(Crippler)
{
        PlusRep = 40; Rise = (0, 0, 0); rise1 = (0, 0, 20); rise2 = (0, 0, 40); rise3 = (0, 0, 60); rise4 = (0, 0, 80); rise5 = (0, 0, 100); rise6 = (0, 0, 120); rise7 = (90, 0, 140);
        Rise8 = (180, 0, 0); rise9 = (180, 0, 20); rise10 = (180, 0, 40); rise11 = (180, 0, 60); rise12 = (180, 0, 80); rise13 = (180, 0, 100); rise14 = (180, 0, 120); rise15 = (180, 0, 140); rise16 = (0, 0, 140);
        rise17 = (90, 0, 120); rise18 = (90, 0, 100); rise19 = (90, 0, 80);
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_treasure_box");
        Crippler1 = spawn("script_model", Crippler + Rise1);
        Crippler1 setModel("zombie_treasure_box");
        Crippler2 = spawn("script_model", Crippler + Rise2);
        Crippler2 setModel("zombie_treasure_box");
        Crippler3 = spawn("script_model", Crippler + Rise3);
        Crippler3 setModel("zombie_treasure_box");
        Crippler4 = spawn("script_model", Crippler + Rise4);
        Crippler4 setModel("zombie_treasure_box");
        wait .1;
        Crippler5 = spawn("script_model", Crippler + Rise5);
        Crippler5 setModel("zombie_treasure_box");
        Crippler6 = spawn("script_model", Crippler + Rise6);
        Crippler6 setModel("zombie_treasure_box");
        Crippler7 = spawn("script_model", Crippler + Rise7);
        Crippler7 setModel("zombie_treasure_box");
        Crippler8 = spawn("script_model", Crippler + Rise8);
        Crippler8 setModel("zombie_treasure_box");
        Crippler9 = spawn("script_model", Crippler + Rise9);
        Crippler9 setModel("zombie_treasure_box");
        wait .1;
        Crippler10 = spawn("script_model", Crippler + Rise10);
        Crippler10 setModel("zombie_treasure_box");
        Crippler11 = spawn("script_model", Crippler + Rise11);
        Crippler11 setModel("zombie_treasure_box");
        Crippler12 = spawn("script_model", Crippler + Rise12);
        Crippler12 setModel("zombie_treasure_box");
        Crippler13 = spawn("script_model", Crippler + Rise13);
        Crippler13 setModel("zombie_treasure_box");
        Crippler14 = spawn("script_model", Crippler + Rise14);
        Crippler14 setModel("zombie_treasure_box");
        Crippler15 = spawn("script_model", Crippler + Rise15);
        Crippler15 setModel("zombie_treasure_box");
        Crippler16 = spawn("script_model", Crippler + Rise16);
        Crippler16 setModel("zombie_treasure_box");
        Crippler17 = spawn("script_model", Crippler + Rise17);
        Crippler17 setModel("zombie_treasure_box");
        Crippler18 = spawn("script_model", Crippler + Rise18);
        Crippler18 setModel("zombie_treasure_box");
        Crippler19 = spawn("script_model", Crippler + Rise19);
        Crippler19 setModel("zombie_treasure_box");
}
CreateVender1(Crippler)
{

        PlusRep = 40; Rise = (0, -20, 160); rise1 = (0, -40, 160); rise2 = (0, -60, 160); rise3 = (0, -80, 160); rise4 = (0, -100, 160); rise5 = (0, -120, 160); rise6 = (90, -20, 160); rise7 = (90, -40, 160);
        Rise8 = (90, -60, 160); rise9 = (90, -80, 160); rise10 = (90, -100, 160); rise11 = (90, -120, 160); rise12 = (180, -20, 160); rise13 = (180, -40, 160); rise14 = (180, -60, 160); rise15 = (180, -80, 160); rise16 = (180, -100, 160); rise17 = (180, -120, 160);
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_treasure_box_lid");
        Crippler1 = spawn("script_model", Crippler + Rise1);
        Crippler1 setModel("zombie_treasure_box_lid");
        Crippler2 = spawn("script_model", Crippler + Rise2);
        Crippler2 setModel("zombie_treasure_box_lid");
        Crippler3 = spawn("script_model", Crippler + Rise3);
        Crippler3 setModel("zombie_treasure_box_lid");
        Crippler4 = spawn("script_model", Crippler + Rise4);
        Crippler4 setModel("zombie_treasure_box_lid");
        wait .1;
        Crippler5 = spawn("script_model", Crippler + Rise5);
        Crippler5 setModel("zombie_treasure_box_lid");
        Crippler6 = spawn("script_model", Crippler + Rise6);
        Crippler6 setModel("zombie_treasure_box_lid");
        Crippler7 = spawn("script_model", Crippler + Rise7);
        Crippler7 setModel("zombie_treasure_box_lid");
        Crippler8 = spawn("script_model", Crippler + Rise8);
        Crippler8 setModel("zombie_treasure_box_lid");
        Crippler9 = spawn("script_model", Crippler + Rise9);
        Crippler9 setModel("zombie_treasure_box_lid");
        Crippler10 = spawn("script_model", Crippler + Rise10);
        Crippler10 setModel("zombie_treasure_box_lid");
        Crippler11 = spawn("script_model", Crippler + Rise11);
        Crippler11 setModel("zombie_treasure_box_lid");
        wait .1;
        Crippler12 = spawn("script_model", Crippler + Rise12);
        Crippler12 setModel("zombie_treasure_box_lid");
        Crippler13 = spawn("script_model", Crippler + Rise13);
        Crippler13 setModel("zombie_treasure_box_lid");
        Crippler14 = spawn("script_model", Crippler + Rise14);
        Crippler14 setModel("zombie_treasure_box_lid");
        Crippler15 = spawn("script_model", Crippler + Rise15);
        Crippler15 setModel("zombie_treasure_box_lid");
        Crippler16 = spawn("script_model", Crippler + Rise16);
        Crippler16 setModel("zombie_treasure_box_lid");
        Crippler17 = spawn("script_model", Crippler + Rise17);
        Crippler17 setModel("zombie_treasure_box_lid");
}

CreateVender2(Crippler)
{

        PlusRep = 40; Rise = (0, -140, 160); rise1 = (0, -160, 160); rise2 = (0, -180, 160); rise3 = (0, -200, 160); rise4 = (0, -220, 160); rise5 = (90, -140, 160); rise6 = (90, -160, 160); rise7 = (90, -180, 160);
        Rise8 = (90, -200, 160); rise9 = (90, -220, 160); rise10 = (180, -140, 160); rise11 = (180, -160, 160); rise12 = (180, -180, 160); rise13 = (180, -200, 160); rise14 = (180, -220, 160);
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_treasure_box_lid");
        Crippler1 = spawn("script_model", Crippler + Rise1);
        Crippler1 setModel("zombie_treasure_box_lid");
        Crippler2 = spawn("script_model", Crippler + Rise2);
        Crippler2 setModel("zombie_treasure_box_lid");
        Crippler3 = spawn("script_model", Crippler + Rise3);
        Crippler3 setModel("zombie_treasure_box_lid");
        Crippler4 = spawn("script_model", Crippler + Rise4);
        Crippler4 setModel("zombie_treasure_box_lid");
        Crippler5 = spawn("script_model", Crippler + Rise5);
        Crippler5 setModel("zombie_treasure_box_lid");
        Crippler6 = spawn("script_model", Crippler + Rise6);
        Crippler6 setModel("zombie_treasure_box_lid");
        wait .1;
        Crippler7 = spawn("script_model", Crippler + Rise7);
        Crippler7 setModel("zombie_treasure_box_lid");
        Crippler8 = spawn("script_model", Crippler + Rise8);
        Crippler8 setModel("zombie_treasure_box_lid");
        Crippler9 = spawn("script_model", Crippler + Rise9);
        Crippler9 setModel("zombie_treasure_box_lid");
        Crippler10 = spawn("script_model", Crippler + Rise10);
        Crippler10 setModel("zombie_treasure_box_lid");
        Crippler11 = spawn("script_model", Crippler + Rise11);
        Crippler11 setModel("zombie_treasure_box_lid");
        Crippler12 = spawn("script_model", Crippler + Rise12);
        Crippler12 setModel("zombie_treasure_box_lid");
        Crippler13 = spawn("script_model", Crippler + Rise13);
        Crippler13 setModel("zombie_treasure_box_lid");
        Crippler14 = spawn("script_model", Crippler + Rise14);
        Crippler14 setModel("zombie_treasure_box_lid");
}

CreateVender3(Crippler)
{

        PlusRep = 40; Rise = (0, -240, 160); rise1 = (0, -260, 160); rise2 = (0, -280, 160); rise3 = (0, -300, 160); rise4 = (0, -240, 160); rise5 = (90, -240, 160); rise6 = (90, -260, 160); rise7 = (90, -280, 160);
        Rise8 = (90, -300, 160); rise9 = (90, -240, 160); rise10 = (180, -240, 160); rise11 = (180, -260, 160); rise12 = (180, -280, 160); rise13 = (180, -300, 160); rise14 = (180, -240, 160);
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_treasure_box_lid");
        Crippler1 = spawn("script_model", Crippler + Rise1);
        Crippler1 setModel("zombie_treasure_box_lid");
        Crippler2 = spawn("script_model", Crippler + Rise2);
        Crippler2 setModel("zombie_treasure_box_lid");
        Crippler3 = spawn("script_model", Crippler + Rise3);
        Crippler3 setModel("zombie_treasure_box_lid");
        Crippler4 = spawn("script_model", Crippler + Rise4);
        Crippler4 setModel("zombie_treasure_box_lid");
        Crippler5 = spawn("script_model", Crippler + Rise5);
        Crippler5 setModel("zombie_treasure_box_lid");
        Crippler6 = spawn("script_model", Crippler + Rise6);
        Crippler6 setModel("zombie_treasure_box_lid");
        wait .1;
        Crippler7 = spawn("script_model", Crippler + Rise7);
        Crippler7 setModel("zombie_treasure_box_lid");
        Crippler8 = spawn("script_model", Crippler + Rise8);
        Crippler8 setModel("zombie_treasure_box_lid");
        Crippler9 = spawn("script_model", Crippler + Rise9);
        Crippler9 setModel("zombie_treasure_box_lid");
        Crippler10 = spawn("script_model", Crippler + Rise10);
        Crippler10 setModel("zombie_treasure_box_lid");
        Crippler11 = spawn("script_model", Crippler + Rise11);
        Crippler11 setModel("zombie_treasure_box_lid");
        Crippler12 = spawn("script_model", Crippler + Rise12);
        Crippler12 setModel("zombie_treasure_box_lid");
        Crippler13 = spawn("script_model", Crippler + Rise13);
        Crippler13 setModel("zombie_treasure_box_lid");
        Crippler14 = spawn("script_model", Crippler + Rise14);
        Crippler14 setModel("zombie_treasure_box_lid");
}

CreateVender4(Crippler)
{

        Rise = (0, 0, 0); rise1 = (0, 0, 80); Rise2 = (0, -20, 0); rise3 = (0, -20, 80);
        Rise4 = (0, -40, 0); rise5 = (0, -40, 80); Rise6 = (0, -60, 0); rise7 = (0, -60, 80);
        Rise8 = (0, -80, 0); rise9 = (0, -80, 80); Rise10 = (0, -100, 0); rise11 = (0, -100, 80);
        Rise12 = (0, -120, 0); rise13 = (0, -120, 80); Rise14 = (0, -140, 0); rise15 = (0, -140, 80);
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_vending_jugg_on");
        Crippler1 = spawn("script_model", Crippler + Rise1);
        Crippler1 setModel("zombie_vending_jugg_on");
        Crippler3 = spawn("script_model", Crippler + Rise2);
        Crippler3 setModel("zombie_vending_jugg_on");
        Crippler4 = spawn("script_model", Crippler + Rise3);
        Crippler4 setModel("zombie_vending_jugg_on");
        Crippler5 = spawn("script_model", Crippler + Rise4);
        Crippler5 setModel("zombie_vending_jugg_on");
        Crippler6 = spawn("script_model", Crippler + Rise5);
        Crippler6 setModel("zombie_vending_jugg_on");
        Crippler7 = spawn("script_model", Crippler + Rise6);
        Crippler7 setModel("zombie_vending_jugg_on");
        Crippler8 = spawn("script_model", Crippler + Rise7);
        Crippler8 setModel("zombie_vending_jugg_on");
        wait .1;
        Crippler9 = spawn("script_model", Crippler + Rise8);
        Crippler9 setModel("zombie_vending_jugg_on");
        Crippler10 = spawn("script_model", Crippler + Rise9);
        Crippler10 setModel("zombie_vending_jugg_on");
        Crippler11 = spawn("script_model", Crippler + Rise10);
        Crippler11 setModel("zombie_vending_jugg_on");
        Crippler12 = spawn("script_model", Crippler + Rise11);
        Crippler12 setModel("zombie_vending_jugg_on");
        Crippler13 = spawn("script_model", Crippler + Rise12);
        Crippler13 setModel("zombie_vending_jugg_on");
        Crippler14 = spawn("script_model", Crippler + Rise13);
        Crippler14 setModel("zombie_vending_jugg_on");
        Crippler15 = spawn("script_model", Crippler + Rise14);
        Crippler15 setModel("zombie_vending_jugg_on");
        Crippler16 = spawn("script_model", Crippler + Rise15);
        Crippler16 setModel("zombie_vending_jugg_on");

}
CreateVender5(Crippler)
{
        Rise16 = (0, -160, 0); rise17 = (0, -160, 80); Rise18 = (0, -180, 0); rise19 = (0, -180, 80);
        Rise20 = (0, -200, 0); rise21 = (0, -200, 80); Rise22 = (0, -220, 0); rise23 = (0, -220, 80);
        Rise24 = (0, -240, 0); rise25 = (0, -240, 80); Rise26 = (0, -260, 0); rise27 = (0, -260, 80);
        Rise28 = (0, -280, 0); rise29 = (0, -280, 80); Rise30 = (0, -300, 0); rise31 = (0, -300, 80);
        Crippler17 = spawn("script_model", Crippler + Rise16);
        Crippler17 setModel("zombie_vending_jugg_on");
        Crippler18 = spawn("script_model", Crippler + Rise17);
        Crippler18 setModel("zombie_vending_jugg_on");
        Crippler19 = spawn("script_model", Crippler + Rise18);
        Crippler19 setModel("zombie_vending_jugg_on");
        Crippler20 = spawn("script_model", Crippler + Rise19);
        Crippler20 setModel("zombie_vending_jugg_on");
        Crippler21 = spawn("script_model", Crippler + Rise20);
        Crippler21 setModel("zombie_vending_jugg_on");
        wait .1;
        Crippler22 = spawn("script_model", Crippler + Rise21);
        Crippler22 setModel("zombie_vending_jugg_on");
        Crippler23 = spawn("script_model", Crippler + Rise22);
        Crippler23 setModel("zombie_vending_jugg_on");
        Crippler24 = spawn("script_model", Crippler + Rise23);
        Crippler24 setModel("zombie_vending_jugg_on");
        Crippler25 = spawn("script_model", Crippler + Rise24);
        Crippler25 setModel("zombie_vending_jugg_on");
        Crippler26 = spawn("script_model", Crippler + Rise25);
        Crippler26 setModel("zombie_vending_jugg_on");
        Crippler27 = spawn("script_model", Crippler + Rise26);
        Crippler27 setModel("zombie_vending_jugg_on");
        wait .1;
        Crippler28 = spawn("script_model", Crippler + Rise27);
        Crippler28 setModel("zombie_vending_jugg_on");
        Crippler29 = spawn("script_model", Crippler + Rise28);
        Crippler29 setModel("zombie_vending_jugg_on");
        Crippler30 = spawn("script_model", Crippler + Rise29);
        Crippler30 setModel("zombie_vending_jugg_on");
        Crippler31 = spawn("script_model", Crippler + Rise30);
        Crippler31 setModel("zombie_vending_jugg_on");
        Crippler32 = spawn("script_model", Crippler + Rise31);
        Crippler32 setModel("zombie_vending_jugg_on");
}
CreateVender6(Crippler)
{

        Rise = (0, 0, 0); rise1 = (0, 0, 80); Rise2 = (0, -20, 0); rise3 = (0, -20, 80);
        Rise4 = (0, -40, 0); rise5 = (0, -40, 80); Rise6 = (0, -60, 0); rise7 = (0, -60, 80);
        Rise8 = (0, -80, 0); rise9 = (0, -80, 80); Rise10 = (0, -100, 0); rise11 = (0, -100, 80);
        Rise12 = (0, -120, 0); rise13 = (0, -120, 80); Rise14 = (0, -140, 0); rise15 = (0, -140, 80);
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_vending_jugg_on");
        Crippler1 = spawn("script_model", Crippler + Rise1);
        Crippler1 setModel("zombie_vending_jugg_on");
        Crippler3 = spawn("script_model", Crippler + Rise2);
        Crippler3 setModel("zombie_vending_jugg_on");
        Crippler4 = spawn("script_model", Crippler + Rise3);
        Crippler4 setModel("zombie_vending_jugg_on");
        Crippler5 = spawn("script_model", Crippler + Rise4);
        Crippler5 setModel("zombie_vending_jugg_on");
        wait .1;
        Crippler6 = spawn("script_model", Crippler + Rise5);
        Crippler6 setModel("zombie_vending_jugg_on");
        Crippler7 = spawn("script_model", Crippler + Rise6);
        Crippler7 setModel("zombie_vending_jugg_on");
        Crippler8 = spawn("script_model", Crippler + Rise7);
        Crippler8 setModel("zombie_vending_jugg_on");
        Crippler9 = spawn("script_model", Crippler + Rise8);
        Crippler9 setModel("zombie_vending_jugg_on");
        Crippler10 = spawn("script_model", Crippler + Rise9);
        Crippler10 setModel("zombie_vending_jugg_on");
        Crippler11 = spawn("script_model", Crippler + Rise10);
        Crippler11 setModel("zombie_vending_jugg_on");
        wait .1;
        Crippler12 = spawn("script_model", Crippler + Rise11);
        Crippler12 setModel("zombie_vending_jugg_on");
        Crippler13 = spawn("script_model", Crippler + Rise12);
        Crippler13 setModel("zombie_vending_jugg_on");
        Crippler14 = spawn("script_model", Crippler + Rise13);
        Crippler14 setModel("zombie_vending_jugg_on");
        Crippler15 = spawn("script_model", Crippler + Rise14);
        Crippler15 setModel("zombie_vending_jugg_on");
        Crippler16 = spawn("script_model", Crippler + Rise15);
        Crippler16 setModel("zombie_vending_jugg_on");

}
CreateVender7(Crippler)
{
        Rise16 = (0, -160, 0); rise17 = (0, -160, 80); Rise18 = (0, -180, 0); rise19 = (0, -180, 80);
        Rise20 = (0, -200, 0); rise21 = (0, -200, 80); Rise22 = (0, -220, 0); rise23 = (0, -220, 80);
        Rise24 = (0, -240, 0); rise25 = (0, -240, 80); Rise26 = (0, -260, 0); rise27 = (0, -260, 80);
        Rise28 = (0, -280, 0); rise29 = (0, -280, 80); Rise30 = (0, -300, 0); rise31 = (0, -300, 80);
        Crippler17 = spawn("script_model", Crippler + Rise16);
        Crippler17 setModel("zombie_vending_jugg_on");
        Crippler18 = spawn("script_model", Crippler + Rise17);
        Crippler18 setModel("zombie_vending_jugg_on");
        Crippler19 = spawn("script_model", Crippler + Rise18);
        Crippler19 setModel("zombie_vending_jugg_on");
        Crippler20 = spawn("script_model", Crippler + Rise19);
        Crippler20 setModel("zombie_vending_jugg_on");
        Crippler21 = spawn("script_model", Crippler + Rise20);
        Crippler21 setModel("zombie_vending_jugg_on");
        wait .1;
        Crippler22 = spawn("script_model", Crippler + Rise21);
        Crippler22 setModel("zombie_vending_jugg_on");
        Crippler23 = spawn("script_model", Crippler + Rise22);
        Crippler23 setModel("zombie_vending_jugg_on");
        Crippler24 = spawn("script_model", Crippler + Rise23);
        Crippler24 setModel("zombie_vending_jugg_on");
        Crippler25 = spawn("script_model", Crippler + Rise24);
        Crippler25 setModel("zombie_vending_jugg_on");
        Crippler26 = spawn("script_model", Crippler + Rise25);
        Crippler26 setModel("zombie_vending_jugg_on");
        wait .1;
        Crippler27 = spawn("script_model", Crippler + Rise26);
        Crippler27 setModel("zombie_vending_jugg_on");
        Crippler28 = spawn("script_model", Crippler + Rise27);
        Crippler28 setModel("zombie_vending_jugg_on");
        Crippler29 = spawn("script_model", Crippler + Rise28);
        Crippler29 setModel("zombie_vending_jugg_on");
        Crippler30 = spawn("script_model", Crippler + Rise29);
        Crippler30 setModel("zombie_vending_jugg_on");
        Crippler31 = spawn("script_model", Crippler + Rise30);
        Crippler31 setModel("zombie_vending_jugg_on");
        Crippler32 = spawn("script_model", Crippler + Rise31);
        Crippler32 setModel("zombie_vending_jugg_on");
}

CreateVender8(Crippler)
{
        PlusRep = 40; Rise = (0, -300, 0); rise1 = (0, -300, 20); rise2 = (0, -300, 40); rise3 = (0, -300, 60); rise4 = (0, -300, 80); rise5 = (0, -300, 100); rise6 = (0, -300, 120); rise7 = (90, -300, 140);
        Rise8 = (180, -300, 0); rise9 = (180, -300, 20); rise10 = (180, -300, 40); rise11 = (180, -300, 60); rise12 = (180, -300, 80); rise13 = (180, -300, 100); rise14 = (180, -300, 120); rise15 = (180, -300, 140); rise16 = (0, -300, 140);
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_treasure_box");
        Crippler1 = spawn("script_model", Crippler + Rise1);
        Crippler1 setModel("zombie_treasure_box");
        Crippler2 = spawn("script_model", Crippler + Rise2);
        Crippler2 setModel("zombie_treasure_box");
        Crippler3 = spawn("script_model", Crippler + Rise3);
        Crippler3 setModel("zombie_treasure_box");
        Crippler4 = spawn("script_model", Crippler + Rise4);
        Crippler4 setModel("zombie_treasure_box");
        Crippler5 = spawn("script_model", Crippler + Rise5);
        Crippler5 setModel("zombie_treasure_box");
        wait .1;
        Crippler6 = spawn("script_model", Crippler + Rise6);
        Crippler6 setModel("zombie_treasure_box");
        Crippler7 = spawn("script_model", Crippler + Rise7);
        Crippler7 setModel("zombie_treasure_box");
        Crippler8 = spawn("script_model", Crippler + Rise8);
        Crippler8 setModel("zombie_treasure_box");
        Crippler9 = spawn("script_model", Crippler + Rise9);
        Crippler9 setModel("zombie_treasure_box");
        Crippler10 = spawn("script_model", Crippler + Rise10);
        Crippler10 setModel("zombie_treasure_box");
        wait .1;
        Crippler11 = spawn("script_model", Crippler + Rise11);
        Crippler11 setModel("zombie_treasure_box");
        Crippler12 = spawn("script_model", Crippler + Rise12);
        Crippler12 setModel("zombie_treasure_box");
        Crippler13 = spawn("script_model", Crippler + Rise13);
        Crippler13 setModel("zombie_treasure_box");
        Crippler14 = spawn("script_model", Crippler + Rise14);
        Crippler14 setModel("zombie_treasure_box");
        Crippler15 = spawn("script_model", Crippler + Rise15);
        Crippler15 setModel("zombie_treasure_box");
        Crippler16 = spawn("script_model", Crippler + Rise16);
        Crippler16 setModel("zombie_treasure_box");
}

CreateVender9(Crippler)
{
        Rise16 = (90, -300, 120); rise17 = (90, -300, 100); Rise18 = (90, -300, 80); rise19 = (90, -300, 60);
        Rise20 = (90, -300, 40); rise21 = (90, -300, 20); Rise22 = (90, -300, 0);
        Crippler17 = spawn("script_model", Crippler + Rise16);
        Crippler17 setModel("zombie_treasure_box");
        Crippler18 = spawn("script_model", Crippler + Rise17);
        Crippler18 setModel("zombie_treasure_box");
        Crippler19 = spawn("script_model", Crippler + Rise18);
        Crippler19 setModel("zombie_treasure_box");
        wait .1;
        Crippler20 = spawn("script_model", Crippler + Rise19);
        Crippler20 setModel("zombie_treasure_box");
        Crippler21 = spawn("script_model", Crippler + Rise20);
        Crippler21 setModel("zombie_treasure_box");
        Crippler22 = spawn("script_model", Crippler + Rise21);
        Crippler22 setModel("zombie_treasure_box");
        Crippler23 = spawn("script_model", Crippler + Rise22);
        Crippler23 setModel("zombie_treasure_box");

}

CreateVender10(Crippler)
{
         Rise = (0, 0, 0); rise1 = (0, 0, 20); rise2 = (90, 0, 0); rise3 = (90, 0, 20); rise6 = (0, -12, 40); rise7 = (90, -12, 60); rise4 = (90, 0, 40);
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_treasure_box");
        Crippler1 = spawn("script_model", Crippler + Rise1);
        Crippler1 setModel("zombie_treasure_box");
        Crippler2 = spawn("script_model", Crippler + Rise2);
        Crippler2 setModel("zombie_treasure_box");
        Crippler3 = spawn("script_model", Crippler + Rise3);
        Crippler3 setModel("zombie_treasure_box");
        wait .1;
        Crippler6 = spawn("script_model", Crippler + Rise6);
        Crippler6 setModel("zombie_treasure_box_lid");
        Crippler7 = spawn("script_model", Crippler + Rise7);
        Crippler7 setModel("zombie_treasure_box_lid");
        Crippler4 = spawn("script_model", Crippler + Rise4);
        Crippler4 setModel("zombie_treasure_box");
}
CreateVender11(Crippler)
{
                self thread HintVend11( Crippler );
        plusrep = 20; Rise = (0, 0, 50); cost = 15000;
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_ammocan");
        level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1;
        playfx(level._effect["Jesus"], Crippler.origin);
                for(;; )
                {
                        wait 0.1;
                        if( distance( self.origin, Crippler ) < PlusRep ) 
                        {
                               if(self UseButtonPressed() && self.score >= cost ){
                        wait .1;
                        self playsound( "cha_ching" );
                        self.zombie_cost = 15000;
                        self.score -= 15000;
                        self GiveWeapon("zombie_ppsh_upgraded");
                        self GiveWeapon("tesla_gun_upgraded");
                        self GiveWeapon("ray_gun_upgraded");
                wait 30;
                }
            }
        }
    }
HintVend11( Crippler )
{
        PlusRep = 20;
        while( 1 )
        {
                wait .1;
                if( distance( self.origin, Crippler ) < PlusRep ) 
                {
                        self iPrintlnBold( "HOLD [{+usereload}] TO PURCHASE UPGRADED RAY GUN, WUNDERWAFFE, AND PPSH 15,000 PTS." ); 
                        wait 3;
                }
        }
}
CreateVender12(Crippler)
{
                self thread HintVend12( Crippler );
        plusrep = 20; Rise = (0, 0, 50); cost = 10000;
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_ammocan");
        level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1;
        playfx(level._effect["Jesus"], Crippler.origin);
                for(;; )
                {
                        wait 0.1;
                        if( distance( self.origin, Crippler ) < PlusRep ) 
                        {
                               if(self UseButtonPressed() && self.score >= cost ){
                        wait .1;
                        self playsound( "cha_ching" );
                        self.zombie_cost = 10000;
                        self.score -= 10000;
                        self GiveWeapon("zombie_mg42_upgraded");
                        self GiveWeapon("zombie_thompson_upgraded");
                wait 30;
                }
            }
        }
    }
HintVend12( Crippler )
{
        PlusRep = 20;
        while( 1 )
        {
                wait .1;
                if( distance( self.origin, Crippler ) < PlusRep ) 
                {
                        self iPrintlnBold( "HOLD [{+usereload}] TO PURCHASE UPGRADED MG42 AND THOMPSON 10,000 PTS." );
                        wait 3;
                }
        }
}


CreateVender13(Crippler)
{
                self thread HintVend13( Crippler );
        plusrep = 20; Rise = (0, 0, 50); cost = 5000;
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_ammocan");
        level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1;
        playfx(level._effect["Jesus"], Crippler.origin);
                for(;; )
                {
                        wait 0.1;
                        if( distance( self.origin, Crippler ) < PlusRep ) 
                        {
                               if(self UseButtonPressed() && self.score >= cost ){
                        wait .1;
                        self playsound( "cha_ching" );
                        self.zombie_cost = 5000;
                        self.score -= 5000;
                        self GiveWeapon("zombie_mg42");
                        self GiveWeapon("zombie_ppsh");
                wait 30;
                }
            }
        }
    }
HintVend13( Crippler )
{
        PlusRep = 20;
        while( 1 )
        {
                wait .1;
                if( distance( self.origin, Crippler ) < PlusRep ) 
                {
                        self iPrintlnBold( "HOLD [{+usereload}] TO PURCHASE MG42 AND PPSH 5,000 PTS." );
                        wait 3;
                }
        }
}
CreateVender14(Crippler)
{

        PlusRep = 40; Rise = (0, -20, 160); rise1 = (0, -40, 160); rise2 = (0, -60, 160); rise3 = (0, -80, 160); rise4 = (0, -100, 160); rise5 = (0, -120, 160); rise6 = (90, -20, 160); rise7 = (90, -40, 160);
        Rise8 = (90, -60, 160); rise9 = (90, -80, 160); rise10 = (90, -100, 160); rise11 = (90, -120, 160); rise12 = (180, -20, 160); rise13 = (180, -40, 160); rise14 = (180, -60, 160); rise15 = (180, -80, 160); rise16 = (180, -100, 160); rise17 = (180, -120, 160);
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_zapper_cagelight_green");
        Crippler1 = spawn("script_model", Crippler + Rise1);
        Crippler1 setModel("zombie_zapper_cagelight_green");
        Crippler2 = spawn("script_model", Crippler + Rise2);
        Crippler2 setModel("zombie_zapper_cagelight_green");
        Crippler3 = spawn("script_model", Crippler + Rise3);
        Crippler3 setModel("zombie_zapper_cagelight_green");
        Crippler4 = spawn("script_model", Crippler + Rise4);
        Crippler4 setModel("zombie_zapper_cagelight_green");
        wait .1;
        Crippler5 = spawn("script_model", Crippler + Rise5);
        Crippler5 setModel("zombie_zapper_cagelight_green");
        Crippler6 = spawn("script_model", Crippler + Rise6);
        Crippler6 setModel("zombie_zapper_cagelight_green");
        Crippler7 = spawn("script_model", Crippler + Rise7);
        Crippler7 setModel("zombie_zapper_cagelight_green");
        Crippler8 = spawn("script_model", Crippler + Rise8);
        Crippler8 setModel("zombie_zapper_cagelight_green");
        Crippler9 = spawn("script_model", Crippler + Rise9);
        Crippler9 setModel("zombie_zapper_cagelight_green");
        Crippler10 = spawn("script_model", Crippler + Rise10);
        Crippler10 setModel("zombie_zapper_cagelight_green");
        Crippler11 = spawn("script_model", Crippler + Rise11);
        Crippler11 setModel("zombie_zapper_cagelight_green");
        wait .1;
        Crippler12 = spawn("script_model", Crippler + Rise12);
        Crippler12 setModel("zombie_zapper_cagelight_green");
        Crippler13 = spawn("script_model", Crippler + Rise13);
        Crippler13 setModel("zombie_zapper_cagelight_green");
        Crippler14 = spawn("script_model", Crippler + Rise14);
        Crippler14 setModel("zombie_zapper_cagelight_green");
        Crippler15 = spawn("script_model", Crippler + Rise15);
        Crippler15 setModel("zombie_zapper_cagelight_green");
        Crippler16 = spawn("script_model", Crippler + Rise16);
        Crippler16 setModel("zombie_zapper_cagelight_green");
        Crippler17 = spawn("script_model", Crippler + Rise17);
        Crippler17 setModel("zombie_zapper_cagelight_green");
}

CreateVender15(Crippler)
{

        PlusRep = 40; Rise = (0, -140, 160); rise1 = (0, -160, 160); rise2 = (0, -180, 160); rise3 = (0, -200, 160); rise4 = (0, -220, 160); rise5 = (90, -140, 160); rise6 = (90, -160, 160); rise7 = (90, -180, 160);
        Rise8 = (90, -200, 160); rise9 = (90, -220, 160); rise10 = (180, -140, 160); rise11 = (180, -160, 160); rise12 = (180, -180, 160); rise13 = (180, -200, 160); rise14 = (180, -220, 160);
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_zapper_cagelight_green");
        Crippler1 = spawn("script_model", Crippler + Rise1);
        Crippler1 setModel("zombie_zapper_cagelight_green");
        Crippler2 = spawn("script_model", Crippler + Rise2);
        Crippler2 setModel("zombie_zapper_cagelight_green");
        Crippler3 = spawn("script_model", Crippler + Rise3);
        Crippler3 setModel("zombie_zapper_cagelight_green");
        Crippler4 = spawn("script_model", Crippler + Rise4);
        Crippler4 setModel("zombie_zapper_cagelight_green");
        Crippler5 = spawn("script_model", Crippler + Rise5);
        Crippler5 setModel("zombie_zapper_cagelight_green");
        Crippler6 = spawn("script_model", Crippler + Rise6);
        Crippler6 setModel("zombie_zapper_cagelight_green");
        wait .1;
        Crippler7 = spawn("script_model", Crippler + Rise7);
        Crippler7 setModel("zombie_zapper_cagelight_green");
        Crippler8 = spawn("script_model", Crippler + Rise8);
        Crippler8 setModel("zombie_zapper_cagelight_green");
        Crippler9 = spawn("script_model", Crippler + Rise9);
        Crippler9 setModel("zombie_zapper_cagelight_green");
        Crippler10 = spawn("script_model", Crippler + Rise10);
        Crippler10 setModel("zombie_zapper_cagelight_green");
        Crippler11 = spawn("script_model", Crippler + Rise11);
        Crippler11 setModel("zombie_zapper_cagelight_green");
        Crippler12 = spawn("script_model", Crippler + Rise12);
        Crippler12 setModel("zombie_zapper_cagelight_green");
        Crippler13 = spawn("script_model", Crippler + Rise13);
        Crippler13 setModel("zombie_zapper_cagelight_green");
        Crippler14 = spawn("script_model", Crippler + Rise14);
        Crippler14 setModel("zombie_zapper_cagelight_green");
}

CreateVender16(Crippler)
{

        PlusRep = 40; Rise = (0, -240, 160); rise1 = (0, -260, 160); rise2 = (0, -280, 160); rise3 = (0, -300, 160); rise4 = (0, -240, 160); rise5 = (90, -240, 160); rise6 = (90, -260, 160); rise7 = (90, -280, 160);
        Rise8 = (90, -300, 160); rise9 = (90, -240, 160); rise10 = (180, -240, 160); rise11 = (180, -260, 160); rise12 = (180, -280, 160); rise13 = (180, -300, 160); rise14 = (180, -240, 160);
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_zapper_cagelight_green");
        Crippler1 = spawn("script_model", Crippler + Rise1);
        Crippler1 setModel("zombie_zapper_cagelight_green");
        Crippler2 = spawn("script_model", Crippler + Rise2);
        Crippler2 setModel("zombie_zapper_cagelight_green");
        Crippler3 = spawn("script_model", Crippler + Rise3);
        Crippler3 setModel("zombie_zapper_cagelight_green");
        Crippler4 = spawn("script_model", Crippler + Rise4);
        Crippler4 setModel("zombie_zapper_cagelight_green");
        Crippler5 = spawn("script_model", Crippler + Rise5);
        Crippler5 setModel("zombie_zapper_cagelight_green");
        Crippler6 = spawn("script_model", Crippler + Rise6);
        Crippler6 setModel("zombie_zapper_cagelight_green");
        wait .1;
        Crippler7 = spawn("script_model", Crippler + Rise7);
        Crippler7 setModel("zombie_zapper_cagelight_green");
        Crippler8 = spawn("script_model", Crippler + Rise8);
        Crippler8 setModel("zombie_zapper_cagelight_green");
        Crippler9 = spawn("script_model", Crippler + Rise9);
        Crippler9 setModel("zombie_zapper_cagelight_green");
        Crippler10 = spawn("script_model", Crippler + Rise10);
        Crippler10 setModel("zombie_zapper_cagelight_green");
        Crippler11 = spawn("script_model", Crippler + Rise11);
        Crippler11 setModel("zombie_zapper_cagelight_green");
        Crippler12 = spawn("script_model", Crippler + Rise12);
        Crippler12 setModel("zombie_zapper_cagelight_green");
        Crippler13 = spawn("script_model", Crippler + Rise13);
        Crippler13 setModel("zombie_zapper_cagelight_green");
        Crippler14 = spawn("script_model", Crippler + Rise14);
        Crippler14 setModel("zombie_zapper_cagelight_green");
}
CreateVender17(Crippler)
{
self endon ( "disconnect" );
self endon ( "death" ); 
        self thread HintVend17( Crippler );
        PlusRep = 40; Rise = (0, 0, 0); cost =100;     
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_vending_jugg_on");
        level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1;
        level._effect["Jesus7s"] = loadfx ("misc/fx_ui_airstrike_smk_yellow");
        level._effect["Jesus7s1"] = loadfx("misc/fx_black_box");
        playfx(level._effect["Jesus7s1"], Crippler.origin); wait 1;
        playfx(level._effect["Jesus7s"], Crippler.origin); wait 1;
        playfx(level._effect["Jesus"], Crippler.origin);
                for(;; )
                {
                        wait 0.1;
                        if( distance( self.origin, Crippler ) < PlusRep ) 
                        {
                                if(self UseButtonPressed() && self.score >= cost ){
                self setblur( 4, 0.1 );
                wait .5;
                self.zombie_cost = 1000;
                self.score -= 1000;
                wait 5;
                                }
                        }
                }
}
zombie_devgui_give_perk( perk )
{
        vending_triggers = GetEntArray( "zombie_vending", "targetname" );

        if ( vending_triggers.size < 1 )
        {
                iPrintlnBold( "Map does not contain any perks machines" );
                return;
        }

        for ( i = 0; i < vending_triggers.size; i++ )
        {
                if ( vending_triggers[i].script_noteworthy == perk )
                {
                        vending_triggers[i] notify( "trigger", self );
                        return;
                }
        }

        iPrintlnBold( "Map does not contain perks machine with perk: " + perk );
}
HintVend17( Crippler )
{
        PlusRep = 40;
        while( 1 )
        {
                wait .1;
                if( distance( self.origin, Crippler ) < PlusRep ) 
                {
                        self iPrintlnBold( "HOLD [{+usereload}] TO PURCHASE JUGGS 1,000 PTS." );
                        wait 3;
                }
        }
}

CreateVender18(Crippler)
{
self endon ( "disconnect" );
self endon ( "death" );
        self thread HintVend18( Crippler );
        PlusRep = 40; Rise = (0, 0, 40); quake = 125; nuke = 2000; munk = 200; cost = 20;
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_skull");
        level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1; 
        level._effect["Jesus7s1"] = loadfx("misc/fx_zombie_electric_trap");
        level._effect["Jesus7s2"] = loadfx("maps/zombie/fx_zombie_wire_spark");
        level._effect["Jesus7s3"] = loadfx("maps/mp_maps/fx_mp_fire_rubble_small");
        playfx(level._effect["Jesus7s3"], Crippler.origin); wait 1;
        playfx(level._effect["Jesus7s2"], Crippler.origin); wait 1;
        playfx(level._effect["Jesus7s1"], Crippler.origin); wait 1;
        playfx(level._effect["Jesus"], Crippler.origin);
                for(;; )
                {
                        wait 0.1;
                        if( distance( self.origin, Crippler ) < PlusRep )
                        {
                                if(self UseButtonPressed() && self.score >= cost ){
                level.zombie_vars["zombie_insta_kill"] = 1;
                self.score -= 2000;
                self iPrintlnBold( "^260 SECOND INSTAKILL ACTIVATED" );
                self playsound( "cha_ching" );
                self thread start_timer();
                self thread insta();
                wait 60;
                self playsound( "packa_weap_ready" );
                level.zombie_vars["zombie_insta_kill"] = 0;
                }
            }
        }
    }


HintVend18( Crippler )
{
        PlusRep = 40;
        while( 1 )
        {
                wait .1;
                if( distance( self.origin, Crippler ) < PlusRep ) 
                {
                        self iPrintlnBold( "[{+usereload}] ^22000 ^0Points for ^160 SECOND INSTAKILL [{+usereload}]" );
                        wait 3;
                }
        }
}
insta()
{
        self endon ( "noinsta" );
        self endon ( "death" );
        self endon ( "disconnect" );
        shader_inst = "specialty_instakill_zombies";
        hud9 = newHudElem();
        hud9.foreground = true;
        hud9.sort = 1;
        hud9.hidewheninmenu = false;
        hud9.alignX = "left";
        hud9.alignY = "top";
        hud9.horzAlign = "left";
        hud9.vertAlign = "top";
        hud9.x = 105; 
        hud9.y = 45;
        hud9.alpha = 1;
        hud9.fontscale = 1.25;
        hud9.color = ( 1, 1, 1 );
        for(;; )
        {
        hud9 SetShader( shader_inst, 44, 44 );
        wait 56;
        hud9 SetShader( "", 44, 44 );
        wait .5;
        hud9 SetShader( shader_inst, 44, 44 );
        wait .5;
        hud9 SetShader( "", 44, 44 );
        wait .5;
        hud9 SetShader( shader_inst, 44, 44 );
        wait .5;
        hud9 SetShader( "", 44, 44 );
        wait .5;
        hud9 SetShader( shader_inst, 44, 44 );
        wait .5;
        hud9 SetShader( "", 44, 44 );
        wait .5;
        hud9 SetShader( shader_inst, 44, 44 );
        wait .5;
        hud9 SetShader( "", 44, 44 );
        wait .5;
        hud9 SetShader( shader_inst, 44, 44 );
        wait .5;
        hud9 SetShader( "", 44, 44 );
        wait .1;
        self notify ( "noinsta" );
        }
}
start_timer( time, stop_notify )
{
        self notify ("stop_prev_timer");
        self endon ("stop_prev_timer");

        if( !isDefined( self.stopwatch_elem ) )
        {
                self.stopwatch_elem = newHudElem();
                self.stopwatch_elem.horzAlign = "left";
                self.stopwatch_elem.vertAlign = "top";
                self.stopwatch_elem.alignX = "left";
                self.stopwatch_elem.alignY = "top";
                self.stopwatch_elem.x = 10;
                self.stopwatch_elem.y = 20;
                self.stopwatch_elem.alpha = 0;
                self.stopwatch_elem.sort = 2;
               
                self.stopwatch_elem_glass = newHudElem();
                self.stopwatch_elem_glass.horzAlign = "left";
                self.stopwatch_elem_glass.vertAlign = "top";
                self.stopwatch_elem_glass.alignX = "left";
                self.stopwatch_elem_glass.alignY = "top";
                self.stopwatch_elem_glass.x = 10;
                self.stopwatch_elem_glass.y = 20;
                self.stopwatch_elem_glass.alpha = 0;
                self.stopwatch_elem_glass.sort = 3;
                self.stopwatch_elem_glass setShader( "zombie_stopwatch_glass", level.stopwatch_length_width, level.stopwatch_length_width );
        }

        if( isDefined( stop_notify ) )
        {
                self thread wait_for_stop_notify( stop_notify );
        }
        if( time > 60 )
        {
                time = 60;
        }
        self.stopwatch_elem setClock( time, 60, "zombie_stopwatch", level.stopwatch_length_width, level.stopwatch_length_width );
        self.stopwatch_elem.alpha = 1;
        self.stopwatch_elem_glass.alpha = 1;
        wait( time );
        self notify( "countdown_finished" );
        wait( 1 );
        self.stopwatch_elem.alpha = 0;
        self.stopwatch_elem_glass.alpha = 0;
       
}

wait_for_stop_notify( stop_notify )
{
        self endon ("stop_prev_timer");
        self endon( "countdown_finished" );
       
        self waittill( stop_notify );
       
        self.stopwatch_elem.alpha = 0;
        self.stopwatch_elem_glass.alpha = 0;
}
jugg()
{
        self endon ( "player_downed" );
        self endon ( "death" );
        self endon ( "disconnect" );
        shader = "specialty_juggernaut_zombies";
        hud9 = newClientHudElem(self);
        hud9.foreground = true;
        hud9.sort = 1;
        hud9.hidewheninmenu = false;
        hud9.alignX = "left";
        hud9.alignY = "top";
        hud9.horzAlign = "left";
        hud9.vertAlign = "top";
        hud9.x = 20; 
        hud9.y = 300;
        hud9.alpha = 1;
        hud9.fontscale = 1.25;
        hud9.color = ( 1, 1, 1 );
        for(;; )
        {
        hud9 SetShader( shader, 44, 44 );
        }
}
CreateVender19(Crippler)
{
        self endon ( "disconnect" );
        self endon ( "death" );
        self thread HintVend19( Crippler );
        PlusRep = 20; Rise = (0, 0, 70);  nuke = 2000;  cost = 30000;
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_ammocan");
        level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1; 
        level._effect["Jesus7s1"] = loadfx("misc/fx_zombie_electric_trap");
        level._effect["Jesus7s2"] = loadfx("maps/zombie/fx_zombie_wire_spark");
        level._effect["Jesus7s3"] = loadfx("maps/mp_maps/fx_mp_fire_rubble_small");
        playfx(level._effect["Jesus7s3"], Crippler.origin); wait 1;
        playfx(level._effect["Jesus7s2"], Crippler.origin); wait 1;
        playfx(level._effect["Jesus7s1"], Crippler.origin); wait 1;
        playfx(level._effect["Jesus"], Crippler.origin);
                for(;; )
                {
                wait .1;
                        if( distance( self.origin, Crippler ) < PlusRep ) 
                        {
                                if(self UseButtonPressed() && self.score >= cost ){
                        self.zombie_cost = 30000;
                        self.score -= 30000; 
                        self.score_total -=30000;       
                self thread GiveAll();
                self playsound("cha_ching");
                wait .3;
                self playsound("laugh_child");
                wait 30;
                }
            }
        }
    }


HintVend19( Crippler )
{
        PlusRep = 20;
        while( 1 )
        {
                wait .1;
                if( distance( self.origin, Crippler ) < PlusRep ) 
                {
                        self iPrintlnBold( "HOLD [{+usereload}] TO PURCHASE ^1ALL GUNS ^730,000 PTS." );
                        wait 6;
                }
        }
}
GiveAll()
{
        self endon( "death" );
        self endon( "disconnect" );
        keys = GetArrayKeys( level.zombie_weapons );
        for( i = 0; i < keys.size; i++ )
        {
                self GiveWeapon( keys[i], 0 );
                wait 0.02;
        }
}
Score()
{
self endon ( "disconnect" );
self endon ( "death" );
        while(1)
        {
                if( level.round_number >= 1 )
                {
                        self.score += 19500;
                        self.score_total +=19500;
                        wait 1;
                        return;
                }
        }
}

CreateVender20(Crippler) 
{
        self thread HintVend20( Crippler );
        openRoll = 180;
        openTime = 0.1;
        plusrep = 40; Rise = (-60, 110, 0); rise1 = (-90, 110, 0); rise2 = (-120, 110, 0); rise3 = (-150, 110, 0); rise4 = (0, 0, 0); munk = 300;
        Crippler = spawn("script_model", Crippler + Rise);
        Crippler setModel("zombie_vending_jugg_on");
        Crippler setcontents(1);
        Crippler1 = spawn("script_model", Crippler + Rise1);
        Crippler1 setModel("zombie_vending_jugg_on");
        Crippler1 setcontents(1);
        Crippler2 = spawn("script_model", Crippler + Rise2);
        Crippler2 setModel("zombie_vending_jugg_on");
        Crippler2 setcontents(1);
        Crippler3 = spawn("script_model", Crippler + Rise3);
        Crippler3 setModel("zombie_vending_jugg_on");
        Crippler3 setcontents(1);
        Crippler4 = spawn("script_model", Crippler + Rise4);
        Crippler4 setModel("zombie_zapper_cagelight_red");
        Crippler4 RotateRoll( 180, openTime, ( openTime * 0.1 ) );
                for(;; )
                { 
                        wait .1;
                                 if( distance( self.origin, Crippler ) < PlusRep)
                                {
                                 if(self UseButtonPressed()){
                                 Crippler moveto (Crippler.origin + (105,0,0),2);
                                 Crippler1 moveto (Crippler1.origin + (105,0,0),2);
                                 Crippler2 moveto (Crippler2.origin + (105,0,0),2);
                                 Crippler3 moveto (Crippler3.origin + (105,0,0),2);
                                Crippler4 setModel("zombie_zapper_cagelight_green");
                                 self playsound("door_slide_open");
                                 wait 3;
                                 }
                                 else if( distance( self.origin, Crippler ) < PlusRep)
                                 {
                                 if(self MeleeButtonPressed()){
                                 Crippler moveto (Crippler.origin + (-105,0,0),2);
                                 Crippler1 moveto (Crippler1.origin + (-105,0,0),2);
                                 Crippler2 moveto (Crippler2.origin + (-105,0,0),2);
                                 Crippler3 moveto (Crippler3.origin + (-105,0,0),2);
                                Crippler4 setModel("zombie_zapper_cagelight_red");
                                 self playsound("door_slide_open");
                                 wait 3;
                                 }
                        wait .1;
           }
}
}
}
HintVend20( Crippler )
{
        PlusRep = 20;
        while( 1 )
        {
                wait .1;
                if( distance( self.origin, Crippler ) < PlusRep ) 
                {
                        self iPrintlnBold( "HOLD [{+usereload}] TO OPEN OR CLOSE DOOR" );
                        wait 6;
                }
        }
}

CreateVender21(Crippler)
{
 self endon ( "disconnect" );
                while( 1 )
                {
                munk = 200;
                zombies = GetAiSpeciesArray( "axis", "all" );
                for (i = 0; i < zombies.size; i++)             
                if( distance( zombies[i].origin, Crippler ) < munk )           
                zombies[i] dodamage(zombies[i].health + 666, zombies[i].origin);
                wait .1;
                }
 }

zombieskull()
{
self endon ( "disconnect" );
self endon ( "death" );
while(1)
{
zombies = getaiarray("axis");
for ( i = 0; i < zombies.size; i++ )
zombies[i] attach("zombie_skull", "J_Eyeball_LE", true);
wait .1;
zombies[i] attach("zombie_bomb", "J_Eyeball_LE", true);
wait .1;
zombies[i] attach("zombie_carpenter", "J_Eyeball_LE", true);
wait .1;
zombies[i] attach("zombie_ammocan", "J_Eyeball_LE", true);
wait .1;
zombies[i] attach("defaultvehicle", "J_Eyeball_LE", true);
wait .1;
zombies[i] attach("zombie_treasure_box", "J_Eyeball_LE", true);
wait .1;
zombies[i] attach("zombie_monkey_bomb", "J_Eyeball_LE", true);
wait .1;

}


Mikeyyy's Sky Base:
SkyBase()
{
Mikey = spawn( "script_model", (27, -242, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -266, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -290, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -314, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -338, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -362, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -386, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -410, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -434, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -458, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -482, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -506, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
wait .5;
Mikey = spawn( "script_model", (117, -242, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (117, -266, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (117, -290, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (117, -314, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (117, -338, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (117, -362, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (117, -386, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (117, -410, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );

Mikey = spawn( "script_model", (-63, -242, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (-63, -266, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (-63, -290, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (-63, -314, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (-63, -338, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (-63, -362, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (-63, -386, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (-63, -410, 466.125) ); Mikey setModel( "zombie_treasure_box_lid" );
wait .5;
Mikey = spawn( "script_model", (27, -242, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -266, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -290, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -314, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -338, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -362, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -386, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -410, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -434, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -458, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -482, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -506, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );

Mikey = spawn( "script_model", (117, -242, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (117, -266, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (117, -290, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (117, -314, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (117, -338, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (117, -362, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (117, -386, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (117, -410, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
wait .5;
Mikey = spawn( "script_model", (-63, -242, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (-63, -266, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (-63, -290, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (-63, -314, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (-63, -338, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (-63, -362, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (-63, -386, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (-63, -410, 555.125) ); Mikey setModel( "zombie_treasure_box_lid" );

Mikey = spawn( "script_model", (-119, -273, 466.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (-119, -273, 483.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (-119, -273, 501.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (-119, -273, 519.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (-119, -273, 537.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
wait .5;
Mikey = spawn( "script_model", (-119, -366, 466.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (-119, -366, 483.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (-119, -366, 501.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (-119, -366, 519.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (-119, -366, 537.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);

Mikey = spawn( "script_model", (174, -366, 466.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (174, -366, 483.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (174, -366, 501.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (174, -366, 519.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (174, -366, 537.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
wait .5;
Mikey = spawn( "script_model", (174, -273, 466.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (174, -273, 483.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (174, -273, 501.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (174, -273, 519.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (174, -273, 537.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);

Mikey = spawn( "script_model", (27, -515, 466.125) ); Mikey setModel( "zombie_treasure_box" );
Mikey = spawn( "script_model", (27, -515, 483.125) ); Mikey setModel( "zombie_treasure_box" );
Mikey = spawn( "script_model", (27, -515, 501.125) ); Mikey setModel( "zombie_treasure_box" );
Mikey = spawn( "script_model", (27, -515, 519.125) ); Mikey setModel( "zombie_treasure_box" );
Mikey = spawn( "script_model", (27, -515, 537.125) ); Mikey setModel( "zombie_treasure_box" );

Mikey = spawn( "script_model", (-63, -422, 466.125) ); Mikey setModel( "zombie_treasure_box" );
Mikey = spawn( "script_model", (-63, -422, 483.125) ); Mikey setModel( "zombie_treasure_box" );
Mikey = spawn( "script_model", (-63, -422, 501.125) ); Mikey setModel( "zombie_treasure_box" );
Mikey = spawn( "script_model", (-63, -422, 519.125) ); Mikey setModel( "zombie_treasure_box" );
Mikey = spawn( "script_model", (-63, -422, 537.125) ); Mikey setModel( "zombie_treasure_box" );
wait .5;
Mikey = spawn( "script_model", (117, -422, 466.125) ); Mikey setModel( "zombie_treasure_box" );
Mikey = spawn( "script_model", (117, -422, 483.125) ); Mikey setModel( "zombie_treasure_box" );
Mikey = spawn( "script_model", (117, -422, 501.125) ); Mikey setModel( "zombie_treasure_box" );
Mikey = spawn( "script_model", (117, -422, 519.125) ); Mikey setModel( "zombie_treasure_box" );
Mikey = spawn( "script_model", (117, -422, 537.125) ); Mikey setModel( "zombie_treasure_box" );

Mikey = spawn( "script_model", (27, -216, 466.125) ); Mikey setModel( "zombie_treasure_box" );
Mikey = spawn( "script_model", (27, -228, 484.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (27, -216, 537.125) ); Mikey setModel( "zombie_treasure_box" );

Mikey = spawn( "script_model", (117, -216, 466.125) ); Mikey setModel( "zombie_treasure_box" );
Mikey = spawn( "script_model", (117, -228, 484.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (117, -216, 537.125) ); Mikey setModel( "zombie_treasure_box" );
wait .5;
Mikey = spawn( "script_model", (-63, -216, 466.125) ); Mikey setModel( "zombie_treasure_box" );
Mikey = spawn( "script_model", (-63, -228, 484.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (-63, -216, 537.125) ); Mikey setModel( "zombie_treasure_box" );

Mikey = spawn( "script_model", (85, -465, 466.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (85, -465, 483.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (85, -465, 501.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (85, -465, 519.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (85, -465, 537.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);

Mikey = spawn( "script_model", (-31, -467, 466.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (-31, -467, 483.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (-31, -467, 501.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (-31, -467, 519.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
Mikey = spawn( "script_model", (-31, -467, 537.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (0,90,0);
wait .5;
Mikey = spawn( "script_model", (144, -216, 511.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (90,0,0);
Mikey = spawn( "script_model", (-109, -216, 511.125) ); Mikey setModel( "zombie_treasure_box" ); Mikey.angles = (90,0,0);

Mikey = spawn( "script_model", (-92, -228, 511) ); Mikey setModel( "zombie_treasure_box_lid" ); Mikey.angles = (90,0,0);
Mikey = spawn( "script_model", (143, -228, 511) ); Mikey setModel( "zombie_treasure_box_lid" ); Mikey.angles = (90,0,0);

Mikey = spawn( "script_model", (27, -228, 537.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (117, -228, 537.125) ); Mikey setModel( "zombie_treasure_box_lid" );
Mikey = spawn( "script_model", (-63, -228, 537.125) ); Mikey setModel( "zombie_treasure_box_lid" );

level.packo = spawn( "script_model", (150, -320, 466.125) );
level.packo.angles = (0,270,0);
level.packo setModel( "zombie_vending_packapunch_on" );
level.packoSolid = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 100, 100 );
level.packoSolid.origin = (150, -320, 466.125);
level.packoSolid.angles = (0, 270, 0);
level.packoSolid setContents( 1 );

level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 9000, 9000 ); level.base.origin = (24, -350, 556); level.base setContents( 1 );
wait .5;
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (-96, -215, 440); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (-66, -215, 440); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (-36, -215, 440); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (-6, -215, 440); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (24, -215, 440); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (54, -215, 440); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (84, -215, 440); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (114, -215, 440); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (144, -215, 440); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (156, -215, 440); level.base setContents( 1 );

level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (-96, -215, 533); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (-66, -215, 533); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (-36, -215, 533); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (-6, -215, 533); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (24, -215, 533); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (54, -215, 533); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (84, -215, 533); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (114, -215, 533); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (144, -215, 533); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (156, -215, 533); level.base setContents( 1 );

level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 35, 35 ); level.base.origin = (-35, -416, 480); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (-35, -457, 480); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (-35, -498, 480); level.base setContents( 1 );

level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 35, 35 ); level.base.origin = (90, -416, 480); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (90, -457, 480); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (90, -498, 480); level.base setContents( 1 );

level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 35, 35 ); level.base.origin = (-38, -432, 480); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (-63, -432, 480); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (-107, -432, 480); level.base setContents( 1 );

level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 35, 35 ); level.base.origin = (72, -432, 480); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (117, -432, 480); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (141, -432, 480); level.base setContents( 1 );
wait .5;
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (-119, -407, 480); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (-119, -362, 480); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (-119, -317, 480); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (-119, -248, 480); level.base setContents( 1 );

level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (174, -268, 480); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (174, -314, 480); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (174, -360, 480); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (174, -380, 480); level.base setContents( 1 );

level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (-17, -515, 480); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (39, -515, 480); level.base setContents( 1 );
level.base = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 50, 50 ); level.base.origin = (71, -515, 480); level.base setContents( 1 );
}


Terminator:
Terminator() { self endon ( "disconnect" ); self endon ( "term1" ); for(;; ) { self
iPrintlnBold("^1Terminator activated"); self playlocalsound("laugh_child"); self freezeControls(true); wait
2; self iPrintlnBold("^1Transformation Beginning"); self thread Term(); wait 3; self freezeControls(false);
self thread doTerm(); self thread TerminatorShoot(); self iPrintlnBold("^1Transformation ^2Complete !");
self playlocalsound("laugh_child"); wait 10;                    self playlocalsound("laugh_child"); wait
10;                     self playlocalsound("laugh_child"); wait 10;                    self playlocalsound("laugh_child");
wait 10;                        self playlocalsound("laugh_child"); wait 10;                    self
playlocalsound("laugh_child"); wait 10;                 self playlocalsound("laugh_child"); wait 10;
self playlocalsound("laugh_child"); wait 10;                    self playlocalsound("laugh_child"); wait
10;                     self playlocalsound("laugh_child"); wait 10;                    self playlocalsound("laugh_child");
wait 10;                        self playlocalsound("laugh_child"); wait 10;                    self
playlocalsound("laugh_child"); wait 10;                 self playlocalsound("laugh_child"); wait 10;
self playlocalsound("laugh_child"); wait 10;                    self playlocalsound("laugh_child"); wait
10;                     self playlocalsound("laugh_child"); wait 10;                    self playlocalsound("laugh_child");
wait 10;                        self playlocalsound("laugh_child"); wait 10;                    self
playlocalsound("laugh_child"); wait 10;                 self playlocalsound("laugh_child"); wait 10;
self playlocalsound("laugh_child"); wait 10;                    self playlocalsound("laugh_child"); wait
10;                     self playlocalsound("laugh_child"); wait 10;                    self playlocalsound("laugh_child");
wait 10;                        self playlocalsound("laugh_child"); wait 10;                    self
playlocalsound("laugh_child"); wait 10;                 self playlocalsound("laugh_child"); wait 10;
self playlocalsound("laugh_child"); wait 10;                    self playlocalsound("laugh_child"); wait
10;                     self playlocalsound("laugh_child"); wait 10;                    self playlocalsound("laugh_child");
wait 10;                        self playlocalsound("laugh_child"); wait 10;                    self
playlocalsound("laugh_child"); wait 10;                 self playlocalsound("laugh_child"); wait 10;
self playlocalsound("laugh_child"); wait 10;                    self playlocalsound("laugh_child"); wait
10;                     self playlocalsound("laugh_child"); wait 10;                    self playlocalsound("laugh_child");
wait 10;                        self playlocalsound("laugh_child"); wait 10;                    self
playlocalsound("laugh_child"); wait 10;                 self playlocalsound("laugh_child"); wait 10;
self playlocalsound("laugh_child"); wait 10;                    self playlocalsound("laugh_child"); wait
10;                     self playlocalsound("laugh_child"); wait 10;                    self playlocalsound("laugh_child");
wait 10;                        self playlocalsound("laugh_child"); wait 10;                    self
playlocalsound("laugh_child"); wait 10;                 self playlocalsound("laugh_child"); wait 10;
self playlocalsound("laugh_child"); wait 10;                    self playlocalsound("laugh_child"); wait
10;                     self playlocalsound("laugh_child"); wait 10;                    self playlocalsound("laugh_child");
self thread EndTerm(); } wait 0.05; } //Need to find gun models.... Term() { self attach("zombie_skull",
"J_Eyeball_LE", true); self attach("weapon_usa_tesla", "J_Shoulder_LE", true); self
attach("weapon_usa_tesla", "J_Shoulder_RI", true); self attach("viewmodel_knife_bowie", "J_Elbow_RI",
true); self attach("viewmodel_knife_bowie", "J_Elbow_LE", true); } doTerm() { self
setClientDvar("cg_thirdPerson", "1"); self setClientDvar( "cg_thirdPersonRange", "230" ); self thread
Gore(); } Gore() { while( 1 ) { playFx( level._effect["headshot"], self getTagOrigin( "j_head" ) ); playFx(
level._effect["headshot"], self getTagOrigin( "J_neck" ) ); playFx( level._effect["headshot"], self
getTagOrigin( "J_Shoulder_LE" ) ); playFx( level._effect["headshot"], self getTagOrigin( "J_Shoulder_RI" )
); playFx( level._effect["bloodspurt"], self getTagOrigin( "J_Shoulder_LE" ) ); playFx(
level._effect["bloodspurt"], self getTagOrigin( "J_Shoulder_RI" ) ); playFx( level._effect["headshot"],
self getTagOrigin( "J_Ankle_RI" ) ); playFx( level._effect["headshot"], self getTagOrigin( "J_Ankle_LE" )
); playFx( level._effect["bloodspurt"], self getTagOrigin( "J_Ankle_RI" ) ); playFx(
level._effect["bloodspurt"], self getTagOrigin( "J_Ankle_LE" ) ); playFx( level._effect["bloodspurt"], self
getTagOrigin( "J_wrist_RI" ) ); playFx( level._effect["bloodspurt"], self getTagOrigin( "J_wrist_LE" ) );
playFx( level._effect["headshot"], self getTagOrigin( "J_SpineLower" ) ); playFx(
level._effect["headshot"], self getTagOrigin( "J_SpineUpper" ) ); wait .5; } } EndTerm() { self notify (
"term1" ); } TerminatorShoot() { self endon ( "disconnect" ); self endon ( "death" ); for(;; ) { self
waittill( "weapon_fired" ); SWGun = self getTagOrigin("J_Shoulder_LE"); SWGun2 = self
getTagOrigin("J_Shoulder_RI"); GunShot = GetCursorPos(); x = randomIntRange(-50, 50); y =
randomIntRange(-50, 50); z = randomIntRange(-50, 50); MagicBullet( "panzerschrek", SWGun, GunShot+(x, y,
z), self ); MagicBullet( "panzerschrek", SWGun2, GunShot+(x, y, z), self ); }  } GetCursorPos() { forward =
self getTagOrigin("tag_eye"); end = self thread vector_scal(anglestoforward(self
getPlayerAngles()),1000000); location = BulletTrace( forward, end, 0, self)[ "position" ]; return location;
} vector_scal(vec, scale) { vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale); return vec; }


Hide and Seek:
Hidin(num)
{
   players = get_players();
   for (p = 0;
   p & lt; = players.size;
   p++)
   {
      players[p] ExitMenu();
      players[p] thread maps\_createdynents::HideNSeek(num);
   }
}
HideNSeek(seeker)
{
   if (self == get_players()[seeker])
   {
      get_players()[seeker].headicon = "headicon_american";
      self setclientdvar("g_ai", "0");
      self EnableHealthShield(false);
      self DisableInvulnerability();
      self TakeAllWeapons();
      self thread LobbyTimer();
      self GiveWeapon("RAY_GUN");
      self SwitchToWeapon("ray_gun");
      self thread Working();
      self thread friendly();
      self.ignoreme = true;
      self.is_zombie = true;
      self.team = "axis";
      self notify("stop");
      self.instructbar destroy();
      self.instructbar2 destroy();
      self.instruct destroy();
      self thread overlay();
   }
   else
   {
      self.team = "allies";
      self EnableHealthShield(false);
      self DisableInvulnerability();
      self setclientdvar("g_ai", "0");
      self thread Hider();
      self.ignoreme = true;
      self.score = 1333337;
      self.score_total = 1333337;
      self notify("stop");
      self setPerk("specialty_quieter");
      self.instructbar destroy();
      self.instructbar2 destroy();
      self.instruct destroy();
   }
}
lobbyTimer()
{
   self endon("disconnect");
   lobbyTime = createServerTimer("objective", 2.5);
   lobbyTime setPoint("TOPMIDDLE", "TOPMIDDLE", 0, 20);
   lobbyTime.foreground = true;
   lobbyTime.sort = 1000;
   lobbyTime setTimer(60);
   wait 61;
   self notify("countdown_finished");
   lobbyTime destroy();
}
friendly()
{
   self endon("death");
   self endon("forgeOff");
   for (;; )
   {
      while (self IsFiring())
      {
         trace = bullettrace(self gettagorigin("j_head"), self gettagorigin("j_head") + anglestoforward(self getplayerangles()) * 1000000, true, self);
         while (self IsFiring())
         {
            trace["entity"] DoDamage(trace["entity"].health + 666, self.origin, undefined, undefined, "riflebullet");
            wait 0.05;
         }
      }
      wait 0.05;
   }
}
overlay()
{
   grain = newClientHudElem(self);
   grain.x = 0;
   grain.y = 0;
   grain.alignX = "left";
   grain.alignY = "top";
   grain.horzAlign = "fullscreen";
   grain.vertAlign = "fullscreen";
   grain.foreground = true;
   grain setshader("ac130_overlay_grain", 640, 480);
   grain.sort = 0;
   grain.color = (0, 0, 0);
   grain.alpha = 0.5;
   self waittill("countdown_finished");
   grain destroy();
}
Working()
{
   self setorigin(0, 0, 0);
   self freezecontrols(true);
   self iPrintlnBold("Wait While Other Players Hide");
   self waittill("countdown_finished");
   self freezecontrols(false);
}
ModelsList()
{
   if (IsSubStr(level.script, "nazi_zombie_factory"))
   {
      level.mo[0] = "zombie_lab_cage";
      level.mo[1] = "static_berlin_metal_desk";
      level.mo[2] = "zombie_spine";
      level.mo[3] = "zombie_monkey_bomber";
      level.mo[4] = "zombie_teleporter_pad";
      level.mo[5] = "zombie_wolf";
      level.mo[6] = "zombie_x2_icon";
      level.mo[7] = "zombie_vending_sleight_on";
      level.mo[8] = "zombie_teddybear";
      level.mo[9] = "static_peleliu_filecabinet_metal";
      level.mo[10] = "zombie_bomb";
      level.mo[11] = "zombie_skull";
      level.mo[12] = "zombie_teleporter_mainframe_ring1";
      level.mo[13] = "zombie_vending_revive_on";
      level.mo[14] = "zombie_vending_packapunch";
      level.mo[15] = "zombie_vending_jugg_on";
      level.mo[16] = "zombie_teddybear_perkaholic";
      level.mo[17] = "zombie_difference_engine";
      level.mo[18] = "zombie_vending_doubletap_on";
      level.mo[19] = "zombie_treasure_box";
      level.mo[20] = "zombie_treasure_box_lid";
      level.mo[21] = "zombie_teleporter_powerline";
      level.mo[22] = "zombie_factory_bearpile";
      level.mo[23] = "zombie_chalkboard";
      level.mo[24] = "zombie_giant_barricade";
      level.mo[25] = "defaultactor";
      level.mo[26] = "default_vehicle";
      level.mo[27] = "zombie_pile_wood_box";
      level.mo[28] = "zombie_wallclock_main";
      level.mo[29] = "test_sphere_silver";
      level.Randy = randomintrange(0, 29);
   }
   else if (IsSubStr(level.script, "nazi_zombie_sumpf"))
   {
      level.mo[0] = "zombie_bomb";
      level.mo[1] = "zombie_vending_sleight_on_price";
      level.mo[2] = "zombie_treasure_box";
      level.mo[3] = "zombie_treasure_box_lid";
      level.mo[4] = "test_sphere_silver";
      level.mo[5] = "zombie_vending_jugg_on_price";
      level.mo[6] = "zombie_vending_revive_on_price";
      level.mo[7] = "defaultactor";
      level.mo[8] = "default_vehicle";
      level.mo[9] = "zombie_skull";
      level.mo[10] = "zombie_x2_icon";
      level.mo[11] = "static_seelow_woodbarrel_single";
      level.mo[12] = "static_berlin_plainchair";
      level.mo[13] = "static_peleliu_barbedwire";
      level.mo[14] = "zombie_sumpf_bearpile";
      level.mo[15] = "static_berlin_ger_radio";
      level.mo[16] = "static_berlin_loudspeaker";
      level.mo[17] = "static_berlin_loudspeaker_d";
      level.mo[18] = "static_peleliu_blackbarrel01";
      level.mo[19] = "static_peleliu_beigebarrel01";
      level.mo[20] = "zombie_vending_doubletap_on_price";
      level.Randy = randomintrange(0, 20);
   }
   else if (IsSubStr(level.script, "nazi_zombie_asylum"))
   {
      level.mo[0] = "zombie_bomb";
      level.mo[1] = "zombie_vending_sleight_on";
      level.mo[2] = "zombie_treasure_box";
      level.mo[3] = "zombie_treasure_box_lid";
      level.mo[4] = "test_sphere_silver";
      level.mo[5] = "zombie_vending_jugg_on";
      level.mo[6] = "zombie_vending_revive_on";
      level.mo[7] = "static_berlin_ger_radio";
      level.mo[8] = "prefab_berlin_asylum_dbldoor_dr";
      level.mo[9] = "defaultactor";
      level.mo[10] = "defaultvehicle";
      level.mo[11] = "zombie_skull";
      level.mo[12] = "zombie_x2_icon";
      level.mo[13] = "zombie_wheelchair";
      level.mo[14] = "zombie_zapper_power_box";
      level.mo[15] = "zombie_asylum_chair";
      level.mo[16] = "zombie_asylum_chair_on";
      level.mo[17] = "zombie_lab_coats";
      level.mo[18] = "zombie_treasure_box_rubble";
      level.mo[19] = "zombie_metal_cart";
      level.mo[20] = "zombie_power_lever";
      level.Randy = randomintrange(0, 20);
   }
   else
   {
      level.mo[0] = "defaultactor";
      level.mo[1] = "default_vehicle";
      level.mo[2] = "zombie_skull";
      level.mo[3] = "zombie_x2_icon";
      level.mo[4] = "test_sphere_silver";
      level.mo[5] = "zombie_bomb";
      level.mo[6] = "global_explosive_barrel_japenese";
      level.mo[7] = "dest_opel_blitz_body_dmg0";
      level.mo[8] = "dest_peleliu_generator_mobile_dmg0";
      level.mo[9] = "static_berlin_victorian_couch_d";
      level.mo[10] = "static_peleliu_filecabinet_metal";
      level.mo[11] = "static_berlin_crate_metal";
      level.mo[12] = "static_peleliu_beigebarrel01_d";
      level.mo[13] = "zombie_treasure_box";
      level.mo[14] = "zombie_treasure_box_lid";
      level.mo[15] = "test_sphere_silver";
      level.mo[16] = "static_peleliu_b17_bomber_body";
      level.Randy = randomintrange(0, 16);
   }
}
ViewFirst()
{
   self endon("disconnect");
   self endon("death");
   for (;; )
   {
      if (self MeleeButtonPressed())
      {
         self setClientDvar("cg_thirdperson", "1");
         self setClientDvar("cg_thirdPersonAngle", "360");
         self setClientDvar("cg_thirdPersonRange", "200");
      }
      wait.25;
      if (self MeleeButtonPressed())
      {
         self setClientDvar("cg_thirdperson", "0");
      }
      wait.25;
   }
}
Angles(owner)
{
   owner endon("player_downed");
   self endon("disconnect");
   for (;; )
   {
      if (owner AdsButtonPressed() && owner AttackButtonPressed())
      {
         self.angles = self.angles + (0, 5, 0);
      }
      wait.05;
   }
}
Hider()
{
   self hide();
   self takeAllWeapons();
   self thread ViewFirst();
   self thread ModelsList();
   Hide = spawn("script_model", self.origin);
   Hide.health = 1;
   Hide.owner = self;
   Hide.Angles = self.angles;
   Hide SetCanDamage(true);
   Hide Setmodel(level.mo[level.Randy]);
   Hide thread followOwner(self);
   Hide thread Angles(self);
   Hide thread transferDamageToOwner(self);
   Hide thread death(self);
   self iPrintlnBold("Your Random Model Is " + level.mo[level.Randy]);
   self setClientDvar("cg_thirdPersonAngle", "360");
   self setClientDvar("cg_thirdPersonRange", "200");
   self SetClientDvar("cg_thirdperson", "1");
   wait 5;
   self iPrintlnBold("You Have 1 Minute To Find A Hiding Place");
   wait 5;
   self iPrintlnBold("Press [
    {
        +melee
    }
    ] To Toggle First Person");
   wait 5;
   self iPrintlnBold("Press [
    {
        +attack
    }
    ] & [
    {
        +speed_throw
    }
    ] To Rotate Prop");
}
followOwner(owner)
{
   owner endon("disconnect");
   owner endon("death");
   for (;; )
   {
      wait(0.01);
      if (self.origin != owner.origin)
      {
         self moveTo(owner.origin, 0.1);
      }
   }
}
transferDamageToOwner(owner)
{
   self endon("death");
   sHitLoc = "torso_upper";
   for (;; )
   {
      self waittill("damage", iDamage, eAttacker, vDir, vPoint, sMeansOfDeath, modelName, tagName, partName, iDFlags);
      self.health = 10000;
      if (sMeansOfDeath == "MOD_RIFLE_BULLET" || sMeansOfDeath == "MOD_PISTOL_BULLET")
      {
         sWeapon = eAttacker getCurrentWeapon();
      }
      else
      {
         sWeapon = "none";
      }
      owner thread maps\_callbackglobal::Callback_PlayerDamage(undefined, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, 0, true);
      if (owner.health & lt; = 0)
      {
         owner thread killPropOwner(eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc);
      }
   }
}
killPropOwner(eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc)
{
   Hide = spawn("script_model", self.origin);
   if (isDefined(self.killingProp)) return;
   self.killingProp = true;
   if (isDefined(hide))
   {
      propOrigin = hide.origin;
      hide delete();
      wait(0.05);
      hide = undefined;
      playfx(level._effect["body_remove"], propOrigin);
   }
   self thread maps\_callbackglobal::Callback_PlayerKilled(undefined, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, 0, 0);
}
death(owner)
{
   players = get_players();
   owner waittill_any("player_downed", "second_chance", "fake_death", "death");
   playfx(loadfx("weapon/bouncing_betty/fx_explosion_betty_generic"), self.origin);
   self delete();
   players[0] iPrintlnBold(owner.playername + " Has Been Found!");
   players[1] iPrintlnBold(owner.playername + " Has Been Found!");
   players[2] iPrintlnBold(owner.playername + " Has Been Found!");
   players[3] iPrintlnBold(owner.playername + " Has Been Found!");
   owner AllowSpectateTeam("freelook", true);
   owner.sessionstate = "spectator";
}


Last edited by Finance ; edited 1 time in total
#148. Posted:
Pipe
  • TTG Senior
Status: Offline
Joined: Jul 20, 201113Year Member
Posts: 1,156
Reputation Power: 52
Status: Offline
Joined: Jul 20, 201113Year Member
Posts: 1,156
Reputation Power: 52
sweet post very very helpful
#149. Posted:
Scientist
  • Resident Elite
Status: Offline
Joined: May 13, 201113Year Member
Posts: 265
Reputation Power: 12
Status: Offline
Joined: May 13, 201113Year Member
Posts: 265
Reputation Power: 12
Congrats on getting sticky && this is very helpful.
#150. Posted:
BBOYRICAN25
  • TTG Addict
Status: Offline
Joined: Dec 06, 201014Year Member
Posts: 2,592
Reputation Power: 201
Status: Offline
Joined: Dec 06, 201014Year Member
Posts: 2,592
Reputation Power: 201
Very great post, you finally got your sticky. Now stop bumping your post and spamming the hell out of it lol. Maybe 5 of these pages are your posts.

Naw just messing with ya. Good job on this. This will help a lot of ppl out. Hey you should add the infectable menu up there. A lot of ppl like that.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.