Upvote Upvoted 1 Downvote Downvoted
Question On ConVar formats
posted in Customization
1
#1
0 Frags +

Got a question for you guys;

Are there any other type of commands in a cfg other than a binding that has multiple variables?

IE:

bind "v" "+voicerecord"

"v" = a variable
"+voicerecord" = a variable

Are there any other types besides that that has multiple vars or are all the other types just single like;

viewmodel_offset_x "1"

Thanks!

Got a question for you guys;

Are there any other type of commands in a cfg other than a binding that has multiple variables?

IE:

[code]
bind "v" "+voicerecord"
[/code]

"v" = a variable
"+voicerecord" = a variable

Are there any other types besides that that has multiple vars or are all the other types just single like;

[code]
viewmodel_offset_x "1"[/code]

Thanks!
2
#2
2 Frags +

There's also toggle, which takes 3 variables.

toggle "r_drawviewmodel" "0" "1"

I think all of the multi-variable commands are ones that interact with other convars, though.

There's also toggle, which takes 3 variables.
[code]toggle "r_drawviewmodel" "0" "1"[/code]

I think all of the multi-variable commands are ones that interact with other convars, though.
3
#3
0 Frags +

build 2 0
destroy 1 1
voicemenu 2 7
disguise 5 -2

plus a further alias of toggle is bindtoggle

build 2 0
destroy 1 1
voicemenu 2 7
disguise 5 -2

plus a further alias of toggle is bindtoggle
4
#4
5 Frags +

Incrementvar is also a thing

bind v "incrementvar r_drawviewmodel 0 1 1"
bind v "incrementvar viewmodel_fov 70 110 10"

incrementvar COMMAND low-end high-end step-size

Incrementvar is also a thing

[code]bind v "incrementvar r_drawviewmodel 0 1 1"[/code]

[code]bind v "incrementvar viewmodel_fov 70 110 10"[/code]

incrementvar COMMAND low-end high-end step-size
5
#5
1 Frags +

Alright. Thanks so far.

I guess it would be easier to ask it like this:

I'm writing a small software to compare two cfg's.

So I need to figure out all the type of formats for commands.

Here is what the GUI will look like.

https://imgur.com/OpIJHvl

So what I'll do is run checks through each line for a command.

I'll first split the lines by spaces and then split them by ", ' or a space. If it finds // it doesn't read anymore and goes to the next line.

Pretty straight forward.

But thinking about it now... I don't need to know all the types... the software can detect new lines.

So yeah, this is void and null now. I hadn't actually really thought about the way I'd rip each line from the cfg until now.

Thanks anyways guys!

Alright. Thanks so far.

I guess it would be easier to ask it like this:

I'm writing a small software to compare two cfg's.

So I need to figure out all the type of formats for commands.

Here is what the GUI will look like.

[img]https://imgur.com/OpIJHvl[/img]

So what I'll do is run checks through each line for a command.

I'll first split the lines by spaces and then split them by ", ' or a space. If it finds // it doesn't read anymore and goes to the next line.

Pretty straight forward.

But thinking about it now... I don't need to know all the types... the software can detect new lines.

So yeah, this is void and null now. I hadn't actually really thought about the way I'd rip each line from the cfg until now.

Thanks anyways guys!
6
#6
0 Frags +

Hmm. Quick question.

Does anyone know of any TF2 convars that have a variable that isn't a number?

Like in Comanglia's he has:

con_filter_text_out particle

Now I don't know what ^ does but I don't think its anything crazy important/FPS related (I could be totally wrong)

But are there any really big convars that people care about that do have text instead of numbers for variables?

Hmm. Quick question.

Does anyone know of any TF2 convars that have a variable that isn't a number?

Like in Comanglia's he has:

[code]
con_filter_text_out particle[/code]

Now I don't know what ^ does but I don't think its anything crazy important/FPS related (I could be totally wrong)

But are there any really big convars that people care about that do have text instead of numbers for variables?
7
#7
0 Frags +
DaMeiNHmm. Quick question.

Does anyone know of any TF2 convars that have a variable that isn't a number?

Like in Comanglia's he has:
con_filter_text_out particle

Now I don't know what ^ does but I don't think its anything crazy important/FPS related (I could be totally wrong)

But are there any really big convars that people care about that do have text instead of numbers for variables?

Do binds count?

Also that command you mentioned filters out stuff you don't want in the console (in case of spam). I can't remember if there's any FPS gain by doing that though.

[quote=DaMeiN]Hmm. Quick question.

Does anyone know of any TF2 convars that have a variable that isn't a number?

Like in Comanglia's he has:

[code]
con_filter_text_out particle[/code]

Now I don't know what ^ does but I don't think its anything crazy important/FPS related (I could be totally wrong)

But are there any really big convars that people care about that do have text instead of numbers for variables?[/quote]

Do binds count?

Also that command you mentioned filters out stuff you don't want in the console (in case of spam). I can't remember if there's any FPS gain by doing that though.
8
#8
1 Frags +
DaMeiNHere is what the GUI will look like.
[img ]https://imgur.com/OpIJHvl[/ img]

you gotta link to an actual image with the img tags and not a webpage.

Show Content
[quote=DaMeiN]Here is what the GUI will look like.
[code]
[img ]https://imgur.com/OpIJHvl[/ img][/code][/quote]
you gotta link to an actual image with the img tags and not a webpage.

[spoiler][img]https://i.imgur.com/OpIJHvl.jpg[/img][/spoiler]
9
#9
0 Frags +
VictorDo binds count?

yeah binds take strings as an arugment.

it's honestly best to just think of every convar as taking a number of strings - the game will convert strings to integers (or reals) whenever necessary.

[quote=Victor]Do binds count?[/quote]
yeah binds take strings as an arugment.

it's honestly best to just think of every convar as taking a number of strings - the game will convert strings to integers (or reals) whenever necessary.
10
#10
0 Frags +
yttriumVictorDo binds count?yeah binds take strings as an arugment.

it's honestly best to just think of every convar as taking a number of strings - the game will convert strings to integers (or reals) whenever necessary.

if you wanna 'type' the scripting system i guess you can have expressions (consisting of a cvar or series of cvars separated by ;s), 'functions' (e.g. alias/bind) and values (which can be ints/reals/strings)

[quote=yttrium][quote=Victor]Do binds count?[/quote]
yeah binds take strings as an arugment.

it's honestly best to just think of every convar as taking a number of strings - the game will convert strings to integers (or reals) whenever necessary.[/quote]

if you wanna 'type' the scripting system i guess you can have expressions (consisting of a cvar or series of cvars separated by ;s), 'functions' (e.g. alias/bind) and values (which can be ints/reals/strings)
11
#11
0 Frags +
Gemmellnessif you wanna 'type' the scripting system i guess you can have expressions (consisting of a cvar or series of cvars separated by ;s), 'functions' (e.g. alias/bind) and values (which can be ints/reals/strings)

what i'm trying to say is that all values can just be strings internally for whatever parser the OP is trying to make, because when tf2 interprets them it converts them on its own.

[quote=Gemmellness]if you wanna 'type' the scripting system i guess you can have expressions (consisting of a cvar or series of cvars separated by ;s), 'functions' (e.g. alias/bind) and values (which can be ints/reals/strings)[/quote]
what i'm trying to say is that all values can just be strings internally for whatever parser the OP is trying to make, because when tf2 interprets them it converts them on its own.
12
#12
0 Frags +
yttriumGemmellnessif you wanna 'type' the scripting system i guess you can have expressions (consisting of a cvar or series of cvars separated by ;s), 'functions' (e.g. alias/bind) and values (which can be ints/reals/strings)what i'm trying to say is that all values can just be strings internally for whatever parser the OP is trying to make, because when tf2 interprets them it converts them on its own.

oh, i see, true, i forgot the context

[quote=yttrium][quote=Gemmellness]if you wanna 'type' the scripting system i guess you can have expressions (consisting of a cvar or series of cvars separated by ;s), 'functions' (e.g. alias/bind) and values (which can be ints/reals/strings)[/quote]
what i'm trying to say is that all values can just be strings internally for whatever parser the OP is trying to make, because when tf2 interprets them it converts them on its own.[/quote]

oh, i see, true, i forgot the context
Please sign in through STEAM to post a comment.