[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vr / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / asp / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / qst / sci / soc / sp / tg / toy / trv / tv / vp / wsg / wsr / x] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/wsr/ - Worksafe Requests


Thread archived.
You cannot reply anymore.



File: maxresdefault.jpg (110 KB, 1280x479)
110 KB
110 KB JPG
I want to be able to bind noclip to holding a key (not toggle) in Half-Life 2
What commands should i use?
>>
I think you can do this via bind trickery. TF2 and CSS guides might help you.
>>
>>702484
You need to write an alias for the command and bind that alias to a key. It's been a long time but some thing like this

Alias noclipon "noclip on"
Alias noclipoff "noclip off"
Alias +noclipfunc "noclipon;noclipoff"
Bind f +noclipfunc

Those commands go in a file called userconfig.cfg or autoexec.cfg and the config.cfg needs to invoke exec autoexec.cfg
>>
>>702628
Actually I think I made that more complicated then needed when this would or should work just fine. Again this goes in your userconfig.cfg file in your half life 2 directory

Alias "+noclip" "noclip on"
Alias "-noclip" "noclip off"
Bind f "+noclip"
>>
>>702628
>>702632
Thanks



Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.