questin on config

6 replies [Last post]
TJOSTY
tjosty's picture
Offline
Joined: Sep 2005
Posts:

hi! i'm playing with forcemodel, but the problem is, that this doesnt work on 1on1 server. so i always have to change cg_forcemodel from 1 to 0 when i enter a 1on1 server. is it possible to bind this command, so that i only have to push one button which writes this command in the console? i know how to create a bind for chat, but i dont know if this is also possible for console commands...

*RuBeN!*
Offline
Joined: Mar 2005
Posts:
questin on config

Yes m8

type in the console or in your config :

\bind KEY "toggle cg_forceModel"

have fun Winking

TJOSTY
tjosty's picture
Offline
Joined: Sep 2005
Posts:
questin on config

wow that was really fast:) thank you! i will try that

TJOSTY
tjosty's picture
Offline
Joined: Sep 2005
Posts:
questin on config

it only says usage: toggle <variable> when i press the button... but doesnt seem to work...

*RuBeN!*
Offline
Joined: Mar 2005
Posts:
questin on config

sure you did bind KEY "toggle cg_forceModel"

that's what Im using and I got this message once, i just mistyped... Thinking

TJOSTY
tjosty's picture
Offline
Joined: Sep 2005
Posts:
questin on config

ahh ok i see. so toggle means to switch between 0 an 1 or? i thougt i have to make two binds... one with 0 and one with 1, thats why it didnt work. but its fine now!
thanks buddy!!

*RuBeN!*
Offline
Joined: Mar 2005
Posts:
questin on config

heh, np Winking

if you want 2 binds you can also do

bind 1 "cg_forceModel 1; echo ^2ForceModel Enabled^7"
bind 2 "cg_forceModel 0; echo ^1ForceModel Disabled^7"

or whatever you want Winking

have fun