I was doing some casting and after a few matches of furiously clicking between players I wanted to set up some binds to snap to certain players. I tried using spec_player but ran into difficulties with people whose names had spaces in them because I would have to do bind <key> "spec_player "their name"", which requires two sets of quotation marks. So I guess I have two questions:
1. What is the best way to set up binds to spectate certain players?
2. Is there a way to use two sets of quotation marks inside each other like how I was trying to do it?
I was doing some casting and after a few matches of furiously clicking between players I wanted to set up some binds to snap to certain players. I tried using spec_player but ran into difficulties with people whose names had spaces in them because I would have to do bind <key> "spec_player "their name"", which requires two sets of quotation marks. So I guess I have two questions:
1. What is the best way to set up binds to spectate certain players?
2. Is there a way to use two sets of quotation marks inside each other like how I was trying to do it?
also 3. how do i cast haunt without killing myself
also 3. how do i cast haunt without killing myself
Gaming rig is broken so I can't try, but in a lot of programming languages you precede the inner quotes (around "their name") with a backslash. So try:
"spec_player \"their name\""
Sorry if this doesn't work. Worth a shot.
Gaming rig is broken so I can't try, but in a lot of programming languages you precede the inner quotes (around "their name") with a backslash. So try:
"spec_player \"their name\""
Sorry if this doesn't work. Worth a shot.
doesn't work unfortunately, thanks anyway though
doesn't work unfortunately, thanks anyway though
You could try using single quotes and quotation marks, like "spec player 'their name'".
You could try using single quotes and quotation marks, like "spec player 'their name'".
i tried that, doesn't work either :(
i tried that, doesn't work either :(
Use aliases.
alias player1 "Their Name"
bind key "spec_player player1"
:)
Use aliases.
alias player1 "Their Name"
bind key "spec_player player1"
:)
Atmo wrote a program that can set up binds like this for live STVs, though I haven't tried it myself:
http://natf2.com/topics/6320
It'd be cool if there were a similar program to set up binds for STV demos.
Atmo wrote a program that can set up binds like this for live STVs, though I haven't tried it myself:
http://natf2.com/topics/6320
It'd be cool if there were a similar program to set up binds for STV demos.
HazSwagUse aliases.
alias player1 "Their Name"
bind key "spec_player player1"
:)
this didnt work for me, i dont think you can use aliases that way?
that program looks really cool though and i think it's exactly what i'm looking for, thanks nopls
edit: I still would like to know how to do this in general, especially since this program only seems to support 6v6.
[quote=HazSwag]Use aliases.
alias player1 "Their Name"
bind key "spec_player player1"
:)[/quote]
this didnt work for me, i dont think you can use aliases that way?
that program looks really cool though and i think it's exactly what i'm looking for, thanks nopls
edit: I still would like to know how to do this in general, especially since this program only seems to support 6v6.
wakkaedit: I still would like to know how to do this in general, especially since this program only seems to support 6v6.
Based on the sample output ( http://pastebin.com/BYHrHqTq ), the trick that Atmo uses is exec-ing a different cfg file for each bind:
stvkeybinds.cfg
//BLU team binds
bind ctrl +modblu
alias +modblu "exec bluteam"
alias -modblu "undo"
bluteam.cfg
bind Q "exec BLU_Medic; firstperson"
BLU_Medic.cfg
spec_player "Paulo Brandini"
[quote=wakka]
edit: I still would like to know how to do this in general, especially since this program only seems to support 6v6.[/quote]
Based on the sample output ( http://pastebin.com/BYHrHqTq ), the trick that Atmo uses is exec-ing a different cfg file for each bind:
stvkeybinds.cfg
[code]
//BLU team binds
bind ctrl +modblu
alias +modblu "exec bluteam"
alias -modblu "undo"
[/code]
bluteam.cfg
[code]bind Q "exec BLU_Medic; firstperson"[/code]
BLU_Medic.cfg
[code]spec_player "Paulo Brandini"
[/code]
simply put complex binds need quotation while simple ones do not,
examples: bind mouse1 +attack, doesn't require quotations while things like
bind r "toggle r_drawviewmodels 1 0" requires quotation...it isn't possible to quotate inside quotations.
i'm not sure how the spec_Player command operates but you might try not putting quotations around spec_player but rather just the name, bind q spec_player "name name" although i haven't tested it. OH also you might try typing status in console and finding the player's temporary id, it's the number just before their name i believe, it shouldn't be long usually 1 or 2 digits but again it's pure speculation as to if it would actually work...
that bind^ would look like this: bind q "spec_player 13" or w/e :) hope i helped
simply put complex binds need quotation while simple ones do not,
examples: bind mouse1 +attack, doesn't require quotations while things like
bind r "toggle r_drawviewmodels 1 0" requires quotation...it isn't possible to quotate inside quotations.
i'm not sure how the spec_Player command operates but you might try not putting quotations around spec_player but rather just the name, bind q spec_player "name name" although i haven't tested it. OH also you might try typing status in console and finding the player's temporary id, it's the number just before their name i believe, it shouldn't be long usually 1 or 2 digits but again it's pure speculation as to if it would actually work...
that bind^ would look like this: bind q "spec_player 13" or w/e :) hope i helped
>bind r "toggle r_drawviewmodels 1 0" requires quotation...it isn't possible to quotate inside quotations.
for this particular bind you don't actually need the 1 or 0, just an fyi
anyways the trivial way to work around this is with aliases, haven't fully read the thread but it's like this
alias f_w1 "slot1; slot1;"
alias f_w2 "slot2; slot2;"
alias f_w3 "slot3; slot3;"
alias f_w4 "slot4; slot4;"
alias t_scroll "bind mwheelup f_w4; bind mwheeldown f_w5;"
alias ut_scroll "bind mwheelup f_w1; bind mwheeldown f_w2;"
using aliases like that is also the workaround for the fact you can only have one +/- command in a single bind without getting glitches
alias +cjump "+jump;+duck"
alias -cjump "-jump;-duck"
bind z +cjump
>bind r "toggle r_drawviewmodels 1 0" requires quotation...it isn't possible to quotate inside quotations.
for this particular bind you don't actually need the 1 or 0, just an fyi
anyways the trivial way to work around this is with aliases, haven't fully read the thread but it's like this
[code]alias f_w1 "slot1; slot1;"
alias f_w2 "slot2; slot2;"
alias f_w3 "slot3; slot3;"
alias f_w4 "slot4; slot4;"
alias t_scroll "bind mwheelup f_w4; bind mwheeldown f_w5;"
alias ut_scroll "bind mwheelup f_w1; bind mwheeldown f_w2;"[/code]
using aliases like that is also the workaround for the fact you can only have one +/- command in a single bind without getting glitches
[code]alias +cjump "+jump;+duck"
alias -cjump "-jump;-duck"
bind z +cjump[/code]
wareya>bind r "toggle r_drawviewmodels 1 0" requires quotation...it isn't possible to quotate inside quotations.
for this particular bind you don't actually need the 1 or 0, just an fyi
wtf man just use
bindtoggle r r_drawviewmodel
[quote=wareya]>bind r "toggle r_drawviewmodels 1 0" requires quotation...it isn't possible to quotate inside quotations.
for this particular bind you don't actually need the 1 or 0, just an fyi
[/quote]
wtf man just use [code]bindtoggle r r_drawviewmodel[/code]
noplsAtmo wrote a program that can set up binds like this for live STVs, though I haven't tried it myself:
http://natf2.com/topics/6320
It'd be cool if there were a similar program to set up binds for STV demos.
stv demos and / or live servers require access to the game memory for the list of players afaik which means dll injection or something to get a handle on the game engine. I tried to figure it out with Casual but never really understood what he was saying.
http://www.gamedeception.net/threads/24303-External-GetPlayerInfo
[quote=nopls]Atmo wrote a program that can set up binds like this for live STVs, though I haven't tried it myself:
http://natf2.com/topics/6320
It'd be cool if there were a similar program to set up binds for STV demos.[/quote]
stv demos and / or live servers require access to the game memory for the list of players afaik which means dll injection or something to get a handle on the game engine. I tried to figure it out with Casual but never really understood what he was saying.
http://www.gamedeception.net/threads/24303-External-GetPlayerInfo
- ignore this I'm a dumbass -
- ignore this I'm a dumbass -
if you are fine with running the game in insecure mode you could use spec_helper by miek, he uses player ids so weird names shouldnt be a problem https://github.com/miek/spectate_helper_plugin
if you are fine with running the game in insecure mode you could use spec_helper by miek, he uses player ids so weird names shouldnt be a problem https://github.com/miek/spectate_helper_plugin
atmostv demos and / or live servers require access to the game memory for the list of players afaik
for STV demos it might be possible to pull out the player names from the .dem, since those strings are all you need to write the .cfg's. could just be talking out of my ass though.
[quote=atmo]
stv demos and / or live servers require access to the game memory for the list of players afaik [/quote]
for STV demos it might be possible to pull out the player names from the .dem, since those strings are all you need to write the .cfg's. could just be talking out of my ass though.
None of the solutions posted here work anymore :( :( does anyone know how to use player binds ? (when players name has spaces)
None of the solutions posted here work anymore :( :( does anyone know how to use player binds ? (when players name has spaces)
you tried nopls's suggestion? that's the only solution i know of
you tried nopls's suggestion? that's the only solution i know of
have u tried using one set of quotations working inside of just a .cfg file
have u tried using one set of quotations working inside of just a .cfg file