From ce0b547ab6cdaf6870b7753efe207511e10b0226 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 4 Dec 2014 17:18:50 +0000 Subject: Added 'wingmen combat' toggle. --- src/game/base/game.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/game') 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"); } } -- cgit v1.2.3