Advertisement
tempanon

Untitled

Aug 1st, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. #include "zcommon.acs"
  2.  
  3. int countMonsters = 0,
  4. deadMonsters = LEVELINFO_KILLED_MONSTERS;
  5.  
  6. script 1 OPEN
  7. {
  8. while (countMonsters < 150)
  9. {
  10. //Spawns zombies
  11. Thing_SpawnFacing (1, T_ZOMBIE, TRUE, 0);
  12. //every 10 seconds
  13. Delay (35 * 10);
  14. //adds to countMonsters integer after every spawn
  15. countMonsters++;
  16. }
  17. }
  18.  
  19. script 2 OPEN
  20. {
  21. while (countMonsters < 150)
  22. {
  23. //Spawns zombies
  24. Thing_SpawnFacing (2, T_ZOMBIE, TRUE, 0);
  25. //every 15 seconds
  26. Delay (35 * 15);
  27. //adds to countMonsters integer after every spawn
  28. countMonsters++;
  29. }
  30. }
  31.  
  32. script 3 OPEN
  33. {
  34. while (countMonsters < 150)
  35. {
  36. //Spawns imps
  37. Thing_SpawnFacing (3, T_IMP, TRUE, 0);
  38. //every 10 seconds
  39. Delay (35 * 10);
  40. //adds to countMonsters integer after every spawn
  41. countMonsters++;
  42. }
  43. }
  44.  
  45. script 4 OPEN
  46. {
  47. while (countMonsters < 150)
  48. {
  49. //Spawns imp
  50. Thing_SpawnFacing (4, T_IMP, TRUE, 0);
  51. //every 15 seconds
  52. Delay (35 * 15);
  53. //adds to countMonsters integer after every spawn
  54. countMonsters++;
  55. }
  56. }
  57.  
  58. script 5 OPEN
  59. {
  60. //Displays total monsters killed and monster limit
  61. HudMessage (s:"Monsters Killed - ", i:deadMonsters, s:"/150";
  62. HUDMSG_PLAIN, 0, CR_RED, 0.5, 0.25, 0);
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement