PDA

View Full Version : map rotation,will it work?


Defiant
10-31-2003, 03:39 PM
I also need to know how to add MOHAA maps to the rotation,,i don't understand what the lines mean,meaning set x1 and the vstrx2,the maps below are numbered 1-6,why is the number at the end of each set different?
I did a search on the forums but didn't find an explanation,could some explain?
and what do i add to the list to put on The Hunt,V2 and The Bridge (Obj)
any and all help would be appreciated.

// Server Name
// Name that will appear on the server browser
sv_hostname "my server"

// Game Type
// 1 Free for All
// 2 Team Based
// 3 Round Based
// 4 Objective
// 5 Tug Of War
// 6 Liberation
set g_gametype 6

// Health Drop
// When enabled players will drop a health pack when killed
set g_healthdrop 1

// Realism
// Toggles reaslistic mode
set g_realismmode 1

// Fast Run Speed
// When checked, the speed at which players can run through levels is increased.
// Leaving it unchecked defaults to Medal of Honor Allied Assault's original run speed
set sv_dmspeedmult 1.100000

// Team Damage
// Toggles friendly fire
set g_teamdamage 1

// Heal Rate
// Determines how fast players heal when they use a health pickup
set g_healrate 10

// Max Players
set sv_maxclients 16

// Time Limit
// This sets the elapsed time at which the game ends, the winner being the player with the highest score at that time.
timelimit 10

// Frag Limit
// The score at which the player or team will win the current map.
fraglimit 100

// Map Rotation Time
// This sets the maximum amount of time in minutes players will spend in a particular map.
maprotationtime 30

// Team Spawn Delay
// This sets a delay in seconds between spawns. This is useful if you would like the
// player spawned in batches, rather than one at a time
set sv_team_spawn_interval 15

// Round Reset Time
// This sets how long each round will take, in minutes. This can be smaller than the map rotation time, but not larger.
roundlimit 0

// Inactive Spectate
// This sets the time in seconds after which an inactive player becomes a spectator. To save server bandwidth, 60 seconds is default.
set g_inactivespectate 60

// Inactive Kick
// This sets the time in seconds after which an inactive player is kicked out of the game. 900 (15 minutes) seconds is default.
set g_inactivekick 900

// Use Gamespy
// To use GameSpy gaming service for internet-based multiplayer games.
// If this is 0, players will not be able to see your server via the in-game browser nor gamespy arcade.
set sv_gamespy 1

// Pure
// Verifies that the files on the client are the same as those on the server.
set sv_pure 0


// Allow Vote
// Enables players to call a vote.
set g_allowvote 1

// Flood Protect
// Limits amount of text a player can type
set sv_floodprotect 1

// Forces players to only be able to spectate behind their own team.
set g_forceteamspectate 1

// dmflags -- flags that can be set in the dmflags variable.
// DF_NO_HEALTH (1 << 0)
// DF_NO_POWERUPS (1 << 1)
// DF_WEAPONS_STAY (1 << 2)
// DF_NO_FALLING (1 << 3)
// DF_INSTANT_ITEMS (1 << 4)
// DF_SAME_LEVEL (1 << 5)
// DF_NO_ARMOR (1 << 11)
// DF_INFINITE_AMMO (1 << 14)
// DF_NO_FOOTSTEPS (1 << 17)
// DF_ALLOW_LEAN (1 << 18)
// DF_OLD_SNIPERRIFLE (1 << 19)
// DF_GERMAN_SHOTGUN (1 << 20)
// DF_ALLOW_OLDMAP_MINES (1 << 21)
set dmflags 262144
// Invulnerable Time
// Amount of time (in seconds) a player is invulnerable for after spawning (default=3 seconds)
set sv_invulnerabletime 3

// Team Kill Warning
// Amount of team kills before the player is warned
set g_teamkillwarn 3

// Team Kill Kick
// Amount of team kills before the player is kicked off the server.
set g_teamkillkick 3

// Team Switch Delay
// Frequency at which you can switch teams
set g_teamswitchdelay 15

// Allow Join Time
set g_allowjointime 30

// Private Clients
// Clients that require a password to join
set sv_privateclients 0

// Password
// Allows you to set a password for the server
set sv_privatepassword ""
set sv_rconpassword "xxxx"

// Keywords
// Keywords which allow browsers to filter servers.
set sv_keywords ""

// Minimum Ping to allow clients to join with. 0 means anyone
set sv_minping 0

// Maximum Ping to allow clients to join with. 0 means anyone
set sv_maxping 0

// Maximum Rate
set sv_maxrate 8000 //DO NOT CHANGE PER XGS STAFF

// Map
// Starting map on the rotation.
//map "lib/mp_anzio_lib"

// Map Rotation List
//sv_maplist "lib/mp_anzio_lib lib/mp_bizerteharbor_lib //lib/mp_tunisia_lib"

set x1 "set g_gametype 5; timelimit 20; map obj/mp_montecassino_tow; set nextmap vstr x2"
set x2 "set g_gametype 6; timelimit 20; map lib/mp_anzio_lib; set nextmap vstr x3"
set x3 "set g_gametype 5; timelimit 20; map obj/mp_kasserine_tow; set nextmap vstr x4"
set x4 "set g_gametype 6; timelimit 20; map lib/mp_bizerteharbor_lib; set nextmap vstr x5"
set x5 "set g_gametype 5; timelimit 20; map obj/mp_montebattaglia_tow; set nextmap vstr x6"
set x6 "set g_gametype 6; timelimit 20; map lib/mp_tunisia_lib; set nextmap vstr x1"
vstr x1



// Default to no-sprint and original Allied Assault runspeed
sv_sprinton 0
sv_runspeed 250 // spearhead runspeed is 287

GaSplat
11-02-2003, 07:30 PM
Some explanation to help:

set x1 "command; another command; another command"

is creating a cvar (a variable that the game engine can find and use) that is basically a set of commands. In this game it is used to set the gametype, then set the timelimit, then load a map, then set a value to nextmap.

So what is nextmap? Glad you asked. nextmap is a command that the server runs when it is ready to change maps. Think of it as the "nextmap" command. heh. But the beauty is you can determine what this command will be. You do that with the command

set nextmap vstr x2

This means "when its time to change maps, do whatever commands you find in the x2 variable". In your case, that means Liberation game type, 20 minute time limit, load the anzio map, and set up whetever is in x3 for the next map.

By setting each command string to point to the next one, you set up a rotation that will go in a big loop, with the last one eventually calling the first one to start things all over again.

at the end, you have vstr x1.
vstr means "the commands in variable" in this case x1. So it actually does those command like you had put them in the config file or typed them in the rcon console.

To add more maps, just add them to your line up, just like the lines you already heave. Set them to the correct gametype for that map, and then work them into the rotation. SO to add two maps, you would add a
set x7 "set g_gametype........ ; set nextmap vstr x8"
set x8 "set g_g......... ; set nextmap vstr x1"
and change in your x6 command list the last comannd to set nextmap vstr x7. This way x6 will point to x7 as the next one instead of x1. x7 points to x8, and x8 will take you back to x1.

I hope this explains some of the logic behind it.

Defiant
11-03-2003, 12:35 AM
yes it did,simple,just didn't have the brain in gear,thanks for the help...