Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "zcommon.acs"
- int countMonsters = 0,
- deadMonsters = LEVELINFO_KILLED_MONSTERS;
- script 1 OPEN
- {
- while (countMonsters < 150)
- {
- //Spawns zombies
- Thing_SpawnFacing (1, T_ZOMBIE, TRUE, 0);
- //every 10 seconds
- Delay (35 * 10);
- //adds to countMonsters integer after every spawn
- countMonsters++;
- }
- }
- script 2 OPEN
- {
- while (countMonsters < 150)
- {
- //Spawns zombies
- Thing_SpawnFacing (2, T_ZOMBIE, TRUE, 0);
- //every 15 seconds
- Delay (35 * 15);
- //adds to countMonsters integer after every spawn
- countMonsters++;
- }
- }
- script 3 OPEN
- {
- while (countMonsters < 150)
- {
- //Spawns imps
- Thing_SpawnFacing (3, T_IMP, TRUE, 0);
- //every 10 seconds
- Delay (35 * 10);
- //adds to countMonsters integer after every spawn
- countMonsters++;
- }
- }
- script 4 OPEN
- {
- while (countMonsters < 150)
- {
- //Spawns imp
- Thing_SpawnFacing (4, T_IMP, TRUE, 0);
- //every 15 seconds
- Delay (35 * 15);
- //adds to countMonsters integer after every spawn
- countMonsters++;
- }
- }
- script 5 OPEN
- {
- //Displays total monsters killed and monster limit
- HudMessage (s:"Monsters Killed - ", i:deadMonsters, s:"/150";
- HUDMSG_PLAIN, 0, CR_RED, 0.5, 0.25, 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement