News:

Come Chat with us live! Learn how HERE!

Main Menu

g_disabledClasses, g_disabledEquipment and g_disabledBuildables

Started by jackForward, November 13, 2008, 12:09:23 PM

jackForward

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:

Quote"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. So no abuse.
:-*

Undeference

Those are set by the map. You don't put anything in them as an operator.
Need help? Ask intelligently. Please share solutions you find.

Quote from: tuple on February 15, 2008, 11:54:10 PMThats what we need, helpful players, not more powerful admins.

jackForward

Set by the map? hmmm...
I give you an example of what we do atm. This is a config file for our lesson #1:
Quoteset 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

QuoteNewbies 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.

Amanieu

Go in bg_misc.c and set the stage for luci, jetpack and all the buildables you want to disable to 0.
Quote
< kevlarman> zakk is getting his patches from shady frenchmen on irc
< kevlarman> this can't be a good sign :P

jackForward

QuoteGo 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?

Undeference

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.
Need help? Ask intelligently. Please share solutions you find.

Quote from: tuple on February 15, 2008, 11:54:10 PMThats what we need, helpful players, not more powerful admins.


Lakitu7

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.

Bissig

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.