-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* create state machines for emotions, activities and cleanup (despawning) * create state graphs as documentation CHANGES * you cannot point your car as a weapon – so civs will not surrender to cars * also you cannot point your weapon from your car, as far as civs are concerned * civs dont disembark when shot at in their vehicles * player civilians will see 'getDown' and 'sendAway' commands as hints * some variability in civ behavior concerning panic cooldown and chance to surrender * require ACE3
- Loading branch information
1 parent
5ddb58f
commit b7971ac
Showing
79 changed files
with
1,386 additions
and
367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
#define PREFIX GRAD | ||
#define COMPONENT civs | ||
|
||
/*#define DEBUG_MODE_FULL*/ | ||
//#define DEBUG_MODE_FULL | ||
#include "\x\cba\addons\main\script_macros_mission.hpp" | ||
|
||
|
||
|
||
#ifdef DEBUG_MODE_FULL | ||
|
||
#define LOGTIME_START(var1) missionNamespace setVariable [var1,diag_tickTime] | ||
#define LOGTIME_DELTAT(var1) diag_tickTime - (missionNamespace getVariable [var1,diag_tickTime]) | ||
#define LOGTIME_END(var1) LOG_SYS('PERFORMANCE',format [ARR_3('%1 took %2s',var1,LOGTIME_DELTAT(var1))]); missionNamespace setVariable [var1,nil] | ||
#define ASSERT_SERVER(var1) if (!assert(!hasInterface || isServer)) exitWith { diag_log(var1); } | ||
#define ASSERT_PLAYER(var1) if (!assert(hasInterface)) exitWith { diag_log(var1); } | ||
|
||
#else | ||
|
||
#define LOGTIME_START(var1) | ||
#define LOGTIME_END(var1) | ||
#define ASSERT_SERVER(var1) if (!(!hasInterface || isServer)) exitWith { diag_log(var1); } | ||
#define ASSERT_PLAYER(var1) if (!hasInterface) exitWith { diag_log(var1); } | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
digraph civs { | ||
compound=true; | ||
|
||
subgraph cluster_emotions { | ||
clusterrank="local"; | ||
bgcolor="yellow"; | ||
emo_relaxed -> emo_wary; | ||
{emo_wary, emo_relaxed} -> emo_panic; | ||
emo_panic -> emo_wary -> emo_relaxed; | ||
} | ||
|
||
subgraph cluster_activities { | ||
bgcolor="green"; | ||
act_rally -> act_patrol; | ||
act_rally -> act_mountUp; | ||
act_mountUp -> act_voyage; | ||
act_mountUp -> act_dismount; | ||
|
||
act_flight -> act_hide; | ||
act_hide -> act_hidden; | ||
|
||
{act_hidden, act_rally, act_patrol, act_dismount} -> act_surrendered; | ||
{act_rally, act_patrol, act_asOrdered} -> act_flight [color=red]; | ||
|
||
act_voyage -> act_dismount [color=red]; # panic event | ||
act_voyage -> act_dismount; | ||
|
||
act_dismount -> act_flight; | ||
act_mountUp -> act_flight; | ||
|
||
{act_flight, act_hide, act_hidden} -> act_rally [color=blue] #de-panic event | ||
|
||
{act_init, act_dismount, act_surrendered} -> act_rally; | ||
|
||
act_surrendered -> act_hide; | ||
|
||
{act_rally, act_patrol, act_surrendered} -> act_asOrdered [color=red]; | ||
|
||
act_asOrdered -> act_rally | ||
} | ||
} | ||
< |
Oops, something went wrong.