mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
New feature: bloodcat/zombie/bandit raids on player-controlled sectors
For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=23711&goto=353154&#msg_353154 Requires GameDir >= r2420 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8554 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -316,6 +316,11 @@ INT8 GetCivType( SOLDIERTYPE *pCiv )
|
||||
return( CIV_TYPE_ENEMY );
|
||||
}
|
||||
|
||||
if ( pCiv->bTeam == CREATURE_TEAM && pCiv->ubSoldierClass == SOLDIER_CLASS_BANDIT )
|
||||
{
|
||||
return( CIV_TYPE_ENEMY );
|
||||
}
|
||||
|
||||
if ( pCiv->bTeam != CIV_TEAM && pCiv->bTeam != MILITIA_TEAM )
|
||||
{
|
||||
return( CIV_TYPE_NA );
|
||||
@@ -1627,6 +1632,7 @@ void StartEnemyTaunt( SOLDIERTYPE *pCiv, TAUNTTYPE iTauntType, SOLDIERTYPE *pTar
|
||||
switch( pCiv->ubSoldierClass )
|
||||
{
|
||||
case SOLDIER_CLASS_ADMINISTRATOR:
|
||||
case SOLDIER_CLASS_BANDIT:
|
||||
if( !(zTaunt[ i ].uiFlags2 & TAUNT_C_ADMIN) )
|
||||
continue;
|
||||
if( (zTaunt[ i ].value[TAUNT_PROFILE_ADMIN] != -1 ) && !(zTaunt[ i ].value[TAUNT_PROFILE_ADMIN] == pCiv->usSoldierProfile ) )
|
||||
|
||||
Reference in New Issue
Block a user