mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 21:48:58 +03:00
* 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
18 lines
546 B
C#
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);
|
|
}
|
|
}
|