View Full Version : Vehicle weapons
legacy-Scot_G
09-09-2004, 12:29 AM
Hello,
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.
legacy--GSF-JohnDoe
09-09-2004, 08:36 PM
look at other vehicles with moveable weapons.
legacy-Kholonar
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.
defaultproperties
{
TeamProjectileClasses(0)=Class'Onslaught.ONSAttack CraftPlasmaProjectileRed'
TeamProjectileClasses(1)=Class'Onslaught.ONSAttack CraftPlasmaProjectileBlue'
MinAim=0.900000
YawBone="PlasmaGunBarrel"
PitchBone="PlasmaGunBarrel"
PitchUpLimit=18000
PitchDownLimit=49153
WeaponFireAttachmentBone="PlasmaGunBarrel"
DualFireOffset=50.000000
RotationsPerSecond=1.200000
FireInterval=0.200000
AltFireInterval=3.000000
FireSoundClass=Sound'ONSVehicleSounds-S.LaserSounds.Laser01'
AltFireSoundClass=Sound'ONSVehicleSounds-S.AVRiL.AvrilFire01'
FireForce="Laser01"
AltFireForce="Laser01"
ProjectileClass=Class'Onslaught.ONSAttackCraftPlas maProjectileRed'
AltFireProjectileClass=Class'Onslaught.ONSAttackCr aftMissle'
AIInfo(0)=(bLeadTarget=True,RefireRate=0.950000)
AIInfo(1)=(bLeadTarget=True,aimerror=400.000000,Re fireRate=0.500000)
Mesh=SkeletalMesh'ONSWeapons-A.PlasmaGun'
}
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
PitchUpLimit=8200
PitchDownLimit=57400
For limiting yaw you add the lines
YawStartConstraint=57344.000000
YawEndConstraint=8192.000000
and they work in a similar way (these are from the manta's gun code.
legacy-Scot_G
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.