Advertisement
Guest User

Untitled

a guest
Nov 13th, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. actor whipitem : custominventory
  2. {
  3. Inventory.PickupMessage "Whip Sub item!"
  4. inventory.pickupsound "subitems/whipget"
  5. Inventory.Amount 1
  6. Inventory.MaxAmount 3
  7. Inventory.InterHubAmount 3
  8. Inventory.Icon LWICN
  9. +inventory.keepdepleted
  10. +INVBAR
  11. +FLOORCLIP
  12. +floatbob
  13. states
  14. {
  15. spawn:
  16. WHIP A 10 bright
  17. WHIP A 4
  18. loop
  19. pickup:
  20. TNT1 A 0 a_jumpifinventory ("whipitem", 1, "upgrade")
  21. TNT1 A 0 a_giveinventory ("whipitem", 1)
  22. stop
  23. upgrade:
  24. TNT1 A 0 a_takeinventory ("whipitem", 99)
  25. TNT1 A 0 a_giveinventory ("whipitem2", 1)
  26. stop
  27. use:
  28. TNT1 A 1 a_jumpifinventory ("whipcooldown", 1, "use2")
  29. TNT1 A 0 a_giveinventory ("whipcooldown", 1)
  30. TNT1 A 0 a_firecustommissile ("leatherwhip",0,0,-5,-2)
  31. fail
  32. use2:
  33. TNT1 A 0
  34. fail
  35. }
  36. }
  37.  
  38. actor whipitem2 : custominventory
  39. {
  40. Inventory.PickupMessage "Whip Sub item!"
  41. inventory.pickupsound "subitems/whipget"
  42. Inventory.Amount 1
  43. Inventory.MaxAmount 3
  44. Inventory.InterHubAmount 3
  45. Inventory.Icon CWICN
  46. +inventory.keepdepleted
  47. +INVBAR
  48. +FLOORCLIP
  49. +floatbob
  50. states
  51. {
  52. spawn:
  53. WHIP A 10 bright
  54. WHIP A 4
  55. loop
  56. pickup:
  57. TNT1 A 0 a_jumpifinventory ("whipitem2", 1, "upgrade")
  58. stop
  59. upgrade:
  60. TNT1 A 0 a_takeinventory ("whipitem", 99)
  61. TNT1 A 0 a_giveinventory ("whipitem2", 1)
  62. stop
  63. use:
  64. TNT1 A 1 a_jumpifinventory ("whipcooldown", 1, "use2")
  65. TNT1 A 0 a_giveinventory ("whipcooldown", 1)
  66. TNT1 A 0 a_firecustommissile ("chainwhip",0,0,-5,-2)
  67. fail
  68. use2:
  69. TNT1 A 0
  70. fail
  71. }
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement