mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Only show "sniper" message when shooter uses sniper rifle.
Disabled "sniper" message for vehicles. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9014 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2948,7 +2948,9 @@ INT8 DecideActionRed(SOLDIERTYPE *pSoldier)
|
||||
//POSSIBLE STRUCTURE CHANGE PROBLEM. GOTTHARD 7/14/08
|
||||
pSoldier->aiData.bAimTime = BestShot.ubAimTime;
|
||||
pSoldier->bScopeMode = BestShot.bScopeMode;
|
||||
ScreenMsg(FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, New113Message[MSG113_SNIPER]);
|
||||
// check if using sniper rifle
|
||||
if (Weapon[Item[pSoldier->inv[HANDPOS].usItem].ubClassIndex].ubWeaponType == GUN_SN_RIFLE)
|
||||
ScreenMsg(FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, New113Message[MSG113_SNIPER]);
|
||||
return(AI_ACTION_FIRE_GUN);
|
||||
}
|
||||
else // snipe not possible
|
||||
@@ -8502,7 +8504,8 @@ INT8 ArmedVehicleDecideActionRed( SOLDIERTYPE *pSoldier)
|
||||
//POSSIBLE STRUCTURE CHANGE PROBLEM. GOTTHARD 7/14/08
|
||||
pSoldier->aiData.bAimTime = BestShot.ubAimTime;
|
||||
pSoldier->bScopeMode = BestShot.bScopeMode;
|
||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, New113Message[MSG113_SNIPER] );
|
||||
// sevenfm: disabled for vehicles
|
||||
//ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, New113Message[MSG113_SNIPER] );
|
||||
return(AI_ACTION_FIRE_GUN);
|
||||
}
|
||||
else // snipe not possible
|
||||
|
||||
Reference in New Issue
Block a user