From aba2d55e427e5d1de6866704e6d27a6ae2953580 Mon Sep 17 00:00:00 2001 From: INeedBots Date: Wed, 18 Nov 2020 02:34:17 -0600 Subject: [PATCH] stff --- .gitignore | 4 + main/server.cfg | 204 ++++++++++++++++++++++++++++++++++++++++++++++++ z_client.bat | 1 + z_dev.bat | 1 + z_server.bat | 1 + 5 files changed, 211 insertions(+) create mode 100644 main/server.cfg create mode 100644 z_client.bat create mode 100644 z_dev.bat create mode 100644 z_server.bat diff --git a/.gitignore b/.gitignore index d7aa182..238eb36 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,9 @@ !/botnames.txt !/z_devserver.bat !/z_serverdev.bat +!/z_server.bat +!/z_client.bat +!/z_dev.bat # Folder to not ignore !/main_shared/ @@ -16,5 +19,6 @@ main_shared/maps/mp/gametypes/_hardpoints.gsx !/main/ /main/* +!/main/server.cfg !/main/botnames.txt !/main/waypoints/ diff --git a/main/server.cfg b/main/server.cfg new file mode 100644 index 0000000..5f1d22b --- /dev/null +++ b/main/server.cfg @@ -0,0 +1,204 @@ +//////////////////////////////////////////////////////////// +/// /// +/// /// +/// Call of Duty 4 X Standard Configuration /// +/// /// +/// Author: Daedalus, Created: 08.01.2017 /// +/// Provides a general starting point for your /// +/// CoD4X server configuration. Also contains /// +/// features only available on CoD4X 1.8+ servers /// +/// /// +//////////////////////////////////////////////////////////// + + +exec config.cfg + + +// Meta Information, not required +sets _Admin "Admin" +sets _Email "" +sets _Website "" +sets _Location "" +sets _Maps "" +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" + + +// Log File +set g_logsync "2" // 0=no log, 1=buffered, 2=continuous, 3=append +set logfile "1" // 0 = NO log, 1 = log file enabled +set g_log "games_mp.log" // Name of log file, default is games_mp.log +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 + +// Floodprotection is enabled by default! +// sv_floodProtect, sv_maxRate, + + +// 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 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) + + + +// Variables I have no clue what they are doing :D +set sv_allowAnonymous "0" // Anonymous //0 = off 1 = on + + +////////////////////// +// Gameplay + +// 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 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_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_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 + +// Less interesting Gameplay stuff +set scr_drawfriend "1" //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 +set scr_game_suicidepointloss "0" //points-distraction suicide //0 = no, 1 = yes +set scr_game_matchstarttime "10" //time until match starts +set scr_game_playerwaittime "10" //respawn-delay +set scr_player_forcerespawn "1" //force respawn //0 = no, 1 = yes // forgot what -1 did but i believe it was different xD +set scr_player_healthregentime "5" //health regeneration (in seconds) +set scr_player_maxhealth "100" //Max health +set scr_player_sprinttime "4" //Sprint-time +set scr_game_onlyheadshots "0" //headshots only //0 = no, 1 = yes +set scr_teamKillPunishCount "3" //Teamkiller kick after x Teamkills +set scr_team_teamkillspawndelay "20" //teamkill spawn delay (in seconds) +set scr_team_teamkillpointloss "1" //pointloss after Teamkill //0 = no, 1 = yes +set scr_enable_hiticon "1" //Hit-Symbol //0 = off, 1 = on + +//Game-Modes +//Death Match (dm) +set scr_dm_scorelimit "1000" +set scr_dm_timelimit "15" +set scr_dm_roundlimit "1" +set scr_dm_numlives "0" +set scr_dm_playerrespawndelay "3" +set scr_dm_waverespawndelay "0" + +//Team Death Match (war) +set scr_war_scorelimit "2000" +set scr_war_timelimit "10" +set scr_war_roundlimit "1" +set scr_war_numlives "0" +set scr_war_playerrespawndelay "3" +set scr_war_waverespawndelay "0" + +//Domination (dom) +set scr_dom_scorelimit "300" +set scr_dom_timelimit "0" +set scr_dom_numlives "0" +set scr_dom_playerrespawndelay "3" +set scr_dom_roundlimit "1" +set scr_dom_waverespawndelay "0" + +//HQ (koth) +set scr_koth_scorelimit "250" +set scr_koth_timelimit "15" +set koth_kothmode "0" //Classic HQ-Mode 0 = off, 1 = on +set koth_capturetime "20" +set koth_spawntime "3" //0 = immediately, x = time in seconds +set scr_koth_numlives "0" +set scr_koth_playerrespawndelay "3" +set scr_koth_roundlimit "1" +set scr_koth_roundswitch "1" +set scr_koth_waverespawndelay "0" +set koth_autodestroytime "60" +set koth_delayPlayer "3" +set koth_destroytime "10" +set koth_spawnDelay "3" + +//Sabotage (sab) +set scr_sab_scorelimit "2" +set scr_sab_timelimit "10" +set scr_sab_roundswitch "1" +set scr_sab_bombtimer "30" +set scr_sab_planttime "2.5" +set scr_sab_defusetime "5" +set scr_sab_hotpotato "0" +set scr_sab_numlives "0" +set scr_sab_playerrespawndelay "5" +set scr_sab_roundlimit "0" +set scr_sab_waverespawndelay "0" + +//Search and destroy (sd) +set scr_sd_scorelimit "9" +set scr_sd_timelimit "2.5" +set scr_sd_roundswitch "4" +set scr_sd_bombtimer "45" +set scr_sd_planttime "5" +set scr_sd_defusetime "7" +set scr_sd_multibomb "0" +set scr_sd_numlives "1" +set scr_sd_playerrespawndelay "0" +set scr_sd_roundlimit "0" +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_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 ) + +/////////////////////////// +// Setup for custom maps when running a mod +// seta sv_wwwDownload "1" // enable download redirection +// seta sv_wwwBaseURL "http://someserver/cod4dl/" // defines url to download from +// seta sv_wwwDlDisconnected "0" // disconnect clients while downloading +/////////////////////////// + + +set sv_nosteamnames 1 // 1 = Use names from steam if steam is available + +set bots_manage_add "12" +set bots_manage_fill "12" +set bots_manage_fill_kick "1" +set bots_team_force "1" +set bots_loadout_allow_op "0" +set bots_loadout_reasonable "1" +set bots_manage_fill_spec "0" diff --git a/z_client.bat b/z_client.bat new file mode 100644 index 0000000..f6b9282 --- /dev/null +++ b/z_client.bat @@ -0,0 +1 @@ +start "" "%~dp0iw3mp.exe" +set r_fullscreen "1" +set cg_drawlagometer "0" +set cg_drawfps "0" +set cg_drawsnapshot "0" +set r_mode "1920x1080" +set r_monitor "0" \ No newline at end of file diff --git a/z_dev.bat b/z_dev.bat new file mode 100644 index 0000000..918c281 --- /dev/null +++ b/z_dev.bat @@ -0,0 +1 @@ +start "" "%~dp0iw3mp.exe" +set r_fullscreen "0" +set cg_drawlagometer "1" +set developer "1" +set developer_script "1" +set logfile "2" +set cg_drawfps "3" +set cg_drawsnapshot "1" +set scr_game_spectatetype "2" +set r_mode "1024x768" +set thereisacow "1" +set sv_cheats "1" +set fs_game "mods/dev" +devmap mp_shipment \ No newline at end of file diff --git a/z_server.bat b/z_server.bat new file mode 100644 index 0000000..c8a7121 --- /dev/null +++ b/z_server.bat @@ -0,0 +1 @@ +start "" "%~dp0cod4x18_dedrun.exe" +set dedicated "2" +set sv_maxclients "64" +set sv_punkbuster "0" +set net_port "28960" +set fs_game "" +exec server.cfg +map_rotate \ No newline at end of file