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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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