CriticalDamage Property

Usage:
   ObjectTemplate.CriticalDamage number

Argument values:

argument 1:    range is 0 to 350; most commonly 12

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, though can vary on up to 50%. The HpLostWhileCriticalDamage value gives how many hitpoints are lost per second when in the critical zone.

Reaching critical damage will also disable any engines that are attached to the object.

See the Damage Tutorial for more information.

Related properties: HpLostWhileCriticalDamage, 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/Land/R75/Objects.con)
   rem *** R75 ***
   ObjectTemplate.Create PlayerControlObject R75
   ObjectTemplate.NameTagOffset -0.3/-0.2/0
   ObjectTemplate.SetNetworkableInfo R75BodyInfo
   ObjectTemplate.SaveInSeparateFile 1
   ObjectTemplate.CullRadiusScale 5
   ObjectTemplate.HasMobilePhysics 1
   ObjectTemplate.HasDynamicShadow 1
   ObjectTemplate.ExplosionRadius 8
   ObjectTemplate.ExplosionDamage 5
   ObjectTemplate.DamageFromWater 1
   ObjectTemplate.Drag 1.5
   ObjectTemplate.Mass 2500
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.HasResponsePhysics 1
   ObjectTemplate.HasArmor 1
   ObjectTemplate.SpeedMod 1
   ObjectTemplate.ExitTimer 0.75
   ObjectTemplate.Hitpoints 40
   ObjectTemplate.Maxhitpoints 40
   ObjectTemplate.Material 45
   ObjectTemplate.CriticalDamage 10
   ObjectTemplate.HpLostWhileCriticalDamage 2
   ObjectTemplate.ExplosionForceMod 20
   ObjectTemplate.HpLostWhileUpSideDown 5
   ObjectTemplate.HpLostWhileDamageFromWater 5
   rem ObjectTemplate.addArmorEffect 30 e_WillyDamage 0/1.7/0
   rem ObjectTemplate.addArmorEffect 10 e_WillyFire 0/0.5/0.8
   ObjectTemplate.AddArmorEffect 30 e_mbikeDamage -0.5/1.5/-1
   ObjectTemplate.AddArmorEffect 10 e_mbikeFire -0.5/0.5/0
   ObjectTemplate.AddArmorEffect 0 e_ExplGas 0/1.2/0
   ObjectTemplate.AddArmorEffect -1 WaterWaterExplosion 0/0/0
   ObjectTemplate.AiTemplate R75
   rem -------------------------------------
   ObjectTemplate.AddTemplate lodR75
   rem -------------------------------------
   ObjectTemplate.SetSoldierExitLocation -1.5/0/-0.8 0/0/0
   ObjectTemplate.GUIIndex 26
   ObjectTemplate.SetVehicleIcon "Vehicle/Icon_BMW.tga"
   ObjectTemplate.SetVehicleIconPos 65/75
   ObjectTemplate.SetPrimaryAmmoBar ABNone
   ObjectTemplate.SetCrossHairType CHTNone
   ObjectTemplate.SetVehicleCategory VCLand
   ObjectTemplate.SetVehicleType VTScoutCar
   ObjectTemplate.SetToolTipType TTR75
   ObjectTemplate.HasRestrictedExit 1
   ObjectTemplate.SetMinimapIcon "Minimap/minimap_icon_motorcycle_16x16.dds"


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