PDA

View Full Version : Trying to understand vehicles



Bret Hart
12-25-2007, 07:49 PM
The main problem I'm trying to figure out is, where does the weapon fire come from in the main vehicle code? Such as UTVehicle_HellBender? Thanks.

aberghage
12-26-2007, 01:59 AM
Bret,
If you take a look at UTVehicle_HellBender_Content you'll see a section beginning with Seats[0]. This section defines the available seats in the vehicle, and links a gun class which provides the control for the weapon the seat uses. In this case it's 'UTVWeap_ShockTurret' for the driver and 'UTVWeap_HellBenderPrimary' for the turret. I recommend UnCodeX for shuffling through the classes to find what you want, it turns class names into hyperlinks to their definition files :-).

HTH
~aberghage

Bret Hart
12-26-2007, 04:23 AM
Thanks alot :)