Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ACTOR HighJumpPickup : CustomInventory 7082
- {
- Inventory.PickupMessage ""
- Inventory.PickupSound "you_are_under_arrest_for_intent_to_enjoy"
- +AUTOACTIVATE
- +NOGRAVITY
- +DONTGIB
- //+FLOATBOB
- States
- {
- Spawn:
- HJMP A 10 BRIGHT
- HJMP A 5
- loop
- Pickup:
- TNT1 A 0 A_JumpIfInventory("HighJumpAcquired",1,"PickupFail")
- // TNT1 A 0 ACS_ExecuteWithResult(594, 20, 5) // pickup message
- TNT1 A 0 A_GiveInventory("CanHighJump",1)
- TNT1 A 0 A_SetBlend("White", 0.5, 16)
- stop
- PickupFail:
- TNT1 A 0
- fail
- }
- }
- actor CanHighJump : CustomInventory {
- +INVBAR
- +INVENTORY.UNDROPPABLE
- +INVENTORY.HUBPOWER
- +INVENTORY.AUTOACTIVATE
- Inventory.MaxAmount 1
- States
- {
- Use:
- TNT1 A 0
- TNT1 A 0 A_JumpIfInventory("HighJumpActive",1,"Nope")
- TNT1 A 0 A_GiveInventory("HighJumpActive",1)
- TNT1 A 0 A_PlaySoundEx("grapl1","Weapon")
- fail
- Nope:
- TNT1 A 0 A_TakeInventory("HighJumpActive",1)
- fail
- }
- }
- actor HighJumpActive : CustomInventory
- {
- inventory.pickupmessage "High Jump activated."
- inventory.maxamount 1
- inventory.usesound "pickups/slowmo"
- translation "128:143=144:151"
- +NOINTERACTION
- +AUTOACTIVATE
- +INVENTORY.AUTOACTIVATE
- +INVENTORY.FANCYPICKUPSOUND
- states
- {
- Spawn:
- TNT1 A 1 A_GiveInventory("HJActive2",1)
- loop
- Pickup:
- TNT1 A 9 A_GiveInventory("HJActive2",1)
- TNT1 A 1 A_TakeInventory("HJActive2",1)
- loop
- Use:
- TNT1 A 9 A_GiveInventory("HJActive2",1)
- TNT1 A 1 A_TakeInventory("HJActive2",1)
- loop
- }
- }
- actor HJActive2 : PowerupGiver
- {
- inventory.pickupmessage "High Jump activated."
- inventory.maxamount 1
- inventory.usesound "pickups/slowmo"
- powerup.duration 100
- powerup.type "HighJump"
- translation "128:143=144:151"
- +AUTOACTIVATE
- +NOINTERACTION
- +INVENTORY.AUTOACTIVATE
- +INVENTORY.FANCYPICKUPSOUND
- states
- {
- Spawn:
- TNT1 A 100 bright
- Loop
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement