Bind binds -1 reply

Please wait...

FireDragon100

The Internet ends at GF

50 XP

27th August 2008

0 Uploads

123 Posts

0 Threads

#1 10 years ago

Hi!

Is it possible to bind a bind to a key?

For example

bind i "setforcegrip 1;bind i setforcegrip 2"

That means: if i press i, force grip will be set to 1... if i press it again it will be set to 2...

But it's not working :/ I also tried

bind i "setforcegrip 1;bind i "setforcegrip 2""

Any idea?




SiLink

(JAWA) Leader

50 XP

13th February 2005

0 Uploads

1,663 Posts

0 Threads

#2 10 years ago

Interesting question, I assume it's possible since you can bind almost all commands (I think there's one or two exceptions with rcon)

Try these (They may not work, I'm no expert)

bind i "setforcegrip 1;bind i 'setforcegrip 2'"

or

bind i "setforcegrip 1 ; bind i setforcegrip 2"




Guest

I didn't make it!

0 XP

 
#3 10 years ago

Or,

bind i setforcegrip 1

bind j setforcegrip 2

I don't think the setforce command works with mp, and if you use it in sp, be sure not to use a /slash before the command




The One and Only

I R Scary Eyeball

50 XP

29th January 2004

0 Uploads

4,091 Posts

0 Threads

#4 10 years ago

you need to use the vstr commands (assuming they work in JKA)

I made this set of binds for another Q3 based game, I've not found any need for something so complicated in JKA, but you can try modifying it as necessary. It should be fairly obvious what each thing does. // Full Item Customisation //

bind F5 vstr weaponcycle1 bind F6 vstr armourcycle1 bind F7 vstr backcycle1 bind F8 vstr helmetcycle1

bind F9 "sell weapons;sell upgrades;vstr weaponbuy;vstr armourbuy;vstr backbuy;vstr helmetbuy"

seta brifle "buy rifle" seta bpsaw "buy psaw" seta bshotgun "buy shotgun" seta blgun "buy lgun" seta bmdriver "buy mdriver" seta bchaingun "buy chaingun" seta bprifle "buy prifle" seta bflamer "buy flamer" seta blcannon "buy lcannon"

seta bnoarmour "sell larmour" seta blarmour "buy larmour" seta bbsuit "buy bsuit"

seta bnoback "sell battpack" seta bbattpack "buy battpack" seta bjetpack "buy jetpack"

seta bnohelmet "sell helmet" seta bhelmet "buy helmet"

seta weaponcycle1 "echo ^4Rifle;bind F5 vstr weaponcycle2;set weaponbuy vstr brifle" seta weaponcycle2 "echo ^4Painsaw;bind F5 vstr weaponcycle3;set weaponbuy vstr bpsaw" seta weaponcycle3 "echo ^4Shotgun;bind F5 vstr weaponcycle4;set weaponbuy vstr bshotgun" seta weaponcycle4 "echo ^4Las Gun;bind F5 vstr weaponcycle5;set weaponbuy vstr blgun" seta weaponcycle5 "echo ^4Mass Driver;bind F5 vstr weaponcycle6;set weaponbuy vstr bmdriver" seta weaponcycle6 "echo ^4Chaingun;bind F5 vstr weaponcycle7;set weaponbuy vstr bchaingun" seta weaponcycle7 "echo ^4Pulse Rifle;bind F5 vstr weaponcycle8;set weaponbuy vstr bprifle" seta weaponcycle8 "echo ^4Flamethrower;bind F5 vstr weaponcycle9;set weaponbuy vstr bflamer" seta weaponcycle9 "echo ^4Lucifer Cannon;bind F5 vstr weaponcycle1;set weaponbuy vstr blcannon"

seta armourcycle1 "echo ^2No Armour;bind F6 vstr armourcycle2;set armourbuy vstr bnoarmour" seta armourcycle2 "echo ^2Light Armour;bind F6 vstr armourcycle3;set armourbuy vstr blarmour" seta armourcycle3 "echo ^2Battlesuit;bind F6 vstr armourcycle1;set armourbuy vstr bbsuit"

seta backcycle1 "echo ^3No Backpack;bind F7 vstr backcycle2;set backbuy vstr bnoback" seta backcycle2 "echo ^3Battery Pack;bind F7 vstr backcycle3;set backbuy vstr bbattpack" seta backcycle3 "echo ^3Jetpack;bind F7 vstr backcycle1;set backbuy vstr bjetpack"

seta helmetcycle1 "echo ^1No Helmet;bind F8 vstr helmetcycle2;set helmetbuy vstr bnohelmet" seta helmetcycle2 "echo ^1Helmet;bind F8 vstr helmetcycle1;set helmetbuy vstr bhelmet"




~*Seto*~

Trapped in the interchet

50 XP

20th October 2007

0 Uploads

334 Posts

0 Threads

#5 10 years ago

If you were looking for something to toggle back and forth between forcegrip levels, this should work. Note that these are multiple lines that must be entered:

bind i "vstr forcegrip" seta forcegrip "vstr forcegrip1" seta forcegrip1 "setforcegrip 1;set forcegrip vstr forcegrip2" seta forcegrip2 "setforcegrip 2;set forcegrip vstr forcegrip1"

If you enter this exactly and it doesn't work, then the problem must be with that setforcegrip command, cause I'm not really sure if that works or not.

Oh, looks like The One and Only beat me... :doh:




The One and Only

I R Scary Eyeball

50 XP

29th January 2004

0 Uploads

4,091 Posts

0 Threads

#6 10 years ago

Well yours is more relevant.




FireDragon100

The Internet ends at GF

50 XP

27th August 2008

0 Uploads

123 Posts

0 Threads

#7 10 years ago

The Soleutator;4600079Or,

bind i setforcegrip 1

bind j setforcegrip 2

I don't think the setforce command works with mp, and if you use it in sp, be sure not to use a /slash before the command[/quote]

It works, but I don't want 2 different keys...

SiLink;4600035Interesting question, I assume it's possible since you can bind almost all commands (I think there's one or two exceptions with rcon)

Try these (They may not work, I'm no expert)

bind i "setforcegrip 1;bind i 'setforcegrip 2'"

or

bind i "setforcegrip 1 ; bind i setforcegrip 2"

Didn't work...

[quote=~*Seto*~;4600203]If you were looking for something to toggle back and forth between forcegrip levels, this should work. Note that these are multiple lines that must be entered:

bind i "vstr forcegrip" seta forcegrip "vstr forcegrip1" seta forcegrip1 "setforcegrip 1;set forcegrip vstr forcegrip2" seta forcegrip2 "setforcegrip 2;set forcegrip vstr forcegrip1"

If you enter this exactly and it doesn't work, then the problem must be with that setforcegrip command, cause I'm not really sure if that works or not.

Oh, looks like The One and Only beat me... :doh:

Hmm that also didn't work... :/

But thank you anyway! :)

Of course I set HelpUsObi to 1 ^^ But i think it's impossible :/




The One and Only

I R Scary Eyeball

50 XP

29th January 2004

0 Uploads

4,091 Posts

0 Threads

#8 10 years ago

Put that in a cfg file and execute it ingame, then try it.