Talk:SendServerCommand

From WolfWiki
Revision as of 18:05, 25 November 2005 by =FF=im2good4u (Talk | contribs)

Jump to: navigation, search

I'm not sure about the chat commands syntax here. Could someone confirm they are correct? I use the chat command and AFAIK it takes 2 parameters (integers) after the chat string itself. --Rookie One 13:25, 24 November 2005 (PST)

i didnt test them all but i used my qmm h4x to make the server print out any command it shows to the client

and it showed up in this format so it should work + i loked at the code and it also took the same parameters (athoug i didnt see the etpro code)

apart from that voice chat does use 2 addition interers the first witch is a 0 is "voice only" and 50 is the "color" i need to test those 2 when i get home =FF=Im2good4u 05:22, 25 November 2005 (PST)

I grepped cg_servercmds.c for cmd and this is what I've got:

        if ( !strcmp( cmd, "tinfo" ) ) {
        if ( !strcmp( cmd, "sc0" ) ) {
        } else if ( !strcmp( cmd, "sc1" ) ) {
        if ( !strcmp( cmd, "WeaponStats" ) ) {
        if ( !Q_stricmp( cmd, "cpm" ) ) {
        if ( !Q_stricmp( cmd, "cp" ) ) {
        if( !Q_stricmp( cmd, "reqforcespawn" ) ) {
        if( !Q_stricmp( cmd, "sdbg" ) ) {
        if ( !Q_stricmp( cmd, "cs" ) ) {
        if ( !Q_stricmp( cmd, "print" ) ) {
        if ( !Q_stricmp( cmd, "entnfo" ) ) {
        if ( !Q_stricmp( cmd, "chat" ) ) {
        if ( !Q_stricmp( cmd, "tchat" ) ) {
        if ( !Q_stricmp( cmd, "vchat" ) ) {
        if ( !Q_stricmp( cmd, "vtchat" ) ) {
        if ( !Q_stricmp( cmd, "vbchat" ) ) {
        if ( !Q_stricmp( cmd, "complaint" ) && cgs.gamestate == GS_PLAYING) {
        if ( !Q_stricmp( cmd, "map_restart" ) ) {
        if(!Q_stricmp(cmd, "sc")) {
        if(!Q_stricmp(cmd, "ws")) {
        if(!Q_stricmp(cmd, "wws")) {
        if(!Q_stricmp(cmd, "gstats")) {
        if(!Q_stricmp(cmd, "astats")) {
        if(!Q_stricmp(cmd, "astatsb")) {
        if(!Q_stricmp(cmd, "bstats")) {
        if(!Q_stricmp(cmd, "bstatsb")) {
        if(!Q_stricmp(cmd, "wbstats")) {
        if( !Q_stricmp( cmd, "rws" ) ) {
        if( !Q_stricmp( cmd, "portalcampos" ) ) {
        if ( !Q_stricmp( cmd, "startCam" ) ) {
        if ( !Q_stricmp( cmd, "SetInitialCamera" ) ) {
        if ( !Q_stricmp( cmd, "stopCam" ) ) {
        if ( !Q_stricmp( cmd, "setspawnpt" ) ) {
        if ( !strcmp( cmd, "rockandroll" ) ) {  // map loaded, game is ready to                            begin.
        if ( !Q_stricmp( cmd, "application" ) ) {
        if ( !Q_stricmp( cmd, "invitation" ) ) {
        if ( !Q_stricmp( cmd, "proposition" ) ) {
        if( !Q_stricmp( cmd, "aft" ) ) {
        if( !Q_stricmp( cmd, "aftc" ) ) {
        if( !Q_stricmp( cmd, "aftj" ) ) {
        if ( Q_stricmp (cmd, "remapShader") == 0 ) {
        if ( !Q_stricmp( cmd, "mu_start" ) ) {  // has optional parameter for fa                           de-up time
        if ( !Q_stricmp( cmd, "mu_play" ) ) {   // has optional parameter for fa                           de-up time
        if ( !Q_stricmp( cmd, "mu_stop" ) ) {   // has optional parameter for fa                           de-down time
        if ( !Q_stricmp( cmd, "mu_fade" ) ) {
        if ( !Q_stricmp( cmd, "snd_fade" ) ) {
        if (!Q_stricmp(cmd, "ftCommands")) {
        if(!Q_stricmp(cmd, "addToBuild")) {
        if( !Q_stricmp( cmd, "spawnserver" ) )

Maybe the ETPro server commands are different, but etmain does not seem to support these commands.

etpro commands are different look at chatting in etpro its just c tc or bc

the rest is mostly the same but most of thme are not neede to add to this page

like stats commands are send as a reply to a client that request them

as for ome other i was gona add them tomorrow probely

also i work whit cg-severcmds.c file but i also have this h4xed server that shows me every command etpro send and some of them are even send as base64 witch we cant manipulate in lua probely =FF=Im2good4u 10:05, 25 November 2005 (PST)