/ff?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
lefty35
Sergeant
Posts: 69
Joined: Mon May 05, 2003 9:26 pm
Location: Undisclosed
Contact:

/ff?

Post by lefty35 »

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
Image
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.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

cmdlist

Post by tltrude »

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.
Tom Trude,

Image
User avatar
lefty35
Sergeant
Posts: 69
Joined: Mon May 05, 2003 9:26 pm
Location: Undisclosed
Contact:

Post by lefty35 »

So (and I'm just guessing) it could be like this?

Code: Select all

Say Commands:
if (local.player.say == "/ff") {
 iprintln ("FF is ___")
Then you'd edit the script so that ___ is on or off
Correct?
Image
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:

Post by Krane »

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.
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

cvar "ui_teamdamage"

Post by tltrude »

I guess you would put something like:

getcvar "ui_teamdamage"

but, it will probably give you a 1 or a 0.
Tom Trude,

Image
smartaiguy
Brigadier General
Posts: 512
Joined: Tue Jul 08, 2003 2:52 pm

Re: cvar "ui_teamdamage"

Post by smartaiguy »

tltrude wrote:I guess you would put something like:

getcvar "ui_teamdamage"

but, it will probably give you a 1 or a 0.
Yeah I'm pretty sure that'll give ya a 1 or 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.:lol:
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

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)
Image
User avatar
lefty35
Sergeant
Posts: 69
Joined: Mon May 05, 2003 9:26 pm
Location: Undisclosed
Contact:

Post by lefty35 »

Aw... :(
Image
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.
Post Reply