natesmithzombies

new speed

Jan 3rd, 2017
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.85 KB | None | 0 0
  1. // Paste the below in your mapname.gsc
  2.  
  3. function increase_zom_sprint_speed()
  4. {
  5.     level.nsz_custom_zombie_speed_rate = 1.25; // change this to any number where 1 is normal speed, 0.5 is half, and 2 is double speed
  6.    
  7.     if( !isDefined( level._zombie_custom_spawn_logic ) )
  8.         level._zombie_custom_spawn_logic = [];
  9.    
  10.     level._zombie_custom_spawn_logic[ level._zombie_custom_spawn_logic.size ] = &change_zom_anim_rate;
  11. }
  12.  
  13. function change_zom_anim_rate()
  14. {
  15.     // iprintlnbold( "^2Increased Move Speed Scale" );
  16.     rate = level.nsz_custom_zombie_speed_rate;
  17.     self ASMSetAnimationRate( rate );
  18.    
  19.     while(1)
  20.     {
  21.         if( isDefined( self.b_widows_wine_slow ) && self.b_widows_wine_slow )
  22.         {
  23.             wait(0.1);
  24.             continue;
  25.         }
  26.         else
  27.             self ASMSetAnimationRate( rate );
  28.         wait(0.1);
  29.     }
  30.    
  31. }
  32.  
  33. // add this in your function main
  34.  
  35. increase_zom_sprint_speed();
Advertisement
Add Comment
Please, Sign In to add comment