mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-12 08:08:00 -05:00
Grief: increment score on last stand player disconnect
This commit is contained in:
@ -736,11 +736,21 @@ grief_onplayerconnect()
|
||||
|
||||
grief_onplayerdisconnect(disconnecting_player)
|
||||
{
|
||||
level endon("end_game");
|
||||
|
||||
if(!flag("initial_players_connected"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if(level.scr_zm_ui_gametype_obj == "zgrief")
|
||||
{
|
||||
if(disconnecting_player maps/mp/zombies/_zm_laststand::player_is_in_laststand())
|
||||
{
|
||||
increment_score(getOtherTeam(disconnecting_player.team));
|
||||
}
|
||||
}
|
||||
|
||||
players = get_players();
|
||||
count = 0;
|
||||
foreach(player in players)
|
||||
|
Reference in New Issue
Block a user