Author Topic: g_disabledClasses, g_disabledEquipment and g_disabledBuildables  (Read 3978 times)

jackForward

  • Posts: 100
  • Turrets: +12/-4
g_disabledClasses, g_disabledEquipment and g_disabledBuildables
« 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:

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

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Re: g_disabledClasses, g_disabledEquipment and g_disabledBuildables
« Reply #1 on: November 13, 2008, 12:13:49 pm »
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.

Thats what we need, helpful players, not more powerful admins.

jackForward

  • Posts: 100
  • Turrets: +12/-4
Re: g_disabledClasses, g_disabledEquipment and g_disabledBuildables
« Reply #2 on: November 13, 2008, 12:24:24 pm »
Set by the map? hmmm...
I give you an example of what we do atm. This is a config file for our lesson #1:
Quote
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

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

Amanieu

  • Posts: 647
  • Turrets: +135/-83
    • Amanieu
Re: g_disabledClasses, g_disabledEquipment and g_disabledBuildables
« Reply #3 on: November 13, 2008, 12:35:23 pm »
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

  • Posts: 100
  • Turrets: +12/-4
Re: g_disabledClasses, g_disabledEquipment and g_disabledBuildables
« Reply #4 on: November 13, 2008, 12:43:39 pm »
Quote
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?

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Re: g_disabledClasses, g_disabledEquipment and g_disabledBuildables
« Reply #5 on: November 13, 2008, 02:04:51 pm »
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.

Thats what we need, helpful players, not more powerful admins.

Archangel

  • Guest
Re: g_disabledClasses, g_disabledEquipment and g_disabledBuildables
« Reply #6 on: November 13, 2008, 02:15:07 pm »
why can't you make a qvm?

Lakitu7

  • Tremulous Developers
  • *
  • Posts: 1002
  • Turrets: +120/-73
Re: g_disabledClasses, g_disabledEquipment and g_disabledBuildables
« Reply #7 on: November 13, 2008, 03:53:41 pm »
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

  • Posts: 1309
  • Turrets: +103/-131
Re: g_disabledClasses, g_disabledEquipment and g_disabledBuildables
« Reply #8 on: November 13, 2008, 11:15:59 pm »
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.