Fix gun animation (#11044)

This commit is contained in:
Leon Friedrich
2022-09-06 15:16:08 +12:00
committed by GitHub
parent 76cf19be3d
commit 2b1c6524a8

View File

@@ -282,6 +282,7 @@ public sealed partial class GunSystem : SharedGunSystem
_animPlayer.Play(ent, anim, "muzzle-flash"); _animPlayer.Play(ent, anim, "muzzle-flash");
var light = EnsureComp<PointLightComponent>(uid); var light = EnsureComp<PointLightComponent>(uid);
light.NetSyncEnabled = false;
light.Enabled = true; light.Enabled = true;
light.Color = Color.FromHex("#cc8e2b"); light.Color = Color.FromHex("#cc8e2b");
light.Radius = 2f; light.Radius = 2f;