Skip to content

Commit

Permalink
"Hotfix" issues caused by last update to staggersolver.
Browse files Browse the repository at this point in the history
- Players would get their animation reset after being stumbled by a boomer while they were in a getup animation (Charger being the most painful one)
- As I added in the note, I don't think resetting the main getup activity is the main cause for the issue, adding the client team check is the easy way to resolve it. I could be wrong, of course.
  • Loading branch information
SirPlease committed Dec 1, 2023
1 parent 5f3d0c8 commit a14106f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file modified addons/sourcemod/plugins/optional/staggersolver.smx
Binary file not shown.
6 changes: 6 additions & 0 deletions addons/sourcemod/scripting/staggersolver.sp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ public void L4D_OnShovedBySurvivor_Post(int client, int victim, const float vecD

public void L4D2_OnStagger_Post(int client, int source)
{
// Interesting to note is that this might not be needed.
// Issues might be caused by other plugins messing with the current stagger/anim prior to Post.
// Do with this information what you want.
if (GetClientTeam(client) != 3)
return;

if (!L4D_IsPlayerStaggering(client))
return;

Expand Down

0 comments on commit a14106f

Please sign in to comment.