Results 1 to 6 of 6

Thread: Alternative Inventory Script

  1. #1
    Ranma's Avatar



    Join Date
    Jan 27, 2009
    Last Online
    Aug 13, 2015
    Posts
    565
    Threads
    24



    Alternative Inventory Script


    Just little something I did while digging through stuff. Just put it in autoexec.cfg

    //Quickswitch Menu
    bind p OpenQuick
    Alias OpenQuick "+quickswitch; bind p CloseQuick"
    Alias CloseQuick "-quickswitch; bind p OpenQuick"

    Its a menu they put in but using it the default way makes you hold down the button while using it. When you have it open use numbers 1-5 to switch which slot item you're looking at. It's a faster more seamless way than opening your backpack loadout every time.

  2. #2
    Drunken F00l's Avatar



    Join Date
    Dec 11, 2004
    Last Online
    Jun 11, 2019
    Posts
    5,874
    Threads
    182
    Reputation
    SourceOP Thread


        
    Steam: 76561197968459473 
    Steam join date: Aug 23, 2004
    Steam Level: 56
    Profile Status: Public



    Wait. How is this different than:
    Code:
    bind p +quickswitch

  3. #3
    Ranma's Avatar



    Join Date
    Jan 27, 2009
    Last Online
    Aug 13, 2015
    Posts
    565
    Threads
    24




    If you did that it would just leave the menu open and couldnt close it then. Use of the Alias command lets me easily and legibly reassign p back and forth between the menu open/close call.

  4. #4
    Drunken F00l's Avatar



    Join Date
    Dec 11, 2004
    Last Online
    Jun 11, 2019
    Posts
    5,874
    Threads
    182
    Reputation
    SourceOP Thread


        
    Steam: 76561197968459473 
    Steam join date: Aug 23, 2004
    Steam Level: 56
    Profile Status: Public



    Uhmmm...

    Protip: When releasing a key that is bound to a +command, it executes the -command.

  5. #5
    Ranma's Avatar



    Join Date
    Jan 27, 2009
    Last Online
    Aug 13, 2015
    Posts
    565
    Threads
    24




    Right, I know but thats not the wanted functionality. That way youd have to keep the button held down.

    The point of the script is to make it easier, where you press the button and window opens, press again to close. Makes it easier to use than having to hold down the button.

  6. #6
    Drunken F00l's Avatar



    Join Date
    Dec 11, 2004
    Last Online
    Jun 11, 2019
    Posts
    5,874
    Threads
    182
    Reputation
    SourceOP Thread


        
    Steam: 76561197968459473 
    Steam join date: Aug 23, 2004
    Steam Level: 56
    Profile Status: Public



    Ah, I gotcha now

Tags for this Thread