12 override bool ActivateCondition(
PlayerBase player)
26 override bool DeactivateCondition(
PlayerBase player)
31 override void OnTick(
PlayerBase player,
float deltaT)
36 float regen_speed = player.GetHealthRegenSpeed() * deltaT;;
37 player.AddHealth(
"GlobalHealth",
"Health" , regen_speed );
39 player.AddHealth(
"RightArm",
"Health",regen_speed *
PlayerConstants.DAMAGE_ZONE_BLOOD_REGEN_MODIFIER );
40 player.AddHealth(
"RightHand",
"Health",regen_speed *
PlayerConstants.DAMAGE_ZONE_BLOOD_REGEN_MODIFIER);
41 player.AddHealth(
"LeftArm",
"Health",regen_speed *
PlayerConstants.DAMAGE_ZONE_BLOOD_REGEN_MODIFIER);
42 player.AddHealth(
"LeftHand",
"Health",regen_speed *
PlayerConstants.DAMAGE_ZONE_BLOOD_REGEN_MODIFIER);
45 if ( player.GetBrokenLegs() ==
eBrokenLegs.NO_BROKEN_LEGS )
47 player.AddHealth(
"RightLeg",
"Health",
PlayerConstants.LEG_HEALTH_REGEN);
48 player.AddHealth(
"RightFoot",
"Health",
PlayerConstants.LEG_HEALTH_REGEN);
50 player.AddHealth(
"LeftFoot",
"Health",
PlayerConstants.LEG_HEALTH_REGEN);
55 player.AddHealth(
"RightLeg",
"Health",
PlayerConstants.LEG_HEALTH_REGEN_BROKEN);
56 player.AddHealth(
"RightFoot",
"Health",
PlayerConstants.LEG_HEALTH_REGEN_BROKEN);
57 player.AddHealth(
"LeftLeg",
"Health",
PlayerConstants.LEG_HEALTH_REGEN_BROKEN);
58 player.AddHealth(
"LeftFoot",
"Health",
PlayerConstants.LEG_HEALTH_REGEN_BROKEN);
61 player.AddHealth(
"Torso",
"Health",regen_speed *
PlayerConstants.DAMAGE_ZONE_BLOOD_REGEN_MODIFIER);
64 player.AddHealth(
"Head",
"Health",( regen_speed *
PlayerConstants.DAMAGE_ZONE_BLOOD_REGEN_MODIFIER ) * 2 );