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:
@@ -723,8 +723,8 @@ namespace Content.Shared.Cuffs
|
||||
// if combat mode is on, shove the person.
|
||||
if (_combatMode.IsInCombatMode(user) && target != user && user != null)
|
||||
{
|
||||
var eventArgs = new DisarmedEvent { Target = target, Source = user.Value, PushProbability = 1};
|
||||
RaiseLocalEvent(target, eventArgs);
|
||||
var eventArgs = new DisarmedEvent(target, user.Value, 1f);
|
||||
RaiseLocalEvent(target, ref eventArgs);
|
||||
shoved = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user