mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-06-01 00:17:43 +03:00
Shadow Walker: If npc_shadow_walker is damaged and the player can see it, it can forego the squad slot.
This commit is contained in:
parent
91556205fb
commit
e3f2964ae2
@ -309,7 +309,7 @@ int CNPC_ShadowWalker::SelectCombatSchedule()
|
|||||||
bCanChase = OccupyStrategySlot(SQUAD_SLOT_CHASE_1);
|
bCanChase = OccupyStrategySlot(SQUAD_SLOT_CHASE_1);
|
||||||
}
|
}
|
||||||
|
|
||||||
bCanChase = bCanChase || EnemyDistance(GetEnemy()) < 128;
|
bCanChase = bCanChase || EnemyDistance(GetEnemy()) < 128 || (bEnemyCanSeeMe && (HasCondition(COND_LIGHT_DAMAGE) || HasCondition(COND_HEAVY_DAMAGE)));
|
||||||
|
|
||||||
// If I'm not allowed to chase this enemy of this enemy and he's looking at me, set up an ambush
|
// If I'm not allowed to chase this enemy of this enemy and he's looking at me, set up an ambush
|
||||||
if (!bCanChase)
|
if (!bCanChase)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user