Lastinv / Q Key Improvement Binds

Rabid_LlamaRabid_Llama Join Date: 2002-11-02 Member: 4340Members
I got tired of using lastinv (the "q" key) on the alien team and not knowing what weapon I had selected. Also, I got rather irritated by having to select weapons again every time I respawned or evolved (hey, what can I say, I'm picky <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->)

Anyway, I put together a bindset that works just like the lastinv binds, with the exception that it
a) remembers the last two weapons you had selected after you die (heck, even after you exit NS and come back)

and

b) tells you which slot you're selecting, so you don't confuse, say, leap and xenocide.

The slot notification comes up in a box on the bottom of the screen, and that box goes away when you strafe, attack, or jump. There's no good way to do a timer in scripting, so it's the only way I could think to get that box off of the screen.

The script does assume that you have lastinv bound to q, strafe with a and d, jump with spacebar, and attack with mouse1, though, so if you do something else you should change it in the q.cfg file.

Also, the script works for marines and aliens, but only lists the alien weapons when you switch --

Anyway, without any further long-winded explanation, here: <a href='http://home.swbell.net/houston8/rabid_lastinv_script.zip' target='_blank'>http://home.swbell.net/houston8/rabid_last...tinv_script.zip</a>
Extract it to your /ns directory. It'll overwrite your autoexec.cfg, if you have one, which ns does not by default.

Enjoy, feedback is appreciated.

Comments

  • OlljOllj our themepark-stalking nightmare Fade Join Date: 2002-12-12 Member: 10696Members
    Theres a server caused bug on the 3rd alien weapon(s) most times on the fades.
    Is the script immune?
  • Rabid_LlamaRabid_Llama Join Date: 2002-11-02 Member: 4340Members
    <!--QuoteBegin--Ollj+Aug 4 2003, 04:08 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Ollj @ Aug 4 2003, 04:08 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Theres a server caused bug on the 3rd alien weapon(s) most times on the fades.
    Is the script immune? <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    Afraid not -- it just runs slot3 to actually do the picking of the weapons. It's not some client hook or anything, just simple scripting.
Sign In or Register to comment.