mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-05 19:53:20 +00:00
Fix getting survivor set too early
This commit is contained in:
parent
7e6eb4ed4b
commit
7f5aa6a014
2 changed files with 4 additions and 1 deletions
|
@ -299,7 +299,6 @@ public void OnClientCookiesCached(int client) {
|
|||
///////////////////////////////////////////////////////////////////////////////
|
||||
//Prevent issues with L4D1 characters being TP'd and stuck in brain dead form
|
||||
public void OnMapStart() {
|
||||
isL4D1Survivors = L4D2_GetSurvivorSetMap() == 1;
|
||||
|
||||
survivors = 0;
|
||||
|
||||
|
@ -308,6 +307,10 @@ public void OnMapStart() {
|
|||
}
|
||||
|
||||
GetCurrentMap(currentMap, sizeof(currentMap));
|
||||
RequestFrame(Frame_MapStart);
|
||||
}
|
||||
void Frame_MapStart() {
|
||||
isL4D1Survivors = L4D2_GetSurvivorSetMap() == 1;
|
||||
}
|
||||
|
||||
//Either use preferred model OR find the least-used.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue