adds a source uid to most damage & mobstate events (#11559)

Co-authored-by: Flipp Syder <76629141+vulppine@users.noreply.github.com>
This commit is contained in:
Paul Ritter
2022-10-08 12:15:27 +02:00
committed by GitHub
parent 548cee77e2
commit 79854e59a4
24 changed files with 50 additions and 37 deletions

View File

@@ -71,7 +71,7 @@ public sealed partial class GunSystem : SharedGunSystem
if (_interaction.TryRollClumsy(user.Value, GunClumsyChance, clumsy))
{
// Wound them
Damageable.TryChangeDamage(user, clumsy.ClumsyDamage);
Damageable.TryChangeDamage(user, clumsy.ClumsyDamage, origin: user);
_stun.TryParalyze(user.Value, TimeSpan.FromSeconds(3f), true);
// Apply salt to the wound ("Honk!")
@@ -187,7 +187,7 @@ public sealed partial class GunSystem : SharedGunSystem
var dmg = hitscan.Damage;
if (dmg != null)
dmg = Damageable.TryChangeDamage(hitEntity, dmg);
dmg = Damageable.TryChangeDamage(hitEntity, dmg, origin: user);
if (dmg != null)
{