PDA

View Full Version : Help with a little bind pls :P


chicho
11-01-2007, 10:10 AM
Hi, im new on ETQW so its a little hard for me to do this xD, i think this will help me to start my cfg.
How can i bind Mouse3 for select the medpack or stroyents ( depends on class ), and when ill click again on mouse3 change weapon to main weapon ( Assault Rifle or Lacerator for example), btw sorry for my english but im from spain, thanks

Boumy
11-01-2007, 10:27 AM
Sorry but you can not bind this. :(

Variable begining with "_" (like _weapon0; _run; ...) can only been use in simple bind like
bind MOUSE3 "_weapon0" "" "default"

but when you add another action to this bind, it doesn't work :
bind MOUSE3 "weapon0; addchatline 'Knife'" "" "default" will not work.

Bulld0g
11-01-2007, 10:29 AM
http://4newbies.planetwolfenstein.gamespy.com/ETQW/scripting.php#context

not sure if you make that one its not like w:et where you could make vstr commands. You can toggle most stuff on and off and link commands together.

chicho
11-01-2007, 11:30 AM
ok ty, so i dont know if i can bind mouse4 and mouse5, if yes, can some one can make me a bind for mouse4 use the main weapon ( Assault Rifle or Lacerator for example) and mouse5 the medpack pls? >.< thanks a lot

Boumy
11-01-2007, 12:05 PM
ok ty, so i dont know if i can bind mouse4 and mouse5, if yes, can some one can make me a bind for mouse4 use the main weapon ( Assault Rifle or Lacerator for example) and mouse5 the medpack pls? >.< thanks a lot

Sur :
bind MOUSE4 "_weapon2" "" "default"
bind MOUSE5 "useweapon weapon_tool1" "" "medic"
bind MOUSE5 "useweapon weapon_tool1" "" "technician"

:)

Calculator
11-01-2007, 12:18 PM
However, I guess you'll first have to define those bind contexts:
seta g_class_context_technician "technician"
seta g_class_context_medic "medic"

//Boumy's code here
If you want to add your ammo packs to this, simply add this:
seta g_class_context_fieldops "fieldops"
bind MOUSE5 "useweapon weapon_tool1" "" "fieldops"

Bust_Nak
11-01-2007, 12:30 PM
I wonder if this would work:

seta health_pack "useweapon weapon_tool1; bind MOUSE3 $main_weapon"
seta main_weapon "_weapon2; bind MOUSE3 $health_pack"
bind "MOUSE3" "vstr health_pack"

Boumy
11-01-2007, 12:37 PM
@Calculator

not need to define : it's already define in default cfg so you don't have to define antother time.


I wonder if this would work:

seta health_pack "useweapon weapon_tool1; bind MOUSE3 $main_weapon"
seta main_weapon "_weapon2; bind MOUSE3 $health_pack"
bind "MOUSE3" "vstr health_pack"

It doen'st work because of this line :
seta main_weapon "_weapon2; bind MOUSE3 $health_pack"

It's not a simple bind with "_weapon2". You can't add another action in the same bind.

chicho
11-01-2007, 12:44 PM
I wonder if this would work:

seta health_pack "useweapon weapon_tool1; bind MOUSE3 $main_weapon"
seta main_weapon "_weapon2; bind MOUSE3 $health_pack"
bind "MOUSE3" "vstr health_pack"

i was thinking on somethingl ike that, but anyway thanks to all !! im gonna try those binds ^^

Boumy
11-02-2007, 10:30 AM
I wonder if this would work:

seta health_pack "useweapon weapon_tool1; bind MOUSE3 $main_weapon"
seta main_weapon "_weapon2; bind MOUSE3 $health_pack"
bind "MOUSE3" "vstr health_pack"

When I said, it doesn't work.

But I founded a other solution :
seta health_pack "useweapon weapon_tool1; bind MOUSE3 $main_weapon ;wait 100; bind MOUSE3 $health_pack"
seta main_weapon "_weapon2"
bind "MOUSE3" "vstr health_pack"

With this bind, press 1 time MOUSE3 for defibrilator, 2 time for main weapon.

Enjoy !
:cool: