1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-23 13:40:22 -05:00

Containment: ignore players correctly on respawn and revive

Optimize ignore player on revive code
This commit is contained in:
Jbleezy
2022-01-30 11:31:48 -08:00
parent 003cd43455
commit c5154ed8a4
3 changed files with 49 additions and 10 deletions

View File

@ -902,6 +902,22 @@ player_laststand( einflictor, attacker, idamage, smeansofdeath, sweapon, vdir, s
}
}
player_spawn_protection()
{
self endon( "disconnect" );
self.spawn_protection = 1;
for ( x = 0; x < 60; x++ )
{
self.ignoreme = 1;
wait 0.05;
}
self.ignoreme = 0;
self.spawn_protection = 0;
}
wait_and_revive()
{
flag_set( "wait_and_revive" );