Moved team balancing to round start in stead of round end. Fixes issue with maps or plugins inspecting player teams in round end event; being unable to detect which players that are zombies when the round has ended. Thanks to "Neuro Toxin".
Possible side effect: After round end, but before restart, zombies may not be able to pick up weapons to use in the next round. This might be ok, it's just dumb zombies. But it should be possible to fix this in the weapon restrict module if there's a need for it.
This commit is contained in:
parent
d286d29652
commit
1e7b0e6267
@ -121,6 +121,12 @@ RoundEndOnRoundStart()
|
|||||||
// Reset timer handle.
|
// Reset timer handle.
|
||||||
tRoundEnd = INVALID_HANDLE;
|
tRoundEnd = INVALID_HANDLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Balance teams if enabled.
|
||||||
|
if (GetConVarBool(g_hCvarsList[CVAR_ROUNDEND_BALANCE_TEAMS]))
|
||||||
|
{
|
||||||
|
RoundEndBalanceTeams();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -192,12 +198,6 @@ RoundEndOnRoundEnd(reason)
|
|||||||
|
|
||||||
// Display the overlay to all clients.
|
// Display the overlay to all clients.
|
||||||
RoundEndOverlayStart(outcome);
|
RoundEndOverlayStart(outcome);
|
||||||
|
|
||||||
// Balance teams if enabled.
|
|
||||||
if (GetConVarBool(g_hCvarsList[CVAR_ROUNDEND_BALANCE_TEAMS]))
|
|
||||||
{
|
|
||||||
RoundEndBalanceTeams();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user