SHARE
TWEET

Untitled

skroton May 31st, 2014 186 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     SCRIPT "GunRecoil" (void)
  2.     {
  3.             int GunRecoil = (CheckInventory("WeaponSkillCounter")*[(max recoil angle in degrees - min recoil angle in degrees) *(0.25/9000)]+[min recoil angle in degrees*(0.25/90)]);
  4.                         int GunRecoilTime = (CheckInventory("WeaponSkillCounter") / 5);
  5.             int RandomAngle = random(-[angle in degrees/180],[angle in degrees/180]);
  6.             while (GunRecoil > 0)
  7.             {
  8.                     PrintBold(i:GunRecoil);
  9.                     ChangeActorAngle(0, ((GetActorAngle(0) + RandomAngle)), 1);
  10.                     ChangeActorPitch(0, ((GetActorPitch(0) - GunRecoil), 1);
  11.                                         GunRecoil = (whatever you want to do here);
  12.                     GunRecoilTime--;
  13.                     Delay(1);
  14.             }
  15.     }
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
Top