minor changes

This commit is contained in:
Jackzie 2022-05-11 23:06:30 -05:00
parent 44456c6cd2
commit 784adab1a8
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
4 changed files with 2 additions and 3 deletions

Binary file not shown.

View file

@ -206,6 +206,7 @@ stock int SpawnSurvivor(const float vPos[3], const float vAng[3], const char[] m
return -1;
}
SetClientName(bot_client_id, spawn_minigun ? "MinigunBot" : "HoldoutBot");
ChangeClientTeam(bot_client_id, 4);
SetEntProp(bot_client_id, Prop_Send, "m_fFlags", GetEntProp(bot_client_id, Prop_Send, "m_fFlags") | FL_FROZEN);
CreateTimer(0.1, Timer_Move, bot_user_id);

View file

@ -278,9 +278,7 @@ public void OnClientCookiesCached(int client) {
///////////////////////////////////////////////////////////////////////////////
//Prevent issues with L4D1 characters being TP'd and stuck in brain dead form
public void OnMapStart() {
char output[2];
L4D2_GetVScriptOutput("Director.GetSurvivorSet()", output, sizeof(output));
isL4D1Survivors = StringToInt(output) == 1;
isL4D1Survivors = L4D2_GetSurvivorSetMap() == 1;
survivors = 0;