DRC - Digital reality crew logo
DRC Forum | Register | Log in | Forum help | Search

Quake 4 : Server config


DRC Forum
» Gaming Forums
    » Quake & QuakeLive Forum
        » Quake 4 : Server config
            » Page 1 of 1

  Post new topicReply to topic

Author Message
|DRC| Messiah






Thursday, November 3 2005, 18:00:29 #30131     Quake 4 : Server config


// ==============================================================
// QUAKE 4 server.cfg :: riddla@lrctf.com :: http://www.lrctf.com
// cmd line windows: Quake4Ded.exe +exec server.cfg
// cmd line linux: quake4-dedicated +exec server.cfg
// Default UDP ports :: game/punkbuster: 28004 heartbeat: 27950
//===============================================================

//=========
// GAMETYPE
//=========
seta si_gameType "CTF"

//====================
// SERVER INFO - BASIC
//====================
seta si_name "^2www.quake4world.com ^4CTF"
seta g_motd "#quake3world on gamesurge"

//==========
// PASSWORDS
//==========
seta net_serverRemoteConsolePassword "rcon pass here" //change this!
seta si_usepass "0" //enable client password checking
seta g_password "" //password here, si_usepass variable turns pw checking on or off

//==============================
// PUBLIC INFO FOR GAME BROWSERS
//==============================
sets ".Administrator" "admin name here"
sets ".Connection" "connection specs here"
sets ".CPU" "server specs here"
sets ".Clan" "clan name here"
sets ".Email" "address here"
sets ".Hosted by" "host name here"
sets ".Location" "location here"
sets ".Plug" "something witty here, like btw cocks"
sets ".URL" "http://www.quake4world.com"

//=================
// GENERAL SETTINGS
//=================
seta sv_punkbuster "1" //server side punkbuster
seta si_pure "1" //server does not allow any modified paks
seta si_weaponstay "0" //weaponstay on or off (5 sec respawn when off)
seta si_minPlayers "2" //min to start a game (when warmup enabled)
seta si_maxPlayers "12" //max players allowed in games
seta si_numPlayers "14" //max players allowed on server
seta si_spectators "1" //allow spectators or force all to play
seta g_spectatorChat "0" //let spectators talk to everyone during game
seta si_warmup "1" //pre-game warmup
seta si_countdown "30" //pre-game countdown (warmup time)
seta si_fraglimit "0" //frag limit in FFA modes
seta si_timelimit "15" //time limit in minutes for each game
seta si_useReady "0" //all must ready up before game start. recommended only for tourney/match servers.
seta si_allowHitscanTint "2" //0=none 1=allow in DM only, 2=any in DM & team-colored in teamplay

// cvars currently under research
seta si_entityFilter "" //filter to use when spawning entities (possible way to remove weaps, powerups?)
seta si_idleServer "0" //game clients are idle (pause perhaps?)

// remove player bob
seta pm_bobpitch "0.0"
seta pm_bobroll "0.0"
seta pm_bobup "0.0"
seta pm_crouchbob "0.0"
seta pm_runbob "0.0"
seta pm_runpitch "0.0"
seta pm_runroll "0.0"
seta pm_walkbob "0.0"

//==================
// TEAMPLAY SETTINGS
//==================
seta si_capturelimit "8" //score limit for CTF
seta si_autobalance "1" //maintain even teams
seta si_shuffle "1" //shuffle teams after each round
seta si_teamDamage "0" //enable or disable team damage

//======
// VOTING
//======
seta si_allowVoting "1" //enable or disable server option voting
seta g_voteFlags "14" //mask of votes not allowed on this server:
//1 (bit 0) restart now
//2 (bit 1) time limit
//4 (bit 2) frag limit
//8 (bit 3) game type
//16 (bit 4) kick player
//32 (bit 5) change map
//64 (bit 6) spectators
//128 (bit 7) next map

//===============
// NETWORK & SERVER
//===============
seta net_serverAllowServerMod "0" //allow server-side mods
seta net_serverSnapshotDelay "30" //delay between snapshots in milliseconds
seta net_serverMaxClientRate "16000" //max rate to clients in bytes/sec
seta win_allowMultipleInstances "1" //allow multiple instances to run concurrently

// AUTODOWNLOAD - this functionality not yet completely working
// reference http://zerowing.idsoftware.com/linux/quake4/
seta net_serverDownload "1" //pk4 download policy 0=none 1=send to si_serverURL 2=present client with available files list
seta net_clientDownload "1" //pk4 download policy 0=none 1=send to si_serverURL 2=present client with available files list
seta si_serverURL "http://www.paklocation.com/pakfolder/index.html" //webpage containing files
seta net_serverDlBaseURL "http://www.paklocation.com/pakfolder/" //base URL to files (example included)
seta net_serverDlTable "q4base/myq4map01.pk4;q4base/myq4map02.pk4" //list of available pak files (examples included)

// master server lists
seta sv_master1 "q4master.idsoftware.com"
seta sv_master2 "master3.idsoftware.com"

//=======
// LOGGING
//=======
seta g_log "1" //enables game logging
seta logFile "2" // 1=buffer log 2=flush after each print
seta logFileName "qconsole.log" // name of logfile
seta com_logMPStats "1" // writing of multiplayer stats to StatisticsLog.txt
seta com_timestampPrints "2" // print time with each console print, 1 = msec, 2 = sec
seta com_uniqueWarnings "1" //activate to allow individual warnings to print only once per level load
seta win_timerUpdate "0" // allow console updates while dragging the window

//===========
// MAPCYCLING
//===========

seta si_map "mp/q4ctf2"
seta si_tourneyLimit "3" //times a map runs before change in tourney mode

//use one method or the other below:

//without mapcycle.scriptcfg
seta si_mapcycle "mp/q4ctf1;mp/q4ctf2;mp/q4ctf3;mp/q4ctf4;mp/q4ctf5"

//with mapcycle.scriptcfg
//seta g_mapCycle "mapcycle"

//=================
// START THE SERVER
//=================
spawnserver

//END OF FILE


http://www.quake3world.com/forum/viewtopic.php?t=12283
_________________
Profile | Send PM | AIM | YIM | MSN | SKYPE | ICQ
 
Sponsored Ad






Today #     Sponsored Ads


WWW
 
|DRC| Wartex






Saturday, February 18 2006, 17:13:54 #32996     


Default mapcycle.scriptcfg


Code:

/*
map cycling script sample - select with g_mapCycle

the script is purged and reloaded at each map restart
  which happens on map change, but also when hitting GAMEON
  for persistance, you need to use the {get,set}Persistant functions

files with .scriptcfg extension can be loaded outside of pure paks
*/

namespace mapcycle {

   void cycle() {
      // config
      float cycle_maps = 1;            // 1 = cycle through maps in the current game type, 0 = keep the same map
      float cycle_gametypes = 0;         // 1 = cycle through game types, 0 = keep the same game type

      // cycle maps and game types
      float replay_count = sys.getPersistantFloat( "replay_count" );
      string si_gameType = sys.getcvar( "si_gameType" );
      string si_map = sys.getcvar( "si_map" );

      sys.println( "cycle: replay_count = " + replay_count );
       
      if ( replay_count <= 0 ) {
         // restart n times before next map
         replay_count = 2;
         
         // add in custom replay counts here for current game type
         if ( si_gameType == "DM" ) {
            ;
         } else if ( si_gameType == "Tourney" ) {
            ;
         } else if ( si_gameType == "Team DM" ) {
            ;
         } else if ( si_gameType == "CTF" ) {
            ;
         } else if ( si_gameType == "Arena CTF" ) {
            ;
         }
         
      }
       
      replay_count--;
      sys.setPersistantArg( "replay_count", replay_count );
      if ( replay_count <= 0 ) {
         // restart n times before next map
         
         if ( cycle_gametypes > 0 ) {
         
            cycle_maps = 1;      // we want to make sure that we transition to a proper map for the new gametype
             
            if ( si_gameType == "DM" ) {
               sys.setcvar( "si_gameType", "Tourney" );
            } else if ( si_gameType == "Tourney" ) {
               sys.setcvar( "si_gameType", "Team DM" );
            } else if ( si_gameType == "Team DM" ) {
               sys.setcvar( "si_gameType", "CTF" );
            } else if ( si_gameType == "CTF" ) {
               sys.setcvar( "si_gameType", "Arena CTF" );
            } else if ( si_gameType == "Arena CTF" ) {
               sys.setcvar( "si_gameType", "DM" );
            } else {
               sys.setcvar( "si_gameType", "DM" );
            }
             
         }

         if ( cycle_maps > 0 ) {
         
            if ( si_gameType == "DM" || si_gameType == "Team DM" ) {
             
               if ( si_map == "mp/q4dm1" ) {
                  sys.setcvar( "si_map", "mp/q4dm2" );
               } else if ( si_map == "mp/q4dm2" ) {
                  sys.setcvar( "si_map", "mp/q4dm3" );
               } else if ( si_map == "mp/q4dm3" ) {
                  sys.setcvar( "si_map", "mp/q4dm4" );
               } else if ( si_map == "mp/q4dm4" ) {
                  sys.setcvar( "si_map", "mp/q4dm5" );
               } else if ( si_map == "mp/q4dm5" ) {
                  sys.setcvar( "si_map", "mp/q4dm6" );
               } else if ( si_map == "mp/q4dm6" ) {
                  sys.setcvar( "si_map", "mp/q4dm7" );
               } else if ( si_map == "mp/q4dm7" ) {
                  sys.setcvar( "si_map", "mp/q4dm8" );
               } else if ( si_map == "mp/q4dm8" ) {
                  sys.setcvar( "si_map", "mp/q4ctf5" );
               } else {
                  sys.setcvar( "si_map", "mp/q4dm1" );
               }
             
            } else if ( si_gameType == "Tourney" ) {
             
               if ( si_map == "mp/q4dm11v1" ) {
                  sys.setcvar( "si_map", "mp/q4dm8" );
               } else if ( si_map == "mp/q4dm8" ) {
                  sys.setcvar( "si_map", "mp/q4dm3" );
               } else if ( si_map == "mp/q4dm3" ) {
                  sys.setcvar( "si_map", "mp/q4dm6" );
               } else if ( si_map == "mp/q4dm6" ) {
                  sys.setcvar( "si_map", "mp/q4dm7" );
               } else if ( si_map == "mp/q4dm7" ) {
                  sys.setcvar( "si_map", "mp/q4ctf5" );
               } else {
                  sys.setcvar( "si_map", "mp/q4dm11v1" );
               }
               
            } else if ( si_gameType == "CTF" || si_gameType == "Arena CTF" ) {

               if ( si_map == "mp/q4ctf1" ) {
                  sys.setcvar( "si_map", "mp/q4ctf2" );
               } else if ( si_map == "mp/q4ctf2" ) {
                  sys.setcvar( "si_map", "mp/q4ctf3" );
               } else if ( si_map == "mp/q4ctf3" ) {
                  sys.setcvar( "si_map", "mp/q4ctf4" );
               } else if ( si_map == "mp/q4ctf4" ) {
                  sys.setcvar( "si_map", "mp/q4ctf5" );
               } else {
                  sys.setcvar( "si_map", "mp/q4ctf1" );
               }
               
            }
         }
      } else {
         sys.say( "map cycle: restarting current map " + replay_count + " more time(s)" );
      }
   }
}
 

_________________

Profile | Send PM | WWW | AIM | YIM | MSN | SKYPE | ICQ
 
Display posts from previous:   


Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Optimized with phpBB SEO
Questions? Contact us at fubar_38-107-179-239@wartex.net