Alright, here's the deal:
I need to know if this can be done, where (like in CS) if you say "/ff" the console will say "FF is ___" (insert on or off). And if it is possible, is there is there a variable (or something) that will print if FF is on or off (to insert into the ___) and a variable (or something) that will print the map rotation.
Thanks,
Lefty35
/ff?
Moderator: Moderators
/ff?

Many that die deserve life, and many who live deserve death.
Can you give it to them?
Then do not be so eager to deal out death in the name of justice, fearing for your own safety.
cmdlist
If you type "cmdlist" you will see all the commands. You can also try "cvarlist". Both lists are long, so it is a good idea to type "logfile 1" first. Then both lists will be in qconsole.log in main.
So (and I'm just guessing) it could be like this?
Then you'd edit the script so that ___ is on or off
Correct?
Code: Select all
Say Commands:
if (local.player.say == "/ff") {
iprintln ("FF is ___")Correct?

Many that die deserve life, and many who live deserve death.
Can you give it to them?
Then do not be so eager to deal out death in the name of justice, fearing for your own safety.
-
Krane
- Lieutenant General
- Posts: 782
- Joined: Sat May 31, 2003 4:18 pm
- Location: California, USA
- Contact:
What tltrude is trying to say is that you have to type it "real-time" in the console while you're playing. So open the console, type logfile 1, then type cmdlist or cvarlist. Then open your main folder and read the qconsole.log (text file) to see the list of commands you can use.This is not a script line.
There's another thing: I don't think it's possible to give commands client side. Like "local.player.say" etc. Not sure.
Hope it helps.
There's another thing: I don't think it's possible to give commands client side. Like "local.player.say" etc. Not sure.
Hope it helps.
cvar "ui_teamdamage"
I guess you would put something like:
getcvar "ui_teamdamage"
but, it will probably give you a 1 or a 0.
getcvar "ui_teamdamage"
but, it will probably give you a 1 or a 0.
-
smartaiguy
- Brigadier General
- Posts: 512
- Joined: Tue Jul 08, 2003 2:52 pm
Re: cvar "ui_teamdamage"
Yeah I'm pretty sure that'll give ya a 1 or 0tltrude wrote:I guess you would put something like:
getcvar "ui_teamdamage"
but, it will probably give you a 1 or a 0.
Fallschirmjager in europe(FIE)! (Mapper/Webmaster)
.Map map reviewer
Look up in the sky! Its a bird its a plane, oh wait its a bird.
.Map map reviewer
Look up in the sky! Its a bird its a plane, oh wait its a bird.
Like Krane said there is no way to 'intercept' the text players are saying nor even get the value of a client cvar...
One thing you could do however is to stufftext the values for ff and map rotation to client cvars, so that they'd just have to type 'ff' in console and would read:
'ff is ON (default: 0)'
(I guess)
One thing you could do however is to stufftext the values for ff and map rotation to client cvars, so that they'd just have to type 'ff' in console and would read:
'ff is ON (default: 0)'
(I guess)


