Refactor disarms (#36546)

* Refactor disarms

- Move client stuff to shared
- Cleanup a bunch of stuff
- Ref events
- Fix the swing sound mispredict (I noticed it on target dummies).

* Revert this change

* minor review

* Rebiew

---------

Co-authored-by: Milon <milonpl.git@proton.me>
This commit is contained in:
metalgearsloth
2025-04-19 11:38:22 +10:00
committed by GitHub
parent 1dbc40f051
commit 8ab0e59db6
10 changed files with 214 additions and 234 deletions

View File

@@ -98,7 +98,7 @@ namespace Content.Server.Hands.Systems
}
}
private void OnDisarmed(EntityUid uid, HandsComponent component, DisarmedEvent args)
private void OnDisarmed(EntityUid uid, HandsComponent component, ref DisarmedEvent args)
{
if (args.Handled)
return;