Advertisement
Guest User

Improved bullet killer/victim script

a guest
Mar 17th, 2018
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. {"human" ;paste onto the very bottom of human.inc
  2. (define "step1"
  3.  
  4. ;PREVENT CRASH
  5. {if not tagged "thats_it2"
  6. {tags add "thats_it2"}
  7. ;{delay 0.001 {tags remove "thats_it2"}}
  8.  
  9. ;{spawn "explosion"}
  10.  
  11.  
  12. ;CHECK IF ALIVE
  13. {if not operatable
  14.  
  15. ;VICTIM
  16. ;{talk "things_look_blue"}
  17. ;;;;;;;;;;;VICTIM END;;;;;;;;;;;;;;;;;;;;;;
  18. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  19. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  20.  
  21. ;KILLER within this bracket
  22. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  24. {if effector {with_effector
  25.  
  26.  
  27.  
  28. ;("health_damage" c(-75)) ;add health
  29.  
  30.  
  31. {if able "talk" ;kill enemy talk
  32. {talk "kill_enemy"}{able "talk" 0}{delay 5 7 {able "talk" 1}}
  33. }
  34.  
  35.  
  36. {damage_report "head" "<s(5)c(ffffff)>KILLED\nSOMEONE"}
  37.  
  38. }}
  39. ;;;;;;;;;;;;;KILLER END;;;;;;;;;;;;;;;;;
  40. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  41. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  42. }
  43. }
  44.  
  45.  
  46. {tags remove "bullet_h"}
  47. {if not dead {tags remove "thats_it2"}}
  48. )
  49.  
  50. {on "hit-light"
  51. ("step1")
  52. }
  53. {on "hit-heavy"
  54. ("step1")
  55. }
  56. {on "hit-scream"
  57. ("step1")
  58. }
  59. {on "die"
  60. ("step1")
  61. }
  62.  
  63.  
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement