1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-07 21:59:49 -05:00

Time Bomb: revives all downed players

This commit is contained in:
Jbleezy 2024-06-14 21:32:48 -07:00
parent 382b22831f
commit 464c71731f
2 changed files with 25 additions and 0 deletions

View File

@ -694,6 +694,7 @@
#### Time Bomb
* No longer sends players back in time
* Kills all zombies
* Revives all downed players
* Can have with Monkey Bombs
* Switches to detonator at correct time after throwing
* Fixed detonator raise and drop anims

View File

@ -189,6 +189,7 @@ time_bomb_detonation()
wait 4;
_time_bomb_kill_all_active_enemies();
_time_bomb_revive_all_downed_players();
delete_time_bomb_model();
_time_bomb_hide_overlay();
@ -213,6 +214,16 @@ _time_bomb_show_overlay()
player enableinvulnerability();
}
a_players = get_players(level.time_bomb_save_data.player_used.team);
foreach (player in a_players)
{
if (player maps\mp\zombies\_zm_laststand::player_is_in_laststand())
{
player.bleedout_time = getdvarfloat("player_lastStandBleedoutTime");
}
}
level thread kill_overlay_at_match_end();
}
@ -286,3 +297,16 @@ _kill_time_bomb_enemy()
self delete();
}
}
_time_bomb_revive_all_downed_players()
{
players = get_players(level.time_bomb_save_data.player_used.team);
foreach (player in players)
{
if (player maps\mp\zombies\_zm_laststand::player_is_in_laststand())
{
player maps\mp\zombies\_zm_laststand::auto_revive(level.time_bomb_save_data.player_used);
}
}
}