This commit is contained in:
Jackzie 2024-04-27 08:02:36 -05:00
parent f3ff80c5ab
commit 9a5aa5dd5f
24 changed files with 478 additions and 101 deletions

View file

@ -169,8 +169,7 @@ void OnTankBotSpawn(int client) {
SetEntProp(client, Prop_Send, "m_iHealth", health);
g_finaleStage = Stage_FirstTankSpawned;
return;
} else if(g_realSurvivorCount < 6 && g_finaleStage == Stage_FirstTankSpawned) {
// 2nd tank spawned
} else if(g_realSurvivorCount >= 6 && g_finaleStage == Stage_FirstTankSpawned) {
PrintDebug(DEBUG_SPAWNLOGIC, "OnTankBotSpawn: [FINALE] 2nd tank spawned");
float duration = GetRandomFloat(EXTRA_TANK_MIN_SEC, EXTRA_TANK_MAX_SEC);
// Pass it 0, which doesnt make it a split tank, has default health
@ -215,6 +214,7 @@ int CalculateExtraTankHealth(int client) {
int health = GetEntProp(client, Prop_Send, "m_iHealth");
float additionalHealth = float(g_survivorCount - 4) * cvEPITankHealth.FloatValue;
health += RoundFloat(additionalHealth);
if(health <= 0) PrintToServer("CalculateExtraTankHealth: returning 0?");
return health;
}

View file

@ -707,15 +707,15 @@ Action Command_SetReverseFF(int client, int args) {
} else if(StrEqual(arg, "1")) {
flag = 1;
} else {
ReplyToCommand(client, "Unsupported amount. Possible values: 0, 2, 0.5, 3, 1");
ReplyToCommand(client, "Unsupported amount. Possible values: 0.5, 1, 2, 3");
return Plugin_Handled;
}
// args are 1-indexed so <=
for(int i = 3; i <= args; i++) {
GetCmdArg(i, arg, sizeof(arg));
if(arg[0] == 'f') {
if(arg[0] == 'f') { // [f]ire
flag |= 32;
} else if(arg[0] == 'e') {
} else if(arg[0] == 'e' || arg[0] == 'b') { //[]blast or [e]xplode
flag |= 64;
} else {
ReplyToCommand(client, "Unknown arg: %s", arg);