diff options
author | bryan newbold <bnewbold@robocracy.org> | 2010-02-02 12:17:33 -0500 |
---|---|---|
committer | bryan newbold <bnewbold@robocracy.org> | 2010-02-02 12:17:33 -0500 |
commit | 8703d4e9325c896c0b489c63f96d42d8d79a31e3 (patch) | |
tree | bab3db64461f60bcd8693cd9a15ebae9b416c3f2 /code/game/g_cmds.c | |
parent | 3a9cccd9785c394466594c857016d55dfdde560f (diff) | |
download | ioquake3-aero-8703d4e9325c896c0b489c63f96d42d8d79a31e3.tar.gz ioquake3-aero-8703d4e9325c896c0b489c63f96d42d8d79a31e3.zip |
AERO patch applied; this represents our progress at the end of GGJ
Diffstat (limited to 'code/game/g_cmds.c')
-rw-r--r-- | code/game/g_cmds.c | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/code/game/g_cmds.c b/code/game/g_cmds.c index 06df2db..a6a92fe 100644 --- a/code/game/g_cmds.c +++ b/code/game/g_cmds.c @@ -1680,6 +1680,65 @@ void ClientCommand( int clientNum ) { Cmd_SetViewpos_f( ent ); else if (Q_stricmp (cmd, "stats") == 0) Cmd_Stats_f( ent ); + else if (Q_stricmp (cmd, "randomteleport") == 0) + Cmd_RandomTeleport_f( ent ); + else if (Q_stricmp (cmd, "addpoint") == 0) + Cmd_AddPoint_f( ent ); + else if (Q_stricmp (cmd, "doiframe") == 0) + Cmd_DoIframe_f( ent ); + else if (Q_stricmp (cmd, "dobsod") == 0) + Cmd_DoBsod_f( ent ); else trap_SendServerCommand( clientNum, va("print \"unknown cmd %s\n\"", cmd ) ); } + +/* +================= +Cmd_RandomTeleport_f +================= +*/ +void Cmd_RandomTeleport_f( gentity_t *ent ) { + // -bnewbold + vec3_t origin, angles; + + char *msg; // message to player + + // in this case, message is printed in the actual TeleportPlayer function... + SelectSpawnPoint( ent->client->ps.origin, origin, angles, qfalse ); + TeleportPlayer( ent, origin, angles ); + msg = "Randomly Teleported...\n"; + //ent->client->ps.powerups[PW_INVIS] = level.time; + + trap_SendServerCommand( ent-g_entities, va("print \"%s\"", msg)); +} + + +/* +================= +Cmd_DoIframe_f +================= +*/ +void Cmd_DoIframe_f( gentity_t *ent ) { + // -bnewbold + G_Printf("###VIDEOHOOK:doiframe\n"); +} + +/* +================= +Cmd_AddPoint_f +================= +*/ +void Cmd_AddPoint_f( gentity_t *ent ) { + // -bnewbold + G_Printf("###VIDEOHOOK:addpoint\n"); +} + +/* +================= +Cmd_DoBsod_f +================= +*/ +void Cmd_DoBsod_f( gentity_t *ent ) { + // -bnewbold + G_Printf("###VIDEOHOOK:dobsod\n"); +} |