skroton

Untitled

May 31st, 2014
223
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SCRIPT "GunRecoil" (void)
  2. {
  3. int GunRecoil = (CheckInventory("WeaponSkillCounter") / 5);
  4. int RandomAngle = random(-[angle in degrees/180],[angle in degrees/180]);
  5. while (GunRecoil > 0)
  6. {
  7. PrintBold(i:GunRecoil);
  8. ChangeActorAngle(0, ((GetActorAngle(0) + RandomAngle)), 1);
  9. ChangeActorPitch(0, ((GetActorPitch(0) - (FixedMul(GunRecoil,[angle in degrees*(0.25/90)])), 1);
  10. GunRecoil--;
  11. Delay(1);
  12. }
  13. }
RAW Paste Data