Fix muzzle flashes for other players (#10454)
This commit is contained in:
@@ -8,10 +8,12 @@ namespace Content.Shared.Weapons.Ranged.Events;
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class MuzzleFlashEvent : EntityEventArgs
|
||||
{
|
||||
public EntityUid Uid;
|
||||
public string Prototype;
|
||||
|
||||
public MuzzleFlashEvent(string prototype)
|
||||
public MuzzleFlashEvent(EntityUid uid, string prototype)
|
||||
{
|
||||
Uid = uid;
|
||||
Prototype = prototype;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -349,7 +349,7 @@ public abstract partial class SharedGunSystem : EntitySystem
|
||||
if (sprite == null)
|
||||
return;
|
||||
|
||||
var ev = new MuzzleFlashEvent(sprite);
|
||||
var ev = new MuzzleFlashEvent(gun, sprite);
|
||||
|
||||
CreateEffect(gun, ev, user);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user