Advertisement
ijontichy

DECORATE.dec

Aug 15th, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. actor DoomPlayerBackpack: DoomPlayer
  2. {
  3. States
  4. {
  5. Death:
  6. PLAY H 0 ACS_ExecuteAlways(393)
  7. goto Super::Death
  8.  
  9. XDeath:
  10. PLAY O 0 ACS_ExecuteAlways(393)
  11. goto Super::XDeath
  12. }
  13. }
  14.  
  15. actor PickingUpDropPack: Inventory
  16. {
  17. Inventory.MaxAmount 0x7FFFFFFF
  18. +UNDROPPABLE
  19. }
  20.  
  21. actor DropPack
  22. {
  23. +LOOKALLAROUND
  24. +NOTIMEFREEZE
  25. Radius 0
  26. Height 0
  27.  
  28. States
  29. {
  30. Spawn:
  31. BPAK A 1 A_LookEx(LOF_NOSOUNDCHECK, 0, 28, 0, 360, "CheckPickup")
  32. loop
  33.  
  34. CheckPickup:
  35. BPAK A 1 A_JumpIfCloser(32, "Pickup")
  36. goto Spawn
  37.  
  38. Pickup:
  39. TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(393, 1) == 1, "PickupSuccess")
  40. goto PickupFail
  41.  
  42. PickupFail:
  43. BPAK A 1
  44. goto Spawn
  45.  
  46. PickupSuccess:
  47. TNT1 A 0 A_SetBlend("0,0,0",0,0)
  48. stop
  49. }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement