View Full Version : Vehicle weapons
09-09-2004, 12:29 AM
I was wondering if anyone might know how to do this:
A raptor-style vehicle with two weapons, only this time the primary weapon is fixed with no movement, but the secondary weapon has limited pitch and yaw.
Thanks, and if you need to see what I'm talking about then there are two model renders if you follow the bottom link in my sig.
09-09-2004, 08:36 PM
look at other vehicles with moveable weapons.
09-10-2004, 06:32 AM
Yes, it's fully possible. First off, normal raptor's weapons are only limited by pitch. These are the default properties.
UED works in units of ~16400 is 90'. Pitch of 0 is straight ahead, 16400 is directly up, 32800 is behind you and 49200 is below you. So to limit 45' up and 45' down you'd do something like
For limiting yaw you add the lines
and they work in a similar way (these are from the manta's gun code.
09-10-2004, 02:53 PM
wow thanks, Kholonar! I'll have to try that.
It just gets a bit confusing, even though I did look at the other vehicles' weapon codes.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.