Advertisement
bauti777

Untitled

Sep 18th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. ACTOR HighJumpPickup : CustomInventory 7082
  2. {
  3. Inventory.PickupMessage ""
  4. Inventory.PickupSound "you_are_under_arrest_for_intent_to_enjoy"
  5. +AUTOACTIVATE
  6. +NOGRAVITY
  7. +DONTGIB
  8. //+FLOATBOB
  9. States
  10. {
  11. Spawn:
  12. HJMP A 10 BRIGHT
  13. HJMP A 5
  14. loop
  15.  
  16. Pickup:
  17. TNT1 A 0 A_JumpIfInventory("HighJumpAcquired",1,"PickupFail")
  18. // TNT1 A 0 ACS_ExecuteWithResult(594, 20, 5) // pickup message
  19. TNT1 A 0 A_GiveInventory("CanHighJump",1)
  20. TNT1 A 0 A_SetBlend("White", 0.5, 16)
  21. stop
  22.  
  23. PickupFail:
  24. TNT1 A 0
  25. fail
  26. }
  27. }
  28.  
  29. actor CanHighJump : CustomInventory {
  30. +INVBAR
  31. +INVENTORY.UNDROPPABLE
  32. +INVENTORY.HUBPOWER
  33. +INVENTORY.AUTOACTIVATE
  34. Inventory.MaxAmount 1
  35. States
  36. {
  37. Use:
  38. TNT1 A 0
  39. TNT1 A 0 A_JumpIfInventory("HighJumpActive",1,"Nope")
  40. TNT1 A 0 A_GiveInventory("HighJumpActive",1)
  41. TNT1 A 0 A_PlaySoundEx("grapl1","Weapon")
  42. fail
  43. Nope:
  44. TNT1 A 0 A_TakeInventory("HighJumpActive",1)
  45. fail
  46. }
  47. }
  48.  
  49.  
  50. actor HighJumpActive : CustomInventory
  51. {
  52. inventory.pickupmessage "High Jump activated."
  53. inventory.maxamount 1
  54. inventory.usesound "pickups/slowmo"
  55. translation "128:143=144:151"
  56. +NOINTERACTION
  57. +AUTOACTIVATE
  58. +INVENTORY.AUTOACTIVATE
  59. +INVENTORY.FANCYPICKUPSOUND
  60. states
  61. {
  62. Spawn:
  63. TNT1 A 1 A_GiveInventory("HJActive2",1)
  64. loop
  65. Pickup:
  66. TNT1 A 9 A_GiveInventory("HJActive2",1)
  67. TNT1 A 1 A_TakeInventory("HJActive2",1)
  68. loop
  69. Use:
  70. TNT1 A 9 A_GiveInventory("HJActive2",1)
  71. TNT1 A 1 A_TakeInventory("HJActive2",1)
  72. loop
  73. }
  74. }
  75.  
  76. actor HJActive2 : PowerupGiver
  77. {
  78. inventory.pickupmessage "High Jump activated."
  79. inventory.maxamount 1
  80. inventory.usesound "pickups/slowmo"
  81. powerup.duration 100
  82. powerup.type "HighJump"
  83. translation "128:143=144:151"
  84. +AUTOACTIVATE
  85. +NOINTERACTION
  86. +INVENTORY.AUTOACTIVATE
  87. +INVENTORY.FANCYPICKUPSOUND
  88. states
  89. {
  90. Spawn:
  91. TNT1 A 100 bright
  92. Loop
  93. }
  94. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement