Advertisement
Guest User

Actor Example for CustomInventory Pickup death looping thing

a guest
Dec 19th, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. actor TheOneRing : CustomInventory 27334
  2. {
  3. var int user_theta;
  4. radius 4
  5. height 4
  6. mass 666
  7. +FLOATBOB
  8. +INVENTORY.ALWAYSPICKUP
  9. +INVENTORY.BIGPOWERUP
  10. scale 0.05
  11. inventory.icon "RINGA0"
  12. Inventory.PickupMessage "You are now the \cfLord of The Rings\c-!! :D"
  13. Inventory.PickupSound "getonering"
  14.  
  15. States
  16. {
  17. NoMore:
  18. RING A 0 A_FadeOut(1.0)
  19. Loop
  20. Spawn:
  21. RING A 0
  22. RING A 0 A_Stopsound(CHAN_ITEM)
  23. RING A 0 A_Playsound("TheOneRing/Hum",CHAN_ITEM)
  24. RING A 0 ACS_ExecuteAlways(841,0,0,0,0)
  25. RING A 0 A_JumpIf(args[3] == 1,"NoMore")
  26. RING A 0 A_SetUserVar("user_theta",0)
  27. SpawnPhase1:
  28. RING A 0 ACS_ExecuteAlways(841,0,0,0,0)
  29. RING A 0 A_JumpIf(args[3] == 1,"NoMore")
  30. RING A 2 bright
  31. RING A 0 A_SetUserVar("user_theta",user_theta+1)
  32. RING A 0 A_JumpIf(user_theta==10,"StartSpawnPhase2")
  33. loop
  34. StartSpawnPhase2:
  35. RING A 0 A_SetUserVar("user_theta",0)
  36. SpawnPhase2:
  37. RING A 0 ACS_ExecuteAlways(841,0,0,0,0)
  38. RING A 0 A_JumpIf(args[3] == 1,"NoMore")
  39. RING A 2 bright A_FadeOut(0.05)
  40. RING A 0 A_SetUserVar("user_theta",user_theta+1)
  41. RING A 0 A_JumpIf(user_theta==20,"StartSpawnPhase3")
  42. loop
  43. StartSpawnPhase3:
  44. RING A 0 A_SetUserVar("user_theta",0)
  45. SpawnPhase3:
  46. RING A 0 ACS_ExecuteAlways(841,0,0,0,0)
  47. RING A 0 A_JumpIf(args[3] == 1,"NoMore")
  48. RING A 2 bright
  49. RING A 0 A_SetUserVar("user_theta",user_theta+1)
  50. RING A 0 A_JumpIf(user_theta==10,"StartSpawnPhase4")
  51. loop
  52. StartSpawnPhase4:
  53. RING A 0 A_SetUserVar("user_theta",0)
  54. SpawnPhase4:
  55. RING A 0 ACS_ExecuteAlways(841,0,0,0,0)
  56. RING A 0 A_JumpIf(args[3] == 1,"NoMore")
  57. RING A 2 bright A_FadeIn(0.05)
  58. RING A 0 A_SetUserVar("user_theta",user_theta+1)
  59. RING A 0 A_JumpIf(user_theta==20,"Spawn")
  60. loop
  61. Pickup:
  62. // Other Things
  63. TNT1 A 0 A_PlaySound("generalequip", 5)
  64. Stop
  65. Use:
  66. TNT1 A 0
  67. Stop
  68. }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement