Key Binds

Check out Death Warrant's Invasion Server
A_Girl_From_Mars
Posts: 8
Joined: Thu Jan 27, 2011 7:41 am

Can someone clever tell me why the following doesn't work please in RPG:

Aliases[36]=(Command="getweapon XWeapons.RocketLauncher",Alias="rocket")
MouseWheelUp=rocket

Thanks in advance of clever answer :P
DW_Bomzin
Site Admin
Posts: 2241
Joined: Mon Dec 26, 2005 12:00 am
Xfire: bomzin
Location: Layton,Utah

Been awhile. But your just trying to get your rocket launcher ?

MouseWheelup=SwitchWeapon 8

Is it eight ? :sdull:
A_Girl_From_Mars
Posts: 8
Joined: Thu Jan 27, 2011 7:41 am

Ahh thanks but if you've got onslaught weapons it alternates each press. I just want rockets!! :sworried:
DW_Ant
DW Clan Member
Posts: 2679
Joined: Sat Jun 21, 2008 11:00 pm
Location: North Carolina

I've asked a similar question awhile ago.
DW_Ant wrote:Is it possible to directly switch to your Avril rather than switching to your rockets before your Avril?
Response is:
Tweakish wrote:Indeed. It requires an .ini change but you need to know the code for the key you want to change it to. Lucky for you im not busy at work atm and googled it.


In System\UT2004.ini:
You can edit in your user.ini file to bind the avril to a key. I use the letter Q so mine is:

Q=getweapon Onslaught.ONSAVRiL

Actually, the whole keybind I have is:

Q=getweapon Onslaught.ONSAVRiL | PipedSwitchWeapon 4

because if I don't have the avril then I want the shock rifle.

What that guy says is stupid. I would NEVER have my shock come second after any weapon...but just incase you want to do that for another weapon.

Source: Settings Bottom of first page, top of second page.
The difference between successful people from others is
not in the lack of strength,
not in the lack of knowledge,
but rather in the lack of will.

FFE466

_________________________
{F}{AH}{CivFR}{XC}{U}{DF}{CJ}{SD}
warhead2
1337 Haxor
Posts: 166
Joined: Tue Nov 10, 2009 9:55 am
Location: Indiana

i believe it don't work in rpg because all weapons are wrapped with RPGWeapon class. you prob have to use the SwitchWeapon 8, but maybe you could pipe two of em together for for better effect. or perhaps make the rox your best weapon so switching to best brings it up.
Warning: Incoming Warhead!!
Wanted on 1000 planets for mass destruction of alien life forms!
DW_Bomzin
Site Admin
Posts: 2241
Joined: Mon Dec 26, 2005 12:00 am
Xfire: bomzin
Location: Layton,Utah

A_Girl_From_Mars wrote:Ahh thanks but if you've got onslaught weapons it alternates each press. I just want rockets!! :sworried:
Just don't press the button again ........ :cheers:

Actually all of my mouse buttons are pipeswitch. Really the way to go.
A_Girl_From_Mars
Posts: 8
Joined: Thu Jan 27, 2011 7:41 am

Great help guys!! BUT......

I've piped switched some weapons but I really need the RPG weapon class for the mine layer 'cos it goes to the gloop gun first everytime :(

getweapon wont work using xweapons.blahblah on your invasion server.

Thanks in advance for more clever answers ;)
Corky
Camper
Posts: 57
Joined: Thu Feb 05, 2009 6:37 pm

am i old fashioned and the only one that uses the wheel still ?
DW_Mobius wrote:Also, the number of kills with one weapon can't be considered an exploit. There is no rule stating you have to use x amount of weapons in a game.
http://clandw.org/forums/11/2248?start=10
warhead2
1337 Haxor
Posts: 166
Joined: Tue Nov 10, 2009 9:55 am
Location: Indiana

unfortunately rpg has weapon structure like below so there is no 'mine layer' wrapper or any weapon specific wrapper so you don't have a weapon class to switch to, you just got generic magic type wrappers for all weapons, with the UT weapon contained in variable like 'ModifiedWeapon'. So unless DW rpg has some specific command for weapon switching u r prob just gunnu have to use piped numeric switch. changing the weapons priorities in ut settings might help.

class RW_Piercing extends RPGWeapon
HideDropDown
CacheExempt;

.....


class RPGWeapon extends Weapon
DependsOn(RPGStatsInv)
config(UT2004RPG)
HideDropDown
CacheExempt;

var Weapon ModifiedWeapon;

...
Warning: Incoming Warhead!!
Wanted on 1000 planets for mass destruction of alien life forms!
A_Girl_From_Mars
Posts: 8
Joined: Thu Jan 27, 2011 7:41 am

wow that is the cleverist answer so far and as a traning programmer I actually understand it. They have been subclassed to death and you would need a bind for each. I dont have enough keys LOL.

Thank You
Post Reply