More Health/Health Changer Script for Zombie
-
onPlayerRevived() { self endon("disconnect"); level endon("end_game"); for(;;) { self waittill( "player_revived" ); max_total_health = 150; self setmaxhealth( max_total_health ); self thread checkJugg(); } }
checkJugg() { wait 0.1; if( self hasperk("specialty_armorvest")) { max_total_health = 250; self setmaxhealth( max_total_health ); } }
-
chasef7 Hello, no scripting experience here, do I just add these to the original script or do I have to do something else first?
-
@P00DL3W0Lf_GR
init() { level thread onplayerconnect(); } onplayerconnect() { for ( ;; ) { level waittill( "connecting", player ); player thread onplayerspawned(); player thread onPlayerRevived(); } } onplayerspawned() { level endon( "game_ended" ); self endon( "disconnect" ); for(;;) { self waittill( "spawned_player" ); self IPrintLnBold( "Max Health Boosted From 100hp to 150hp" ); self.maxhealth=150; self.health=self.maxhealth; } } onPlayerRevived() { self endon("disconnect"); level endon("end_game"); for(;;) { self waittill( "player_revived" ); if( self hasperk("specialty_armorvest")) { } else { max_total_health = 150; self setmaxhealth( max_total_health ); } } }
-
chasef7 Ok, so I ust had to mention the extra threads...
-
This post is deleted!
-
This mod doesn't seem to work on MOTD, I'm still taking two hit downs
-
Fennecsou I didn't understand, now the jugger will not make me 4 hit or you was just saying that if you change the value from 150 to any thing else the jugger will not change?
-
Fennecsou script doesn't check for afterlife in Mob while Jug is active. upon using afterlife with Jug health reverts to 150 even while having it. Any way to fix that?
-
NexusClover do you mean you have 150 health while having jug after using afterlife? if yes how do you know that this is the case?
-
Fennecsou Where can you get that Cold War Health Bar / HUD mod?
-
This post is deleted!
-
I tried to play with a friend and only I survived with 3 hits, my friend keeps falling with 2
Does he also have to install the mod for it to work? -
zelimpinho When he falls once and is revived he comes back with 150 HP, so at the beginning of every game he dies on purpose so he can gain the boost
-
can you make one for bo1 zombies please?
-
-
Works great for the most part. Mob of the dead seems to have a bug where after purchasing jug, If you go into afterlife from one of the shock switches on the wall, after you revive yourself you are reverted to 150hp while still having jug. I can see this with the mod that tells you how many zombies are left as well as your hp.