NEW_SUPPRESSION_CODE:

- use effective experience level when calculating base suppression tolerance, so nearby squad leaders may raise effective level and help fight suppression
- if NEARBY_FRIENDLIES_AFFECT_TOLERANCE option is active, nearby friends can help increase suppression tolerance, up to +-3 points added depending on distance, only for merc bodytypes

CheckStatusNearbyFriendlies: minor code improvements, fixed variable names, use INT16 for calculation

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9182 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Sevenfm
2021-10-15 08:44:57 +00:00
parent 7978ad77f3
commit 6d14282538
4 changed files with 96 additions and 35 deletions
+8
View File
@@ -26104,6 +26104,14 @@ BOOLEAN SOLDIERTYPE::IsCowering(void)
return FALSE;
}
BOOLEAN SOLDIERTYPE::IsUnconscious(void)
{
if (this->bCollapsed && this->bBreath < OKBREATH)
return TRUE;
return FALSE;
}
void SOLDIERTYPE::StopCoweringAnimation(void)
{
if (this->usAnimState == COWERING)