mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-06 18:08:26 +00:00
Reset players hp when needed
Reset players hp when needed
This commit is contained in:
parent
26b4e53946
commit
6dfc2a9175
@ -2454,7 +2454,7 @@ public void Shavit_OnRestart(int client, int track)
|
|||||||
{
|
{
|
||||||
SetEntPropFloat(client, Prop_Send, "m_flStamina", 0.0);
|
SetEntPropFloat(client, Prop_Send, "m_flStamina", 0.0);
|
||||||
|
|
||||||
if (gCV_RestartWithFullHP.BoolValue)
|
if (gCV_RestartWithFullHP.BoolValue && GetClientHealth(client) < 100)
|
||||||
{
|
{
|
||||||
SetEntityHealth(client, 100);
|
SetEntityHealth(client, 100);
|
||||||
SetEntProp(client, Prop_Send, "m_ArmorValue", 100);
|
SetEntProp(client, Prop_Send, "m_ArmorValue", 100);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user