L4D2Tools: Remove unused code

This commit is contained in:
Jackzie 2021-04-25 15:58:52 -05:00
parent ac18fc7a10
commit 329d6c39a5
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
2 changed files with 1 additions and 47 deletions

Binary file not shown.

View file

@ -488,50 +488,4 @@ stock int GetIdleBot(int client) {
}
}
return -1;
}
void GoIdle(int client, int onteam=0) {
Echo(2, "GoIdle: %d %d", client, onteam);
if (GetQRecord(client)) {
int spec_target;
// going from idle survivor to infected, leaves an icon behind
if (IsClientValid(g_target, 2, 0)) {
SwitchToBot(client, g_target);
}
if (g_onteam == 2) {
SwitchToSpec(client);
if (onteam == 0) {
SetHumanSpecSig(g_target, client);
}
if (onteam == 1) {
SwitchToSpec(client);
Unqueue(client);
}
AssignModel(g_target, g_model, g_IdentityFix);
}
else {
SwitchToSpec(client);
}
if (g_onteam == 3 && onteam <= 1) {
g_QRecord.SetString("model", "", true);
}
switch (IsClientValid(g_target, 0, 0)) {
case 1: spec_target = g_target;
case 0: spec_target = GetSafeSurvivor(client);
}
if (IsClientValid(spec_target)) {
SetEntPropEnt(client, Prop_Send, "m_hObserverTarget", spec_target);
SetEntProp(client, Prop_Send, "m_iObserverMode", 5);
}
}
}
}