This commit is contained in:
Jackz 2022-07-13 17:51:45 -05:00
parent 8195e8914f
commit 9862a41f11
No known key found for this signature in database
GPG key ID: E0BBD94CF657F603
4 changed files with 6 additions and 9 deletions

View file

@ -1,9 +1,8 @@
public void OnPluginEnd() {
UnhookEntityOutput("func_button", "OnPressed", Event_ButtonPress);
}
public void OnMapEnd() {
UnhookEntityOutput("func_button", "OnPressed", Event_ButtonPress);
public void OnConfigsExecuted() {
hSbFixEnabled = FindConVar("sb_fix_enabled");
hAbmAutoHard = FindConVar("abm_autohard");
}
public void OnMapStart() {
if(hBotReverseFFDefend.IntValue > 0) hSbFriendlyFire.BoolValue = true;
AddFileToDownloadsTable("sound/custom/meow1.mp3");

View file

@ -474,6 +474,6 @@ void StopHealingBots() {
KickClient(i);
}
}
hAbmAutoHard.IntValue = wasAbmAutoHard;
hSbFixEnabled.BoolValue = wasSbFixEnabled;
if(hAbmAutoHard != null) hAbmAutoHard.IntValue = wasAbmAutoHard;
if(hSbFixEnabled != null) hSbFixEnabled.BoolValue = wasSbFixEnabled;
}