Modification help

Artimos Penguidor

New Member
Hey I'm working in the keybinding.cs file and I'm needing a way to change the weapon to the rocket launcher. So if someone could point me in the right direction or just show me the portion of script that would do that I would be very thankful. :)
 

RockeyRex

Legions Developer
client/scripts/hudUtils.cs line 147 has a function that adds visible weapons to your GUI.
Code:
function clientCmdAddVisibleWeapon( %weapon )
It also creates some variables to play around with.

Now client/scripts/keybindings.cs line 366 has a function that attempts to switch to a selected weapon slot.
Code:
function quickSelectWeapon(%weapon)

Enjoy.
 
Top