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:
parent
382b22831f
commit
464c71731f
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
@ -285,4 +296,17 @@ _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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user