Files
wwdpublic/Content.Server/_White/Animations/FlipOnHitSystem.cs
TotallyNotAHSKveez 603aafdbc2 [Add] Hos bats (#378)
* I hate it

* Added ability to choose target body part on item throwing

* забыл

* WeaponRandom works with throwable weapon

* RadialEntityMorph & RadialBUI fix

* ru&en localization

* Я себя зарежу нахуй за такое

* Правки рисованной хуйни и прототипы с лодаутами

* fuck

* ну хорошо блять, убедил, одну пустую строчку уберу

* loadout move to _White

* Я после тех 3х банок не помню нахуй это нужно было

* 1 more fix
2025-03-27 17:24:25 +03:00

18 lines
546 B
C#

using Content.Shared._White.Animations;
using Robust.Shared.Player;
namespace Content.Server._White.Animations;
public sealed class FlipOnHitSystem : SharedFlipOnHitSystem
{
protected override void PlayAnimation(EntityUid user, EntityUid target)
{
var filter = Filter.Pvs(user, entityManager: EntityManager);
if (TryComp<ActorComponent>(user, out var actor))
filter.RemovePlayer(actor.PlayerSession);
RaiseNetworkEvent(new FlipOnHitEvent(GetNetEntity(user), GetNetEntity(target)), filter);
}
}