mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
-tweaked ai turning in green a little bit to make them look for noises in green (mostly for snipers)
-enabled tunnel vision attribute on readied weapons (previously only worked on attachments, and non-weapon items) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@338 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+4
-1
@@ -6504,9 +6504,12 @@ UINT8 GetPercentTunnelVision( SOLDIERTYPE * pSoldier )
|
||||
// Snap: check only attachments on a raised weapon!
|
||||
if ( WeaponReady(pSoldier) )
|
||||
{
|
||||
if ( IsWeapon(pSoldier->inv[HANDPOS].usItem) ) //if not a weapon, then it was added already above
|
||||
bns += Item[pSoldier->inv[HANDPOS].usItem].percenttunnelvision;
|
||||
|
||||
for (int i=0; i < MAX_ATTACHMENTS; i++)
|
||||
{
|
||||
bns += Item[pSoldier->inv[HANDPOS].usAttachItem[i]].percenttunnelvision ;
|
||||
bns += Item[pSoldier->inv[HANDPOS].usAttachItem[i]].percenttunnelvision;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user