Advertisement
VermillionX

ZScript - Fist Redux

Dec 12th, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. Class FistRedux : Actor
  2. {
  3. Default
  4. {
  5. Weapon.SelectionOrder 3700;
  6. Weapon.Kickback 100;
  7. Weapon.SlotNumber 1;
  8. Inventory.PickupMessage "You somehow learnt how to fight!";
  9. +WEAPON.MELEEWEAPON;
  10. +WEAPON.NOALERT;
  11. Weapon.AmmoType "Stamina";
  12. Weapon.AmmoGive 100;
  13. +AMMO_OPTIONAL;
  14. Obituary "%o felt to the combat skills of %k!";
  15. //$Category "Weapons"
  16. }
  17. States
  18. {
  19. Spawn:
  20. FIST P -1;
  21. Loop;
  22. Ready:
  23. PUCH A 0 A_JumpIfInventory("StamGen",5,3);
  24. PUCH A 0 A_GiveInventory("StamGen",2);
  25. PUCH A 1 A_WeaponReady;
  26. Loop;
  27. PUCH A 0 A_TakeInventory("StamGen",5);
  28. PUCH A 0 A_JumpIfInventory("Stamina",100,2);
  29. PUCH A 0 A_GiveInventory("Stamina",2);
  30. PUCH A 1 A_WeaponReady;
  31. Loop;
  32. Deselect:
  33. PUCH A 1 A_Lower;
  34. Loop;
  35. Select:
  36. PUCH A 1 A_Raise;
  37. Loop;
  38. Fire:
  39. PUCH A 0 A_JumpIfInventory("Stamina",5,1);
  40. GoTo Ready;
  41. PUCH A 0 A_JumpIfInventory("FistToken", 1, "LeftPunch");
  42. PUCH A 3 A_Playsound ("FIST/SWING");
  43. PUCH B 2;
  44. PUCH L 2 A_Punch;
  45. PUCH L 0 A_Punch;
  46. PUCH L 0 A_Punch;
  47. PUCH C 2;
  48. PUCH M 2;
  49. PUCH D 2;
  50. PUCH N 2;
  51. PUCH E 2;
  52. PUCH R 2;
  53. PUCH R 0 A_TakeInventory("Stamina",1);
  54. PUCH K 0 A_GiveInventory("FistToken",1);
  55. PUCH K 3 A_ReFire;
  56. GoTo Ready;
  57. LeftPunch:
  58. PUCH F 3 A_PlaySound ("FIST/SWING");
  59. PUCH G 2;
  60. PUCH O 2 A_Punch;
  61. PUCH O 0 A_Punch;
  62. PUCH O 0 A_Punch;
  63. PUCH H 2;
  64. PUCH P 2;
  65. PUCH I 2;
  66. PUCH Q 2;
  67. PUCH J 2;
  68. PUCH K 0 A_TakeInventory("Stamina",1);
  69. PUCH K 0 A_TakeInventory("FistToken",1);
  70. PUCH K 3 A_ReFire;
  71. GoTo Ready;
  72. Altfire:
  73. PUCH K 0 A_JumpIfInventory("Stamina",10,1);
  74. GoTo Ready;
  75. PUCH K 2 A_Playsound ("FIST/SWING");
  76. MLEG A 2;
  77. MLEG B 2;
  78. MLEG C 2 A_Punch;
  79. MLEG C 0 A_Punch;
  80. MLEG C 0 A_Punch;
  81. MLEG C 0 A_Punch;
  82. MLEG C 0 A_Punch;
  83. MLEG D 2;
  84. MLEG E 2;
  85. MLEG F 2;
  86. MLEG G 2;
  87. MLEG H 2;
  88. PUCH K 0 A_TakeInventory("Stamina",10);
  89. PUCH K 4 A_ReFire;
  90. GoTo Ready;
  91. }
  92. }
  93.  
  94. Class Stamina : Ammo
  95. {
  96. Default
  97. {
  98. Inventory.MaxAmount 100;
  99. }
  100. }
  101.  
  102. Class StamGen : Ammo
  103. {
  104. Default
  105. {
  106. Inventory.MaxAmount 5;
  107. }
  108. }
  109.  
  110. Class FistToken : Ammo
  111. {
  112. Default
  113. {
  114. Inventory.MaxAmount 1;
  115. }
  116. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement