Skip to content

Commit 21a7b58

Browse files
xhaooyrtldg
authored andcommitted
Reset players hp when needed
Reset players hp when needed
1 parent 133c4e5 commit 21a7b58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/sourcemod/scripting/shavit-misc.sp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2454,7 +2454,7 @@ public void Shavit_OnRestart(int client, int track)
24542454
{
24552455
SetEntPropFloat(client, Prop_Send, "m_flStamina", 0.0);
24562456

2457-
if (gCV_RestartWithFullHP.BoolValue)
2457+
if (gCV_RestartWithFullHP.BoolValue && GetClientHealth(client) <= 100)
24582458
{
24592459
SetEntityHealth(client, 100);
24602460
SetEntProp(client, Prop_Send, "m_ArmorValue", 100);

0 commit comments

Comments
 (0)