Tremulous Forum

Community => Servers => Topic started by: [SWISS]TheEnd on April 28, 2009, 06:49:18 pm

Title: Variables for Commands
Post by: [SWISS]TheEnd on April 28, 2009, 06:49:18 pm
i got a question. . .  can i add into my own comands variables like this:

Code: [Select]
bps.cfg

g_alienbuildpoints "x"
g_humanbuildpoints "x"

to add bps (!bps 250 = 250 bps or !bps 100 = 100 bps)

TheEnd =D
Title: Re: Variables for Commands
Post by: DraZiLoX on April 28, 2009, 07:15:49 pm
Not using admin.dat, i think, im not sure.
Title: Re: Variables for Commands
Post by: David on April 28, 2009, 09:11:28 pm
There's a patch floating around somewhere to add parameters to admin.dat commands, but by default you can't.
Making it a proper command shouldn't be too hard though, just copy a current similar-ish command.
Title: Re: Variables for Commands
Post by: jackForward on April 29, 2009, 11:51:39 am
You can create a cfg file for a corresponding map layout. Store the cfg file here: /base/layouts/atcs
Code: [Select]
build.cfg
set g_alienBuildPoints "123"
set g_humanBuildPoints "123"
and then start the map with:
Code: [Select]
!map atcs buildThis works on the Wrath Newbie Server and might need some additional patches.
Title: Re: Variables for Commands
Post by: UniqPhoeniX on April 29, 2009, 05:21:59 pm
You could just make several commands like !bp100 and !bp200.
Title: Re: Variables for Commands
Post by: Asvarox on April 29, 2009, 07:59:42 pm
I'm not sure but i think it'd be possible with tremfusion's /alias and or /exec
Title: Re: Variables for Commands
Post by: Kiwi on May 23, 2009, 01:24:15 am
There's a patch floating around somewhere to add parameters to admin.dat commands...
hmmm, I'm bring this back to life because I can't solve this.  I have heard of such a patch, but I can't find it.  The only other method I have heard of is building the command into your game.qvm.  Where can I get this patch/learn to build a command into my game.qvm?