Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from Greenorine/master
Browse files Browse the repository at this point in the history
FixedSetHPCommand
  • Loading branch information
Cubody authored Mar 29, 2020
2 parents 553c549 + 73332e9 commit 63e59e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Commands/SetHealthCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 63e59e9

Please sign in to comment.