MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ArcadeTalkMove

Function ArcadeTalkMove

engine/Poseidon/AI/AIArcade.cpp:1101–1124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1099}
1100
1101static void ArcadeTalkMove(AIGroupContext* context)
1102{
1103 STATE_PREFIX
1104 if (group->IsPlayerGroup())
1105 {
1106 return;
1107 }
1108
1109 Vector3 posN;
1110 if (!GetTalkTarget(context, posN))
1111 {
1112 context->_fsm->SetState(SArcadeSync, context);
1113 return;
1114 }
1115
1116 mission->_destination = posN;
1117
1118 Command cmd;
1119 cmd._message = Command::Move;
1120 cmd._destination = posN;
1121 cmd._discretion = Command::Undefined;
1122 cmd._context = Command::CtxMission;
1123 group->SendCommand(cmd);
1124}
1125
1126static void CheckArcadeTalkMove(AIGroupContext* context)
1127{

Callers

nothing calls this directly

Calls 4

GetTalkTargetFunction · 0.85
IsPlayerGroupMethod · 0.80
SendCommandMethod · 0.80
SetStateMethod · 0.45

Tested by

no test coverage detected