diff --git a/main/server.cfg b/main/server.cfg index 08aa29d..7eea6a1 100644 --- a/main/server.cfg +++ b/main/server.cfg @@ -9,7 +9,7 @@ /// features only available on CoD4X 1.8+ servers /// /// /// //////////////////////////////////////////////////////////// - +loadplugin "httpget" // Meta Information, not required sets _Admin "Admin" @@ -23,15 +23,12 @@ sets _Gametype "" // Basics set sv_hostname "^1Bot ^3War^5fare ^724/7 Shipment 10x" set g_motd "" // Message of the day, which getting shown to every player on his 1st spawn -set dedicated "2" // 0 = Listen, 1 = LAN, 2 = Internet ( you probably want 2 ) -set rcon_password "qazqaz" // password for remote access, leave empty to deactivate, min 8 characters set g_password "" // join password, leave empty to deactivate set sv_privateClients "" //Private Clients, number of slots that can only be changed with a password set sv_privatePassword "" // the password to join private slots set sv_authorizemode "-1" // cdkey validation set sv_showasranked "1" // 0 = show modded server as not ranked, 1 = shows server as ranked altough it is modded -set sv_authtoken "12312321" - +set sv_maxclients "64" // Log File set g_logsync "2" // 0=no log, 1=buffered, 2=continuous, 3=append @@ -41,16 +38,14 @@ set sv_log_damage "1" set sv_statusfile "serverstatus.xml" // writes an xml serverstatus to disc, leave empty to disable // Networking -// set net_ip "0.0.0.0" // not necessary to be set -// set net_port 28960 // network port // set sv_maxRate 25000 set sv_minPing "0" // minimal ping [ms] for a player to join the server set sv_maxPing "0" // maximal ping [ms] for a player to join the server -set sv_timeout 40 // Seconds to keep a client on server without a new clientmessage -set sv_connectTimeout 90 // Seconds to wait for a client which is loading a map without a new clientmessage -set sv_zombieTime 2 // Seconds to keep a disconnected client on server to transmit the last message -set sv_reconnectlimit 5 // Seconds to disallow a prior connected client to reconnect to the server +set sv_timeout "40" // Seconds to keep a client on server without a new clientmessage +set sv_connectTimeout "90" // Seconds to wait for a client which is loading a map without a new clientmessage +set sv_zombieTime "2" // Seconds to keep a disconnected client on server to transmit the last message +set sv_reconnectlimit "5" // Seconds to disallow a prior connected client to reconnect to the server // Floodprotection is enabled by default! // sv_floodProtect, sv_maxRate, @@ -58,10 +53,10 @@ set sv_reconnectlimit 5 // Seconds to disallow a prior connected client to recon // Variables you should not touch :) // set sv_fps "20" //Server-FPS (do not change!) -// set sv_punkbuster "0" //Punkbuster, PB is not supported on CoD4x -// set sv_pure "1" //check IWD-data 0 = off, 1 = on +set sv_punkbuster "0" //Punkbuster, PB is not supported on CoD4x +set sv_pure "0" //check IWD-data 0 = off, 1 = on // set g_antilag "1" //0 = off, 1 = on // Anti lag checks for weapon hits -// set ModStats 1 // 1 = use player stats file for mods (normal behaviours), 0 = use player stats file of basegame (DANGEROUS!!! as it can overwrite your stats) +// set ModStats "1" // 1 = use player stats file for mods (normal behaviours), 0 = use player stats file of basegame (DANGEROUS!!! as it can overwrite your stats) @@ -74,23 +69,23 @@ set sv_allowAnonymous "0" // Anonymous //0 = off 1 = on // Maps set sv_mapRotation "map mp_shipment" // maps that will be played automatically -// set sv_randomMapRotation 1 // 0 = sv_mapRotation is randomized, 1 = sequential order of sv_mapRotation +// set sv_randomMapRotation "1" // 0 = sv_mapRotation is randomized, 1 = sequential order of sv_mapRotation set g_deadChat "1" // dead can chat // 0 = off, 1 = on set voice_deadChat "0" // dead can use voicechat //0 = off, 1 = on set g_gravity "800" //Gravity //Standard 800 set sv_disableClientConsole "0" //deactivate console for clients //0 = no, 1 = yes -set scr_teambalance "0" //auto-teambalance //0 = no, 1 = yes +set scr_teambalance "1" //auto-teambalance //0 = no, 1 = yes set scr_team_fftype "0" //friendly-fire //0 = off, 1 = on, //2 = reflect damage, 3 = shared damage set scr_game_spectatetype "2" // spectator // 0 = off, 1 = only Team/player, 2 = free -set scr_hardcore 0 //Hardcore Mode //0 = off 1 = on +set scr_hardcore "0" //Hardcore Mode //0 = off 1 = on set scr_oldschool "0" //Oldschool Mode //0 = off, 1 = on -set g_friendlyPlayerCanBlock 0 // 1 = player collision between friendly players, 0 = collision between friendly players is disabled -set g_FFAPlayerCanBlock 1 // same for FFA (non team based) gamemode +set g_friendlyPlayerCanBlock "0" // 1 = player collision between friendly players, 0 = collision between friendly players is disabled +set g_FFAPlayerCanBlock "1" // same for FFA (non team based) gamemode // Less interesting Gameplay stuff -set scr_drawfriend "1" //show team mates //0 = off, 1 = on +set scr_drawfriend "0" //show team mates //0 = off, 1 = on set scr_enable_scoretext "1" //hit-message //0 = no, 1 = yes set scr_game_allowkillcam "1" //Killcam //0 = no, 1 = yes // Allow to play killcam after you got killed set scr_game_deathpointloss "0" //points-distraction when hit //0 = no, 1 = yes @@ -126,9 +121,9 @@ set scr_war_waverespawndelay "0" //Domination (dom) set scr_dom_scorelimit "300" -set scr_dom_timelimit "0" +set scr_dom_timelimit "30" set scr_dom_numlives "0" -set scr_dom_playerrespawndelay "3" +set scr_dom_playerrespawndelay "0" set scr_dom_roundlimit "1" set scr_dom_waverespawndelay "0" @@ -177,10 +172,10 @@ set scr_sd_waverespawndelay "0" set g_gametype "dom" // gamemode, one of [war, dm, sd, sab, koth] // Amazing Stuff -//set sv_autodemorecord 1 // Records demos of players on the serverside, demos are stored in "demos" folder +set sv_autodemorecord "1" // Records demos of players on the serverside, demos are stored in "demos" folder //set sv_demoCompletedCmd "" // program to execute when a demo has been saved //set sv_screenshotArrivedCmd "" // program to execute when a screenshot was taken -//set sv_legacyguidmode 0 // 1 = old 32 character guids are used, 0 = new cod4x guid format is used ( like steamids ) +//set sv_legacyguidmode "0" // 1 = old 32 character guids are used, 0 = new cod4x guid format is used ( like steamids ) /////////////////////////// // Setup for custom maps when running a mod @@ -190,7 +185,7 @@ seta sv_wwwDlDisconnected "1" // disconnect clients while downloading /////////////////////////// -set sv_nosteamnames 1 // 1 = Use names from steam if steam is available +set sv_nosteamnames "1" // 1 = Use names from steam if steam is available set bots_manage_add "12" set bots_main_firstIsHost "0" @@ -200,3 +195,5 @@ set bots_team_force "1" set bots_loadout_allow_op "0" set bots_loadout_reasonable "1" set bots_manage_fill_spec "0" + +exec config.cfg diff --git a/z_server.bat b/z_server.bat index 2f3a965..fdabd3f 100644 --- a/z_server.bat +++ b/z_server.bat @@ -1 +1,29 @@ -start "" "%~dp0cod4x18_dedrun.exe" +set dedicated "2" +set sv_maxclients "64" +set sv_punkbuster "0" +set net_port "28960" +set fs_game "mods/bots" +exec server.cfg +loadplugin httpget +map_rotate \ No newline at end of file +@echo off +::Paste the server key from https://platform.plutonium.pw/serverkeys here +set key= +::RemoteCONtrol password, needed for most management tools like IW4MADMIN and B3. Do not skip if you installing IW4MADMIN. +set rcon_password= +::Name of the config file the server should use. +set cfg=server.cfg +::Name of the server shown in the title of the cmd window. This will NOT bet shown ingame. +set name=CoD4x Bot Warfare +::Port used by the server (default: 28960) +set port=28969 +::What ip to bind too +set ip=0.0.0.0 +::Mod name (default "") +set mod= +::Only change this when you don't want to keep the bat files in the game folder. MOST WON'T NEED TO EDIT THIS! +set gamepath=%cd% + +title CoD4x MP - %name% - Server restarter +echo Visit plutonium.pw / Join the Discord (a6JM2Tv) for NEWS and Updates! +echo Server "%name%" will load "%cfg%" and listen on port "%port%" UDP with IP "%ip%"! +echo To shut down the server close this window first! +echo (%date%) - (%time%) %name% server start. + +cd /D %LOCALAPPDATA%\Plutonium +:server +start /wait /abovenormal "%name%" "%~dp0cod4x18_dedrun.exe" +set dedicated "2" +set sv_authtoken "%key%" +set net_ip "%ip%" +set net_port "%port%" +set rcon_password "%rcon_password%" +set fs_game "%mod%" +exec "%cfg%" +map_rotate +echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts. +goto Server