diff options
author | Paweł Redman <trem.redman@gmail.com> | 2013-09-09 00:42:43 +0200 |
---|---|---|
committer | Paweł Redman <trem.redman@gmail.com> | 2013-09-09 00:42:43 +0200 |
commit | 27a16fb1fa69d458fb10e6437eb07b85496b46b8 (patch) | |
tree | 70a520565f85e5b9c85cabcf7bc1024badc184af /src/game/g_cmds.c | |
parent | 5b6289ef53d06d005e94b20b3d45f7726588de99 (diff) |
0.1.2 and code cleanup
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 3406f4e..aebb975 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -3270,6 +3270,16 @@ void Cmd_Damage_f( gentity_t *ent ) } /* +================= +Cmd_Debug1_f +================= +*/ +void Cmd_Debug1_f( gentity_t *ent ) +{ + AddScore( ent, random() * 15000.0f ); +} + +/* ================== G_FloodLimited @@ -3314,6 +3324,7 @@ commands_t cmds[ ] = { { "cb", 0, Cmd_Cb_f }, //NOTE: it's a command used only by cgame { "class", CMD_TEAM, Cmd_Class_f }, { "damage", CMD_CHEAT|CMD_LIVING, Cmd_Damage_f }, + { "debug1", CMD_CHEAT, Cmd_Debug1_f }, { "deconstruct", CMD_TEAM|CMD_LIVING, Cmd_Destroy_f }, { "destroy", CMD_CHEAT|CMD_TEAM|CMD_LIVING, Cmd_Destroy_f }, { "follow", CMD_SPEC, Cmd_Follow_f }, |