Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Disable Angle checks in L4D1&2
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Tanzanite authored Nov 15, 2022
2 parents 153b618 + 9d7b7b0 commit c5bbd17
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
Binary file modified plugins/lilac.smx
Binary file not shown.
10 changes: 0 additions & 10 deletions scripting/lilac.sp
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,9 @@ public void OnPluginStart()
}
else if (StrEqual(gamefolder, "left4dead2", false)) {
ggame = GAME_L4D2;

/* Pitch AA isn't really used much in L4D2 afaik, plus,
* like larrybrains reported, causes false positives for
* the infected team memeber smoker.
* Thanks to Larrybrains for reporting this! */
max_angles = view_as<float>({0.0, 0.0, 50.01});
}
else if (StrEqual(gamefolder, "left4dead", false)) {
ggame = GAME_L4D;

/* Same as L4D2, the smoker handles pitch differently it seems.
* Thanks to finishlast for reporting this! */
max_angles = view_as<float>({0.0, 0.0, 50.01});
}
else if (StrEqual(gamefolder, "dod", false)) {
ggame = GAME_DODS;
Expand Down
4 changes: 4 additions & 0 deletions scripting/lilac/lilac_angles.sp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

void lilac_angles_check(int client, float angles[3])
{
/* Angles in L4D1&2 aren't always normalized properly. */
if (ggame == GAME_L4D2 || ggame == GAME_L4D)
return;

if (!IsPlayerAlive(client)
|| playerinfo_time_teleported[client] + 5.0 > GetGameTime())
return;
Expand Down

0 comments on commit c5bbd17

Please sign in to comment.