hlsdk

Charge-dependent speed

Oct 25th, 2010
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. C_TFCompoundBow::GetProjectileSpeed(void)
  2. {
  3.     float charge = this->GetCurrentCharge();
  4.     if (charge < 0)
  5.         return 1800.0f;
  6.     else if (charge <= 1)
  7.         return 1800.0f + result * 800.0f;
  8.     else
  9.         return 2600.0f;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment