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:
Sevenfm
2021-05-09 03:54:41 +00:00
parent 6d3dc29163
commit cf7588cacd
+5 -2
View File
@@ -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