Urban Terror Forums: Changing mapcycle when gamemode is changed - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Changing mapcycle when gamemode is changed Rate Topic: -----

#1 User is offline   Badfurday Icon

  • Account: badfurday
  • Main tag: [NB]
  • Joined: 28-February 10
  • Posts: 7

Posted 05 March 2015 - 11:20 AM

Hello,

In the context of running a server, is it possible to have a specific mapcycle for each game mode?


I found this piece of support but it gives the info opposite to what I'm looking for (a gamemode per map, as opposed to a mapcycle per gamemode).

Thanks in advance,
Bad

#2 User is offline   AnonDafb Icon

  • Account: anondafb
  • Main tag: <
  • Country:
  • Joined: 04-September 14
  • Posts: 339

Posted 05 March 2015 - 04:52 PM

Look this ~> http://www.urbanterr...32529-mapcycle/

#3 User is offline   Badfurday Icon

  • Account: badfurday
  • Main tag: [NB]
  • Joined: 28-February 10
  • Posts: 7

Posted 05 March 2015 - 05:10 PM

Hey,

I'm looking for the opposite.

Your solution: How to set a particular gamemode per map, on one mapcycle file

What I want: How to have multiple different mapcycles, that are used depending on the gamemode.



Edit: This rotator plugin you talked about in that thread might solve it for me though. Thanks !

This post has been edited by Badfurday: 05 March 2015 - 05:17 PM


#4 User is offline   AnonDafb Icon

  • Account: anondafb
  • Main tag: <
  • Country:
  • Joined: 04-September 14
  • Posts: 339

Posted 05 March 2015 - 07:43 PM

View PostBadfurday, on 05 March 2015 - 05:10 PM, said:

Hey,

I'm looking for the opposite.

Your solution: How to set a particular gamemode per map, on one mapcycle file

What I want: How to have multiple different mapcycles, that are used depending on the gamemode.



Edit: This rotator plugin you talked about in that thread might solve it for me though. Thanks !

Hmm yes can be the rotator plugin, but I don't like use that, I prefer use different .cfg files.

#5 User is offline   tintir Icon

  • Account: tintir
  • Main tag: MsT*|
  • Country:
  • Joined: 18-May 12
  • Posts: 128

Posted 06 March 2015 - 08:02 AM

There's a b3 plugin for that.
Click Here!
I haven't used it, but it looks like it's the one you need.

This post has been edited by tintir: 06 March 2015 - 08:03 AM


bullet_loaderAdvertisement

#6 User is offline   KroniK Icon

  •   QA member   
  • Account: kronik
  • Country:
  • Joined: 14-January 11
  • Posts: 305

Posted 09 March 2015 - 11:38 PM

If you don't want to use b3, you can instead create an rcon command which changes the gametype and also changes the mapcycle.

The easy way to do this is by adding the following line to the bottom of the server.cfg file.

set ctfmode "set g_gametype 7; set g_mapcycle ctfcycle.txt; reload"


So let me break down how this works and then tell you how to use it.

So first, you are creating a command called "ctfmode" which you can call from in game to do what you want. So you will want to create a separate line for each game type with the specific settings you want for each game type.

The g_gametype sets what gametype will be set (obviously)

Next I set the new mapcycle file. This should be a new text file in your server's q3ut4 folder with the same name you use in the command above. So in this case you would add a new file called "ctfcycle.txt" and then add in the maps like usual.

Lastly, the reload command reloads the server with the new settings.

You could also replace
reload
with
map ut4_mapname
if you wanted to make the server switch to a specific map instead of just reload the current map.

So to call this command, all you need to do is open the console while you are on the server and use the command:

rcon exec ctfmode



Also, please note that your server needs to be restarted after adding that line to the server.cfg or you can run "rcon exec server.cfg" if you want.
---

One last note, Its been a while since I have created server commands like this. Its possible that if the above command doesn't work you will need to add rcon before each of the commands in the line above. So it would look like:

set ctfmode "rcon set g_gametype 7;rcon set g_mapcycle ctfcycle.txt;rcon reload"

This post has been edited by KroniK: 09 March 2015 - 11:43 PM


#7 User is offline   Badfurday Icon

  • Account: badfurday
  • Main tag: [NB]
  • Joined: 28-February 10
  • Posts: 7

Posted 18 March 2015 - 12:16 PM

Thanks a lot KroniK, I ended up going with your solution.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942