Annoying Slot4 Switching
X_Illuminati
Join Date: 2003-11-04 Member: 22295Members, Constellation
Since the 3.0 beta has gone public, I thought this topic might be usefull for those of you who don't have access to the Constellation forums, so I have copied and pasted my post describing how to fix the problem (sort of).
Basically, some people find it annoying to have grenades, mines, and welder all lumped together in slot 4.
At first I suggested that if hud_fastswitch was 0 it should work as it currently does, but if fastswitch was 1 it should cycle through the weapons without forcing you to click the +attack to select one.
So here is a little script I threw together:
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
Here is a simple config file I cooked up that will emulate my earlier suggested behavior. Unfortunately this really needs to be built in because my system will give you grenades after selecting your 4th slot twice, even if you don’t have any grenades (instead of moving on to mines (there is an easy work around for this, but I'm not sure if it would violate the built-in anti-scripting delays)).
Just copy this into a file in your ns folder called slotty.cfg and type "exec slotty.cfg" in your console to enable it.
//slotty.cfg - slot4 autoswitcher
echo Loading Slot4 Autoswitcher
bind 4 lastslot
alias lastslot lastslot1
alias lastslot1 "weapon_welder;alias lastslot lastslot2"
alias lastslot2 "weapon_grenade;alias lastslot lastslot3"
alias lastslot3 "weapon_mine;alias lastslot lastslot1"
bind 1 "slot1;alias lastslot lastslot1"
bind 2 "slot2;alias lastslot lastslot1"
bind 3 "slot3;alias lastslot lastslot1"
==========================================
Alright, so that is the basic config. Here is how I have mine set up:
//slotty.cfg - loads advanced slot4 autoswitcher
echo Loading Slot4 Autoswitcher
bind mouse2 "lastslot"
alias lastslot lastslot1
alias lastslot1 "weapon_mine;weapon_grenade;weapon_welder;alias lastslot lastslot2"
alias lastslot2 "weapon_welder;weapon_mine;weapon_grenade;alias lastslot lastslot3"
alias lastslot3 "weapon_grenade;weapon_welder;weapon_mine;alias lastslot lastslot1"
bind mouse3 "slot1;alias lastslot lastslot1"
bind mwheelup "slot2;alias lastslot lastslot1"
bind mwheeldown "slot3;alias lastslot lastslot1"
bind f12 "exec slotty2.cfg"
//slotty2.cfg - unloads advanced slot4 autoswitcher
echo UnLoading Slot4 Autoswitcher
bind mouse3 "slot1"
bind mwheelup "slot2"
bind mwheeldown "slot3"
bind mouse2 "slot4"
bind f12 "exec slotty.cfg"
This binds the various slot buttons to my mousewheel and rightclick (alt is my +popupmenu). It also changes f12 into a toggle key that loads and unloads the scripts (I don't want it loaded if I'm an alien!). Finally, if one of the three available weapons for slot4 is empty, it moves on to the next weapon in sequence.
Between these 2 examples, I think everyone should be able to get theirs set up how they like it.
<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
[edit] You try to spellcheck you post, but it just doesn't work <!--emo&:(--><img src='http://www.natural-selection.org/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /><!--endemo--> ...
Basically, some people find it annoying to have grenades, mines, and welder all lumped together in slot 4.
At first I suggested that if hud_fastswitch was 0 it should work as it currently does, but if fastswitch was 1 it should cycle through the weapons without forcing you to click the +attack to select one.
So here is a little script I threw together:
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
Here is a simple config file I cooked up that will emulate my earlier suggested behavior. Unfortunately this really needs to be built in because my system will give you grenades after selecting your 4th slot twice, even if you don’t have any grenades (instead of moving on to mines (there is an easy work around for this, but I'm not sure if it would violate the built-in anti-scripting delays)).
Just copy this into a file in your ns folder called slotty.cfg and type "exec slotty.cfg" in your console to enable it.
//slotty.cfg - slot4 autoswitcher
echo Loading Slot4 Autoswitcher
bind 4 lastslot
alias lastslot lastslot1
alias lastslot1 "weapon_welder;alias lastslot lastslot2"
alias lastslot2 "weapon_grenade;alias lastslot lastslot3"
alias lastslot3 "weapon_mine;alias lastslot lastslot1"
bind 1 "slot1;alias lastslot lastslot1"
bind 2 "slot2;alias lastslot lastslot1"
bind 3 "slot3;alias lastslot lastslot1"
==========================================
Alright, so that is the basic config. Here is how I have mine set up:
//slotty.cfg - loads advanced slot4 autoswitcher
echo Loading Slot4 Autoswitcher
bind mouse2 "lastslot"
alias lastslot lastslot1
alias lastslot1 "weapon_mine;weapon_grenade;weapon_welder;alias lastslot lastslot2"
alias lastslot2 "weapon_welder;weapon_mine;weapon_grenade;alias lastslot lastslot3"
alias lastslot3 "weapon_grenade;weapon_welder;weapon_mine;alias lastslot lastslot1"
bind mouse3 "slot1;alias lastslot lastslot1"
bind mwheelup "slot2;alias lastslot lastslot1"
bind mwheeldown "slot3;alias lastslot lastslot1"
bind f12 "exec slotty2.cfg"
//slotty2.cfg - unloads advanced slot4 autoswitcher
echo UnLoading Slot4 Autoswitcher
bind mouse3 "slot1"
bind mwheelup "slot2"
bind mwheeldown "slot3"
bind mouse2 "slot4"
bind f12 "exec slotty.cfg"
This binds the various slot buttons to my mousewheel and rightclick (alt is my +popupmenu). It also changes f12 into a toggle key that loads and unloads the scripts (I don't want it loaded if I'm an alien!). Finally, if one of the three available weapons for slot4 is empty, it moves on to the next weapon in sequence.
Between these 2 examples, I think everyone should be able to get theirs set up how they like it.
<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
[edit] You try to spellcheck you post, but it just doesn't work <!--emo&:(--><img src='http://www.natural-selection.org/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /><!--endemo--> ...