PDA

View Full Version : Very Confused


WhizzIK
11-07-2007, 09:39 PM
Hi there I'm trying to understand about context binding in etqw I've posted in a few places but I fear I am explaining what I want to know wrong so ill paste in here what i have done and try to explain

// =====================================
// CLASS BINDS
// =====================================
//STROGG
bind "F11" "clientTeam strogg; ClientClass Medic 1; exec Medic.cfg; addchatline '^3MEDIC CFG LOADED'"
//GDF
bind "F11" "clientTeam gdf; ClientClass Medic 1; exec Medic.cfg; addchatline '^3MEDIC CFG LOADED'" "RIGHTSHIFT"

this is the config i use which relates to all the medic coms
//Medic.cfg
bind "KP_LEFTARROW" "clientquickchat quickchat/self/imtechnician" "" "default"
bind "KP_5" "clientquickchat quickchat/responses/acknowledged" "" "default"
bind "KP_RIGHTARROW" "clientquickchat botchat/generic/technicianenroute" "" "default"
bind "KP_UPARROW" "clientquickchat quickchat/responses/outofrange" "" "default"
bind "KP_SLASH" "clientquickchat quickchat/vehicles/holdvehicle" "" "default"

I have only added 1 class for obvios reasons
the only way i can get what i want to work for each class is to have the above text is in my autoexec.cfg, with a corresponding config for everything i use related to that class ie class spam objective spam ect
The good thing is i like to keep everything on specific keys for instance i like to use KP_RIGHTARROW to spam whatever class i am i also use HOME DELTE END PGUP PGDN for weapons tools for each class i understand how i can use specific weapons and tool binds on certain keys for each class but i cant get my bloody head around the communications side of things
any help would be greatly appreciated

Dirka_Dirka
11-09-2007, 01:16 AM
one thing you might want to do is break up yer configs based on strogg/gdf. i start with:
bind "KP_HOME" "clientTeam strogg; addchatline '^3*^4Strogg^3* ^7Side'; exec strogg.cfg" "" "default"
bind "KP_UPARROW" "clientTeam spectator; addchatline '^3*^4Spectator^3*'; set ccw $nccw; exec noclass.cfg" "" "default"
bind "KP_PGUP" "clientTeam gdf; addchatline '^3*^4GDF^3* ^7Side'; exec gdf.cfg" "" "default"
then in the strogg/gdf configs u can setup the chat msgs per class. the noclass config just unbinds all the keys i use in strogg or gdf. and the ccw/nccw vars are for a spam msg for class/weapon.

so once yer in strogg.cfg you can use strogg specific medic binds, compared to gdf specific medic binds in the gdf.cfg (using the same keys).

Cankor
11-09-2007, 03:09 AM
here's a portion of my autoexec which might help you, it shows and example of using the same keys for similar functions (i.e. calling out what class you are).

//GDF CLASS BINDS
bind "MOUSE4" "useweapon weapon_tool1" "" "engineer" //pliers
bind "MOUSE3" "useweapon weapon_item1" "" "engineer" //mines
bind "KP_HOME" "clientQuickChat quickchat/self/imengineer" "" "engineer"
bind "KP_UPARROW" "clientQuickChat quickchat/self/deploying/apt" "" "engineer"
bind "KP_5" "clientQuickChat quickchat/self/deploying/avt" "" "engineer"
bind "KP_DOWNARROW" "clientQuickChat quickchat/self/deploying/ait" "" "engineer"
bind "KP_INS" "clientQuickChat quickchat/self/imengineer; sayteam Repairing vehicle, do not run me over!!" "" "engineer"
bind "KP_DEL" "clientQuickChat quickchat/self/items/disarmingmines; sayteam Stand back!!" "" "engineer"

bind "MOUSE4" "useweapon weapon_item2" "" "fieldops" //air strike marker
bind "MOUSE3" "useweapon weapon_item1" "" "fieldops" //ammo packs
bind "KP_HOME" "clientQuickChat quickchat/self/imfieldops" "" "fieldops"
bind "KP_UPARROW" "clientQuickChat quickchat/self/deploying/artillery" "" "fieldops"
bind "KP_5" "clientQuickChat quickchat/self/deploying/rockets" "" "fieldops"
bind "KP_DOWNARROW" "clientQuickChat quickchat/self/deploying/hammer" "" "fieldops"
bind "KP_END" "clientQuickChat quickchat/self/items/ammopacksdropped" "" "fieldops"



...


//STROGG CLASS BINDS
bind "MOUSE4" "useweapon weapon_tool1" "" "constructor" //repair drone
bind "MOUSE3" "useweapon weapon_item1" "" "constructor" //mines
bind "KP_HOME" "clientQuickChat quickchat/self/imconstructor" "" "constructor"
bind "KP_UPARROW" "clientQuickChat quickchat/self/deploying/apt" "" "constructor"
bind "KP_5" "clientQuickChat quickchat/self/deploying/avt" "" "constructor"
bind "KP_DOWNARROW" "clientQuickChat quickchat/self/deploying/ait" "" "constructor"
bind "KP_INS" "clientQuickChat quickchat/self/imconstructor; sayteam Repairing vehicle, do not run me over!!" "" "constructor"
bind "KP_DEL" "clientQuickChat quickchat/self/items/disarmingmines; sayteam Stand back!!" "" "constructor"

bind "MOUSE4" "useweapon weapon_item2" "" "oppressor" //violator beacon
bind "MOUSE3" "useweapon weapon_item1" "" "oppressor" //shield
bind "KP_HOME" "clientQuickChat quickchat/self/imfieldops" "" "oppressor"
bind "KP_UPARROW" "clientQuickChat quickchat/self/deploying/railhowitzer" "" "oppressor"
bind "KP_5" "clientQuickChat quickchat/self/deploying/plasmamortar" "" "oppressor"
bind "KP_DOWNARROW" "clientQuickChat quickchat/self/deploying/dmc" "" "oppressor"
bind "KP_INS" "clientQuickChat quickchat/self/items/shielddeployed" "" "oppressor"


...

WhizzIK
11-09-2007, 12:01 PM
So am i right in thinking the vsays are class specific ie if i add this line to my autoexec
bind "KP_5" "clientquickchat quickchat/responses/acknowledged" "" "default"
(the above bound vsay will be used for every class i use due to "default" .. but the 1 below would only be used if my class were fieldops

bind "KP_5" "clientquickchat quickchat/responses/acknowledged" "" "fieldops"
i hope i got this right now god its makin my brain ache

ZaZen.
11-09-2007, 12:18 PM
Yes "default" is all

This bind says hi regardless of your team or class.

bind "f8" "clientquickchat quickchat/global/hi" "" "default" // says hi/greetings

"fieldops" would be when you are playing the fieldops class.

bind "f8" "clientquickchat quickchat/global/hi" "" "fieldops" // says hi/greetings but only if you are a gdf fieldops not an oppressor

unless.. you changed the context name

seta g_class_context_fieldops "artyparty"

bind "f8" "clientquickchat quickchat/global/hi" "" "artyparty" // says hi if you are an artyparty kind of guy.


ZaZen.

WhizzIK
11-09-2007, 02:47 PM
:dance: :dance: the cloud has lifted WH00p WH00p:dance::dance:
oh did i say thank you to you all