mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
New feature: riot shields protect against damage from some directions.
For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=23452&start=0& git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8434 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1510,7 +1510,8 @@ BOOLEAN AdjustToNextAnimationFrame( SOLDIERTYPE *pSoldier )
|
||||
|
||||
// ONLY DO THIS IF CERTAIN CONDITIONS ARISE!
|
||||
// For one, only do for mercs!
|
||||
if ( pSoldier->ubBodyType <= REGFEMALE )
|
||||
// Flugente: don't do this while equipping a shield, as this renders them almost useless
|
||||
if ( pSoldier->ubBodyType <= REGFEMALE && !pSoldier->IsRiotShieldEquipped( ) )
|
||||
{
|
||||
// Secondly, don't if we are going to collapse
|
||||
if ( pSoldier->stats.bLife >= OKLIFE && pSoldier->bBreath > 0 && pSoldier->pathing.bLevel == 0 )
|
||||
|
||||
Reference in New Issue
Block a user