You are not logged in.
Hello,
What is the cvar I can put in a "mapname.cfg" file (by seeing g_mapConfigs cvar) to edit the time limit for a map?
Thanks for your help.
Last edited by Exagone313 (24-Feb-15 01:06:10)
Offline
You can define custom timelimit with the g_userTimeLimit cvar.
Sorry, it wasn't listed in the CVAR Reference, i've updated it.
Offline
Thanks but it does not work.
I added this in nitmod/purefrag.cfg:
g_userTimeLimit 20
(or)
set g_userTimeLimit "20"
(I think this value is in minutes, as the value inside the arena file.)
Offline
Ok it works, but you have to set a directory in g_mapConfigs to enable this functionality.
Thanks.
Offline
is it not just
set timelimit [value]
Offline
The proper way is to use g_userTimeLimit in mapconfigs or in map blocks inside the g_customConfig.
"timelimit" is then automatically set to the custom value.
Offline
is there a way of changing the map time limit on each map at all
Offline
Hi,
you have a folder called mapconfigs in your nitmod folder. If not add it.
g_mapConfigs
allows you to execute a custom config file for each map. When set, it specifies the name of the folder inside your server's nitmod directory. The config file for a map has to be named the same as the map with the extension .cfg, for instance oasis.cfg. You should also create a default.cfg file which will be read before the map-specific config files.
Default: "mapconfigs"
create a cfg called default.cfg inside the mapconfigs folder and write inside the cfg:
timelimit 30
then you have a timelimit of 30 in all maps
Offline
ok thanks
Offline