Results 1 to 4 of 4

Thread: Vehicle weapons

  1. #1
    MSgt. Shooter Person
    Join Date
    Jul 2004
    Posts
    445

    Vehicle weapons

    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.

  2. #2
    MSgt. Shooter Person
    Join Date
    Mar 2004
    Posts
    275

    Default

    look at other vehicles with moveable weapons.

  3. #3
    MSgt. Shooter Person
    Join Date
    Jul 2004
    Posts
    61

    Default

    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.

  4. #4
    MSgt. Shooter Person
    Join Date
    Jul 2004
    Posts
    445

    Default

    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.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.