mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
move shavit-misc config stuff and mapfixes stuff around
This commit is contained in:
parent
7b75eea957
commit
0ddf5f5c70
@ -569,27 +569,6 @@ public void Shavit_OnStyleChanged(int client, int oldstyle, int newstyle, int tr
|
||||
}
|
||||
}
|
||||
|
||||
public void OnConfigsExecuted()
|
||||
{
|
||||
if(sv_disable_immunity_alpha != null)
|
||||
{
|
||||
sv_disable_immunity_alpha.BoolValue = true;
|
||||
}
|
||||
|
||||
if (sv_disable_radar != null && gCV_HideRadar.BoolValue)
|
||||
{
|
||||
sv_disable_radar.BoolValue = true;
|
||||
}
|
||||
|
||||
if (gB_Late)
|
||||
{
|
||||
gB_Late = false;
|
||||
OnMapStart();
|
||||
}
|
||||
|
||||
LoadMapFixes();
|
||||
}
|
||||
|
||||
void LoadMapFixes()
|
||||
{
|
||||
char sPath[PLATFORM_MAX_PATH];
|
||||
@ -643,9 +622,10 @@ public void OnMapStart()
|
||||
|
||||
if (gB_Late)
|
||||
{
|
||||
gB_Late = false;
|
||||
Shavit_OnStyleConfigLoaded(Shavit_GetStyleCount());
|
||||
Shavit_OnChatConfigLoaded();
|
||||
return;
|
||||
OnAutoConfigsBuffered();
|
||||
}
|
||||
|
||||
if (!StrEqual(gS_CurrentMap, gS_PreviousMap, false))
|
||||
@ -659,6 +639,24 @@ public void OnMapStart()
|
||||
DeletePersistentData(i, aData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void OnAutoConfigsBuffered()
|
||||
{
|
||||
LoadMapFixes();
|
||||
}
|
||||
|
||||
public void OnConfigsExecuted()
|
||||
{
|
||||
if(sv_disable_immunity_alpha != null)
|
||||
{
|
||||
sv_disable_immunity_alpha.BoolValue = true;
|
||||
}
|
||||
|
||||
if (sv_disable_radar != null && gCV_HideRadar.BoolValue)
|
||||
{
|
||||
sv_disable_radar.BoolValue = true;
|
||||
}
|
||||
|
||||
if(gCV_CreateSpawnPoints.IntValue > 0)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user