ObjectTemplate.WaterDamageDelay

From Pilot_51's Wiki
Revision as of 02:11, 18 November 2008 by Pilot 51 (talk | contribs) (New page: == MDT description == If an object's Objects.con has these properties defined: ObjectTemplate.DamageFromWater 1 ObjectTemplate.HpLostWhileDamageFromWater 10 then it takes the amount ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

MDT 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.

Source and more details

Additional Description