1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-28 08:00:14 -05:00
Files
BO2-Reimagined/scripts/zm/replaced/_zm_chugabud.gsc
2022-01-11 05:09:20 -08:00

30 lines
651 B
Plaintext

#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\zombies\_zm_utility;
#include maps/mp/zombies/_zm_chugabud;
chugabud_bleed_timeout( delay, corpse )
{
self endon( "player_suicide" );
self endon( "disconnect" );
corpse endon( "death" );
wait delay;
if ( isDefined( corpse.revivetrigger ) )
{
while ( corpse.revivetrigger.beingrevived )
{
wait 0.01;
}
}
if ( flag( "solo_game" ) && self.lives > 0 && isDefined( self.loadout.perks ) && self.loadout.perks.size > 0 )
{
self.lives--;
corpse notify( "player_revived" );
return;
}
self chugabud_corpse_cleanup( corpse, 0 );
}