//-----------------------------------------------------------------------------
// Q2PRODED or R1Q2 Server Settings
//-----------------------------------------------------------------------------

//set sv_connectmessage "\n\nThis server uses 'Q2Pro dedicated' under linux.\nYour friendly host is quad|Haudrauf #quadaver @ QuakeNet.\nWe propose AprQ2 and Q2Pro as clients.\n\nThe server can record and play back Multi View Demos."


////////////////////////////////////////////////////////
// we are a mvdserver, so these are important:
set sv_mvd_enable 2  
set sv_mvd_password "m00ma4"   // CHANGE
set sv_mvd_maxclients 2          

// very important for action quake mvdobserver!
set sv_mvd_begincmd "putaway; h_cycle" // putaway at the beginning is needed to make sure!
set sv_mvd_scorecmd "h_cycle"
alias h_cycle "h_cycle_sb; h_cycle_sb; h_cycle_sb; h_cycle_sb; h_cycle_sb"
alias h_cycle_sb "wait; help; wait 75; help; wait 75; putaway;" // putaway at the end is needed!

// not so important:
set mvd_default_map wfall  // nice for action quake
set sv_mvd_maxtime 30
set mvd_snaps 2
set mvd_wait_delay 12
set sv_mvd_nomsgs 0 // visible chat
set sv_mvd_nogun 0 // gun handedness, i think..

// for manual rcon usage:
alias mvdrec "say MVD recording started: ${com_date}_${com_time}_${mapname}.mvd2; mvdrecord -z ${com_date}_${com_time}_${mapname}"  // -z = gzipped file
//////////////////////////////////////////////////////////


set sv_downloadserver "http://hifi.iki.fi/quake2/repository/"
set sv_uptime 1
set sv_calcpings_method 2
set sv_waterjump_hack 1
set sv_packetdup_hack 1

set allow_download_others 1
set allow_download_maps 1
set allow_download_demos 1


set net_maxmsglen 0
//// Note to server admins: Don't forget to set net_maxmsglen 0 on your server if your ISP/router supports fragmented UDP packets! This will give much faster autodownloading support and allow for larger frames in heavy games to R1Q2 clients.

set logfile_flush 0 
// 0: flush after buffer is full
// 1: line buffered logfiles .. so we don't miss anything there.



addstuffcmd begin "say vers: $version gdrv: $gl_driver "
//addstuffcmd begin set cl_anglespeedkey ${cl_anglespeedkey} u
//addstuffcmd begin set cl_pitchspeed ${cl_pitchspeed} u
//addstuffcmd begin set cl_maxfps ${cl_maxfps} u
//addstuffcmd begin set timescale ${timescale} u




