Forums


  • Use the up arrow key to toggle between points, down arrow key to select. Feel free to ask questions


    How can I use this in my config?
    In two ways.



    1) Create an empty file, name it as you want, but the file extension must be .cfg and paste the above code into it. Once in the game, open the console and execute the script with /exec yourconfig.cfg where yourconfig.cfg is the name of your config file

    2) Open your existing config file and at the end of the file, paste the above code


    May I bind different keys than UPARROW and DOWNARROW?

    You can bind different keys if UPARROW and DOWNARROW are taken, but you will always need two different keys. If you are unsure if anything is bound to UPARROW and DOWNARROW keys, open the console and type /bind uparrow or /bind downarrow. If you get value "" then the key is free to use, otherwise something else is bound to the key.



    What about colors?

    Feel free to change color codes, will not affect the functionality at all.




    unbind UPARROW;

    unbind DOWNARROW;



    bind UPARROW "vstr toggleSpawn";
    bind DOWNARROW "vstr newSpawn";
    set toggleSpawn "vstr setSpawn1";
    set newSpawn "vstr spawn6";



    set setSpawn0 "echo ^dDefault Spawn selected;set toggleSpawn vstr setSpawn1;set newSpawn vstr spawn0";
    set setSpawn1 "echo ^dSpawn 1 Selected;set toggleSpawn vstr setSpawn2;set newSpawn vstr spawn1";
    set setSpawn2 "echo ^dSpawn 2 Selected;set toggleSpawn vstr setSpawn3;set newSpawn vstr spawn2";
    set setSpawn3 "echo ^dSpawn 3 Selected;set toggleSpawn vstr setSpawn4;set newSpawn vstr spawn3";
    set setSpawn4 "echo ^dSpawn 4 Selected;set toggleSpawn vstr setSpawn5;set newSpawn vstr spawn4";
    set setSpawn5 "echo ^dSpawn 5 Selected;set toggleSpawn vstr setSpawn6;set newSpawn vstr spawn5";
    set setSpawn6 "echo ^dSpawn 6 Selected;set toggleSpawn vstr setSpawn0;set newSpawn vstr spawn6";



    set spawn0 "setspawnpt 0;say_team ^ASpawn at ^ODefault (0)";
    set spawn1 "setspawnpt 1;say_team ^ASpawn at ^O1";
    set spawn2 "setspawnpt 2;say_team ^ASpawn at ^O2";
    set spawn3 "setspawnpt 3;say_team ^ASpawn at ^O3";
    set spawn4 "setspawnpt 4;say_team ^ASpawn at ^O4";
    set spawn5 "setspawnpt 5;say_team ^ASpawn at ^O5";
    set spawn6 "setspawnpt 6;say_team ^ASpawn at ^O6";
     

Moderator(s): {PRZ}Gavrila