mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Prevent endless clock (#186)
Stop AI from attempting to steal a weapon that has a sling attachment, which prevents stealing. (by Seven)
This commit is contained in:
@@ -3308,6 +3308,10 @@ BOOLEAN AIDetermineStealingWeaponAttempt( SOLDIERTYPE * pSoldier, SOLDIERTYPE *
|
||||
UINT16 dfgvdfv = Item[pOpponent->inv[HANDPOS].usItem].usItemClass;
|
||||
return( FALSE );
|
||||
}
|
||||
if (HasAttachmentOfClass(&(pOpponent->inv[HANDPOS]), AC_SLING))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
uiSuccessChance = CalcChanceToSteal(pSoldier, pOpponent, 0);
|
||||
if ( uiSuccessChance >= 100 )
|
||||
|
||||
Reference in New Issue
Block a user