Game Modding | Call of Duty: Black Ops 3 | Scripting
ModmeBot:
Thread By: mathfag
How to kill all zombies via script, pause spawning and make them die out faster?
Also max distance from player.
I'm making a map where you teleport far away and the zombies take forever to die out. Kind of like on "moon" where you tp from area 51 to the moon.
ModmeBot:
Reply By: TCM
mathfag
How to kill all zombies via script, pause spawning and make them die out faster?Also max distance from player. I'm making a map where you teleport far away and the zombies take forever to die out. Kind of like on "moon" where you tp from area 51 to the moon.
ModmeBot:
Reply By: Harry Bo21
TCM
mathfag How to kill all zombies via script, pause spawning and make them die out faster?Also max distance from player. I'm making a map where you teleport far away and the zombies take forever to die out. Kind of like on "moon" where you tp from area 51 to the moon. I am sure you figured this out by now just wanted to post this in case it helps someone. To kill all zombies instantly you can do this function zombiekill() { zombs = getaiarray( "axis" ); level.zombie_total = 0; if( IsDefined( zombs ) ) { i = 0; while( i < zombs.size ) { zombs[ i] dodamage( zombs[ i].health * 5000, ( 0, 0, 0 ), self ); wait 0.05; i++; } } } To pause it you can do something like this BreakIt() { waitforbreaktime = 30; OldActorLimit = level.zombie_actor_limit; OldAiLimt = level.zombie_ai_limit; level.zombie_actor_limit = 0; level.zombie_ai_limit = 0; wait waitforbreaktime; level.zombie_actor_limit = OldActorLimit; level.zombie_ai_limit = OldAiLimt; }
ModmeBot:
Reply By: mathfag
TCM
mathfag How to kill all zombies via script, pause spawning and make them die out faster?Also max distance from player. I'm making a map where you teleport far away and the zombies take forever to die out. Kind of like on "moon" where you tp from area 51 to the moon. I am sure you figured this out by now just wanted to post this in case it helps someone. To kill all zombies instantly you can do this function zombiekill() { zombs = getaiarray( "axis" ); level.zombie_total = 0; if( IsDefined( zombs ) ) { i = 0; while( i < zombs.size ) { zombs[ i] dodamage( zombs[ i].health * 5000, ( 0, 0, 0 ), self ); wait 0.05; i++; } } } To pause it you can do something like this BreakIt() { waitforbreaktime = 30; OldActorLimit = level.zombie_actor_limit; OldAiLimt = level.zombie_ai_limit; level.zombie_actor_limit = 0; level.zombie_ai_limit = 0; wait waitforbreaktime; level.zombie_actor_limit = OldActorLimit; level.zombie_ai_limit = OldAiLimt; }
ModmeBot:
Reply By: TCM
mathfag
TCM mathfag How to kill all zombies via script, pause spawning and make them die out faster?Also max distance from player. I'm making a map where you teleport far away and the zombies take forever to die out. Kind of like on "moon" where you tp from area 51 to the moon. I am sure you figured this out by now just wanted to post this in case it helps someone. To kill all zombies instantly you can do this function zombiekill() { zombs = getaiarray( "axis" ); level.zombie_total = 0; if( IsDefined( zombs ) ) { i = 0; while( i < zombs.size ) { zombs[ i] dodamage( zombs[ i].health * 5000, ( 0, 0, 0 ), self ); wait 0.05; i++; } } } To pause it you can do something like this BreakIt() { waitforbreaktime = 30; OldActorLimit = level.zombie_actor_limit; OldAiLimt = level.zombie_ai_limit; level.zombie_actor_limit = 0; level.zombie_ai_limit = 0; wait waitforbreaktime; level.zombie_actor_limit = OldActorLimit; level.zombie_ai_limit = OldAiLimt; } Bruh did you seriously go back a year and a half? I don't even remember what map this was for :)