Emulated "lastinv" Script

MrRadicalEdMrRadicalEd Turrent Master Join Date: 2004-08-13 Member: 30601Members Posts: 716 Fully active user
edited September 2009 in Scripting Discussion
and other such nonsense
Wow, what BS "1" has become. This is a fully functional "lastinv" emulated entirely by recursive aliases. just use @slot1 through @slot8 instead of the normal slot commands. "lastslot" replaces "lastinv"

lastly, Form, slot management script

CODE
//////////////////////////////
// Emulated Last Weapon Used "EvenFlo"
alias null ""
alias sswitch ""
alias !lastslot ""
alias ?lastslot ""
//
alias @slot1 "slot1;!slot1.same;?lastslot;!lastslot;alias ?lastslot is.slot1;alias !same.slot !slot1.same+;alias !slot1.same !same.slot;"
alias is.slot1 "alias !lastslot !slot1;alias !slot1.same sswitch"
alias !slot1 "alias lastslot @slot1"
alias !slot1.same+ "alias ?lastslot null;alias sswitch !slot1.sswitch"
alias !slot1.sswitch "alias !slot1.same sswitch"
alias !slot1.same "sswitch"

alias @slot2 "slot2;!slot2.same;?lastslot;!lastslot;alias ?lastslot is.slot2;alias !same.slot !slot2.same+;alias !slot2.same !same.slot;"
alias is.slot2 "alias !lastslot !slot2;alias !slot2.same sswitch"
alias !slot2 "alias lastslot @slot2"
alias !slot2.same+ "alias ?lastslot null;alias sswitch !slot2.sswitch"
alias !slot2.sswitch "alias !slot2.same sswitch"
alias !slot2.same "sswitch"

alias @slot3 "slot3;!slot3.same;?lastslot;!lastslot;alias ?lastslot is.slot3;alias !same.slot !slot3.same+;alias !slot3.same !same.slot;"
alias is.slot3 "alias !lastslot !slot3;alias !slot3.same sswitch"
alias !slot3 "alias lastslot @slot3"
alias !slot3.same+ "alias ?lastslot null;alias sswitch !slot3.sswitch"
alias !slot3.sswitch "alias !slot3.same sswitch"
alias !slot3.same "sswitch"

alias @slot4 "slot4;!slot4.same;?lastslot;!lastslot;alias ?lastslot is.slot4;alias !same.slot !slot4.same+;alias !slot4.same !same.slot;"
alias is.slot4 "alias !lastslot !slot4;alias !slot4.same sswitch"
alias !slot4 "alias lastslot @slot4"
alias !slot4.same+ "alias ?lastslot null;alias sswitch !slot4.sswitch"
alias !slot4.sswitch "alias !slot4.same sswitch"
alias !slot4.same "sswitch"

alias @slot5 "slot5;!slot5.same;?lastslot;!lastslot;alias ?lastslot is.slot5;alias !same.slot !slot5.same+;alias !slot5.same !same.slot;"
alias is.slot5 "alias !lastslot !slot5;alias !slot5.same sswitch"
alias !slot5 "alias lastslot @slot5"
alias !slot5.same+ "alias ?lastslot null;alias sswitch !slot5.sswitch"
alias !slot5.sswitch "alias !slot5.same sswitch"
alias !slot5.same "sswitch"

alias @slot6 "slot6;!slot6.same;?lastslot;!lastslot;alias ?lastslot is.slot6;alias !same.slot !slot6.same+;alias !slot6.same !same.slot;"
alias is.slot6 "alias !lastslot !slot6;alias !slot6.same sswitch"
alias !slot6 "alias lastslot @slot6"
alias !slot6.same+ "alias ?lastslot null;alias sswitch !slot6.sswitch"
alias !slot6.sswitch "alias !slot6.same sswitch"
alias !slot6.same "sswitch"

alias @slot7 "slot7;!slot7.same;?lastslot;!lastslot;alias ?lastslot is.slot7;alias !same.slot !slot7.same+;alias !slot7.same !same.slot;"
alias is.slot7 "alias !lastslot !slot7;alias !slot7.same sswitch"
alias !slot7 "alias lastslot @slot7"
alias !slot7.same+ "alias ?lastslot null;alias sswitch !slot7.sswitch"
alias !slot7.sswitch "alias !slot7.same sswitch"
alias !slot7.same "sswitch"

alias @slot8 "slot8;!slot8.same;?lastslot;!lastslot;alias ?lastslot is.slot8;alias !same.slot !slot8.same+;alias !slot8.same !same.slot;"
alias is.slot8 "alias !lastslot !slot8;alias !slot8.same sswitch"
alias !slot8 "alias lastslot @slot8"
alias !slot8.same+ "alias ?lastslot null;alias sswitch !slot8.sswitch"
alias !slot8.sswitch "alias !slot8.same sswitch"
alias !slot8.same "sswitch"
Post edited by Unknown User on
What if we crowdfund the Director's Chair?

Comments

  • DawormDaworm Join Date: 2009-06-22 Member: 67900Members Posts: 751
  • MuYeahMuYeah Join Date: 2006-12-26 Member: 59261Members Posts: 610
    It removes the client/server relationship of the lastinv command.
  • GiGaBiTeGiGaBiTe Join Date: 2003-10-07 Member: 21489Members Posts: 1,115 Advanced user
    What's the point of this script? I have BS enabled on my server and lastinv works fine.
    QUOTE (unknown)
    Admiral, why dont we just breach the hull after overriding the automatic hatchlocks closing procedure?

    Last time we did this an onos just put its fat **** inside the hole and lerks just farted a new athmosphere.
    It looked so gross that we decided to never ever do this again.


    My Website
    NS Map Archive
  • locallyunscenelocallyunscene Feeder of Trolls Join Date: 2002-12-25 Member: 11528Members, Constellation Posts: 4,022 Fully active user
    QUOTE (MuYeah @ Sep 26 2009, 10:53 AM) »
    It removes the client/server relationship of the lastinv command.

    Interesting, I didn't know its implementation relied on the server. Looking back I had noticed lastinv wasn't reliable in high ping situations, but I didn't put 1 and 1 together. I ended up focusing on learning fastswitch 1 instead.
    QUOTE (Flayra @ Mar 28 2007, 09:21 PM) »
    It's not an easy balance to achieve, but we do want to make a game that will be both the best competitive game since Starcraft and also one that many people can enjoy casually without being in a clan or an experienced or knowledgeable NS player. That's the goal at least!


    - NS in game name - tilde - My Steam Id Page - .
  • OpprobriousOpprobrious Join Date: 2008-11-17 Member: 65483Members Posts: 118
    Nice work.

    I'll give this a try.
    Invidious | <Gud> server admin | evolvens.com | Opinions expressed here are not necessarily the official positions of evolvens.com
  • SekerSeker Join Date: 2007-03-06 Member: 60259Members Posts: 369
    So this will help in what kind of way ?

    It will switch my weapon even in Highping situations or what ?
Sign In or Register to comment.