Jump to content

Home

Alias key binding?!


CaptainSolo_de

Recommended Posts

I want to use this (like in CounterStrike the alias e.g.):

 

-----

alias t_wpns "t_wpns1"

alias t_wpns1 "weapon 1; wait; wait; alias t_wpns t_wpns2;"

alias t_wpns2 "weapon 4; wait; wait; alias t_wpns t_wpns1;"

 

bind "MOUSE4" "t_wpns"

-----

 

But there is no alias known...

Can somebody say me how I can make / change this?!

 

Greetz,

CS

Link to comment
Share on other sites

Originally posted by CaptainSolo_de

I want to use this (like in CounterStrike the alias e.g.):

 

-----

alias t_wpns "t_wpns1"

alias t_wpns1 "weapon 1; wait; wait; alias t_wpns t_wpns2;"

alias t_wpns2 "weapon 4; wait; wait; alias t_wpns t_wpns1;"

 

bind "MOUSE4" "t_wpns"

-----

 

But there is no alias known...

Can somebody say me how I can make / change this?!

 

Greetz,

CS

 

The Q3 engine, and likewise RTCW, JO, and MOH:AA do NOT support aliases.

 

the correct way to do this should be

 

 

set t_wpns1 "weapon 1; wait; wait; vstr t_wpns t_wpns2;"

set t_wpns2 "weapon 4; wait; wait; setv t_wpns t_wpns1;"

set t_wpns " vstr t_wpns1"

bind "MOUSE4" "t_wpns"

 

This assumes the rest of your commands were correct. you realise wait is all of one tick [NOT VERY LONG] you may want to try

using something like wait 50 or wait 100 if you get into using force powers with this stuff.

Link to comment
Share on other sites

This is the right:

 

-----

set t_wpns1 "weapon 1; wait; wait; set t_wpns vstr t_wpns2; echo Laser-Sword seleted"

set t_wpns2 "weapon 6; wait; wait; set t_wpns vstr t_wpns1; echo Secondary weapon selected"

 

set t_wpns "vstr t_wpns1"

 

bind "MOUSE5" "vstr t_wpns"

-----

 

But for better work u must also set this:

 

-----

bind MOUSE4 "weapon 1; set t_wpns vstr t_wpns2"

-----

 

Greetz,

CS

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...