- teleporter.fade_time = time + autocvar_g_balance_portal_lifetime;
- teleporter.health = autocvar_g_balance_portal_health;
- teleporter.enemy.health = autocvar_g_balance_portal_health;
+ teleporter.fade_time = ((autocvar_g_balance_portal_lifetime >= 0) ? time + autocvar_g_balance_portal_lifetime : 0);
+ SetResourceExplicit(teleporter, RES_HEALTH, autocvar_g_balance_portal_health);
+ SetResourceExplicit(teleporter.enemy, RES_HEALTH, autocvar_g_balance_portal_health);