Script question: how to get text in all caps for "SAY&q


(Z) #1

Hi.

I have modified my autoexec.cfg to add binds for common text I use (in addition to vsays). But the result is a bit frustrating, because all the text is displayed as lowercase. independently from the caps I have in the autoexec.cfg.

Example:
bind P “say_team Prevent Axis from desarming the dynamite!”
=> displays “prevent axis from desarming the dynamite!” on screen :angry:

I can’t find the way to get the P and A in all caps. Any help greatly appreciated! :clap: :clap: :clap:


(daemord) #2

i have a similar problem when i bind my name into the config, if i do it in the game itself its fine, but if i do it in a config

bind f8 name “DaeMord”

the game reads it as

bind f8 name “daemord”

anyway to sort this???


(Majin) #3

I am unsure as to if and or how to do this properly, but I did find one method that works.

set TEXT1 “say “TEXT HERE””
bind m “vstr TEXT1”

This works just fine, but is a tad more annoying to set up.

note: Both places where I put TEXT1 can be replaced with anything, it is the variable name. You would need a different variable for each bind.


(Z) #4

Thanks Majin. Your workaround works. I can now have a more legible text on screen, using the right case. :clap:

The only problem is that it decreases the readability of my autoexec.cfg, using 2 lines per bind (and I’ve got a lot of these!). Does anybody know another way of solving this problem that would fit on 1 line?


(FstFngrz) #5

Some things here ya might find usefull: http://www.splashdamage.com/forums/viewtopic.php?t=1970&highlight=names