New background property: if <croucheddefense> is set, enemy CTH is modified if they fire on us while we are crouched against thick cover (size >= 2) in the direction of the shot.

Backgrounds.xml tag was added in GameDir r2267.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7933 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2015-07-25 12:49:37 +00:00
parent d682b28a31
commit 6aa4e1e6c6
15 changed files with 98 additions and 9 deletions
+3
View File
@@ -1910,6 +1910,9 @@ public:
// Flugente: assumed character weight (without any items)
FLOAT GetBodyWeight();
// Flugente: are we crouched against cover from a specific direction? WARNING: This does not suffice to determine our cover!
BOOLEAN IsCrouchedAgainstCoverFromDir( UINT8 aDirection );
//////////////////////////////////////////////////////////////////////////////
}; // SOLDIERTYPE;