Posts: 97
Threads: 15
Joined: Jun 2010
02 Sep 11, 08:42PM
(This post was last modified: 02 Sep 11, 08:42PM by Vlad.)
Hey,
Does somebody remember package for macbook's, that considers absence of some buttons, like "home", "up", "down" on keyboard ...
I will be grateful, if owners throw it :)
thanks
Posts: 865
Threads: 35
Joined: Dec 2010
03 Sep 11, 08:20AM
(This post was last modified: 03 Sep 11, 05:44PM by Lantry.)
You can easily bind the commands to new keys, for example, you can put this code into your autexec.cfg
bind "DELETE" [edittex 0 -1]
bind "INSERT" [edittex 0 1]
bind "HOME" [edittex 1 1]
bind "END" [edittex 1 -1]
bind "PAGEUP" [edittex 2 1]
bind "PAGEDOWN" [edittex 2 -1]
and then change the key names (the words in quotes, e.g. "HOME") to the names of the keys you want to use instead (e.g. "HOME" becomes "F3")
Posts: 97
Threads: 15
Joined: Jun 2010
really i need demo control binds : stop, make speed slow or faster.
I remember it was in map package, but can i do it like you wrote ?
Posts: 865
Threads: 35
Joined: Dec 2010
Yeah, you can bind any command to a key like this:
bind "KEY" [COMMAND]
where KEY is the key you want to press, and COMMAND is what you want it to execute when you press the key.
Posts: 2,841
Threads: 44
Joined: Jun 2010
03 Sep 11, 07:12PM
(This post was last modified: 03 Sep 11, 07:13PM by #M|A#Wolf.)
Change the keys and game speeds to your liking.
/bind "5" [gamespeed 1] // Makes the demospeed 1, in this version you can't stop a demo.
/bind "6" [gamespeed 50] // Makes the demo 2 times slower.
/bind "7" [gamespeed 200] // Makes the demo 2 times faster.
Posts: 3,780
Threads: 33
Joined: Jun 2010
Here is the on-the-fly logarithmic gamespeed adjuster GeneralDisarray made ages ago:
bind "LEFTBRACKET" [ if $connected [] [gamespeed_mulf 0.75] [] ]
bind "RIGHTBRACKET" [ if $connected [] [gamespeed 100] [] ]
bind "BACKSLASH" [if $connected [] [gamespeed_mulf 1.5]]
alias gamespeed_echo [ echo (concatword "1gamespeed is now 0" $gamespeed) ]
alias gamespeed_mulf [ gamespeed (*f $gamespeed $arg1); gamespeed_echo ]
Like the others, change the keys to your liking.
Also, fill in the middle "if" argument with other commands that are active when you're connected.