Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

Map rotation syntax and example - Enemy Territory

- - - - - enemy territory rotation objective campaign

  • Please log in to reply
5 replies to this topic

#1
OFFLINE   hellreturn

hellreturn

    Management

  • Management
  • PipPipPipPip
  • 2692 posts
158
On the road to fame
Objective Rotation:
set d1 "set g_gametype 2 ; map sw_oasis_b3 ; set nextmap vstr d2"
set d2 "set g_gametype 2 ; map mlb_daybreak ; set nextmap vstr d3"
set d3 "set g_gametype 2 ; map supplydepot2 ; set nextmap vstr d4"
set d4 "set g_gametype 2 ; map mlb_temple; set nextmap vstr d5"
set d5 "set g_gametype 2 ; map baserace; set nextmap vstr d6"
set d6 "set g_gametype 2 ; map et_mor2_night_final; set nextmap vstr d7"
set d7 "set g_gametype 2 ; map venice_ne4; set nextmap vstr d8"
set d8 "set g_gametype 2 ; map fueldump; set nextmap vstr d9"
set d9 "set g_gametype 2 ; map UJE_00 ; set nextmap vstr d10"
set d10 "set g_gametype 2 ; map goldrush ; set nextmap vstr d1"
vstr d1


Stopwatch Rotation:

// WATCHDOG
set com_watchdog_cmd "vstr m1r1 ; say watchdog found no map running - restarted mapcycle"
// MAP
set m1r1 "g_gametype 3; map oasis; set nextmap vstr m1r2"
set m1r2 "map_restart 0; set nextmap vstr m2r1"
set m2r1 "g_gametype 3; map goldrush; set nextmap vstr m2r2"
set m2r2 "map_restart 0; set nextmap vstr m3r1"
set m3r1 "g_gametype 3; map radar; set nextmap vstr m3r2"
set m3r2 "map_restart 0; set nextmap vstr m4r1"
set m4r1 "g_gametype 3; map railgun; set nextmap vstr m4r2"
set m4r2 "map_restart 0; set nextmap vstr m5r1"
set m5r1 "g_gametype 3; map supplydepot; set nextmap vstr m5r2"
set m5r2 "map_restart 0; set nextmap vstr m6r1"
set m6r1 "g_gametype 3; map caen; set nextmap vstr m6r2"
set m6r2 "map_restart 0; set nextmap vstr m1r1"
vstr m1r1


m1r1 and so on are known as a string library, kind of like a name given to a string of commands - tell the game to run the 'name' and it runs the string of commands associated with it. What basically happens here is the engine stores these lines kind of like "m1r1 command means: set g_gametype to 3, load map oasis and set 'nextmap' to run 'm1r2'". The very last line of the rotation is "vstr m1r1", which tells the engine to actually execute the line m1r1, which will startup the map rotation.

Hence:
g_gametype is set to 3, Oasis is loaded, and once the round of Oasis is finished, it runs "nextmap" which has been set to run m1r2, whereupon the map is restarted the the map cycle continues.


Campaign rotation:

For a campaign rotation, it is fairly similar up to this point. Here is an example of a roation that runs both of the official campaigns, one after the other:
 
// CAMPAIGN ROTATION - official campaigns
// WATCHDOG
set com_watchdog_cmd "vstr d_initial ; say watchdog found no map running - restarted mapcycle"
// MAP
set d1 "campaign cmpgn_northafrica ; set nextcampaign vstr d2"
set d2 "campaign cmpgn_centraleurope ; set nextcampaign vstr d1"
set d_initial "set g_gametype 4 ; map oasis ; set nextcampaign vstr d2"
vstr d_initial
// END CAMPAIGN ROTATION

Notice the similarity with the stopwatch rotation - really its almost exactly the same. The important things to notice is that: g_gametype is 4, and the campaign mode version of nextmap is "nextcampaign". Secondly, also notice the first campaign being loaded is northafrica, which starts with Oasis, and in the d_initial line the map there (which is first loaded) is also Oasis.

#2
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPipPip
  • 514 posts
142
On the road to fame
  • LocationPoland
Would be nice to see guide called "How to make popular ET server" ;)

#3
OFFLINE   hellreturn

hellreturn

    Management

  • Management
  • PipPipPipPip
  • 2692 posts
158
On the road to fame

Would be nice to see guide called "How to make popular ET server" ;)


It's pure luck if you ask me or group effort of clan members and one person calling right choices to attract more players. It's all trial and error.

#4
OFFLINE   =EMP=Avery13

=EMP=Avery13

    Advanced Member

  • Members
  • PipPipPipPip
  • 202 posts
15
On a distinguished road
  • LocationProvidence, RI
Well it seems F|A knows how to do it. With more then 1 server, too. We have one server that constantly always has people coming to it. A lot of regulars and members. And about 10-20 new people a week, and then we have our silent, sniper, pro and jaymod testing (jaybird does his testing with it) server that doesn't get much traffic at all.

Edited by Avery, 23 September 2011 - 08:43 PM.


#5
OFFLINE   Novice

Novice

    Newbie

  • Members
  • Pip
  • 8 posts
2
A step in the right direction
Off topic :D Nice to see someone from Providence, thought I was the only one, live of Atwells Ave :D

#6
OFFLINE   =EMP=Avery13

=EMP=Avery13

    Advanced Member

  • Members
  • PipPipPipPip
  • 202 posts
15
On a distinguished road
  • LocationProvidence, RI
I live down the street.





Also tagged with one or more of these keywords: enemy, territory, rotation, objective, campaign

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users