boki Posted May 2, 2025 Posted May 2, 2025 (edited) Today our member and my friend @Pear asked me if I could make a config for him - spawn selector but only with two keys used. The result is below, use at your own risk ? Use the up arrow key to toggle between points, down arrow key to select. Feel free to ask questions 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"; 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. Edited May 2, 2025 by boki 1 1 Quote
maecraes Posted October 4, 2025 Posted October 4, 2025 On 5/2/2025 at 11:42 AM, boki said: Today our member and my friend @Pear asked me if I could make a config for him - spawn selector but only with two keys used. The result is below, use at your own risk ? Use the up arrow key to toggle between points, down arrow key to select. Feel free to ask questions 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"; 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. I'm going to try this out. The number of times I've put myself spec by trying to change spawns when the server is full it way too many times haha! 2 Quote
Leader RedBaird Posted October 6, 2025 Leader Posted October 6, 2025 On 10/4/2025 at 10:13 AM, maecraes said: put myself spec by trying to change spawns when the server is full it way too many times haha! I have done that by trying to change classes when Jay#1 teams are full at 27 x 27. The question is, does pressing the L (=Limbo) key put us to spec or is it making the changes? I shall have to remember to just press the L key next time to see. 1 Quote
maecraes Posted October 6, 2025 Posted October 6, 2025 2 hours ago, RedBaird said: I have done that by trying to change classes when Jay#1 teams are full at 27 x 27. The question is, does pressing the L (=Limbo) key put us to spec or is it making the changes? I shall have to remember to just press the L key next time to see. I think it's once you press ok and accept a change from the limbo screen, whether that's a class change or spawn change. I could be not remembering it correctly though. I'll see next time it's full what happens 2 Quote
Dropz Posted October 6, 2025 Posted October 6, 2025 3 minutes ago, maecraes said: I think it's once you press ok and accept a change from the limbo screen, whether that's a class change or spawn change. I could be not remembering it correctly though. I'll see next time it's full what happens For what ive experience i think its also after uve made changes and pressed ok then u get thrown to spec. 1 Quote
boki Posted October 7, 2025 Author Posted October 7, 2025 I do not use this script, since I am using direct binds for each spawn from 0 to 6. Hence, I can't tell you what will happen if you use it when the server is full. But would appreciate the feedback, though. Quote
maecraes Posted October 9, 2025 Posted October 9, 2025 On 10/6/2025 at 9:25 PM, boki said: I do not use this script, since I am using direct binds for each spawn from 0 to 6. Hence, I can't tell you what will happen if you use it when the server is full. But would appreciate the feedback, though. Hi Boki. Appreciate you putting this together and sharing it. I tried adding this to my config per method #2, but wasn't able to get anything to happen when I used the up or down arrow keys after saving to my config. I also tried binding this to the KP arrows in case that made a difference, but same result. I tried pasting without any spaces, and exactly as formatted in the message. Any ideas what I could be doing wrong? 1 Quote
boki Posted October 10, 2025 Author Posted October 10, 2025 (edited) 11 hours ago, maecraes said: Hi Boki. Appreciate you putting this together and sharing it. I tried adding this to my config per method #2, but wasn't able to get anything to happen when I used the up or down arrow keys after saving to my config. I also tried binding this to the KP arrows in case that made a difference, but same result. I tried pasting without any spaces, and exactly as formatted in the message. Any ideas what I could be doing wrong? before you have used keys for binding, have you checked if keys used for binding are free to use? if this is not the cause, will have to test this again and see what might be the issue. Edited October 10, 2025 by boki Quote
boki Posted October 10, 2025 Author Posted October 10, 2025 @maecraes I just tested the script on the jay1 server and it worked as intended. Please, post the code you used here so I can review it. Quote
maecraes Posted October 11, 2025 Posted October 11, 2025 22 hours ago, boki said: @maecraes I just tested the script on the jay1 server and it worked as intended. Please, post the code you used here so I can review it. Hey Boki. Thanks for checking this out! After some trial and error I did get this working with method 1 of exec'ing the script and not just adding it to my config file. When I pasted it to the config file it would work initially, but then if I quit and came back into the game, everything but the uparrow and downarrow binds from the code would be missing. I added the script to my autoexec.cfg in the ETMain folder and now all appears to be working! 1 Quote
maecraes Posted October 11, 2025 Posted October 11, 2025 On 10/6/2025 at 9:25 PM, boki said: I do not use this script, since I am using direct binds for each spawn from 0 to 6. Hence, I can't tell you what will happen if you use it when the server is full. But would appreciate the feedback, though. Just tried this with server full and it changed spawns and didn't put me to spec 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.