blink/leap +movement/lastinv fix
pandabio
Join Date: 2008-06-22 Member: 64484Members
This is for people who want to be able to use lastinv to blink/swipe or leap/bite but crash when they leap/blink because of the +attack/+movement bug.
First of all you need to create 3 configs, skulk.cfg fade.cfg and lastinv.cfg
[edit2: in case I wasn't totally clear, these scripts basically work exactly like lastinv, e.g. press 1 for bite, 3 for leap, q to switch between]
[edit: make sure you replace a with your bind for lastinv]
skulk.cfg
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->developer 1
echo "Skulk Leap Fix"
developer 0
//* LASTINV (not actually client-side but I like the noise played when you change weapons with the slotx commands)
// client side lastinv -- romano
// replace 1,2,3,4 with your binds for slot1,2,3,4 respectively
// repace a with your bind for lastinv
bind 1 "kk1a"
bind 2 "kk2a"
bind 3 "kk3a"
bind 4 "kk4a"
alias kk1a "kkslot1;"
alias kk1b "kkslot1;; bind a kk2a"
alias kk1c "kkslot1;; bind a kk3a"
alias kk1d "kkslot1;; bind a kk4a"
alias kkslot1 "slot1; bind 1 kk1a; bind 2 kk2a; bind 3 kk3a; bind 4 kk4a;bind mouse1 +attack"
alias kk2a "kkslot2; bind a kk1b"
alias kk2b "kkslot2"
alias kk2c "kkslot2; bind a kk3b"
alias kk2d "kkslot2; bind a kk4b"
alias kkslot2 "slot2; bind 1 kk1b; bind 2 kk2b; bind 3 kk3b; bind 4 kk4b;bind mouse1 +attack"
alias kk3a "kkslot3; bind a kk1c"
alias kk3b "kkslot3; bind a kk2c"
alias kk3c "kkslot3"
alias kk3d "kkslot3; bind a kk4c"
alias kkslot3 "slot3; bind 1 kk1c; bind 2 kk2c; bind 3 kk3c; bind 4 kk4c;bind mouse1 +movement"
alias kk4a "kkslot4; bind a kk1d"
alias kk4b "kkslot4; bind a kk2d"
alias kk4c "kkslot4; bind a kk3d"
alias kk4d "kkslot4"
alias kkslot4 "slot4; bind 1 kk1d; bind 2 kk2d; bind 3 kk3d; bind 4 kk4d;bind mouse1 +attack"<!--c2--></div><!--ec2-->
fade.cfg
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->developer 1
echo "Fade Blink Fix"
developer 0
//* LASTINV (not actually client-side but I like the noise played when you change weapons with the slotx commands)
// client side lastinv -- romano
// replace 1,2,3,4 with your binds for slot1,2,3,4 respectively
// repace a with your bind for lastinv
bind 1 "kk1a"
bind 2 "kk2a"
bind 3 "kk3a"
bind 4 "kk4a"
alias kk1a "kkslot1;"
alias kk1b "kkslot1;; bind a kk2a"
alias kk1c "kkslot1;; bind a kk3a"
alias kk1d "kkslot1;; bind a kk4a"
alias kkslot1 "slot1; bind 1 kk1a; bind 2 kk2a; bind 3 kk3a; bind 4 kk4a;bind mouse1 +attack"
alias kk2a "kkslot2; bind a kk1b"
alias kk2b "kkslot2"
alias kk2c "kkslot2; bind a kk3b"
alias kk2d "kkslot2; bind a kk4b"
alias kkslot2 "slot2; bind 1 kk1b; bind 2 kk2b; bind 3 kk3b; bind 4 kk4b;bind mouse1 +movement"
alias kk3a "kkslot3; bind a kk1c"
alias kk3b "kkslot3; bind a kk2c"
alias kk3c "kkslot3"
alias kk3d "kkslot3; bind a kk4c"
alias kkslot3 "slot3; bind 1 kk1c; bind 2 kk2c; bind 3 kk3c; bind 4 kk4c;bind mouse1 +attack"
alias kk4a "kkslot4; bind a kk1d"
alias kk4b "kkslot4; bind a kk2d"
alias kk4c "kkslot4; bind a kk3d"
alias kk4d "kkslot4"
alias kkslot4 "slot4; bind 1 kk1d; bind 2 kk2d; bind 3 kk3d; bind 4 kk4d;bind mouse1 +attack"<!--c2--></div><!--ec2-->
lastinv.cfg
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->developer 1
echo "Normal Lastinv"
developer 0
//* LASTINV (not actually client-side but I like the noise played when you change weapons with the slotx commands)
// client side lastinv -- romano
// replace 1,2,3,4 with your binds for slot1,2,3,4 respectively
// repace a with your bind for lastinv
bind 1 "kk1a"
bind 2 "kk2a"
bind 3 "kk3a"
bind 4 "kk4a"
alias kk1a "kkslot1;"
alias kk1b "kkslot1;; bind a kk2a"
alias kk1c "kkslot1;; bind a kk3a"
alias kk1d "kkslot1;; bind a kk4a"
alias kkslot1 "slot1; bind 1 kk1a; bind 2 kk2a; bind 3 kk3a; bind 4 kk4a"
alias kk2a "kkslot2; bind a kk1b"
alias kk2b "kkslot2"
alias kk2c "kkslot2; bind a kk3b"
alias kk2d "kkslot2; bind a kk4b"
alias kkslot2 "slot2; bind 1 kk1b; bind 2 kk2b; bind 3 kk3b; bind 4 kk4b"
alias kk3a "kkslot3; bind a kk1c"
alias kk3b "kkslot3; bind a kk2c"
alias kk3c "kkslot3"
alias kk3d "kkslot3; bind a kk4c"
alias kkslot3 "slot3; bind 1 kk1c; bind 2 kk2c; bind 3 kk3c; bind 4 kk4c"
alias kk4a "kkslot4; bind a kk1d"
alias kk4b "kkslot4; bind a kk2d"
alias kk4c "kkslot4; bind a kk3d"
alias kk4d "kkslot4"
alias kkslot4 "slot4; bind 1 kk1d; bind 2 kk<!--c2--></div><!--ec2-->
Now, in your userconfig put these lines, you can replace 6 7 8 and f1 with whatever you use, and if you have a gestate key for higher lifeforms, you can just add exec fade.cfg or skulk.cfg to it
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->hud_fastswitch 1
alias skulk "exec skulk.cfg"
alias fade "exec fade.cfg"
alias norminv "exec lastinv.cfg"
bind 6 skulk
bind 7 fade
bind 8 norminv
alias marines "exec lastinv.cfg;jointeamone"
bind f1 marines<!--c2--></div><!--ec2-->
First of all you need to create 3 configs, skulk.cfg fade.cfg and lastinv.cfg
[edit2: in case I wasn't totally clear, these scripts basically work exactly like lastinv, e.g. press 1 for bite, 3 for leap, q to switch between]
[edit: make sure you replace a with your bind for lastinv]
skulk.cfg
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->developer 1
echo "Skulk Leap Fix"
developer 0
//* LASTINV (not actually client-side but I like the noise played when you change weapons with the slotx commands)
// client side lastinv -- romano
// replace 1,2,3,4 with your binds for slot1,2,3,4 respectively
// repace a with your bind for lastinv
bind 1 "kk1a"
bind 2 "kk2a"
bind 3 "kk3a"
bind 4 "kk4a"
alias kk1a "kkslot1;"
alias kk1b "kkslot1;; bind a kk2a"
alias kk1c "kkslot1;; bind a kk3a"
alias kk1d "kkslot1;; bind a kk4a"
alias kkslot1 "slot1; bind 1 kk1a; bind 2 kk2a; bind 3 kk3a; bind 4 kk4a;bind mouse1 +attack"
alias kk2a "kkslot2; bind a kk1b"
alias kk2b "kkslot2"
alias kk2c "kkslot2; bind a kk3b"
alias kk2d "kkslot2; bind a kk4b"
alias kkslot2 "slot2; bind 1 kk1b; bind 2 kk2b; bind 3 kk3b; bind 4 kk4b;bind mouse1 +attack"
alias kk3a "kkslot3; bind a kk1c"
alias kk3b "kkslot3; bind a kk2c"
alias kk3c "kkslot3"
alias kk3d "kkslot3; bind a kk4c"
alias kkslot3 "slot3; bind 1 kk1c; bind 2 kk2c; bind 3 kk3c; bind 4 kk4c;bind mouse1 +movement"
alias kk4a "kkslot4; bind a kk1d"
alias kk4b "kkslot4; bind a kk2d"
alias kk4c "kkslot4; bind a kk3d"
alias kk4d "kkslot4"
alias kkslot4 "slot4; bind 1 kk1d; bind 2 kk2d; bind 3 kk3d; bind 4 kk4d;bind mouse1 +attack"<!--c2--></div><!--ec2-->
fade.cfg
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->developer 1
echo "Fade Blink Fix"
developer 0
//* LASTINV (not actually client-side but I like the noise played when you change weapons with the slotx commands)
// client side lastinv -- romano
// replace 1,2,3,4 with your binds for slot1,2,3,4 respectively
// repace a with your bind for lastinv
bind 1 "kk1a"
bind 2 "kk2a"
bind 3 "kk3a"
bind 4 "kk4a"
alias kk1a "kkslot1;"
alias kk1b "kkslot1;; bind a kk2a"
alias kk1c "kkslot1;; bind a kk3a"
alias kk1d "kkslot1;; bind a kk4a"
alias kkslot1 "slot1; bind 1 kk1a; bind 2 kk2a; bind 3 kk3a; bind 4 kk4a;bind mouse1 +attack"
alias kk2a "kkslot2; bind a kk1b"
alias kk2b "kkslot2"
alias kk2c "kkslot2; bind a kk3b"
alias kk2d "kkslot2; bind a kk4b"
alias kkslot2 "slot2; bind 1 kk1b; bind 2 kk2b; bind 3 kk3b; bind 4 kk4b;bind mouse1 +movement"
alias kk3a "kkslot3; bind a kk1c"
alias kk3b "kkslot3; bind a kk2c"
alias kk3c "kkslot3"
alias kk3d "kkslot3; bind a kk4c"
alias kkslot3 "slot3; bind 1 kk1c; bind 2 kk2c; bind 3 kk3c; bind 4 kk4c;bind mouse1 +attack"
alias kk4a "kkslot4; bind a kk1d"
alias kk4b "kkslot4; bind a kk2d"
alias kk4c "kkslot4; bind a kk3d"
alias kk4d "kkslot4"
alias kkslot4 "slot4; bind 1 kk1d; bind 2 kk2d; bind 3 kk3d; bind 4 kk4d;bind mouse1 +attack"<!--c2--></div><!--ec2-->
lastinv.cfg
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->developer 1
echo "Normal Lastinv"
developer 0
//* LASTINV (not actually client-side but I like the noise played when you change weapons with the slotx commands)
// client side lastinv -- romano
// replace 1,2,3,4 with your binds for slot1,2,3,4 respectively
// repace a with your bind for lastinv
bind 1 "kk1a"
bind 2 "kk2a"
bind 3 "kk3a"
bind 4 "kk4a"
alias kk1a "kkslot1;"
alias kk1b "kkslot1;; bind a kk2a"
alias kk1c "kkslot1;; bind a kk3a"
alias kk1d "kkslot1;; bind a kk4a"
alias kkslot1 "slot1; bind 1 kk1a; bind 2 kk2a; bind 3 kk3a; bind 4 kk4a"
alias kk2a "kkslot2; bind a kk1b"
alias kk2b "kkslot2"
alias kk2c "kkslot2; bind a kk3b"
alias kk2d "kkslot2; bind a kk4b"
alias kkslot2 "slot2; bind 1 kk1b; bind 2 kk2b; bind 3 kk3b; bind 4 kk4b"
alias kk3a "kkslot3; bind a kk1c"
alias kk3b "kkslot3; bind a kk2c"
alias kk3c "kkslot3"
alias kk3d "kkslot3; bind a kk4c"
alias kkslot3 "slot3; bind 1 kk1c; bind 2 kk2c; bind 3 kk3c; bind 4 kk4c"
alias kk4a "kkslot4; bind a kk1d"
alias kk4b "kkslot4; bind a kk2d"
alias kk4c "kkslot4; bind a kk3d"
alias kk4d "kkslot4"
alias kkslot4 "slot4; bind 1 kk1d; bind 2 kk<!--c2--></div><!--ec2-->
Now, in your userconfig put these lines, you can replace 6 7 8 and f1 with whatever you use, and if you have a gestate key for higher lifeforms, you can just add exec fade.cfg or skulk.cfg to it
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->hud_fastswitch 1
alias skulk "exec skulk.cfg"
alias fade "exec fade.cfg"
alias norminv "exec lastinv.cfg"
bind 6 skulk
bind 7 fade
bind 8 norminv
alias marines "exec lastinv.cfg;jointeamone"
bind f1 marines<!--c2--></div><!--ec2-->