Fix Addsurvivor

This commit is contained in:
Jackz 2022-06-27 17:40:09 -05:00
parent 8fd79609d3
commit 8d05131fb2
No known key found for this signature in database
GPG key ID: E0BBD94CF657F603
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ static float SPIT_VEL[3] = { 0.0, 0.0, -1.0 };
public Action Timer_CheckSpecial(Handle h, int specialID) {
int special = GetClientOfUserId(specialID);
// Check if new player is the spawned special:
if(spIsActive && special > 0 && IsFakeClient(special) && GetClientTeam(special) == 3) {
if(spIsActive && special > 0 && IsFakeClient(special)) {
//g_iPendingSurvivorAdd
if(GetClientTeam(special) == 2 && g_iPendingSurvivorAdd && GetEntProp(special, Prop_Send, "m_humanSpectatorUserID") == 0) {
g_iPendingSurvivorAdd = false;

View file

@ -435,7 +435,7 @@ bool AddSurvivor() {
return false;
}
int i = CreateFakeClient("GuessWhoBot");
int i = CreateFakeClient("FTTSurvivorBot");
bool result;
if (i > 0) {
if (DispatchKeyValue(i, "classname", "SurvivorBot")) {