OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: privateknez on 18 Feb 2011, 13:47:20
-
can anyone please explain the difference between the armour in the class hithull{} and the armorHull below?
armor=300;
armorStructural=2;
class HitHull {armor=1.5;material=0;name="hull";passThrough=0;}; - THIS
class HitEngine {armor=0.3;material=0;name="engine";passThrough=0;};
class HitTurret {armor=1.0;material=0;name="turet";passThrough=0;};
class HitGun {armor=1.5;material=0;name="gun";passThrough=0;};
class HitLTrack{armor=0.5;material=0;name="pasL";passThrough=0;};
class HitRTrack{armor=0.5;material=0;name="pasP";passThrough=0;};
armorHull=1.5; - AND THIS
armorTurret=0.8;
armorGun=1.5;
armorEngine=0.35;
armorLights=0.4;
armorTracks=0.4;
-
The class HitHull line is used to make parts of tank-like vehicles darken when damaged. (See Fab's Tank Damage Texture (http://www.ofpec.com/addons_depot/index.php?action=details&id=105) tutorial). I doubt the armour value here has any use.
armorHull is the factor by which armor should be multiplied to find the number of hit-points that section has.
Armor=300; * armorHull=1.5; ===> Hull has 450 hit-points