CoD2 server stuff

This commit is contained in:
ineedbots 2021-09-05 15:03:44 -06:00
parent 62403096c1
commit a91bde05aa
4 changed files with 43 additions and 0 deletions

5
.gitignore vendored
View File

@ -16,6 +16,11 @@
!/z_deploy.bat !/z_deploy.bat
!/.astylerc !/.astylerc
!/main
/main/*
!/main/server.cfg
!/z_server.bat
*.dat *.dat
*.log *.log
players/ players/

View File

@ -1,3 +1,4 @@
xcopy cod2m_bot_warfare\mods\bots\maps mods\bots\maps\ /Y /I /E /H /C xcopy cod2m_bot_warfare\mods\bots\maps mods\bots\maps\ /Y /I /E /H /C
xcopy cod2m_bot_warfare\mods\bots\scriptdata mods\bots\scriptdata\ /Y /I /E /H /C xcopy cod2m_bot_warfare\mods\bots\scriptdata mods\bots\scriptdata\ /Y /I /E /H /C
xcopy cod2m_bot_warfare\main main\ /Y /I /E /H /C
xcopy cod2m_bot_warfare\mods\bots\bots.txt mods\bots\ /Y /I /H /C xcopy cod2m_bot_warfare\mods\bots\bots.txt mods\bots\ /Y /I /H /C

9
main/server.cfg Normal file
View File

@ -0,0 +1,9 @@
set sv_pure "1"
set bots_manage_fill "12"
set bots_manage_fill_kick "1"
set scr_dm_scorelimit "0"
set scr_dm_timelimit "0"
set sv_maprotation "map mp_carentan"

28
z_server.bat Normal file
View File

@ -0,0 +1,28 @@
@echo off
::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=CoD2M Bot Warfare
::Port used by the server (default: 28960)
set port=28970
::What ip to bind too
set ip=0.0.0.0
::Mod name (default "")
set mod=mods/bots
::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%
::Max clients in your server
set maxclients=64
title CoD2M 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.
:server
start /wait /abovenormal "%name%" "%~dp0CoD2MP_s.exe" +set dedicated "2" +set net_ip "%ip%" +set net_port "%port%" +set rcon_password "%rcon_password%" +set fs_game "%mod%" +set sv_maxclients "%maxclients%" +exec "%cfg%" +map_rotate
echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts.
goto Server