Match Server Config

motiv

Junior Member
Joined
Oct 26, 2008
Likes
0
#1
Thought I'd post this as no ones seems to have one at the moment. It's just a basic config for scrimming. Turns off everything really, no perks, attachments, claymores etc. Sets up spectate and such, and roundlimits/time for a match (you have to manually fast_restart after 10).

Obviously you should tailor it for your own tastes until some mod can come out. I'll probably add all the config in to this over time, if people want?

How to use:
Copy and past the script below into ban.txt (via gameservers admin).

now via in game rcon control type

"exec ban.txt"

and voila, you get everything setup. I would advise changing map, as I suspect some commands only word after a restart (rather than a fast restart).

anyway, hope this is of some use to people.

Motiv
www.divasgaming.com

Changelog
V1.00 - Initial match config dvars
V1.01 - Added in additional Dvars and CTF settings
V1.02 - Slight Tweak to round time (1.45) - Chenged name to MatchMod
Code:
say "^1M^4atchMod config V1.02 (fpsadmin.com)

//game Browser Info (plus future additions)
setadmindvar sv_hostname "Put your server name here"    //Server name e.g Motiv's Mayhem Martch server


//Password protect server or make public
setadmindvar g_password ""

//MOTD
setadmindvar scr_motd "Welcome to www.divasgaming.com"        //message of the day 
setadmindvar g_motd "Welcome to Divasgaming.com"        //message of the day

//Server Clients (makes no difference but shows up on browser)
setadmindvar sv_maxclients "" 
setadmindvar ui_maxclients "" 

//Initial Server Setup
setadmindvar sv_maxRate "25000"         // (5000-25000)
setadmindvar sv_floodProtect "1"
setadmindvar g_smoothClients "1"
setadmindvar sv_fps "20"             //Unlikly to be allowed, but in just in case
setadmindvar sv_minPing "0"                // Minimum ping (why??)
setadmindvar sv_maxping "350"               // Maximum Ping
setadmindvar sv_reconnectlimit "3"          // Allowed retrys (no idea)

//Downloads
setadmindvar sv_allowdownload "1"
setadmindvar sv_wwwDownload "1"
setadmindvar sv_wwwBaseURL "http://www.your-website.com/cod7"
setadmindvar sv_wwwDlDisconnected "0" //Leave this set to "0"


//Barebones (match)
setadmindvar scr_game_perks "0"
setadmindvar scr_game_hardpoints "0"
setadmindvar scr_allowbattlechatter "0"
setadmindvar scr_disable_equipment "1"
setadmindvar scr_disable_attachments "1"
setadmindvar scr_weapon_allowc4 = "0"            //Just in case
setadmindvar scr_weapon_allowbetty = "0"        //Just in case
setadmindvar g_revive "0"                //No you can't revive
setadmindvar g_redCrosshairs "0"            //Remove red xhairs
setadmindvar ui_hud_showobjicons "1"            //Show Bombs

//Stop the Rocket taking off
setadmindvar scr_rocket_event_trigger1 "0"
setadmindvar scr_rocket_event_off "1"

Setup Match Configs
setadmindvar scr_game_spectatetype "1"            //Same again
setadmindvar scr_game_allowfinalkillcam "0"        /?Turn off killcam
setadmindvar scr_game_allowkillcam "0"
setadmindvar scr_game_allowfinalkillcam "0"
setadmindvar scr_team_fftype "1"
setadmindvar set scr_team_fftype "1"


//Game settings
setadmindvar scr_game_graceperiod 15            //15 secs before match start
setadmindvar scr_intermission_time "20"            //End of match
setadmindvar scr_game_prematchperiod "0"        //Wait for two people to join (useful for unranked pubs)


//S&D Information
setadmindvar scr_sd_timelimit " 1.75"            //1.45 mins/Round
setadmindvar scr_sd_scorelimit "20"             //20 doesn't work yet, will default back to 15 automatically
setadmindvar scr_sd_roundlimit "20"            //Just to raise it above 10
setadmindvar scr_sd_roundswitch "0"            //roundswitch doesn't work right just yet, turn it off
setadmindvar scr_sd_game_spectatetype "1"        //Best of a bad bunch of spectators.
setadmindvar scr_sd_numlives "1"              //1 life
setadmindvar scr_sd_bombtimer "45"             //Bomb timer
setadmindvar scr_sd_planttime "5"            //time plant
setadmindvar scr_sd_defusetime "5"               //time to defuse a bomb
setadmindvar scr_sd_multibomb "0"               //0=single bomb, 1=everyone
setadmindvar scr_sd_playerrespawndelay "0"           //time before respawn
setadmindvar scr_sd_waverespawndelay "0"        //time before respawn

setadmindvar sv_mapRotation "gametype sd map mp_array gametype sd map mp_cairo gametype sd map mp_cosmodrome gametype sd map mp_cracked gametype sd map mp_crisis gametype sd map mp_duga gametype sd map mp_hanoi gametype sd map mp_havoc gametype sd map mp_mountain gametype sd map mp_radiation gametype sd map mp_russianbase gametype sd map mp_villa"


//CTF Info
//setadmindvar scr_ctf_globalbattlechatterprobability "0"
//setadmindvar scr_ctf_enemycarriervisible "1"
//setadmindvar scr_ctf_flagrespawntime "0"
//setadmindvar scr_ctf_idleflagreturntime "30"
//setadmindvar scr_ctf_numlives "0"
//setadmindvar scr_ctf_playerrespawndelay "10"
//setadmindvar scr_ctf_roundlimit "2"
//setadmindvar scr_ctf_roundswitch "1"
//setadmindvar scr_ctf_scorelimit "0"
//setadmindvar scr_ctf_timelimit "15"
//setadmindvar scr_ctf_touchreturn "1"
//setadmindvar scr_ctf_waverespawndelay "0"

//setadmindvar sv_mapRotation "gametype ctf map mp_array gametype ctf map mp_cairo gametype ctf map mp_cosmodrome gametype ctf map mp_cracked gametype ctf map mp_crisis gametype ctf map mp_duga gametype ctf map mp_hanoi gametype ctf map mp_havoc gametype ctf map mp_mountain gametype ctf map mp_radiation gametype ctf map mp_russianbase gametype ctf map mp_villa"

fast_restart
say "^1C^4onfig Loaded: ^2GLHF"
 
Last edited:

motiv

Junior Member
Joined
Oct 26, 2008
Likes
0
#2
as requested, I've beefed it up a little and added CTF gametype, to the S&D. Will add TDM and public configs next
 

Ghost-Ryder

Senior Member
Joined
Nov 18, 2003
Likes
0
#4
Wont work anymore they used io to boost the kill points like 30 000 points for one kill

Banlist and reservedslots editing has been temporarily removed from the control panel. There were some issues discovered regarding the security of these two files which has lead to them being taken off the cp shortly until we ensure its security.
 

zeroy

Senior Member
Joined
Oct 20, 2004
Likes
2
Location
Louth, Ireland
#7
hi all

Now with new panel under GS , it is not possible do modify the server RANKED.

So sad for that

Frenchy
I thought the ban and reserved files were accessible again? Exec doesnt work now of course, i bet its disabled for unranked also.

@Motiv, how about having a CFG file locally and exec that via rcon?
 
Joined
Jan 29, 2005
Likes
0
#9
My solution of "Promod Light" SD (unranked server):
1. run BlackOpsRcon
2. join to your server
3. goto Console
4. copy code to notepad and MUST be in 1 line! No wrap lines!
5. put this code in command line and press enter
6. in game it makes fastrestart and you see "MATCH config loaded."

setadmindvar scr_game_allowfinalkillcam 0;setadmindvar scr_game_prematchperiod 0;setadmindvar scr_game_graceperiod 30; setadmindvar scr_intermission_time 20;setadmindvar g_allow_teamchange 1;setadmindvar g_inactivity 0;setadmindvar sv_reconnectlimit 0;setadmindvar g_allowvote 1;setadmindvar scr_teambalance 0;setadmindvar scr_game_allowkillcam 0;setadmindvar scr_hardcore 0;setadmindvar scr_team_fftype 1;setadmindvar scr_rocket_event_trigger1 0;setadmindvar scr_rocket_event_off 1;setadmindvar scr_game_perks 0;setadmindvar scr_game_hardpoints 0;setadmindvar scr_allowbattlechatter 0;setadmindvar scr_disable_equipment 1;setadmindvar scr_disable_attachments 1;scr_sd_globalbattlechatterprobability 0;scr_sd_bombtimer 45;scr_sd_defusetime 7;scr_sd_game_spectatetype 1;scr_sd_multibomb 0;scr_sd_numlives 1;scr_sd_planttime 5;scr_sd_playerrespawndelay 0;scr_sd_roundlimit 14;scr_sd_roundswitch 7;scr_sd_scorelimit 0;scr_sd_timelimit 1.75;scr_sd_waverespawndelay 0;fast_restart;say ^1MATCH^3 config loaded.

We try 20 round and switch 10, but this doesnt work. Now its set to 14 round and switch after 7. Not tested.. We test 10 and switch after 5 and this works.
Rockets dont start. Exist command for stupid train in mp_russianbase?
 
Last edited:

tifached

Junior Member
Joined
Nov 24, 2010
Likes
0
#10
My solution of "Promod Light" SD (unranked server):
1. run BlackOpsRcon
2. join to your server
3. goto Console
4. copy code to notepad and MUST be in 1 line! No wrap lines!
5. put this code in command line and press enter
6. in game it makes fastrestart and you see "MATCH config loaded."

setadmindvar
would this method work (as of 24th) if i wanted to extend the tdm/hq time and score limit? If i change the parameters?

something along the line of
setadmindvar scr_tdm_scorelimit 0
setadmindvar scr_tdm_timelimit 15

and change TDM to HQ/dom etc.
 
Joined
Jan 29, 2005
Likes
0
#11
yes, its up to you, you can edit this line for gametype what you wish

and because iam lazy I make this php web match changer
(must change server settings!!! IP:port, rconpassword):
--------------------------------------------------------------------------


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<title></title>
</head>
<body style='font-family:Calibri, Verdana;font-size:12px;'>
<style>
table {border-collapse: collapse;}
</style>


<?php

function SendCmd($Con, $R, $C) {
$ret = "";
socket_set_timeout ($Con, 1, 000000);
$send = chr(0xFF).chr(0xFF).chr(0xFF).chr(0xFF). chr(0x00) .$R. chr(0x20) .$C. chr(0x00);
fputs($Con, $send);
fwrite ($Con, $send);
$ret = fread ($Con, 1);
if (! empty ($ret)) {
do {
$status_pre = socket_get_status ($Con);
$ret = $ret . fread ($Con, 1);
$status_post = socket_get_status ($Con);
} while ($status_pre['unread_bytes'] != $status_post['unread_bytes']);
} else {
$ret = 0;
}
return $ret;
}

$server_ip = "111.222.111.222";
$server_port = 3094;
$rconpwd = "yourrconpassword";
$connect = fsockopen("udp://" .$server_ip, $server_port, $errno, $errstr, 30);

//echo "POST['x']:".$_POST['x']."<BR>"; // debug
if (isset($_POST['cmd'])) {

switch ($_POST['cmd']) {
case "set2cwPromod":
if ($connect)
{
$cmds = "setadmindvar sv_timeout 600;setadmindvar playlist_enabled 0;setadmindvar scr_game_allowfinalkillcam 0;setadmindvar scr_game_prematchperiod 30;setadmindvar scr_game_graceperiod 30;setadmindvar scr_intermission_time 30;setadmindvar g_allow_teamchange 1;setadmindvar g_inactivity 0;setadmindvar sv_reconnectlimit 0;setadmindvar g_allowvote 0;setadmindvar scr_teambalance 0;setadmindvar scr_game_allowkillcam 0;setadmindvar scr_hardcore 0;setadmindvar scr_team_fftype 1;setadmindvar scr_rocket_event_trigger1 0;setadmindvar scr_rocket_event_off 1;setadmindvar scr_game_perks 0;setadmindvar scr_game_hardpoints 0;setadmindvar scr_allowbattlechatter 0;setadmindvar scr_disable_equipment 1;";
$output = SendCmd($connect, $rconpwd, $cmds);
$cmds = "setadmindvar g_speed 190;setadmindvar demo_enabled 1;setadmindvar scr_disable_attachments 1;setadmindvar scr_sd_globalbattlechatterprobability 0;setadmindvar scr_sd_bombtimer 45;setadmindvar scr_sd_defusetime 7;setadmindvar scr_sd_game_spectatetype 1;setadmindvar scr_sd_multibomb 0;setadmindvar scr_sd_numlives 1;setadmindvar scr_sd_planttime 5;setadmindvar scr_sd_playerrespawndelay 0;setadmindvar scr_sd_roundlimit 14;setadmindvar scr_sd_roundswitch 7;setadmindvar scr_sd_scorelimit 0;setadmindvar scr_sd_timelimit 1.75;setadmindvar scr_sd_waverespawndelay 0;setadmindvar scr_team_teamkillspawndelay 0;setadmindvar scr_team_teamkillpointloss 0;setadmindvar scr_player_allowrevive 0;fast_restart;say ^1MATCH^3 config loaded - ^2Promod Rules.";
$output = SendCmd($connect, $rconpwd, $cmds);
echo "Server set for CW (Promod).<BR><BR>";
$_POST['cmd'] = "";
}
fclose($connect);
break;
case "set2cwESL":
if ($connect)
{
$cmds = "setadmindvar sv_timeout 600;setadmindvar playlist_enabled 0;setadmindvar scr_game_allowfinalkillcam 0;setadmindvar scr_game_prematchperiod 30;setadmindvar scr_game_graceperiod 30;setadmindvar scr_intermission_time 30;setadmindvar g_allow_teamchange 1;setadmindvar g_inactivity 0;setadmindvar sv_reconnectlimit 0;setadmindvar g_allowvote 0;setadmindvar scr_teambalance 0;setadmindvar scr_game_allowkillcam 0;setadmindvar scr_hardcore 0;setadmindvar scr_team_fftype 1;setadmindvar scr_rocket_event_trigger1 0;setadmindvar scr_rocket_event_off 1;setadmindvar scr_game_perks 0;setadmindvar scr_game_hardpoints 0;setadmindvar scr_allowbattlechatter 0;setadmindvar scr_disable_equipment 1;";
$output = SendCmd($connect, $rconpwd, $cmds);
$cmds = "setadmindvar g_speed 196;setadmindvar demo_enabled 0;setadmindvar scr_disable_attachments 1;setadmindvar scr_sd_globalbattlechatterprobability 0;setadmindvar scr_sd_bombtimer 45;setadmindvar scr_sd_defusetime 7.5;setadmindvar scr_sd_game_spectatetype 1;setadmindvar scr_sd_multibomb 0;setadmindvar scr_sd_numlives 1;setadmindvar scr_sd_planttime 5;setadmindvar scr_sd_playerrespawndelay 0;setadmindvar scr_sd_roundlimit 12;setadmindvar scr_sd_roundswitch 0;setadmindvar scr_sd_scorelimit 0;setadmindvar scr_sd_timelimit 2.5;setadmindvar scr_sd_waverespawndelay 0;setadmindvar scr_team_teamkillspawndelay 0;setadmindvar scr_team_teamkillpointloss 0;setadmindvar scr_player_allowrevive 0;fast_restart;say ^1MATCH^3 config loaded - ^2ESL rules.";
$output = SendCmd($connect, $rconpwd, $cmds);
$cmds = "say ^1- ^3No perks, attachments and kill streaks.;say ^1- ^3Forbidden weapons: Dragunov,PSG1 and WA2000 Sniper Rifles.;say ^1- ^3Secondary weapon: ONLY pistols allowed.;say ^1- ^3Its only allowed to play with smoke, flash and the normal grenade.";
$output = SendCmd($connect, $rconpwd, $cmds);
echo "Server set for CW (ESL).<BR><BR>";
$_POST['cmd'] = "";
}
fclose($connect);
break;
case "set2cwESLdemoON":
if ($connect)
{
$cmds = "setadmindvar sv_timeout 600;setadmindvar playlist_enabled 0;setadmindvar scr_game_allowfinalkillcam 0;setadmindvar scr_game_prematchperiod 30;setadmindvar scr_game_graceperiod 30;setadmindvar scr_intermission_time 30;setadmindvar g_allow_teamchange 1;setadmindvar g_inactivity 0;setadmindvar sv_reconnectlimit 0;setadmindvar g_allowvote 0;setadmindvar scr_teambalance 0;setadmindvar scr_game_allowkillcam 0;setadmindvar scr_hardcore 0;setadmindvar scr_team_fftype 1;setadmindvar scr_rocket_event_trigger1 0;setadmindvar scr_rocket_event_off 1;setadmindvar scr_game_perks 0;setadmindvar scr_game_hardpoints 0;setadmindvar scr_allowbattlechatter 0;setadmindvar scr_disable_equipment 1;";
$output = SendCmd($connect, $rconpwd, $cmds);
$cmds = "setadmindvar g_speed 196;setadmindvar demo_enabled 1;setadmindvar scr_disable_attachments 1;setadmindvar scr_sd_globalbattlechatterprobability 0;setadmindvar scr_sd_bombtimer 45;setadmindvar scr_sd_defusetime 7.5;setadmindvar scr_sd_game_spectatetype 1;setadmindvar scr_sd_multibomb 0;setadmindvar scr_sd_numlives 1;setadmindvar scr_sd_planttime 5;setadmindvar scr_sd_playerrespawndelay 0;setadmindvar scr_sd_roundlimit 12;setadmindvar scr_sd_roundswitch 0;setadmindvar scr_sd_scorelimit 0;setadmindvar scr_sd_timelimit 2.5;setadmindvar scr_sd_waverespawndelay 0;setadmindvar scr_team_teamkillspawndelay 0;setadmindvar scr_team_teamkillpointloss 0;setadmindvar scr_player_allowrevive 0;fast_restart;say ^1MATCH^3 config loaded - ^2ESL rules.";
$output = SendCmd($connect, $rconpwd, $cmds);
$cmds = "say ^1- ^3No perks, attachments and kill streaks.;say ^1- ^3Forbidden weapons: Dragunov,PSG1 and WA2000 Sniper Rifles.;say ^1- ^3Secondary weapon: ONLY pistols allowed.;say ^1- ^3Its only allowed to play with smoke, flash and the normal grenade.";
$output = SendCmd($connect, $rconpwd, $cmds);
echo "Server set for CW (ESL).<BR><BR>";
$_POST['cmd'] = "";
}
fclose($connect);
break;
case "setmap":
if ($connect)
{
$cmd = "map ".$_POST['mapa'];
$output = SendCmd($connect, $rconpwd, $cmd);
echo "Map changed: ".$_POST['mapa']."<BR><BR>";
}
fclose($connect);
$_POST['mapa'] = "";
break;
case "fastrestart":
if ($connect)
{
$cmd = "fast_restart";
$output = SendCmd($connect, $rconpwd, $cmd);
echo "Server fast restarted.<BR><BR>";
}
fclose($connect);
$_POST['mapa'] = "";
break;
}
$_POST['x'] = $_POST['x'] + 1;
}
echo "Choose command:<BR><BR>";

echo "<FORM action='' method='post'>";
echo "<SELECT name='mapa' type='submit' value='Set map'>";
echo "<OPTION value='mp_array'>Array</OPTION>";
echo "<OPTION value='mp_russianbase'>WMD</OPTION>";
echo "<OPTION value='mp_cairo'>Havana</OPTION>";
echo "<OPTION value='mp_havoc'>Jungle</OPTION>";
echo "<OPTION value='mp_villa'>Villa</OPTION>";
echo "<OPTION value='mp_cosmodrome'>Launch</OPTION>";
echo "<OPTION value='mp_cracked'>Cracked</OPTION>";
echo "<OPTION value='mp_crisis'>Crisis</OPTION>";
echo "<OPTION value='mp_duga'>Grid</OPTION>";
echo "<OPTION value='mp_firingrange'>Firing Range</OPTION>";
echo "<OPTION value='mp_hanoi'>Hanoi</OPTION>";
echo "<OPTION value='mp_mountain'>Summit</OPTION>";
echo "<OPTION value='mp_nuked'>Nuketown</OPTION>";
echo "<OPTION value='mp_radiation'>Radiation</OPTION>";
echo "</SELECT>";
echo "<INPUT type='submit' value='Set map'>";
echo "<INPUT type='hidden' name='cmd' value='setmap'>";
echo "</FORM>";
echo "<BR>";

echo "<FORM action='' method='post'>";
echo "<INPUT type='submit' value='Set server for CW (Promod Rules)'>";
echo "<INPUT type='hidden' name='cmd' value='set2cwPromod'>";
echo "</FORM>";
echo "<BR>";

echo "<FORM action='' method='post'>";
echo "<INPUT type='submit' value='Set server for CW (ESL Rules)'>";
echo "<INPUT type='hidden' name='cmd' value='set2cwESL'>";
echo "</FORM>";
echo "<BR>";

echo "<FORM action='' method='post'>";
echo "<INPUT type='submit' value='Set server for CW (ESL Rules) democlient ON'>";
echo "<INPUT type='hidden' name='cmd' value='set2cwESLdemoON'>";
echo "</FORM>";
echo "<BR>";


echo "<FORM action='' method='post'>";
echo "<INPUT type='submit' value='Fast restart'>";
echo "<INPUT type='hidden' name='cmd' value='fastrestart'>";
echo "</FORM>";

?>
</body>
</html>
 

tifached

Junior Member
Joined
Nov 24, 2010
Likes
0
#12
will try this today. I tried just fast_restart but the reply was that its an unknown command (or something like that)
will test thoroughly

hope i can set some reasonable limits for dem/hq/dom
 
Joined
Oct 29, 2008
Likes
0
#13
So how are you guys setting your configs? Exec'ing one locally with all the commands does not work, pasting it all in the console does not work, and doing it all manually takes way to much time..
 

sgTsTuFz

Senior Member
Joined
Aug 30, 2004
Likes
7
Location
Coralville, Iowa
#15
So how are you guys setting your configs? Exec'ing one locally with all the commands does not work, pasting it all in the console does not work, and doing it all manually takes way to much time..
in your GS cp, under config tab, there is a ban.txt - at first is was a full window to input text - ie - cfg settings. That access has been denied - more than once - because of exploits. On my unranked, I had tried this a coupla weekends ago, then lost interest as the clan did; then came back to it and couldn't figure out why there were no perks !

Turned out that the settings I had put into the ban.txt had held, even tho the ban.txt field was no longer available as a full window. I did a re-install and got back to default values with perks !
 
Top Bottom