View Full Version : Script - what's wrong?
brutt01d
04-20-2008, 05:10 PM
seta sayholdon "clientquickchat botchat/generic/holdonimatechnician; bind 2 $sayenroute"
seta sayenroute "clientquickchat botchat/generic/technicianenroute; bind 2 $sayholdon"
bind "2" "vstr sayholdon" "medic"
As soon as I remove the "medic" thingy the script works. But for all classes of course.
Singh400
04-20-2008, 08:40 PM
Try:
seta sayholdon "clientquickchat botchat/generic/holdonimatechnician; bind 2 $sayenroute"
seta sayenroute "clientquickchat botchat/generic/technicianenroute; bind 2 $sayholdon"
bind "2" "vstr sayholdon" "" "medic"
Also I assume you have the classes contexts setup correctly..
seta g_class_context_technician "tech"
seta g_class_context_medic "medi"
In which case your last line should be:
bind "2" "vstr sayholdon" "" "technician"
not...
bind "2" "vstr sayholdon" "" "medic"
you're mixing contexts, i think this is what you mean:
seta sayholdon "clientquickchat botchat/generic/holdonimatechnician; bind 2 $sayenroute '' technician"
seta sayenroute "clientquickchat botchat/generic/technicianenroute; bind 2 $sayholdon '' technician"
bind 2 "vstr sayholdon" "" technician
brutt01d
04-21-2008, 12:05 AM
Close, but no cigar. It doesn't work. Actually I also thought it's because of the missing ' ' signs in the second part of scripts... Also in etconfig the game says that sayholdon and sayenrote are for default, not for medic class. But now i'm not sure anymore. I now think it's simply impossible to bind vstr with context.
@Singh: sorry, was my typo here in the post, in the config it is correctly technician, not medic in the 3rd line.
Also, i do not have any stuff like
class seta g_class_context_medic "medi"
since they are not necessary. The game has already them built in as standard class names, e.g. technician, covertops, etc... One only needs the custom g_class_contexts for vehicles, to distinguish them more individually.
Singh400
04-21-2008, 12:19 AM
@Singh: sorry, was my typo here in the post, in the config it is correctly technician, not medic in the 3rd line.
Also, i do not have any stuff like
class seta g_class_context_medic "medi"
since they are not necessary. The game has already them built in as standard class names, e.g. technician, covertops, etc... One only needs the custom g_class_contexts for vehicles, to distinguish them more individually.Yeah thats just what I use for my class selection script. Makes it much easier for me when I'm changing things around. First four letters of every of class.
Close, but no cigar. It doesn't work. Actually I also thought it's because of the missing ' ' signs in the second part of scripts... Also in etconfig the game says that sayholdon and sayenrote are for default, not for medic class. But now i'm not sure anymore. I now think it's simply impossible to bind vstr with context.
the one i posted works fine, i tried it myself. when pressing 2 as a technician it alternates between the 2 different voice chats. works fine. unless you are trying to do something different?
brutt01d
04-21-2008, 04:18 AM
Strange... i'll give it another try.
Natural-Causes
04-21-2008, 04:29 AM
This is what I use, simplistic, and in the same order of classes (left to right) as the limbo menu
bind "rightshift" "kill"
bind "8" "clientteam strogg; ClientClass Aggressor 2"
bind "9" "clientteam strogg; ClientClass Technician 0"
bind "0" "clientteam strogg; ClientClass Contructor 0"
bind "-" "clientteam strogg; ClientClass Oppressor 0"
bind "=" "clientteam strogg; ClientClass Infiltrator 0"
bind "n" "ClientTeam GDF; ClientClass Soldier 2"
bind "m" "ClientTeam GDF; ClientClass Medic 0"
bind "," "ClientTeam GDF; ClientClass Engineer 0"
bind "." "ClientTeam GDF; ClientClass Fieldops 0"
bind "/" "ClientTeam GDF; ClientClass Covertops 0"
Szakalot
04-21-2008, 06:58 AM
This is what I use, simplistic, and in the same order of classes (left to right) as the limbo menu
bind "rightshift" "kill"
bind "8" "clientteam strogg; ClientClass Aggressor 2"
bind "9" "clientteam strogg; ClientClass Technician 0"
bind "0" "clientteam strogg; ClientClass Contructor 0"
bind "-" "clientteam strogg; ClientClass Oppressor 0"
bind "=" "clientteam strogg; ClientClass Infiltrator 0"
bind "n" "ClientTeam GDF; ClientClass Soldier 2"
bind "m" "ClientTeam GDF; ClientClass Medic 0"
bind "," "ClientTeam GDF; ClientClass Engineer 0"
bind "." "ClientTeam GDF; ClientClass Fieldops 0"
bind "/" "ClientTeam GDF; ClientClass Covertops 0"
im sorry but i fail to see how is that in any way connected to the problem of scripting a vsay for a context class.
Dr_Driller
04-21-2008, 07:28 AM
try like this, it should work :
set sayholdon "clientquickchat botchat/generic/holdonimatechnician; bind 2 $sayenroute '' 'medic'"
set sayenroute "clientquickchat botchat/generic/technicianenroute; bind 2 $sayholdon '' 'medic'"
bind 2 $sayholdon "" "medic"
(and don't forget that medic context is only for gdf..)
Rapier
04-21-2008, 08:48 AM
seta sayholdon "clientquickchat botchat/generic/holdonimatechnician; bind 2 $sayenroute"
seta sayenroute "clientquickchat botchat/generic/technicianenroute; bind 2 $sayholdon"
bind "2" "vstr sayholdon" "medic"
As soon as I remove the "medic" thingy the script works. But for all classes of course.
First off you are using the technician binds, you cant use those when you are a medic :).
GDF:
clientquickchat botchat/generic/holdonimamedic
clientquickchat botchat/generic/medicenroute
STROGG:
clientquickchat botchat/generic/holdonimatechnician
clientquickchat botchat/generic/technicianenroute
seta saymed "vstr sayholdon"
seta sayholdon "clientquickchat botchat/generic/holdonimamedic; set saymed vstr sayenroute"
seta sayenroute "clientquickchat botchat/generic/technicianenroute; set saymed vstr sayholden"
bind "2" "vstr saymed" "" "medic"
Try this one, its the GDF version. If you want to create a Strogg version just replace all medic words for technician. You can use the same button.
The "" between saymed and medic adds a functional key like ALT. If you do you have to hold ALT and press 2 in order to activate the bind. I got the regular binds to F1 but I got the TK revive bind to SHIFT F1 and same for medpacks on F2 and supplies dropped on SHIFT F2. Saves you 2 keys :). (tk revive and supply drops arent that much used during fights, usually before or after).
brutt01d
04-21-2008, 04:45 PM
As I said to Singh, it was a typo there with a medic. Of course it's a technician. Still the script didn't work. Now I'll try these two last versions of you and dr_driller.
brutt01d
04-21-2008, 04:58 PM
So this has finally worked (10x@Rapier):
seta saytech "vstr sayholdon"
seta sayholdon "clientquickchat botchat/generic/holdonimatechnician; set saytech vstr sayenroute"
seta sayenroute "clientquickchat botchat/generic/technicianenroute; set saytech vstr sayholdon"
bind "2" "vstr saytech" "" "technician"
seta saymed "vstr sayholdon"
seta sayholdon "clientquickchat botchat/generic/holdonimamedic; set saymed vstr sayenroute"
seta sayenroute "clientquickchat botchat/generic/medicenroute; set saymed vstr sayholdon"
bind "2" "vstr saymed" "" "medic"
Jobbe
04-28-2008, 08:09 PM
this is what I use
//medic vsay binds
bind "1" "clientquickchat botchat/generic/holdonimamedic" "CTRL" "medic"
bind "2" "clientquickchat botchat/generic/medicenroute" "CTRL" "medic"
//technician vsay binds
bind "1" "clientquickchat botchat/generic/holdonimatechnician" "CTRL" "technician"
bind "2" "clientquickchat botchat/generic/technicianenroute" "CTRL" "technician"
Rapier
04-29-2008, 10:53 AM
Which makes you waste a key.... the bind I posted uses only 1 key considering both vsay's are practicly saying the same thing (that you are on your way).
Verticae
04-29-2008, 11:38 AM
bind "2" "_teamvoice" "" "default"
You noob. :p
brutt01d
04-29-2008, 12:55 PM
bind "2" "_teamvoice" "" "default"
You noob. :p
that's for horizontal and vertical lamers, you...lamer!
Rapier
04-29-2008, 01:31 PM
What does it do? :')
DugDanger
04-29-2008, 05:19 PM
i use
seta saymed "vstr saymedicr"
seta saymedicr "clientquickchat botchat/generic/medicenroute; set saymed vstr sayhmedic"
seta sayhmedic "clientquickchat botchat/generic/holdonimamedic; set saymed vstr saymedicr"
bind "LEFTARROW" "vstr saymed" "CTRL" "medic"
seta saytech "vstr saytechnr"
seta saytechnr "clientquickchat botchat/generic/holdonimatechnician; set saytech vstr sayhtechn"
seta sayhtechn "clientquickchat botchat/generic/technicianenroute; set saytech vstr saytechnr"
bind "LEFTARROW" "vstr saytech" "CTRL" "technician"
think i might of blagged it from somone else
I use ctrl as duck, and the arrow keys as general vsays then when i press duck they become class relevant vsays.