From 9a16c4b433bba4837bc98a90b446aa0726f0d447 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 5 Nov 2013 13:17:27 +0000 Subject: Correct a bug where launch timeout is ignored for patrols with only a single member, increase dampening for cargo pods, added 'explode' cheat function to self-destruct, cleaned up cargo pod eject code, eject cargo on ship destruction, added g_cargoloss game variable. --- src/game/base/game.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/game/base/game.h') diff --git a/src/game/base/game.h b/src/game/base/game.h index bb1c9ae..bd8d402 100644 --- a/src/game/base/game.h +++ b/src/game/base/game.h @@ -86,7 +86,7 @@ public: /* --- game variables -------------------------------------- */ - /// game variable: maximum speed of the impulse drive + /// game variable: maximum ship speed static core::Cvar *g_impulsespeed; /// game variable: jumppoint range @@ -98,6 +98,9 @@ public: /// game variable: number of seconds it takes for 1 unit of cargo to deplete from station inventories static core::Cvar *g_deplete; + /// game variable: percentage of cargo to drop on player death + static core::Cvar *g_cargoloss; + /// physics variable: default damping factor of space static core::Cvar *g_damping; @@ -124,6 +127,7 @@ private: static void func_launch(core::Player *player, std::string const &args); static void func_respawn(core::Player *player, std::string const &args); static void func_goto(core::Player *player, const std::string &args); + static void func_explode(core::Player *player, const std::string &args); static void func_buy(core::Player *player, std::string const &args); static void func_sell(core::Player *player, const std::string &args); static void func_give(core::Player *player, const std::string &args); -- cgit v1.2.3