Browse Source

update cs2 config

pull/137/head
Daniel Gibbs 1 year ago
parent
commit
f60edf9616
No known key found for this signature in database GPG Key ID: 2076B128385E8C55
  1. 120
      cod4/server.cfg
  2. 34
      cs2/server.cfg

120
cod4/server.cfg

@ -22,50 +22,76 @@ sets _Gametype ""
// Basics
set sv_hostname "SERVERNAME"
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 "ADMINPASSWORD" // password for remote access, leave empty to deactivate, min 8 characters
set g_password "" // join password, leave empty to deactivate
set sv_privateClients "2" //Private Clients, number of slots that can only be changed with a password
set sv_privatePassword "mypassword" // the password to join private slots
set sv_authorizemode "0" // cdkey validation
set sv_showasranked 0 // 0 = show modded server as not ranked, 1 = shows server as ranked altough it is modded
// Message of the day, which getting shown to every player on his 1st spawn
set g_motd ""
// 0 = Listen, 1 = LAN, 2 = Internet ( you probably want 2 )
set dedicated "2"
// password for remote access, leave empty to deactivate, min 8 characters
set rcon_password "ADMINPASSWORD"
// join password, leave empty to deactivate
set g_password ""
//Private Clients, number of slots that can only be changed with a password
set sv_privateClients "2"
// the password to join private slots
set sv_privatePassword "mypassword"
// cdkey validation
set sv_authorizemode "0"
// 0 = show modded server as not ranked, 1 = shows server as ranked altough it is modded
set sv_showasranked 0
// 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
// 0=No log, 1=buffered, 2=continuous, 3=append
set g_logsync "2"
// 0 = No log, 1 = log file enabled
set logfile "1"
// Name of log file, default is games_mp.log
set g_log "games_mp.log"
set sv_log_damage "1"
set sv_statusfile "serverstatus.xml" // writes an xml serverstatus to disc, leave empty to disable
// writes an xml serverstatus to disc, leave empty to disable
set sv_statusfile "serverstatus.xml"
// Networking
// set net_ip "0.0.0.0" // not necessary to be set
// set net_port 28960 // network port
// not necessary to be set
// set net_ip "0.0.0.0"
// network port
// set net_port 28960
// set sv_maxRate 25000
set sv_minPing "0" // minimal ping [ms] for a player to join the server
set sv_maxPing "350" // 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
// minimal ping [ms] for a player to join the server
set sv_minPing "0"
// maximal ping [ms] for a player to join the server
set sv_maxPing "350"
// Seconds to keep a client on server without a new clientmessage
set sv_timeout 40
// Seconds to wait for a client which is loading a map without a new clientmessage
set sv_connectTimeout 90
// Seconds to keep a disconnected client on server to transmit the last message
set sv_zombieTime 2
// Seconds to disallow a prior connected client to reconnect to the server
set sv_reconnectlimit 5
// Floodprotection is enabled by default!
// sv_floodProtect, sv_maxRate,
// 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)
//Server-FPS (do not change!)
// set sv_fps "20"
//Punkbuster, PB is not supported on CoD4x
// set sv_punkbuster "0"
//check IWD-data 0 = off, 1 = on
// set sv_pure "1"
//0 = off, 1 = on // Anti lag checks for weapon hits
// set g_antilag "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
// Variables I have no clue what they are doing :D
set sv_allowAnonymous "0" // Anonymous //0 = off 1 = on
// Anonymous //0 = off 1 = on
set sv_allowAnonymous "0"
//////////////////////
@ -73,20 +99,32 @@ set sv_allowAnonymous "0" // Anonymous //0 = off 1 = on
// Maps
set sv_mapRotation "gametype war map mp_backlot gametype war map mp_bloc gametype war map mp_bog gametype war map mp_cargoship gametype war map mp_citystreets gametype war map mp_convoy gametype war map mp_countdown gametype war map mp_crash gametype war map mp_crossfire gametype war map mp_farm gametype war map mp_overgrown gametype war map mp_pipeline gametype war map mp_shipment gametype war map mp_showdown gametype war map mp_strike gametype war map mp_vacant" // 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 "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_oldschool "0" //Oldschool Mode //0 = off, 1 = on
set g_friendlyPlayerCanBlock 1 // 1 = player collision between friendly players, 0 = collision between friendly players is disabled
set g_FFAPlayerCanBlock 1 // same for FFA (non team based) gamemode
// 0 = sv_mapRotation is randomized, 1 = sequential order of sv_mapRotation
// set sv_randomMapRotation 1
// Dead can chat // 0 = off, 1 = on
set g_deadChat "1"
// Dead can use voicechat //0 = off, 1 = on
set voice_deadChat "0"
//Gravity //Standard 800
set g_gravity "800"
//deactivate console for clients //0 = no, 1 = yes
set sv_disableClientConsole "0"
//auto-teambalance //0 = no, 1 = yes
set scr_teambalance "1"
//friendly-fire //0 = off, 1 = on, //2 = reflect damage, 3 = shared damage
set scr_team_fftype "0"
// spectator // 0 = off, 1 = only Team/player, 2 = free
set scr_game_spectatetype "2"
//Hardcore Mode //0 = off 1 = on
set scr_hardcore 0
//Oldschool Mode //0 = off, 1 = on
set scr_oldschool "0"
// 1 = player collision between friendly players, 0 = collision between friendly players is disabled
set g_friendlyPlayerCanBlock 1
// same for FFA (non team based) gamemode
set g_FFAPlayerCanBlock 1
// Less interesting Gameplay stuff
set scr_drawfriend "1" //show team mates //0 = off, 1 = on

34
cs2/server.cfg

@ -1 +1,33 @@
hostname "SERVERNAME"
// ************************************************************************** //
// //
// Counter-Strike 2 - server.cfg //
// Version 231111 //
// //
// ************************************************************************** //
// hostname - Hostname for server.
hostname "SERVERNAME"
// sv_password - Server password for entry into multiplayer games.
sv_password ""
// sv_setsteamaccount - token Set game server account token to use for logging in to a persistent game server account
// https://steamcommunity.com/dev/managegameservers
sv_setsteamaccount ""
// Default Map - map <mapname> :Load a new map.
map "de_anubis"
// game_alias - Set the configuration of game type and mode based on game alias like 'deathmatch'.
// values: casual, deathmatch, competative, wingman
game_alias "casual"
// sv_lan - Server is a lan server ( no heartbeat, no authentication, no non-class C addresses ).
sv_lan 0
// sv_logfile - Log server information in the log file.
sv_logfile 1
// sv_logbans - Log server bans in the server logs.
sv_logbans 1

Loading…
Cancel
Save