Advertisement
aokmikey

Untitled

Dec 7th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1. [quote author=arceus link=topic=4915.msg54838#msg54838 date=1417963176]
  2.  
  3. [code]charge()
  4. {
  5.   self endon( "grenade_fire" );
  6.    
  7.   time = 0;
  8.    
  9.   self.damage = 550;
  10.    
  11.   first_charge = false;
  12.   while(1)
  13.   {
  14.     wait(1);
  15.        
  16.     if(time > 2 && first_charge == false)
  17.     {
  18.       self.damage = 1500;
  19.       first_charge = true;
  20.       // break;
  21.     }
  22.     if(time >= 4)
  23.     {
  24.       self.damage = 2000;
  25.       break;
  26.     }
  27.     time++;
  28.   }
  29. }[/code]
  30.  
  31. [/quote]
  32.  
  33. simples. It can not hit the second stage. because as soon as it hits the first change to breaks and does not allow it to continue if the grande is held :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement