diff --git a/README.md b/README.md index e83cd6c6..78b1783a 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ * Normal health regeneration rate is no longer instant * Changed health regeneration rate to 100 health per second (normally fully restored health in 0.5 seconds) * Fall damage no longer increases when max health is increased +* Added blood fx when at or below 20% health * Removed blur when getting damaged * Removed shellshock when getting damaged from grenades * No longer killed when landing on top of another player diff --git a/scripts/zm/_zm_reimagined.gsc b/scripts/zm/_zm_reimagined.gsc index 12711839..dc2188ea 100644 --- a/scripts/zm/_zm_reimagined.gsc +++ b/scripts/zm/_zm_reimagined.gsc @@ -116,6 +116,8 @@ onplayerspawned() self thread bleedout_bar_hud(); self thread zone_hud(); + self thread veryhurt_blood_fx(); + self thread ignoreme_after_revived(); self thread fall_velocity_check(); @@ -1799,6 +1801,27 @@ set_lethal_grenade_init() level.zombie_lethal_grenade_player_init = "sticky_grenade_zm"; } +veryhurt_blood_fx() +{ + self endon( "disconnect" ); + + while(1) + { + health_ratio = self.health / self.maxhealth; + + if(health_ratio <= 0.2) + { + playFXOnTag(level._effect["zombie_guts_explosion"], self, "J_SpineLower"); + + wait 1; + + continue; + } + + wait 0.05; + } +} + ignoreme_after_revived() { self endon( "disconnect" );