ETMods.net

N!tmod, a Wolfenstein: Enemy Territory Modification!

You are not logged in.

Announcement

You can donate to help us keeping services online.

#1 23-Feb-15 19:49:09

Exagone313
BETA Tester
Registered: 23-Feb-15
Posts: 46

[OK] How to edit time limit for a specific map

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

#2 23-Feb-15 20:45:37

N!trox*
Administrator
Registered: 30-Mar-10
Posts: 1,098

Re: [OK] How to edit time limit for a specific map

You can define custom timelimit with the g_userTimeLimit cvar.
Sorry, it wasn't listed in the CVAR Reference, i've updated it.


iluvnitmod.png

Offline

#3 23-Feb-15 23:43:10

Exagone313
BETA Tester
Registered: 23-Feb-15
Posts: 46

Re: [OK] How to edit time limit for a specific map

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

#4 24-Feb-15 01:05:26

Exagone313
BETA Tester
Registered: 23-Feb-15
Posts: 46

Re: [OK] How to edit time limit for a specific map

Ok it works, but you have to set a directory in g_mapConfigs to enable this functionality.

Thanks.

Offline

#5 24-Feb-15 02:29:25

jay1110
BETA Tester
Registered: 01-Sep-12
Posts: 239
Website

Re: [OK] How to edit time limit for a specific map

is it not just

set timelimit [value]

Offline

#6 24-Feb-15 04:15:49

N!trox*
Administrator
Registered: 30-Mar-10
Posts: 1,098

Re: [OK] How to edit time limit for a specific map

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.


iluvnitmod.png

Offline

#7 19-Aug-20 22:22:18

BarbieKiller
Member
Registered: 23-May-20
Posts: 10

Re: [OK] How to edit time limit for a specific map

is there a way of changing the map time limit on each map at all

Offline

#8 23-Aug-20 11:59:23

jay1110
BETA Tester
Registered: 01-Sep-12
Posts: 239
Website

Re: [OK] How to edit time limit for a specific map

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

#9 24-Aug-20 15:48:42

BarbieKiller
Member
Registered: 23-May-20
Posts: 10

Re: [OK] How to edit time limit for a specific map

ok thanks

Offline

Board footer

Powered by FluxBB