Is there a way to make rotation executable for ref or votable?
Hi all,
I'm looking for a method to make different rotation executable for ref or votable in game?
Does anybody know a safty way to realize it?
Cheers Kersy
Not sure if this helps but the Rotation file is a programmable file in which you can add conditions in that can be triggered by changing callvote-able parameters.
Rotation file example:
if ( $rotation == 1 ) { // some big maps here q3dm12 q3dm14 q3dm15 } else if ( $rotation == 2 ) { // some normal maps, q3dm6 q3dm7 q3dm8 } else { // for when rotation is anything else or 0 use another rotation q3dm2 q3dm3 q3dm5 }
In the server config
sets rotation 0 xp_vote "rotation 0,rotation 1,rotation 2,..."
Can also work with strings values. Rotation file example:
if ( $rotation == "1v1" ) { // some 1v1 maps pro-q3dm6 q3dm17 ztn3dm1 } else if ( $rotation == 'ctf' ) { q3tourney6_ctf q3wcp1 q3wcp18 q3ctf3 } else if ( $rotation == 'private1' ) { // some maps available only for refs hub3-aero nodm9 } else { // normal rotation q3dm2 q3dm3 q3dm5 }
In the server config:
sets rotation normal xp_vote "rotation normal,rotation 1v1,rotation ctf,..." xp_referee "rotation private1,..."
For more infos regarding Rotation system here.
_________
epsislow
Back in the day i made configs for refs to execute them for gametypes, you can make the same principle for rotation.txt files
REF CW, REF CW { 1 { On, 1 { command = "exec cw"; } Off, 2 { command = "exec fw"; } } } REF CTF, REF CTF { 1 { On, 1 { command = "exec ctf"; } Off, 2 { command = "exec ctfoff"; } } } REF FTAG, REF FTAG { 1 { On, 1 { command = "exec ftag"; } Off, 2 { command = "exec ftagoff"; } } } REF TDM, REF TDM { 1 { On, 1 { command = "exec tdm"; } Off, 2 { command = "exec tdmoff"; } } } REF 1v1, REF 1v1 { 1 { On, 1 { command = "exec 1v1"; } Off, 2 { command = "exec 1v1off"; } } } REF FFA, REF FFA { 1 { On, 1 { command = "exec ffa"; } Off, 2 { command = "exec ffaoff"; } } }
Oh so that's how it worked. That's nice !
_________
epsislow
........
command = command = "exec ftag.cfg"; }
This double command will not work, remove one
true -- but doesn't work anyway
It says: rcon echo but nothing happens
Perhaps an obvious question, but are those .cfg files in the root excessive folder?
Or in conf ? then the line should be "exec conf/mix.cfg"
Perhaps an obvious question, but are those .cfg files in the root excessive folder?
Or in conf ? then the line should be "exec conf/mix.cfg"
Don't confuse them:
- Configuration System files are loaded using /load command and by default stay in excessiveplus/conf directory.
- Server configuration files (with quake3 commands &cvars) are loaded using "exec" command and by default stay in baseq3 or excessiveplus directory
___________
epsislow
Thx for help - this what I tried:
REF ROT, REF ROT {
1 {
FTAG, ftag {
command = "exec mix.cfg"; }
MIX, mix {
command = command = "exec ftag.cfg"; }
}
}
for a start I tried this statement. But doesn t work for me. Does anybody know, what I'm doing wrong?
(When I execute the cfg file with rcon all is fine)