FlyYouFools: minor reset logic changes

This commit is contained in:
Jackzie 2020-10-14 13:09:37 -05:00
parent f31219a4f6
commit b4e52938df
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
2 changed files with 2 additions and 6 deletions

Binary file not shown.

View file

@ -44,7 +44,6 @@ public void OnPluginStart()
public void OnMapStart() {
resetPlugin();
FindExistingTank();
}
public void Event_RoundStart(Event event, const char[] name, bool dontBroadcast) {
@ -138,9 +137,7 @@ public Action BotControlTimerV2(Handle timer)
void resetPlugin() {
bEscapeReady = false;
iAliveTanks = 0;
for(int i = 0; i < sizeof(bIsTank); i++) {
bIsTank[i] = false;
}
FindExistingTank();
}
@ -153,8 +150,7 @@ public void FindExistingTank() {
GetClientName(i, name, sizeof(name));
if(StrContains(name, "Tank", true) > -1) {
bIsTank[i] = true;
PrintToChatAll("Found existing tank: %N (%i)", i, i);
PrintToServer("Found existing tank: %N (%i)", i, i);
iAliveTanks++;
continue;
}