From 51a414c2369620c21903d60a6371069b8d7dd4d4 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 25 Jul 2020 00:51:33 -0600 Subject: [PATCH] server --- .gitignore | 4 + main/server.cfg | 439 ++++++++++++++++++++++++++++++++++++++++++++++++ z_server.bat | 1 + 3 files changed, 444 insertions(+) create mode 100644 main/server.cfg create mode 100644 z_server.bat diff --git a/.gitignore b/.gitignore index 699f686..3703ca9 100644 --- a/.gitignore +++ b/.gitignore @@ -6,11 +6,15 @@ !/z_devserver.bat !/z_dev.bat !/z_serverdev.bat +!/z_server.bat # Folder to not ignore !/mods/ /mods/* !/mods/bots/ +!/main/ +/main/* +!/main/server.cfg *.log logs/ diff --git a/main/server.cfg b/main/server.cfg new file mode 100644 index 0000000..693fa88 --- /dev/null +++ b/main/server.cfg @@ -0,0 +1,439 @@ +// --- QUERY INFORMATION -------------------------------- +set sv_hostname "^1Bot ^3War^5fare ^2- ^4Players vs bots ^724/7" // Please put a server host name here +set sv_securityLevel "23" +set sv_motd "^1Bot ^3War^5fare" + +// --- NETWORK OPTIMIZATION ----------------------------- +set sv_maxRate "25000" +set snaps "20" +set sv_network_fps "50" +set cl_maxpackets "30" +set sv_voiceQuality "3" + +// Optional settings returned by query, server listings may use this +sets _Admin "INeedGames" +sets _Email "ineedbots@pbot.org" +sets _Website "http://www.moddb.com/mods/bot-warfare" +sets _Location "Canada - West" + +// --- NON-GAMEPLAY CONFIGURATION ----------------------- +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 sv_sayName "^7Console" // name server-side 'say' commands show up as +set sv_floodProtect "1" // Chat Spam Protection +set sv_kickBanTime "300" // Kick Ban Duration. Time before player can re-join the server after getting kicked. + +set com_logFilter "1" // Removes ~95% of unneeded lines from the log. +set sv_pure "0" // verifying cilent files +set g_password "" // Password Protected Game. Leave blank if you want players to join +set sv_allowClientConsole "0" // Enable or Disable players ability to access server commands +set scr_game_objectiveStreaks "1" + +set rcon_password "qazqaz" // Password for rcon, empty = enabled +set privateMatch_serverPassword "" // Game password, leave empty for a public game + +set sv_maxPing "0" // Maximum ping, any higher and players will get kicked + +set g_inactivity "180" // Time in seconds before a player gets kicked if not moving +set g_inactivitySpectator "180" // Time in seconds before a spectator gets kicked + +set g_logSync "1" // 1 = always flush games_mp.log, 0 = only flush on game end +set g_log "games_mp.log" // Name of the log file + + + +// --- BASE GAME CONFIGURATION -------------------------- +set g_gametype "war" // Game type + // war - Team Deathmatch + // dm - Free-for-all + // dom - Domination + // koth - Headquarters + // sab - Sabotage + // sd - Search and Destroy + // arena - Arena + // dd - Demolition + // ctf - Capture the Flag + // oneflag - One-Flag CTF + // gtnw - Global Thermo-Nuclear War + +// Uncomment below commands for hardcore mode +//set g_hardcore "1" +//set ui_hud_hardcore "1" +//set scr_hardcore "1" +//set scr_player_maxhealth "30" +//set scr_team_fftype "1" // 1 = on, 2 = reflect, 3 = shared +//set scr_player_healthregentime "0" +//set scr_team_kickteamkillers "0" // Anyone who team kills, gets kicked automatically if you enable this feature. +//set scr_team_teamkillspawndelay "20" // Team Killer gets a respawn penalty of specified seconds (20). + +//set scr_game_deathpointloss "0"// Points Loss on death XP. +//set scr_game_suicidepointloss "0"//points loss on suicide +//set scr_team_teamkillpointloss "0"//point loss on tk + +//set scr_game_onlyheadshots "0" // Enable/Disable Only Headshots mode. You can only kill players by taking headshots. + +set scr_thirdperson "0" // Third-person mode +set scr_game_hardpoints "1" // Killstreaks, 1 = on +set scr_game_perks "1" // Perks, obviously + +set scr_game_allowkillcam "1" // 1 = allow, 0 = disallow + +set scr_diehard "0" // Die-hard mode + +set scr_player_forcerespawn "1" // Players respawn automatically after being fragged +set scr_nukeTimer "10" // Timer when nuke goes off +set scr_teambalance "0" // Enable or Disable auto balance. +set scr_game_spectatetype "2" // Allow Spectators. 0 = Disabled, 1 = Team/Player only, 2 = Free +set scr_player_suicidespawndelay "0" // Wait before you respawn if you committed suicide. +set scr_player_sprinttime "4" // Sprint time, duration a player can run. + + + +//set scr_game_forceuav "0" +//set scr_game_graceperiod "4" +//set scr_game_killstreakdelay "0" + +//set scr_tispawndelay "0" + +//set scr_xpscale "1" + + +// --- GAMETYPE CONFIGURATION --------------------------- + +////////////////////////////////////////////////// +// FREE FOR ALL GAMETYPE SETTINGS // +////////////////////////////////////////////////// + +set scr_dm_scorelimit "50000" // Score limit to win the game. +set scr_dm_timelimit "30" // Duration in minutes for the game to end if the score limit isn't reached. + +set scr_dm_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds +set scr_dm_numlives "0" // Number of lives per player 0 for unlimited. +set scr_dm_promode "0" +set scr_dm_waverespawndelay "0" // Duration is seconds before the first respawn in each round. +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 "100000" // Score limit to win the game. +set scr_war_timelimit "30" // Duration in minutes for the game to end if the score limit isn't reached. + +set scr_war_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds +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_promode "0" +set scr_war_roundlimit "1" // Rounds per game. +set scr_war_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 "15" // Duration in minutes for the game to end if the score limit isn't reached. + +set scr_dom_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds +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 0 for unlimited. +set scr_dom_promode "0" +set scr_dom_roundlimit "1" // Rounds per game +set scr_dom_winlimit "1" // amount of wins needed to win a round-based game + + +////////////////////////////////////////////////// +// DEMOLITION GAMETYPE SETTINGS // +////////////////////////////////////////////////// + +set scr_dd_scorelimit "2" // Score limit needed to win. +set scr_dd_timelimit "2.5" // Duration in minutes for the game to end if the score limit isn't reached. + +set scr_dd_roundswitch "1" // Rounds before the teams switch the sides. +set scr_dd_bombtimer "45" // Time the bomb takes to detonate. +set scr_dd_defusetime "5" // Time taken to defuse the bomb. +set scr_dd_extratime "3" +set scr_dd_numlives "0" // Lives per player 0 for unlimited. +set scr_dd_planttime "5" // Time it takes to plant a bomb in seconds. +set scr_dd_roundlimit "3" // Rounds the game is limited to, if there are no winners. +set scr_dd_playerrespawndelay "0" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds +set scr_dd_promode "0" + + +////////////////////////////////////////////////// +// SEARCH AND DESTROY GAMETYPE SETTINGS // +////////////////////////////////////////////////// + +set scr_sd_scorelimit "1" // Score limit required to win the game. +set scr_sd_timelimit "0" // Duration in minutes for the game to end if the score limit isn't reached. + +set scr_sd_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds +set scr_sd_waverespawndelay "0" // Delay for first respawn. +set scr_sd_numlives "0" // 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 "500" +set scr_sd_promode "0" + + +////////////////////////////////////////////////// +// SABOTAGE GAMETYPE SETTINGS // +////////////////////////////////////////////////// + +set scr_sab_scorelimit "0" // Score limit to win the match. +set scr_sab_timelimit "10" // Duration in minutes for the game to end if the score limit isn't reached. + +set scr_sab_bombtimer "45" // 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 players get. +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. +set scr_sab_promode "0" + + +////////////////////////////////////////////////// +// CAPTURE THE FLAG GAMETYPE SETTINGS // +////////////////////////////////////////////////// + +set scr_ctf_scorelimit "3" // Target score before the round ends. +set scr_ctf_timelimit "10" // 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 0 for unlimited. +set scr_ctf_playerrespawndelay "0" // Respawn wait in seconds. +set scr_ctf_roundlimit "1" // How many rounds match would last. +set scr_ctf_roundswitch "1" // Rounds before the teams switch sides. +set scr_ctf_waverespawndelay "10" + +////////////////////////////////////////////////// +// ONE FLAG GAMETYPE SETTINGS // +////////////////////////////////////////////////// + +set scr_oneflag_scorelimit "1" // Target score before the round ends. +set scr_oneflag_timelimit "3" // Duration in minutes for the game to end if the score limit isn't reached. + +set scr_oneflag_numlives "0" // Number of lives per player 0 for unlimited. +set scr_oneflag_playerrespawndelay "0" // Respawn wait in seconds. +set scr_oneflag_roundlimit "1" // How many rounds match would last. +set scr_oneflag_roundswitch "1" // Rounds before the teams switch sides. +set scr_oneflag_waverespawndelay "0" + + +////////////////////////////////////////////////// +// HEADQUARTERS GAMETYPE SETTINGS // +////////////////////////////////////////////////// + +set scr_koth_scorelimit "250" // Score limit to win the game. +set scr_koth_timelimit "10" // Duration in minutes the game will continue if the score isn't reached. + +set scr_koth_numlives "0" // Number of lives per game. 0 for unlimited. +set scr_koth_playerrespawndelay "0" // Players respawn wait. +set scr_koth_roundlimit "1" // Rounds to be played. +set scr_koth_roundswitch "1" // Rounds to be played before teams switch sides. +set scr_koth_winlimit "1" // rounds per game +set scr_koth_waverespawndelay "0" // First respawn delay for each round. +set koth_proMode "0" + +////////////////////////////////////////////////// +// ARENA GAMETYPE SETTINGS // +////////////////////////////////////////////////// + +set scr_arena_scorelimit "1" // Score limit to win the game. +set scr_arena_timelimit "2.5" // Duration in minutes the game will continue if the score isn't reached. + +set scr_arena_numlives "1" // Number of lives per game 0 for unlimited. +set scr_arena_roundlimit "0" // Rounds to be played. +set scr_arena_roundswitch "3" // Rounds before the teams switch sides. +set scr_arena_winlimit "4" // rounds per game +set scr_arena_promode "0" + + +////////////////////////////////////////////////// +// GLOBAL THERMONUCLEAR WAR GAMETYPE SETTINGS // +////////////////////////////////////////////////// + +set scr_gtnw_scorelimit "100" // Score limit to win the game. +set scr_gtnw_timelimit "6" // Duration in minutes the game will continue if the score isn't reached. + +set scr_gtnw_numlives "0" // Number of lives per game 0 for unlimited. +set scr_gtnw_playerrespawndelay "0" // Players respawn wait. +set scr_gtnw_roundlimit "1" // Rounds to be played. +set scr_gtnw_roundswitch "0" // Rounds before the teams switch sides. +set scr_gtnw_waverespawndelay "0" // First respawn delay for each round. +set scr_gtnw_winlimit "1" // rounds per game +set scr_gtnw_promode "0" + +////////////////////////////////////////////////// +// AIRDROP CONFIGURATION // +////////////////////////////////////////////////// +// uncomment below commands for airdrop config // +// by removing the // before each set dvar. // +// // +// Weight (1->1000) // +// Selection is weighted random // +// higher weights increase selection chance // +////////////////////////////////////////////////// + +// set scr_airdrop_ac130 "3" +set scr_airdrop_ammo "15" +// set scr_airdrop_counter_uav "15" +set scr_airdrop_emp "2" +// set scr_airdrop_harrier_airstrike "7" +// set scr_airdrop_helicopter "7" +// set scr_airdrop_helicopter_flares "5" +// set scr_airdrop_helicopter_minigun "3" +set scr_airdrop_nuke "1" +// set scr_airdrop_precision_airstrike "11" +// set scr_airdrop_predator_missile "12" +// set scr_airdrop_sentry "12" +// set scr_airdrop_stealth_airstrike "5" +// set scr_airdrop_uav "17" + + +////////////////////////////////////////////////// +// EMERGENCY AIRDROP CONFIGURATION // +////////////////////////////////////////////////// +// uncomment below commands for airdrop config // +// by removing the // before each set dvar. // +// // +// Weight (1->1000) // +// Selection is weighted random // +// higher weights increase selection chance // +////////////////////////////////////////////////// + +// set scr_airdrop_mega_ac130 "2" +// set scr_airdrop_mega_ammo "12" +// set scr_airdrop_mega_counter_uav "16" +set scr_airdrop_mega_emp "1" +// set scr_airdrop_mega_harrier_airstrike "5" +// set scr_airdrop_mega_helicopter "5" +// set scr_airdrop_mega_helicopter_flares "3" +// set scr_airdrop_mega_helicopter_minigun "2" +// set scr_airdrop_mega_nuke "0" +// set scr_airdrop_mega_precision_airstrike "10" +// set scr_airdrop_mega_predator_missile "14" +// set scr_airdrop_mega_sentry "16" +// set scr_airdrop_mega_stealth_airstrike "3" +// set scr_airdrop_mega_uav "12" + + +// --- AUTOMATED ROTATION ------------------------------- + +set sv_mapRotation "map mp_terminal map mp_rust map mp_nuked map iw4_credits map mp_highrise map mp_nightshift map mp_subbase map mp_favela map mp_crash map mp_vacant map mp_boneyard map mp_killhouse" +set sv_mapRotationCurrent "map mp_rust" + +set com_maxFps "0" +set com_maxFrameTime "50" + +set bots_manage_add "0" +set bots_manage_fill "9" +set bots_manage_fill_mode "1" +set bots_manage_fill_kick "1" +set bots_manage_reset "0" +set bots_team "axis" +set bots_team_amount "0" +set bots_team_force "1" +set bots_team_mode "1" +set bots_skill "1" +set bots_skill_axis_hard "0" +set bots_skill_axis_med "0" +set bots_skill_allies_hard "0" +set bots_skill_allies_med "0" +set bots_play_talk "0.1" +set bots_play_watchKillcam "0" +set bots_loadout_remember "0" +set bots_loadout_change "1" +set bots_play_rageQuit "0" +set bots_loadout_tube "1" +set bots_loadout_shotgun "1" +set bots_loadout_sniper "1" +set bots_loadout_knife "1" +set bots_loadout_nade "1" +set bots_play_camp "1" +set bots_play_obj "1" +set bots_play_run "0" +set bots_play_tdks "1" +set bots_play_takeCare "1" +set bots_loadout_killstreak "random" +set bots_loadout "random" +set bots_loadout_deathstreak "0" +set bots_play_outOfMyWay "1" +set bots_loadout_secondary "1" +set bots_play_attack "1" +set bots_play_aim "1" +set bots_play_move "1" +set bots_play_doStuck "1" +set bots_loadout_nuke "1" +set bots_loadout_riot "0" +set bots_loadout_lastStand "0" +set bots_play_destroyEq "1" +set bots_play_fakeAnims "2" +set bots_main_menu "1" +set bots_main_GUIDs "" +set bots_main "1" +set bots_main_Names "" +set bots_main_experience "-1" +set bots_main_prestige "-1" +set bots_main_debug "0" +set bots_main_target "" +set bots_main_title "" +set bots_main_emblem "" +set bots_play_throwback "1" +set bots_loadout_akimbo "1" +set bots_manage_fill_spec "1" +set bots_play_footsounds "0" +set bots_main_fun "0" +set bots_main_target_host "1" + +set scr_allowDropWeaponOnCommand "0" +set scr_allowClaymoreBounces "1" +set scr_allowPickUpEquipment "1" +set scr_allowDropWeaponOnDeath "1" +set scr_extraTeamIcons "1" +set scr_deleteNadeOnTeamChange "1" + +set scr_printDamage "1" +set headshot_detach_head "1" +set scr_extraDamageFeedback "1" +set scr_disableKnife "0" +set scr_intermission_time "30.0" +set scr_forceKillcam "1" +set scr_forceKillcam_winnersKill "0" +set scr_disableTurret "0" +set scr_failCam "1" +set scr_voting "1" +set scr_voting_maps "mp_terminal,mp_rust,mp_nuked,mp_shipment,mp_highrise,mp_nightshift,mp_subbase,mp_favela,mp_crash,mp_vacant,mp_boneyard" +set scr_voting_time "26.0" +set scr_voting_winTime "4.0" +set scr_allow_intermission "0" +set scr_voting_bots "1" +set scr_nuke_increases_streak "0" + +set scr_allowSpecialist "1" +set scr_allowStalkerPerk "1" +set scr_allowViewKickPerk "1" +set scr_allowArmorvestPerk "1" + +set scr_allowFPSBooster "1" + +set scr_nukeEndsGame "0" +set scr_nukeKillsAll "0" +set scr_empEffectsAll "0" + +set scr_usePVBHelper "axis" +set scr_PVBHelperHardBotNukify "1" + +set scr_showHP "1" + +set scr_killstreaksRollOver "1" \ No newline at end of file diff --git a/z_server.bat b/z_server.bat new file mode 100644 index 0000000..fbee7fc --- /dev/null +++ b/z_server.bat @@ -0,0 +1 @@ +start iw4x.exe -dedicated +set party_maxplayers 18 +set net_port 28960 +party_enable 0 +set fs_game "mods/bots" +exec server.cfg +map_rotate \ No newline at end of file