From 73332e971d42f675384c704de4f1a0886a5fbeb5 Mon Sep 17 00:00:00 2001 From: Greenorine Date: Mon, 30 Mar 2020 03:25:49 +0500 Subject: [PATCH] FixedSetHPCommand --- Commands/SetHealthCommand.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Commands/SetHealthCommand.cs b/Commands/SetHealthCommand.cs index 5c07c55..657ef01 100644 --- a/Commands/SetHealthCommand.cs +++ b/Commands/SetHealthCommand.cs @@ -50,7 +50,10 @@ public void Execute(IRP caller, string[] command) if (target.Health < health) target.Heal((byte)(health - int.Parse(target.Health.ToString()))); else + { target.Damage((byte)(int.Parse(target.Health.ToString()) - health), Vector3.zero, EDeathCause.PUNCH, ELimb.SKULL, CSteamID.Nil); + target.Player.life.serverSetBleeding(false); + } SendChat(up, $"{Instance.DefaultTranslations.Translate("SuccessfullySetHealth", target.CharacterName, health)}", Color.white); if (Config.MessageSetHealth) SendChat(target, $"{Instance.DefaultTranslations.Translate("HealthWasChanged", health)}", Color.white);