Author Topic: Variables for Commands  (Read 4619 times)

[SWISS]TheEnd

  • Posts: 3
  • Turrets: +0/-0
Variables for Commands
« 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

DraZiLoX

  • Posts: 844
  • Turrets: +24/-24
Re: Variables for Commands
« Reply #1 on: April 28, 2009, 07:15:49 pm »
Not using admin.dat, i think, im not sure.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Variables for Commands
« Reply #2 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.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

jackForward

  • Posts: 100
  • Turrets: +12/-4
Re: Variables for Commands
« Reply #3 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.

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: Variables for Commands
« Reply #4 on: April 29, 2009, 05:21:59 pm »
You could just make several commands like !bp100 and !bp200.

Asvarox

  • Posts: 573
  • Turrets: +41/-35
Re: Variables for Commands
« Reply #5 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
I MINE FULL WEREWOLFES
NOT SUCH HIPPIE THINGS  >:(

Kiwi

  • Posts: 859
  • Turrets: +29/-9
Re: Variables for Commands
« Reply #6 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?