skroton

Untitled

May 31st, 2014
192
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