3 private const float BURNING_TRESHOLD = 199;
4 private const float HEALTH_DECREMENT_PER_SEC = -5;
13 override bool ActivateCondition(
PlayerBase player)
15 float hc = player.GetStatHeatComfort().Get();
16 if ( hc > BURNING_TRESHOLD )
32 override bool DeactivateCondition(
PlayerBase player)
34 if ( player.GetStatHeatComfort().Get() <= BURNING_TRESHOLD )
44 override void OnTick(
PlayerBase player,
float deltaT)
46 float currenthealth = player.GetHealth(
"GlobalHealth",
"Health");
47 player.SetHealth(
"GlobalHealth",
"Health" , ( currenthealth + (HEALTH_DECREMENT_PER_SEC*deltaT) ) );