Closed naydef closed 1 month ago
SourceTV bot becomes spawned by rage_cloneattack, due to missing IsClientSourceTV() checks. (same applies for replay bot)
IsClientSourceTV()
Diff:
@@ -2610,7 +2610,7 @@ void Rage_CloneAttack(int client, ConfigData cfg) { for(int target = 1; target <= MaxClients; target++) { - if(client == target || !IsClientInGame(target) || IsPlayerAlive(target) || GetClientTeam(target) != team) + if(client == target || !IsClientInGame(target) || IsPlayerAlive(target) || GetClientTeam(target) != team || IsClientSourceTV(target) || IsClientReplay(target)) continue; if(FF2R_GetBossData(target)) @@ -2634,7 +2634,7 @@ void Rage_CloneAttack(int client, ConfigData cfg) { for(int target = 1; target <= MaxClients; target++) { - if(client == target || !IsClientInGame(target) || IsPlayerAlive(target) || GetClientTeam(target) == team) + if(client == target || !IsClientInGame(target) || IsPlayerAlive(target) || GetClientTeam(target) == team || IsClientSourceTV(target) || IsClientReplay(target)) continue; if(FF2R_GetBossData(target)) @@ -2657,7 +2657,7 @@ void Rage_CloneAttack(int client, ConfigData cfg) { for(int target = 1; target <= MaxClients; target++) { - if(client == target || !IsClientInGame(target) || IsPlayerAlive(target) || GetClientTeam(target) <= view_as<int>(TFTeam_Spectator)) + if(client == target || !IsClientInGame(target) || IsPlayerAlive(target) || GetClientTeam(target) <= view_as<int>(TFTeam_Spectator) || IsClientSourceTV(target) || IsClientReplay(target)) continue; if(FF2R_GetBossData(target))
Description
SourceTV bot becomes spawned by rage_cloneattack, due to missing
IsClientSourceTV()
checks. (same applies for replay bot)Diff: