HpLostWhileCriticalDamage Property

Usage:
   ObjectTemplate.HpLostWhileCriticalDamage number

Argument values:

argument 1:    range is 0 to 40; most commonly 1.5

Description: Some vehicles stop moving and take damage by themselves when heavily damaged. The idea is that if a vehicle is nearly destroyed, it is probably on fire and will soon be fully destroyed on its own. The relevant values in the object's Objects.con file are:

  ObjectTemplate.CriticalDamage 12
  ObjectTemplate.HpLostWhileCriticalDamage 1.5

The CriticalDamage value is the number of hitpoints at or below which the object starts to self-destruct. This is usually about 10-20% of the Maxhitpoints value, though can vary on up to 50%. The HpLostWhileCriticalDamage value gives how many hitpoints are lost per second when in the critical zone.

See the Damage Tutorial for more information.

Related properties: CriticalDamage, RepairFactor

Used in object types (and how often in each type): PlayerControlObject (45%)

Used in a total of 135 .con files: Objects.con

Parent directories of these .con files: objects/Vehicles, objects/Objectives, Bf1942/Levels

Example: (from objects/Vehicles/Sea/ItLcvp/Objects.con)
   rem *** ItLcvp ***
   ObjectTemplate.Create PlayerControlObject ItLcvp
   ObjectTemplate.SetNetworkableInfo ItLcvpBodyInfo
   ObjectTemplate.SaveInSeparateFile 1
   ObjectTemplate.HasMobilePhysics 1
   ObjectTemplate.Drag 0.488
   ObjectTemplate.Mass 30000
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.HasResponsePhysics 1
   ObjectTemplate.HasArmor 1
   ObjectTemplate.Hitpoints 150
   ObjectTemplate.Maxhitpoints 150
   ObjectTemplate.Material 45
   ObjectTemplate.CriticalDamage 50
   ObjectTemplate.HpLostWhileCriticalDamage 1.5
   ObjectTemplate.ExplosionForceMod 20
   ObjectTemplate.HpLostWhileUpSideDown 10
   ObjectTemplate.AddArmorEffect 80 em_LcvpDamage 0/0/0
   ObjectTemplate.AiTemplate ItLcvpAI
   rem -------------------------------------
   ObjectTemplate.AddTemplate lodItLcvp
   ObjectTemplate.AddTemplate ItLcvp_Floater
   ObjectTemplate.SetPosition 1.7/3.1/-4.499
   ObjectTemplate.AddTemplate ItLcvp_Floater
   ObjectTemplate.SetPosition -1.699/3.1/-4.499
   ObjectTemplate.AddTemplate ItLcvp_Floater
   ObjectTemplate.SetPosition 1.7/3.1/4.5
   ObjectTemplate.AddTemplate ItLcvp_Floater2
   ObjectTemplate.SetPosition -1.699/3.1/4.5
   ObjectTemplate.AddTemplate ItLcvpPassangerPCO3
   ObjectTemplate.SetPosition 0.65/2.9/-1
   ObjectTemplate.AddTemplate ItLcvpPassangerPCO4
   ObjectTemplate.SetPosition 0.65/2.9/0.8
   ObjectTemplate.AddTemplate ItLcvpPassangerPCO5
   ObjectTemplate.SetPosition -0.65/2.9/-1
   ObjectTemplate.AddTemplate ItLcvpPassangerPCO6
   ObjectTemplate.SetPosition -0.65/2.9/0.8
   rem -------------------------------------
   ObjectTemplate.SetPcoId 0
   ObjectTemplate.SetSoldierExitLocation 0/1.95/3.5 0/0/0
   ObjectTemplate.GUIIndex 42
   ObjectTemplate.SetVehicleIcon "Vehicle/Icon_lcvp.tga"
   ObjectTemplate.SetVehicleIconPos 17/46
   ObjectTemplate.SetPrimaryAmmoBar ABNone
   ObjectTemplate.SetCrossHairType CHTNone
   ObjectTemplate.SetVehicleCategory VCSea
   ObjectTemplate.SetVehicleType VTLcvp
   ObjectTemplate.SetToolTipType TTLcvp
   ObjectTemplate.ExitTimer -0.5
   ObjectTemplate.ExitSpeedMod 0


Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.