Skip to content
Permalink
Browse files

Replace hardcoded max health with convar value

  • Loading branch information...
Bara committed Aug 14, 2019
1 parent 1e039ee commit 504fe6c71b26fd69c1fc60d90b92e5c361fb3ed2
Showing with 2 additions and 2 deletions.
  1. +2 −2 addons/sourcemod/scripting/ttt/ttt_stations.sp
@@ -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)
{

0 comments on commit 504fe6c

Please sign in to comment.
You can’t perform that action at this time.