This commit is contained in:
Jackzie 2021-05-14 09:19:51 -05:00
parent 93034fa2ef
commit cf93d9982e
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
4 changed files with 6 additions and 3 deletions

Binary file not shown.

View file

@ -33,6 +33,9 @@ static int AutoCrownBot = -1, AutoCrownTarget, currentDifficulty, PathfindTries
static float CrownPos[3], CrownAng[3];
static ConVar hValidDifficulties, hAllowedGamemodes;
float TRACE_MIN_SIZE[3] = {0.0, 0.0, 0.0}, TRACE_MAX_SIZE[3] = {1.0, 1.0, 1.0};
public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max) {
if(late) lateLoaded = true;
}
@ -243,11 +246,11 @@ public Action Timer_Scan(Handle hdl) {
GetEntPropVector(witchID, Prop_Send, "m_vecOrigin", witchPos);
if(GetVectorDistance(botPosition, witchPos) <= SCAN_RANGE) {
//GetEntPropVector(witchID, Prop_Send, "m_angRotation", witchAng);
//TODO: Implement a line-of-sight trace
#if defined DEBUG
PrintToServer("Found a valid witch in range of %N: %d", bot, witchID);
PrintToChatAll("Found a valid witch in range of %N: %d", bot, witchID);
#endif
L4D2_RunScript("CommandABot({cmd=1,bot=GetPlayerFromUserID(%i),pos=Vector(%f,%f,%f)})", GetClientUserId(bot), witchPos[0], witchPos[1], witchPos[2]);
AutoCrownTarget = witchID;
AutoCrownBot = GetClientUserId(bot);

View file

@ -305,7 +305,7 @@ public Action Event_MapTransition(Event event, const char[] name, bool dontBroad
playerstoWaitFor = GetSurvivorsCount();
}
public Action Event_Pickup(int client, int weapon) {
//TODO: Stop during transition
if(extraKitsAmount > 0) {
char name[32];
GetEntityClassname(weapon, name, sizeof(name));

View file

@ -229,7 +229,7 @@ public void OnClientCookiesCached(int client) {
if(strlen(modelPref) > 0) {
int type;
if(StringToIntEx(modelPref, type) > 0) {
PrintToServer(">>> %N has cookie for: %s", client, survivor_models[type - 1][17]);
PrintToServer(">>> %N has cookie for: %s", client, survivor_models[type - 1][18]);
strcopy(g_Models[client], 64, survivor_models[type - 1]);
g_iPendingCookieModel[client] = type;
}