1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 15:17:57 -05:00

Add player low health blood fx

This commit is contained in:
Jbleezy
2022-01-23 22:56:43 -08:00
parent d6cbfca12b
commit ed026cc530
2 changed files with 24 additions and 0 deletions

View File

@ -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

View File

@ -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" );