Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: tank armour  (Read 2974 times)

0 Members and 1 Guest are viewing this topic.

Offline privateknez

  • Members
  • *
tank armour
« 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;

Walter_E_Kurtz

  • Guest
Re: tank armour
« Reply #1 on: 24 Feb 2011, 00:12:00 »
The class HitHull line is used to make parts of tank-like vehicles darken when damaged. (See Fab's Tank Damage Texture 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