mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 07:23:20 +00:00
minor changes
This commit is contained in:
parent
44456c6cd2
commit
784adab1a8
4 changed files with 2 additions and 3 deletions
Binary file not shown.
Binary file not shown.
|
@ -206,6 +206,7 @@ stock int SpawnSurvivor(const float vPos[3], const float vAng[3], const char[] m
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
SetClientName(bot_client_id, spawn_minigun ? "MinigunBot" : "HoldoutBot");
|
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);
|
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);
|
CreateTimer(0.1, Timer_Move, bot_user_id);
|
||||||
|
|
|
@ -278,9 +278,7 @@ public void OnClientCookiesCached(int client) {
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
//Prevent issues with L4D1 characters being TP'd and stuck in brain dead form
|
//Prevent issues with L4D1 characters being TP'd and stuck in brain dead form
|
||||||
public void OnMapStart() {
|
public void OnMapStart() {
|
||||||
char output[2];
|
isL4D1Survivors = L4D2_GetSurvivorSetMap() == 1;
|
||||||
L4D2_GetVScriptOutput("Director.GetSurvivorSet()", output, sizeof(output));
|
|
||||||
isL4D1Survivors = StringToInt(output) == 1;
|
|
||||||
|
|
||||||
survivors = 0;
|
survivors = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue