mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Remove armed vehicle check from soldier AI
This commit is contained in:
@@ -20220,10 +20220,6 @@ INT8 DecideActionRedSoldier(SOLDIERTYPE* pSoldier)
|
|||||||
if (pSoldier->aiData.bAttitude == DEFENSIVE)
|
if (pSoldier->aiData.bAttitude == DEFENSIVE)
|
||||||
iChance += 25;
|
iChance += 25;
|
||||||
|
|
||||||
if (ARMED_VEHICLE(pSoldier))
|
|
||||||
{
|
|
||||||
iChance += 50;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((INT16)PreRandom(100) < iChance && pSoldier->InternalIsValidStance(ubOpponentDir, gAnimControl[pSoldier->usAnimState].ubEndHeight))
|
if ((INT16)PreRandom(100) < iChance && pSoldier->InternalIsValidStance(ubOpponentDir, gAnimControl[pSoldier->usAnimState].ubEndHeight))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user