Armor and protection
LAND/DOM uses the shared armor reader, but Fusion often supplies short forms. Read the limits of building armor and protection.
The classes and archives show where a property occurs. They do not guarantee support.
This property sets six armor values for one damage type.
armor damage_type front1 front2 side1 side2 rear1 rear2
- Parameters
- A damage type followed by three pairs: front, side, rear. Each value is limited to the range 0 to 256.
- Class notes
- The reader stores 256 minus each value. It keeps the difference in each pair. These are engine coefficients, not armor thicknesses.
- Observed classes
- Apc, Atg, Crate, Furg, Gaub, Gruz, Guner, Huge, Jeep, Katya, Machine, Medic, Miner, Mzenit, Plane, Samo, Szenit, Tank, Tank2, Turret, machine
- Confirmed readers
- UnitDesc
- Observed archives
- franz_unit, land_unit, lang, russ1_unit, sommer_unit_s1, stadt_unit, sud_unit, winter_unit, wuste_unit, wuste_unit_s1
Engine reader
src/game/desc/units.cpp:313 src/game/desc/misc.cpp:84
Related table or registry: lang2/hitsnames
Source example
armor ABJECTIVE 0 0 0 0 0 0
lang/UNITS/aari:46
See also: protection · health
This property permits crushing when the value is nonzero.
canbecrushed 0|1
- Parameters
- The value 0 sets the flag to off. A nonzero value sets it to on.
- Observed classes
- Atg, Crate, Guner, Machine, Medic, Miner, Szenit
- Confirmed readers
- UnitDesc
- Observed archives
- lang
Engine reader
src/game/desc/units.cpp:279
Source example
canbecrushed 1
lang/UNITS/107mm-m2:16
This property sets the two experience factors for health loss.
expa_loosehp value1 value2
- Parameters
- Two decimal values, in source order. The class notes describe any special handling.
- Observed classes
- Apc, Atg, Crate, Furg, Gaub, Gruz, Guner, Huge, Jeep, Katya, Machine, Medic, Miner, Mzenit, Plane, Samo, Szenit, Tank, Tank2, Turret, machine
- Confirmed readers
- UnitDesc
- Observed archives
- franz_unit, land_unit, lang, russ1_unit, sommer_unit_s1, stadt_unit, sud_unit, winter_unit, wuste_unit, wuste_unit_s1
Engine reader
src/game/desc/units.cpp:271
Source example
expa_loosehp 0 0
lang/UNITS/70mmlight:23
This property sets the unit's initial health.
health value
- Parameters
- One integer value. Check the class notes before you add additional values.
- Base value
- The base UnitDesc constructor sets 1. A class constructor or included file can change it.
- Observed classes
- Apc, Atg, Crate, Furg, Gaub, Gruz, Guner, Huge, Jeep, Katya, Machine, Medic, Miner, Mzenit, Plane, Samo, Szenit, Tank, Tank2, Turret, machine
- Confirmed readers
- UnitDesc
- Observed archives
- franz_unit, land_unit, lang, name, russ1_unit, sommer_unit_s1, stadt_unit, sud_unit, winter_unit, wuste_unit, wuste_unit_s1
- Observed spellings
Health, health
Engine reader
src/game/desc/units.cpp:197 src/game/desc/units.cpp:58
Source example
health 100
lang/UNITS/107mm-m2:23
This property sets the kamikaze percentage value.
kamikazepctg value
- Parameters
- One integer value. Check the class notes before you add additional values.
- Observed classes
- Guner, Tank
- Confirmed readers
- UnitDesc
- Observed archives
- lang, name
Engine reader
src/game/desc/units.cpp:461
Source example
kamikazepctg 100
lang/UNITS/kamikaze:88
This property sets six protection values for one damage type. Guns store these in a separate crew-protection table.
protection damage_type front1 front2 side1 side2 rear1 rear2
- Parameters
- A damage type followed by three pairs: front, side, rear. Each value is limited to the range 0 to 256.
- Class notes
- The reader stores 256 minus each value. It keeps the difference in each pair. These are engine coefficients, not armor thicknesses.
- Observed classes
- Apc, Atg, Furg, Gaub, Gruz, Huge, Jeep, Katya, Machine, Mzenit, Plane, Samo, Szenit, Tank, Tank2, Turret, machine
- Confirmed readers
- GunDesc, UnitDesc
- Observed archives
- franz_unit, land_unit, lang, russ1_unit, sommer_unit_s1, stadt_unit, sud_unit, winter_unit, wuste_unit, wuste_unit_s1
Engine reader
src/game/desc/units.cpp:435 src/game/desc/units_gun.cpp:102 src/game/desc/misc.cpp:84
Related table or registry: lang2/hitsnames
Source example
protection ABJECTIVE 1 1 1 1 1 1
lang/UNITS/17p:69
See also: armor · health