Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Reliable Weapons
- Added new command to let KTPro choose/fire weapons! This avoids
- a wrong weapon choice, you maybe know from some situations with
- lag, where the client chooses the weapon (e.g. the weapon function
- in MQWCL).
- First step is to let KTPro know what weapon binds you want to use.
- Every time you enter a map, the alias 'on_enter' will be called.
- Important: Do not use 'on_connect', as the registration has to be
- done every time you enter a map!
- So you could add the following line to your config:
- alias on_enter "exec wreg.cfg"
- The 'wreg.cfg' could look like this:
- cmd wreg a +75432
- cmd wreg b +8542
- cmd wreg c +61
- cmd wreg z -
- alias +rl "cmd a"
- alias -rl "cmd z"
- bind mouse1 "+rl"
- alias +tb "cmd b"
- alias -tb "cmd z"
- bind mouse3 "+tb"
- alias +gl "cmd c"
- alias -gl "cmd z"
- bind alt "+gl"
- Looks a bit complicated for now, so let's take a closer look.
- The first three commands assign the chars 'a' to 'c' to the weapons,
- while the last one (z) just stands for '-attack'.
- It has the following syntax: "cmd wreg [[char] [[+/-]weapon order]]"
- If you call "cmd wreg" without any parameters, it will show your
- current weapon orders.
- To call one of your binds you have to use "cmd <char>". So if you
- press mouse1, "cmd a" gets called. That command stands for "+75432".
- The mod then chooses the best weapon out of these (as long you got
- it and some ammo for it :). Then the mod will fire at once! Until
- you release mouse1, in that case "cmd z" gets called and the mod
- ceases fire =).
- Some guys prefer to choose weapons and fire separately. A bind for
- that case would look like this:
- cmd wreg a 5432
- cmd wreg b 7632
- cmd wreg c 82
- cmd wreg x +
- cmd wreg z -
- bind 5 "cmd a"
- bind 7 "cmd b"
- bind 8 "cmd c"
- alias +fire "cmd x"
- alias -fire "cmd z"
- bind mouse1 "+fire"
- Swedes (hihi) might wanna use 'sg scripts', they just have to change
- the '-attack' part of the wreg, e.g.:
- cmd z -21
- KTPro will then switch back to sg (or axe if you don't have shells)
- after you have released the fire button.
- If you want to use impulses greater than 9, e.g. for the weapon switch
- impulses, you can use "cmd imp <##>". You don't have to register them
- like the weapons, but they are still reliable!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement