Author |
Message |
BECK General of the Army279757 Points
|
This script will place a list of names under one key (Number Pad HOME/7 key), then each press cycles through them. It prints the current one on the screen and then you press the other key (Number Pad Up/8 key) to set it as your name.
choose any keys you want, this is just what I use
Code: ›
set gamename1 "set nameset set name FIRSTNAME; set nextname vstr gamename2; Echo current name: FIRSTNAME"
set gamename2 "set nameset set name SECONDNAME; set nextname vstr gamename3; Echo current name: SECONDNAME"
set gamename3 "set nameset set name THIRDNAME; set nextname vstr gamename1; Echo current name: THIRDNAME"
set nextname "vstr gamename1"
bind kp_uparrow "vstr nextname"
bind kp_home "+vstr nameset gamename1"
|
NOTE: The last name (gamename3) wraps back to the first name (gamename1). So if you add more, just make sure the last one wraps back to the first and it will continuously cycle.
Also - when setting the name (with kp_home), it will automatically go back to the beginning of the list.
|
Last edited by BECK on Wed Jun 25, 2014 8:19 am; edited 1 time in total |
_________________
|
|
No rating
|
|
Jayd Retired36440 Points
Yellow Cards: 1
|
Why is this not sticky'ed?
|
|
_________________
|
|
No rating
|
|
BECK General of the Army279757 Points
|
It was at one point, but I re-organized all the forums.
|
|
_________________
|
|
No rating
|
|
LuneKnight Retired31257 Points
|
I never bothered with using a name toggle, didnt see a need for it o.o
|
|
_________________
|
|
No rating
|
|
omfgSP IoW Supporter9629 Points
|
Cool script! I think I'm going to adapt this into a simple Team/Class selector (just Engy and Med for me - I am a simple person). I used to have them bound to individual keys, but I've gotten flak during scrims for accidentally switching teams by pressing the wrong button (I was accused of checking their spawn time). Having the confirmation will prevent this from happening again! Does anyone happen to know the numerical identifier for the PPSH? I have no idea how to find that info.
Also, I think you have a typo in your first paragraph. It looks like KP_UPARROW scrolls, whereas KP_HOME confirms the selection.
|
|
_________________
|
|
No rating
|
|
Sir Sux-A-Lot Admin38083 Points
|
I really need to sit down and add these things to my config :/
|
|
_________________ Wu-Tang is for the children
|
|
No rating
|
|
BECK General of the Army279757 Points
|
|
No rating
|
|
Jayd Retired36440 Points
Yellow Cards: 1
|
So why not sticky that one too? They're both equally useful IMO.
|
|
_________________
|
|
No rating
|
|
omfgSP IoW Supporter9629 Points
|
Woah, awesome. I already made one for myself, but maybe I'll just use that one so I can actually select all of the classes =P
|
|
_________________
|
|
No rating
|
|
Jayd Retired36440 Points
Yellow Cards: 1
|
lol probably a good idea.
|
|
_________________
|
|
No rating
|
|
BECK General of the Army279757 Points
|
yeah, will do. If people think they're useful I'll sticky it. I use this one all damn night to pick my classes, much easier
|
|
_________________
|
|
No rating
|
|
ex6tence IoW Supporter1877 Points
|
omfgSP wrote ( View Post): › ! Does anyone happen to know the numerical entifier for the PPSH? I have no idea how to find that info.
. |
I had to sit down and figure thIs out through proccess of elimation starting at 1 (skipping values already designated) as noone seemed to know - not even google. I beleive Its 42 but ill double check my cfg later.
Making your own class selector from scratch will be time consuming and theres so many bad ones to copy paste off the internet. I can send you mine if you wish. Same goes for everyone else who doesn't have one.
Xfire: exsixtence
|
|
|
|
No rating
|
|
ex6tence IoW Supporter1877 Points
|
ex6tence wrote ( View Post): › I beleive Its 42 but ill double check my cfg later. |
I was wrong, 42 is the answer to life - not the ppsh. The value for the ppsh is 39. So for example this is what the string looks like in my config to spawn as allied engineer with ppsh and single pistol;
" team b 2 39 7"
allied team (r=axis)
engineer class
ppsh (8=thompson, 3=mp40 ect)
pistol (37 for akimbos)
|
|
|
|
No rating
|
|
Jayd Retired36440 Points
Yellow Cards: 1
|
Hitchhiker's Guide to the Galaxy reference, nice!
|
|
_________________
|
|
No rating
|
|
|