HpLostWhileDamageFromWater Property

Usage:
   ObjectTemplate.HpLostWhileDamageFromWater number

Argument values:

argument 1:    range is 0 to 200; most commonly 10

Description: If an object's Objects.con has these properties defined:

  ObjectTemplate.DamageFromWater 1
  ObjectTemplate.HpLostWhileDamageFromWater 10

then it takes the amount of damage per second specified by HpLostWhileDamageFromWater when touching water. For soldiers, the standard definition, in CommonSoldierData.inc, is:

  ObjectTemplate.HpLostWhileDamageFromWater 1
  ObjectTemplate.WaterDamageDelay 90
  ObjectTemplate.DamageFromWater 1

The additional value WaterDamageDelay delays drowning damage for 90 seconds, then damage takes place at a hitpoint per second.

See the Damage Tutorial for more information.

Related properties: DamageFromWater, WaterDamageDelay

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

Used in a total of 90 .con files: Commonsoldierdata.inc, Objects.con

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

Example: (from objects/Vehicles/Air/bf109/Objects.con)
   rem *** BF109 ***
   ObjectTemplate.Create PlayerControlObject BF109
   ObjectTemplate.SetNetworkableInfo BF109Info
   ObjectTemplate.SaveInSeparateFile 1
   ObjectTemplate.HasMobilePhysics 1
   ObjectTemplate.HasDynamicShadow 1
   ObjectTemplate.Drag 0.105
   ObjectTemplate.Mass 2500
   ObjectTemplate.InertiaModifier 1/1/1
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.HasResponsePhysics 1
   ObjectTemplate.ExplosionRadius 8
   ObjectTemplate.ExplosionDamage 5
   ObjectTemplate.HasArmor 1
   ObjectTemplate.AngleMod 1
   ObjectTemplate.SpeedMod 2
   ObjectTemplate.Hitpoints 100
   ObjectTemplate.Maxhitpoints 100
   ObjectTemplate.Material 60
   ObjectTemplate.CriticalDamage 20
   ObjectTemplate.HpLostWhileCriticalDamage 1.5
   ObjectTemplate.ExplosionForceMod 15
   ObjectTemplate.HpLostWhileUpSideDown 10
   ObjectTemplate.HpLostWhileDamageFromWater 10
   ObjectTemplate.AddArmorEffect 40 em_Bf109Damage 0/0.102/2.11
   ObjectTemplate.AddArmorEffect 40 em_PlaneDamage 0/0.103/1.91
   ObjectTemplate.AddArmorEffect 20 e_Bf109Fire 0/0.6/2.11
   ObjectTemplate.AddArmorEffect 0 e_ExplGas 0/0/0
   ObjectTemplate.AddArmorEffect 0 e_scrapmetal_Plane 0/0/0
   ObjectTemplate.AddArmorEffect -1 WaterWaterExplosion 0/0/0
   ObjectTemplate.DamageFromWater 1
   ObjectTemplate.AiTemplate BF109
   rem -------------------------------------
   ObjectTemplate.AddTemplate lodBF109
   rem -------------------------------------
   ObjectTemplate.SetSoldierExitLocation -4/0.243/-2 0/0/0
   ObjectTemplate.GUIIndex 31
   ObjectTemplate.SetVehicleIcon "Vehicle/Icon_bf109.tga"
   ObjectTemplate.SetVehicleIconPos 62/93
   ObjectTemplate.SetNumberOfWeaponIcons 2
   ObjectTemplate.SetPrimaryAmmoIcon "Ammo/Icon_bullet.tga"
   ObjectTemplate.SetPrimaryAmmoBar ABAmmoBar
   ObjectTemplate.SetSecondaryAmmoIcon "Ammo/Icon_bomb.tga"
   ObjectTemplate.SetSecondaryAmmoBar ABAmmoBarReloadBar
   ObjectTemplate.SetCrossHairType CHTIcon
   ObjectTemplate.SetVehicleCategory VCAir
   ObjectTemplate.SetVehicleType VTFighter
   ObjectTemplate.SetToolTipType TTFighter
   ObjectTemplate.SetMinimapIcon "Minimap/minimap_icon_plane_16x16.tga"


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