SHARE
TWEET

Untitled

a guest Jun 19th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. static Float:Velocity[3];pev(id,pev_velocity,Velocity)
  2.             static Float:len ;len=floatsqroot(Velocity[0]*Velocity[0]+Velocity[1]*Velocity[1])
  3.             if(pev(id, pev_flags) & FL_DUCKING){
  4.                 if(len>Attack_Speed_duck){
  5.                     Velocity[0]=Velocity[0]/len*Attack_Speed_duck
  6.                     Velocity[1]=Velocity[1]/len*Attack_Speed_duck
  7.                     set_pev(id,pev_velocity,Velocity)
  8.                 }
  9.             }
  10.             else{
  11.                 if(len>Attack_Speed){
  12.                     Velocity[0]=Velocity[0]/len*Attack_Speed
  13.                     Velocity[1]=Velocity[1]/len*Attack_Speed
  14.                     set_pev(id,pev_velocity,Velocity)
  15.                 }
  16.             }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top