Add dedicated server configs

This commit is contained in:
Ahrimdon 2024-03-07 01:11:21 -05:00
parent fdb57c3bd4
commit 359275b28d
2 changed files with 298 additions and 0 deletions

20
cfg/!start_mp_server.bat Normal file
View File

@ -0,0 +1,20 @@
@echo off
::Name of the server shown in the title of the cmd window. This will NOT bet shown ingame.
set name=H1-MOD Dedicated Server
::Name of the config file the server should use. (default: server.cfg)
set cfg=server.cfg
::Port used by the server (default: 27016)
set port=27016
::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 H1-MOD - %name% - Server restarter
echo Server "%name%" will load %cfg% and listen on port %port% UDP!
echo To shut down the server close this window first!
echo (%date%) - (%time%) %name% server start.
:server
start /wait /abovenormal h1-mod.exe "%gamepath%" -dedicated +exec "%cfg%" +set net_port %port% +map_rotate
echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts.
goto server

278
cfg/main/server.cfg Normal file
View File

@ -0,0 +1,278 @@
/////////////////////////////////////////////////////////////////////////
// Call of duty: Modern Warfare Remastered MP Dedicated Server Config //
// H1-MOD //
/////////////////////////////////////////////////////////////////////////
// This config best view with Notepad++ OR //
// other *nix compatible editors of your choice.//
//////////////////////////////////////////////////
// Remove "//" in front of lines to allow the //
// server to read them. //
// Anything after "//" is a comment. //
//////////////////////////////////////////////////
//////////////////////////////////////////////////
// SERVER NAME & COLORS TIPS //
//////////////////////////////////////////////////
// //
// ^1 Red //
// ^2 Green //
// ^3 yellow //
// ^4 Blue //
// ^5 Cyan //
// ^6 Pink //
// ^7 White //
// ^8 Depends on the team colors playing. //
// ^9 Dark Red //
// ^0 Black //
// ^: Rainbow //
// //
//////////////////////////////////////////////////
set sv_hostname "H1-Mod Dedicated Server" // Sets the name of your server on the server browser
set sv_motd "" // Sets a custom motd which is shown on the intel message loadscreen when a player joins. Leave blank for defualt intel messages.
//////////////////////////////////////////////////
// BASIC CONFIGURATION //
//////////////////////////////////////////////////
set g_password "" // Password Protected Server. Leave blank if you want players to join or set password if you want to keep public out.
set party_maxplayers "18" // Max players in your server. (Range 2-18)
set sv_timeout "20" // Timeout time period. You will timeout after (20) seconds when attempting to connect or if you are getting connection interruptions
set sv_reconnectlimit "3" // How many times you can try to reconnect
set g_inactivity "420" // Time in seconds before the server will kick a user for inactivity (range 0 - 10000)
set sv_kickBanTime "3600" // Time in seconds for a player temporary ban (on kick/tempban) (range 0 - 3600)
seta g_allowVote "1" // Toggle voting for [player kick/map restart/next map] (0 or 1 (default) )
seta g_deadChat "0" // Toggle allowing dead players to chat with living players (0 (default) or 1)
//////////////////////////////////////////////////
// GENERIC GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_game_disablesprint 0 // Disables the possibility of sprinting
set scr_game_forceuav 0 // Constant UAV
set scr_game_deleteturrets 0 // Disable the use of turrets
set scr_player_forcerespawn 1 // Disable auto respawn
set scr_game_onlyheadshots 0 // Only headshots are valid
set scr_thirdPerson 0 // All players play in third person
//set scr_killstreak_kills_uav 3 // Kills to get UAV
//set scr_killstreak_kills_airstrike 5 // Kills to get Airstrike
//set scr_killstreak_kills_heli 3 // Kills to get Helicopter
set scr_diehard 0 // Hardcore mode
//set scr_killcount_persists 0 // Killstreaks count persist after player died ( Need Testing! )
set scr_game_deathpointloss 0 // Penalty when player die
set scr_game_suicidepointloss 0 // Penalty when player suicide
set scr_team_teamkillpointloss 0 // Penalty when player kill a team mate
set pm_bouncing 0 // Enable bouncing.
set pm_bouncingAllAngles 0 // Enable bouncing from all angles.
set pm_cs_strafing 0 // Enable CS like strafing.
set g_enableElevators 0 // Enable Elevators.
set jump_height 39 // The maxium height of a player's jump (0-1000)
set jump_enableFallDamage 1 // Enable/Disable fall damage. Recommend if you set a higher jump.
set g_speed 190 // Increase or decrease game speed. (0-1000)
set scr_game_perks 1 // Enable/Disable perks
//////////////////////////////////////////////////
// HARDCORE CONFIGURATION //
//////////////////////////////////////////////////
// uncomment below commands for some hardcore //
// by removing the // before each set dvar. //
//////////////////////////////////////////////////
// set g_hardcore "1" // Enable hardcore mode
// set scr_hardcore "1" // Enable hardcore mode again...
// set ui_hud_hardcore "1" // Removes Heads up display which can be used both regular and HC
// set scr_player_maxhealth "30" // Percent of Health players will have on Respawn. (100 is normal. 30 is hardcore)
// set scr_team_fftype "1" // Enable or Disable Friendly Fire. (1 on, 2 reflect, 3 shared)
// set scr_player_healthregentime "0" // Time it takes you to recover damage. (5 is normal, 0 is hardcore)
// set scr_team_teamkillkicklimit "3" // How many times to get kick for team killling.
//////////////////////////////////////////////////
// B3, IW4MADMIN, GAME LOG & RCON SETTINGS //
//////////////////////////////////////////////////
set logfile "2" // Enable loging 1-2? enable. 0 disable. Leave it on if you plan on using B3 or IW4MAdmin.
set g_logSync "1" // 0 only flush on game end, 1 flush when buffer full, 2 always flush after a write, 3 append to old logs.
set g_log "h1-mod\logs\games_mp.log" // IMPORTANT! Make sure the filename is unique for each server you clone!
set rcon_password "" // RemoteControl password, needed for most management tools like IW4MADMIN and B3. Do not skip if you installing IW4MADMIN.
set sv_sayName "^7Server^7" // name server-side 'say' commands show up as.
//////////////////////////////////////////////////
// FREE FOR ALL GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_dm_scorelimit "15" // Score limit to win the game.
set scr_dm_timelimit "10" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_dm_playerrespawndelay "0" // How long player will wait until respawn.
set scr_dm_numlives "0" // Number of lives per player 0 for unlimited.
set scr_dm_roundlimit "1" // Rounds per game.
set scr_dm_winlimit "1" // amount of wins needed to win a round-based game
//////////////////////////////////////////////////
// TEAM DEATHMATCH GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_war_scorelimit "75" // Score limit to win the game.
set scr_war_timelimit "10" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_war_playerrespawndelay "0" // How long player will wait until respawn.
set scr_war_waverespawndelay "0" // Duration is seconds before the first respawn in each round.
set scr_war_numlives "0" // Number of lives per player 0 for unlimited.
set scr_war_roundlimit "1" // Rounds per game.
set scr_war_winlimit "1" // amount of wins needed to win a round-based game
//////////////////////////////////////////////////
// Kill Confirmed GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_conf_scorelimit "65" // Score limit to win the game.
set scr_conf_timelimit "10" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_conf_playerrespawndelay "0" // How long player will wait until respawn.
set scr_conf_waverespawndelay "0" // Duration is seconds before the first respawn in each round.
set scr_conf_numlives "0" // Number of lives per player 0 for unlimited.
set scr_conf_roundlimit "1" // Rounds per game.
set scr_conf_winlimit "1" // amount of wins needed to win a round-based game
//////////////////////////////////////////////////
// DOMINATION GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_dom_scorelimit "200" // Score limit to win the game.
set scr_dom_timelimit "0" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_dom_playerrespawndelay "0" // How long player will wait until respawn.
set scr_dom_waverespawndelay "0" // Duration is seconds before the first respawn in each round.
set scr_dom_numlives "0" // Number of lives per player per game. 0 is unlimited.
set scr_dom_roundlimit "1" // Rounds per game
set scr_dom_winlimit "1" // amount of wins needed to win a round-based game
//////////////////////////////////////////////////
// SEARCH AND DESTROY GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_sd_scorelimit "1" // Score limit to win the game.
set scr_sd_timelimit "2.5" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_sd_playerrespawndelay "0" // How long player will wait until respawn.
set scr_sd_waverespawndelay "0" // Duration is seconds before the first respawn in each round.
set scr_sd_numlives "1" // Number of lives per player per game.
set scr_sd_roundlimit "0" // Rounds the game is limited to 0 for unlimited.
set scr_sd_winlimit "4" // amount of wins needed to win a round-based game.
set scr_sd_roundswitch "3" // after X rounds, switch sides.
set scr_sd_bombtimer "45" // Time taken for the bomb to detonate.
set scr_sd_defusetime "5" // Time taken to defuse the bomb.
set scr_sd_multibomb "0" // allow multiple people to 'have the bomb'.
set scr_sd_planttime "5" // How long will it take player to 'plant the bomb'.
//////////////////////////////////////////////////
// SABOTAGE GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_sab_scorelimit "0" // Score limit to win the match.
set scr_sab_timelimit "20" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_sab_bombtimer "30" // Duration in seconds the bomb takes to detonate.
set scr_sab_defusetime "5" // Time taken to defuse the bomb.
set scr_sab_hotpotato "0" // One bomb that the teams must fight over. One defending and one have to plant at the site.
set scr_sab_numlives "0" // Number of lives per player per game.
set scr_sab_planttime "2.5" // Time taken to plant the bomb.
set scr_sab_playerrespawndelay "7.5" // Time before respawn.
set scr_sab_roundlimit "1" // Rounds per game.
set scr_sab_roundswitch "1" // Rounds needed to be played before the teams switch sides.
set scr_sab_waverespawndelay "0" // Time delay for first respawn before the game.
//////////////////////////////////////////////////
// CAPTURE THE FLAG GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_ctf_scorelimit "3" // Score limit to win the match.
set scr_ctf_timelimit "20" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_ctf_numlives "0" // Number of lives per player per game.
set scr_ctf_playerrespawndelay "2.5" // Time before respawn.
set scr_ctf_roundlimit "1" // Rounds per game.
set scr_ctf_waverespawndelay "0" // Time delay for first respawn before the game.
//////////////////////////////////////////////////
// DEMOLITION GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_dd_scorelimit "0" // Score limit to win the match.
set scr_dd_timelimit "20" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_dd_bombtimer "45" // Duration in seconds the bomb takes to detonate.
set scr_dd_defusetime "5" // Time taken to defuse the bomb.
set scr_dd_numlives "0" // Number of lives per player per game.
set scr_dd_planttime "5" // Time taken to plant the bomb.
set scr_dd_playerrespawndelay "0" // Time before respawn.
set scr_dd_roundlimit "3" // Rounds per game.
set scr_dd_roundswitch "1" // Rounds needed to be played before the teams switch sides.
set scr_dd_waverespawndelay "0" // Time delay for first respawn before the game.
//////////////////////////////////////////////////
// GAMETYPES LIST //
//////////////////////////////////////////////////
// //
// dm - Free-for-all //
// war - Team Deathmatch //
// sd - Search and Destroy //
// dom - Domination //
// conf - Kill Confirmed //
// sab - Sabotage //
// koth - Headquarters //
// hp - Hardpoint //
// gun - Gun Game //
// ctf - Capture The Flag //
// dd - Demolition //
// //
//////////////////////////////////////////////////
set g_gametype "war" // Sets the defualt gametype of the server if no gametype exist on map rotation
set ui_gametype "war"
//scr_game_hodgepodgeMode "9" // Custom Gamemodes. 2 - Slasher | 4 - Snipers only | 6-7 - RPG Only | 9 - Prophunt
//////////////////////////////////////////////////
// MAP SHORT NAMES ROTATION LIST //
//////////////////////////////////////////////////
// //
// Ambush* - mp_convoy //
// Backlot* - mp_backlot //
// Bog* - mp_bog //
// Crash* - mp_crash //
// Crossfire* - mp_crossfire //
// District* - mp_citystreets //
// Downpour* - mp_farm //
// Overgrown - mp_overgrown //
// Shipment - mp_shipment //
// Vacant* - mp_vacant //
// Lobby Map - mp_vlobby_room //
// //
// Variety Map Pack //
// //
// Broadcast - mp_broadcast //
// Chinatown - mp_carentan //
// Countdown - mp_countdown //
// Bloc - mp_bloc //
// Creek - mp_creek //
// Killhouse - mp_killhouse //
// Pipeline* - mp_pipeline //
// Strike* - mp_strike //
// Showdown* - mp_showdown //
// Wet Work - mp_cargoship //
// //
// Event Updates //
// //
// Winter Crash - mp_crash_snow //
// Day Break - mp_farm_spring //
// Beach Bog* - mp_bog_summer //
// //
// * - Prop Hunt Maps //
// //
//////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
// EXAMPLE MAP+GAMETYPES ROTATIONS //
////////////////////////////////////////////////////////////////////////
// Single Game Mode + Maps: //
// sv_mapRotation "gametype war map mp_bog map mp_crash map mp_farm" //
// //
// Several Mix Game Modes + Maps: //
// sv_mapRotation "gametype war map mp_bog gametype dm map mp_crash" //
////////////////////////////////////////////////////////////////////////
set sv_maprotation "gametype war map mp_convoy map mp_backlot map mp_bog map mp_crash map mp_crossfire map mp_citystreets map mp_farm map mp_overgrown map mp_shipment map mp_vacant map mp_boardcast map mp_carentan map mp_countdown map mp_bloc map mp_creek map mp_killhouse map mp_pipeline map mp_strike map mp_showdown map mp_cargoship map mp_crash_snow map mp_farm_spring map mp_bog_summer"