mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 07:13:21 +00:00
FlyYouFools: Remove debug statement
This commit is contained in:
parent
2d771b8dae
commit
13b1e424e2
2 changed files with 8 additions and 8 deletions
Binary file not shown.
|
@ -70,25 +70,25 @@ public void Event_PlayerHurt(Event event, const char[] name, bool dontBroadcast)
|
||||||
if(StrContains(attackerName, "Tank", true) > -1) {
|
if(StrContains(attackerName, "Tank", true) > -1) {
|
||||||
bIsTank[targetPlayer] = false;
|
bIsTank[targetPlayer] = false;
|
||||||
iAliveTanks = 0;
|
iAliveTanks = 0;
|
||||||
PrintToChatAll("%N (%d) was hit by tank %s (%d)", targetPlayer, targetPlayer, attackerName, attacker);
|
//PrintToChatAll("%N (%d) was hit by tank %s (%d)", targetPlayer, targetPlayer, attackerName, attacker);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
New logic overview:
|
|
||||||
1. Loop all valid survivors
|
|
||||||
2. Loop all tanks per survivor
|
|
||||||
3. Find the closest tank
|
|
||||||
4. Retreat if in close range (~300 units)
|
|
||||||
|
|
||||||
CommandABot:
|
CommandABot:
|
||||||
0 -> ATTACK
|
0 -> ATTACK
|
||||||
1 -> MOVETO
|
1 -> MOVETO
|
||||||
2 -> RUN AWAY
|
2 -> RUN AWAY
|
||||||
3 -> RESET
|
3 -> RESET
|
||||||
|
|
||||||
|
New logic overview:
|
||||||
|
1. Loop all valid survivors
|
||||||
|
2. Loop all tanks per survivor
|
||||||
|
3. Find the closest tank
|
||||||
|
4. Retreat if in close range (~300 units)
|
||||||
*/
|
*/
|
||||||
public Action BotControlTimerV2(Handle timer)
|
public Action BotControlTimerV2(Handle timer)
|
||||||
{
|
{
|
||||||
//remove timer once tank no longer exists, is dead, or finale escape vehicle arrived
|
//remove timer once tanks no longer exists/are all dead or finale escape vehicle arrived
|
||||||
if(bEscapeReady || iAliveTanks == 0) {
|
if(bEscapeReady || iAliveTanks == 0) {
|
||||||
//Check if there is any existing bots, if escape NOT ready
|
//Check if there is any existing bots, if escape NOT ready
|
||||||
if(!bEscapeReady) FindExistingTank();
|
if(!bEscapeReady) FindExistingTank();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue