Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2014-12-04 17:18:50 +0000
committerStijn Buys <ingar@osirion.org>2014-12-04 17:18:50 +0000
commitce0b547ab6cdaf6870b7753efe207511e10b0226 (patch)
tree775cf9ed862ad4dcc52d0447646dd5572acc0f4a /src
parent666638571080a4ce076810fbd263db229d69c995 (diff)
Added 'wingmen combat' toggle.
Diffstat (limited to 'src')
-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");
}
}