You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!strcmp(cls, "witch") ||!strcmp(cls, "infected"))
91
+
returnfalse;
92
+
93
+
if (StrContains(cls, "_projectile") !=-1)
94
+
returnfalse;
95
+
}
96
+
elseif (entity>0)
97
+
{
98
+
if (GetClientTeam(client) ==2&&GetClientTeam(entity) ==3)
99
+
returnfalse;
100
+
}
101
+
102
+
returntrue;
103
+
}
104
+
105
+
// Reverse bot's aim pitch for solo testing GL jump with "bot_mimic" on.
106
+
/*
107
+
#include <sdktools_hooks>
108
+
109
+
methodmap CUserCmd
110
+
{
111
+
property float viewangles_x {
112
+
public get() { return LoadFromAddress(view_as<Address>(this) + view_as<Address>(12), NumberType_Int32); }
113
+
public set(float x) { StoreToAddress(view_as<Address>(this) + view_as<Address>(12), x, NumberType_Int32); }
114
+
}
115
+
}
116
+
117
+
int g_iRestoreMimic = -1;
118
+
public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon, int &subtype, int &cmdnum, int &tickcount, int &seed, int mouse[2])
119
+
{
120
+
static ConVar bot_mimic = null;
121
+
if (bot_mimic == null)
122
+
bot_mimic = FindConVar("bot_mimic");
123
+
124
+
if (!IsClientInGame(client) || !IsFakeClient(client))
125
+
return Plugin_Continue;
126
+
127
+
int player = bot_mimic.IntValue;
128
+
if (player <= 0 || player > MaxClients || !IsClientInGame(player))
public void OnPlayerRunCmdPost(int client, int buttons, int impulse, const float vel[3], const float angles[3], int weapon, int subtype, int cmdnum, int tickcount, int seed, const int mouse[2])
0 commit comments