Clumsy tweak (#217)

* tweak: delete gun on clumsy

* fix: fix
This commit is contained in:
CaypenNow
2024-03-18 03:20:34 +05:00
committed by GitHub
parent ddacfce03d
commit 28112f32f7
2 changed files with 4 additions and 1 deletions

View File

@@ -91,6 +91,8 @@ public sealed partial class GunSystem : SharedGunSystem
Audio.PlayPvs(clumsy.ClumsySound, gunUid);
PopupSystem.PopupEntity(Loc.GetString("gun-clumsy"), user.Value);
_adminLogger.Add(LogType.EntityDelete, LogImpact.Medium, $"{Loc.GetString("clumsy-gun-delete-log", ("prettyUser", ToPrettyString(user.Value)), ("prettyGun", ToPrettyString(gunUid)))}");
Del(gunUid);
userImpulse = false;
return;
}