AI and logics

todo;
todo;
todo;

Capturing NPC in game

To capture NPC following steps should be applied:

  • Run game in mixed or debug mode (use mixed engine)
  • Hold left alt and click on NPC

As result, you will see game world from perspective of captured NPC.

Using ai_dbg_stalker on starts rendering object details for stalkers.

Ai debug preview

Using ai_dbg_monster on starts rendering object details for stalkers.

Ai debug preview

GOAP displaying in logs

todo;
todo;
todo;

Getting action planners states

todo;
todo;
todo;

Profiling performance:

To profile performance of scripts / c++ scheduler of AI etc following steps are required:

  • Enable rendering of stats: rs_stats on
  • Enable rendering of ai profiling: ai_stats on

After execution following information will be visible:

Ai profile preview

Meaning

Stats have 7 columns displayed in such format:

[name][min_time][avg_time][max_time][call_rate][call_count][total_time]

AI debug console commands:

List of commands.

todo;
todo;
todo;