MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / SetMoveMissionEndMode

Method SetMoveMissionEndMode

src/Ext/Script/Body.cpp:694–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692}
693
694void ScriptExt::SetMoveMissionEndMode(TeamClass* pTeam, int mode)
695{
696 // This passive method replaces the CloseEnough value from rulesmd.ini by a custom one. Used by Mission_Move()
697 if (mode < 0 || mode > 2)
698 mode = pTeam->CurrentScript->Type->ScriptActions[pTeam->CurrentScript->CurrentMission].Argument;
699
700 auto const pTeamData = TeamExt::ExtMap.Find(pTeam);
701
702 if (mode >= 0 && mode <= 2)
703 pTeamData->MoveMissionEndMode = mode;
704
705 // This action finished
706 pTeam->StepCompleted = true;
707
708 return;
709}
710
711bool ScriptExt::MoveMissionEndStatus(TeamClass* pTeam, TechnoClass* pFocus, FootClass* pLeader, int mode)
712{

Callers

nothing calls this directly

Calls 1

FindMethod · 0.45

Tested by

no test coverage detected