Skip to content

Commit

Permalink
Replace hardcoded max health with convar value
Browse files Browse the repository at this point in the history
  • Loading branch information
Bara committed Aug 14, 2019
1 parent 1e039ee commit 504fe6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/ttt/ttt_stations.sp
Expand Up @@ -290,9 +290,9 @@ void checkDistanceFromStation(int client)
if (g_iStationCharges[owner] > 0 && ((hurt == false) || (client != owner)))
{
newHealth = (hurt ? (curHealth - g_cHurtDamage.IntValue) : (curHealth + g_cHealthHeal.IntValue));
if (newHealth >= 125)
if (newHealth >= g_cMaxHealth.IntValue)
{
SetEntityHealth(client, 125);
SetEntityHealth(client, g_cMaxHealth.IntValue);
}
else if (newHealth <= 0)
{
Expand Down

0 comments on commit 504fe6c

Please sign in to comment.