Heroes & Generals has many mechanics not immediately obvious to the new player and hidden stats which influence weapon handling and vehicle combat.
Precision and Accuracy
Handheld weapons handle very differently depending on numerous factors both specific to the weapon and due to changes in-battle.
All weapons have an idle sway pattern - represented by movement of the weapon model - which affects where the weapon is pointed at any given time. Sway when standing, crouched and prone is determined on a per-weapon basis and are affected by weapon mods that change 'precision'. In-battle, it is also affected by fatigue and movement (both physical and camera-wise), as well as temporarily from firing weapons. The variables used in the weapon configuration files are as follows:
- swaystandmode - the sway when standing
- swaycrouchmode - the sway when crouched
- swaypronemode - the sway while prone
- swayprecisionmodifier - multiplier for above values when aiming
- swayspeed - the amount of additional sway from moving
- swayfatigue - the maxmum amount of additional sway from fatigue (which is recovered faster with First Blood and Marathon Man)
The bullet fired may deviate from the point of aim by a certain amount, measured in degrees and often referred to as just 'conefire'. This is only affected by ammunition upgrades that change 'precision'.
Weapons experience recoil, which upon firing immediately shifts your soldier's view (camera recoil). This is dictated by the values 'camerarecoilup and 'camerarecoilright' and is slightly randomised, the maximum "variance on recoil vector (circle radius after resulting vector is drawn)" being dictated by 'camerarecoilvariance'. Camera recoil is affected by weapon upgrades which change 'stability'.
During Continuous Fire
Weapons also experience horizontal recoil, dictated by a recoil pattern unique to every weapon. This recoil pattern undergoes 'cone expansion' under sustained fully-automatic fire or rapid semi-automatic fire. Cone expansion is affected by ammo upgrades and is decreased by Tight Grip when aiming.
Cone expansion also applies to a spray pattern, affecting where consecutive shots will land during continuous fire. Cone expansion is counteracted by cone contraction, which applies at any time even when firing. The base shape of this spray pattern is identical to the sway pattern, but shot placement is randomised and expansion/contraction of the pattern is independent of idle sway. The variables used in the weapon configuration files are as follows:
- aimpenaltyperbullet - cone expansion applied after every shot
- aimpenaltyprecisionmodifier - multiplier of aimpenaltyperbullet when aiming
- aimpenaltycontractionpersec - the rate of cone contraction (increased by Dead-Eye)
- aimpenaltyturn - cone expansion from turning (reduced by Quickdraw)
Armor and Components
Vehicle armor degrades over time when receiving damage, represented by an 'armorHP' value which varies across vehicles as per an armorHPMul value.
When above a certain armorHP value (as dictated by the variable minArmorPercent), armor will absorb 25%[disputed - see talk page] damage against direct-type attacks, 75% damage against explosive-type attacks or 100% against a non-penetrating attack, dealing that absorbed damage to its armorHP in the process. As armor is worn down, the effective thickness decreases proportional to armorHP, so if armorHP is at 80% of its maximum value, the armor thickness will be at 80%. As a result, theoretically even a Light Machine Gun is able to penetrate and destroy a tank given enough time and ammunition.
Components deal damage in two ways: the first is when destroyed, where it deals damage equivalent to its starting internalHP value, though if multiple components of the same type are present less damage will be applied per component. The second means is through excess damage from destroying the component, which is multiplied by totalDamageMultiplier and transferred to the next component (always BaseStructure or Fuselage, which in turn transfers 50% damage to the main vehicle HP). The variables used in the configuration files for components are displayed in the table below:
|Armor Skirt Left||500||0||true||false||false||0.1||0||false|
|Armor Skirt Right||500||0||true||false||false||0.1||0||false|
|Armor Skirt Turret||500||0||true||false||false||0.1||0||false|
|Plane Engine Left||10||150||true||false||true||0.05||1||true|
|Plane Engine Right||10||150||true||false||true||0.05||1||true|
Each drivable surface in the game has a material type that determines how a vehicle handles when driving on it. The modifiers are as follows:
- onRoadPercent - the portion of the maximum 'onroad' speed of the vehicle that it can travel at when on the surface
- tractionMul - the portion of the maximum traction of the vehicle
- https://heroesandgenerals.com/2019/02/changelog-1-13-2-new-fighter-planes/ "Lowered amount of damage tracks can transfer to the vehicle from 225 to 75 per track"