]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fire MeleeHitEvent on misses. (#12867)
authorVordenburg <114301317+Vordenburg@users.noreply.github.com>
Mon, 13 Feb 2023 12:55:39 +0000 (07:55 -0500)
committerGitHub <noreply@github.com>
Mon, 13 Feb 2023 12:55:39 +0000 (12:55 +0000)
commit4183b5f44919dbf27a90004fb5245884a8b3780e
tree017b523ef8815ef23e09878ca7e1fbf3bdfaee3c
parent650ade0d4ea68b014758f64daf9b2145707273f0
Fire MeleeHitEvent on misses. (#12867)

* Fire MeleeHitEvent when there are no targets.

* Prevent certain weapons from activating if they had no hit entities on hit.

* Prevent miss events from firing when target is yourself or was deleted.

* Use .Value as Target is already known not to be null.

* uid changes

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
Content.Client/Weapons/Melee/MeleeWeaponSystem.cs
Content.Server/Flash/FlashSystem.cs
Content.Server/NPC/Systems/NPCCombatSystem.Melee.cs
Content.Server/NPC/Systems/NPCSteeringSystem.Obstacles.cs
Content.Server/Weapons/Melee/MeleeWeaponSystem.cs
Content.Shared/Damage/Systems/StaminaSystem.cs
Content.Shared/Weapons/Melee/Events/MeleeHitEvent.cs
Content.Shared/Weapons/Melee/SharedMeleeWeaponSystem.cs