ijontichy

<stdin>

Apr 28th, 2014
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. /////
  2. ///
  3. // DECORATE EXAMPLE
  4. ///
  5. ////
  6.  
  7. actor "Super Shotgun": SuperShotgun replaces SuperShotgun
  8. {
  9. AttackSound "none"
  10.  
  11. States
  12. {
  13. Fire:
  14. SHT2 A 0 A_JumpIfInventory("UseCoopBullets", 1, "CoopFire")
  15. SHT2 A 0 A_FireBullets(11.2, 7.1, 20, ACS_ExecuteWithResult(430, 1, 5, 3), "OneshotWeaponPuff", FBF_NORANDOM | FBF_USEAMMO)
  16. goto Fire2
  17.  
  18. CoopFire:
  19. // 112 for horizontal comes from (11.2 * 10)
  20. // 71 for vertical comes from (7.1 * 10)
  21. SHT2 AAAAAAAAAAAAAAAAAAAA 0 A_FireCustomMissile("OneshotBullet", ACS_ExecuteWithResult(473, 50, 112) / 100.0, 0, 0, 4, 0,
  22. ACS_ExecuteWithResult(473, 50, 71) / 100.0)
  23. SHT2 A 0 A_FireCustomMissile("AmmoWaster")
  24. goto Fire2
  25.  
  26. Fire2:
  27. SHT2 A 0 A_PlaySound("weapons/sshotf", CHAN_WEAPON)
  28. SHT2 A 7 bright A_GunFlash
  29. SHT2 B 7
  30. SHT2 C 7 A_CheckReload
  31. SHT2 D 7 A_OpenShotgun2
  32. SHT2 E 7
  33. SHT2 F 7 A_LoadShotgun2
  34. SHT2 G 6
  35. SHT2 H 6 A_CloseShotgun2
  36. Goto Ready
  37.  
  38. Hold:
  39. SHT2 A 3
  40. goto Fire
  41. }
  42. }
  43.  
  44.  
  45. /////
  46. ///
  47. // ACS
  48. ///
  49. ////
  50.  
  51. script 473 (int count, int low, int high)
  52. {
  53. int ret = 0;
  54. int i;
  55. if (!high) { high = low; low = -high; }
  56.  
  57. for (i = 0; i < count; i++) { ret += random(low, high); }
  58. SetResultValue(ret);
  59. }
Advertisement
Add Comment
Please, Sign In to add comment