mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
- Added an ini option (ALL_NAMED_NPCS_DECIDE_ACTION) which enables proper realtime decision making for any named NPC (i.e. NPCs tied to a profile). As a result such NPCs are not required to be in CIV_TEAM anymore. (by Realist)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5720 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -813,7 +813,7 @@ INT8 DecideActionGreen(SOLDIERTYPE *pSoldier)
|
||||
// if real-time, and not in the way, do nothing 90% of the time (for GUARDS!)
|
||||
// unless in water (could've started there), then we better swim to shore!
|
||||
|
||||
if (fCivilian)
|
||||
if (fCivilian || (gGameExternalOptions.fAllNamedNpcsDecideAction && pSoldier->ubProfile != NO_PROFILE))
|
||||
{
|
||||
// special stuff for civs
|
||||
|
||||
@@ -1427,7 +1427,7 @@ INT8 DecideActionYellow(SOLDIERTYPE *pSoldier)
|
||||
return( ZombieDecideActionYellow(pSoldier) );
|
||||
#endif
|
||||
|
||||
if (fCivilian)
|
||||
if (fCivilian || (gGameExternalOptions.fAllNamedNpcsDecideAction && pSoldier->ubProfile != NO_PROFILE))
|
||||
{
|
||||
if (pSoldier->flags.uiStatusFlags & SOLDIER_COWERING)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user