Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/base')
-rw-r--r--src/game/base/game.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc
index da7e6db..201b18c 100644
--- a/src/game/base/game.cc
+++ b/src/game/base/game.cc
@@ -722,8 +722,19 @@ void Game::func_wingmen(core::Player *player, const std::string &args)
}
}
}
+ } else if (str.compare("combat") == 0) {
+ if (ship->has_autopilot_flag(Ship::AutoPilotCombat)) {
+ ship->unset_autopilot_flag(Ship::AutoPilotCombat);
+ player->send("Wingmen going into formation!");
+ } else {
+ ship->set_autopilot_flag(Ship::AutoPilotCombat);
+ player->send("Wingmen entering combat!");
+ }
+
+
} else {
player->send("Usage: wingmen add [faction label] [amount]");
+ player->send(" wingmen combat");
}
}