Tremulous Forum
Community => Servers => Topic started by: jackForward on November 13, 2008, 12:09:23 pm
-
I just discovered these settings but i could not find any description for them. So how do i handle them?
Current settings on our server are the default settings:
"g_disabledClasses" is:"" default:""
"g_disabledEquipment" is:"" default:""
"g_disabledBuildables" is:"" default:""
Do i have to put text in there? Or numbers?
And to answer it before you ask: We want to use this for certain layouts on certain maps on our Newbie Server (http://tremulous.net/forum/index.php?topic=9106.0). So no abuse.
:-*
-
Those are set by the map. You don't put anything in them as an operator.
-
Set by the map? hmmm...
I give you an example of what we do atm. This is a config file for our lesson #1:
set g_warmup 0
set g_teamForceBalance "0"
set g_alienBuildPoints "0"
set g_humanBuildPoints "0"
set g_suddenDeathTime "0"
set g_teamImbalanceWarnings "0"
set timelimit "15"
set g_humanMaxStage "1"
!lock a
!bot del cookie
!bot add ^7robo^1cookie^7#1 aliens
!bot add ^7robo^1cookie^7#2 aliens
!bot add ^7robo^1cookie^7#3 aliens
!bot add ^7robo^1cookie^7#4 aliens
!infolesson1
Newbies can play against bots here.
Map: ATCS
Bots: 4 in alien team
Duration: 15 Minutes
objective: Learn aiming and dodging here! Best weapons are rifle, shotgun, lasgun and Massdriver. If you reach Stage 2, get a helmet and light armor for radar and better protection. Best way to kill is run backwards while shooting the dretches. Press 'x' to sprint!
Some more restrictions would be useful. Like: no jetpack, no lucifer cannon, nu building. So if i could use one of those settings here ( g_disabledClasses, g_disabledEquipment and g_disabledBuildables), it would improve learning.
-
Go in bg_misc.c and set the stage for luci, jetpack and all the buildables you want to disable to 0.
-
Go in bg_misc.c and set the stage for luci, jetpack and all the buildables you want to disable to 0.
I cannot do that. Is there a way to define/set g_disabledClasses, g_disabledEquipment and g_disabledBuildables in a cfg file?
-
They are CVAR_ROM which severely limits when they can be set and they just get reset every time a map loads. If you want to use them, make a map.
-
why can't you make a qvm?
-
The code can also be changed trivially to make them not cvar_rom. They have to be modded more if you want them to be changable within the span of the same map and work properly, but if not, then if I remember correctly from my own experiments it was just a matter of removing the flag.
-
P-G-QVM has a !denyweapon command if I am not mistaken. So, you could call up a config file on certain maps to disable lets say Chaingun for everyone connected.