Difference between revisions of "Talk:SendServerCommand"

From WolfWiki
Jump to: navigation, search
m
Line 34: Line 34:
 
         if(!Q_stricmp(cmd, "bstats")) {
 
         if(!Q_stricmp(cmd, "bstats")) {
 
         if(!Q_stricmp(cmd, "bstatsb")) {
 
         if(!Q_stricmp(cmd, "bstatsb")) {
//      if(!strcmp(cmd, "wastats")) {
 
 
         if(!Q_stricmp(cmd, "wbstats")) {
 
         if(!Q_stricmp(cmd, "wbstats")) {
 
         if( !Q_stricmp( cmd, "rws" ) ) {
 
         if( !Q_stricmp( cmd, "rws" ) ) {
Line 57: Line 56:
 
         if (!Q_stricmp(cmd, "ftCommands")) {
 
         if (!Q_stricmp(cmd, "ftCommands")) {
 
         if(!Q_stricmp(cmd, "addToBuild")) {
 
         if(!Q_stricmp(cmd, "addToBuild")) {
         if( !Q_stricmp( cmd, "spawnserver" ) )<pre>
+
         if( !Q_stricmp( cmd, "spawnserver" ) )</pre>
Maybe the ETPro server commands are different, but etmain does not seem to support these commands.</pre>
+
Maybe the ETPro server commands are different, but etmain does not seem to support these commands.

Revision as of 13:54, 25 November 2005

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.