mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 23:57:59 -05:00
Add player low health blood fx
This commit is contained in:
@ -40,6 +40,7 @@
|
|||||||
* Normal health regeneration rate is no longer instant
|
* 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)
|
* 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
|
* 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 blur when getting damaged
|
||||||
* Removed shellshock when getting damaged from grenades
|
* Removed shellshock when getting damaged from grenades
|
||||||
* No longer killed when landing on top of another player
|
* No longer killed when landing on top of another player
|
||||||
|
@ -116,6 +116,8 @@ onplayerspawned()
|
|||||||
self thread bleedout_bar_hud();
|
self thread bleedout_bar_hud();
|
||||||
self thread zone_hud();
|
self thread zone_hud();
|
||||||
|
|
||||||
|
self thread veryhurt_blood_fx();
|
||||||
|
|
||||||
self thread ignoreme_after_revived();
|
self thread ignoreme_after_revived();
|
||||||
|
|
||||||
self thread fall_velocity_check();
|
self thread fall_velocity_check();
|
||||||
@ -1799,6 +1801,27 @@ set_lethal_grenade_init()
|
|||||||
level.zombie_lethal_grenade_player_init = "sticky_grenade_zm";
|
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()
|
ignoreme_after_revived()
|
||||||
{
|
{
|
||||||
self endon( "disconnect" );
|
self endon( "disconnect" );
|
||||||
|
Reference in New Issue
Block a user