MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / AIFrameAll

Function AIFrameAll

Descent3/AImain.cpp:6295–6313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6293}
6294
6295void AIFrameAll(void) {
6296 int i;
6297
6298 if ((Game_mode & GM_MULTI) && (Netgame.local_role == LR_CLIENT))
6299 return;
6300
6301 // Currently, -- chrishack -- In multiplayer, all robots are aware.
6302 if (Game_mode & GM_MULTI) {
6303 for (i = 0; i <= Highest_object_index; i++) {
6304 if (Objects[i].ai_info) {
6305 AINotify(&Objects[i], AIN_PLAYER_SEES_YOU, NULL);
6306 }
6307 }
6308 } else {
6309 for (i = 0; i < AI_NumRendered; i++) {
6310 AINotify(&Objects[AI_RenderedList[i]], AIN_PLAYER_SEES_YOU, NULL);
6311 }
6312 }
6313}
6314
6315void AIPowerSwitch(object *obj, bool f_on) {
6316 ai_frame *ai_info = obj->ai_info;

Callers 1

GameFrameFunction · 0.85

Calls 1

AINotifyFunction · 0.85

Tested by

no test coverage detected