Log in to reply
 

Editing airplane pilot seating position and animation


  • MODERATOR

    I mean the model of the person, how can I adjust where he puts his hands?

    How can I moved the player model backwards a bit?

    When I reverse the jet the player does a strange dip forwords and to the left side... I I prefer no movement at all or maybe just a small head turn left or right.


  • MODERATOR

    @DarthPungz i usually do this in zmodeler 3. but vehicles meta has seat options. you should ask @Elope he is researching these things , these days.


  • MODERATOR

    @FoxtrotDelta

    I think the vehicle meta only changes first person view camera location not actual player model location but I could be wrong.


  • MODERATOR

    @DarthPungz besides camera there are seat off sets available as well. i never edited them though.



  • @DarthPungz what Layout is the plane currently using in vehicles.meta?


  • MODERATOR

    @SkylineGTRFreak

    <modelName>f5adv</modelName>
    <txdName>f5adv</txdName>
    <handlingId>f5adv</handlingId>
    <gameName>f5adv</gameName>
    <vehicleMakeName />
    <expressionDictName>null</expressionDictName>
    <expressionName>null</expressionName>
    <animConvRoofDictName>null</animConvRoofDictName>
    <animConvRoofName>null</animConvRoofName>
    <animConvRoofWindowsAffected />
    <ptfxAssetName>null</ptfxAssetName>
    <audioNameHash>LAZER</audioNameHash>
    <layout>LAYOUT_PLANE_MAMMATUS</layout>
    <coverBoundOffsets>STANDARD_COVER_OFFSET_INFO</coverBoundOffsets>
    <explosionInfo>EXPLOSION_INFO_DEFAULT</explosionInfo>
    <scenarioLayout />
    <cameraName>FOLLOW_LAZER_CAMERA</cameraName>
    <aimCameraName>PLANE_AIM_CAMERA</aimCameraName>
    <bonnetCameraName>FIGHTER_BONNET_CAMERA</bonnetCameraName>
    <povCameraName>LAZER_POV_CAMERA</povCameraName>
    <FirstPersonDriveByIKOffset x="0.000000" y="0.000000" z="0.000000" />
    <FirstPersonDriveByUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
    <FirstPersonProjectileDriveByIKOffset x="0.000000" y="0.000000" z="0.000000" />
    <FirstPersonProjectileDriveByPassengerIKOffset x="0.000000" y="-0.100000" z="0.000000" />
    <FirstPersonProjectileDriveByRearLeftIKOffset x="0.000000" y="0.000000" z="0.000000" />
    <FirstPersonProjectileDriveByRearRightIKOffset x="0.000000" y="0.000000" z="0.000000" />
    <FirstPersonDriveByLeftPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" />
    <FirstPersonDriveByRightPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" />
    <FirstPersonDriveByRightRearPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" />
    <FirstPersonDriveByLeftPassengerUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
    <FirstPersonDriveByRightPassengerUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
    <FirstPersonMobilePhoneOffset x="0.133000" y="0.283000" z="0.558000" />
    <FirstPersonPassengerMobilePhoneOffset x="0.136000" y="0.223000" z="0.425000" />
    <PovCameraOffset x="0.000000" y="-0.265000" z="0.705000" />
    <PovCameraVerticalAdjustmentForRollCage value="0.000000" />
    <PovPassengerCameraOffset x="0.000000" y="0.000000" z="0.000000" />
    <PovRearPassengerCameraOffset x="0.000000" y="0.000000" z="0.000000" />
    <vfxInfoName>VFXVEHICLEINFO_PLANE_VULKAN</vfxInfoName>
    <shouldUseCinematicViewMode value="true" />
    <shouldCameraTransitionOnClimbUpDown value="false" />
    <shouldCameraIgnoreExiting value="false" />
    <AllowPretendOccupants value="false" />
    <AllowJoyriding value="true" />
    <AllowSundayDriving value="true" />
    <AllowBodyColorMapping value="true" />
    <wheelScale value="0.200100" />
    <wheelScaleRear value="0.117600" />
    <dirtLevelMin value="0.000000" />
    <dirtLevelMax value="0.000000" />
    <envEffScaleMin value="0.200000" />
    <envEffScaleMax value="0.400000" />
    <envEffScaleMin2 value="0.300000" />
    <envEffScaleMax2 value="0.500000" />
    <damageMapScale value="0.250000" />
    <damageOffsetScale value="0.250000" />
    <diffuseTint value="0x00FFFFFF" />
    <steerWheelMult value="1.000000" />
    <HDTextureDist value="5.000000" />
    <lodDistances content="float_array">
    25.000000
    35.000000
    100.000000
    200.000000
    1000.000000
    1000.000000
    </lodDistances>
    <minSeatHeight value="1.300" />
    <identicalModelSpawnDistance value="20" />
    <maxNumOfSameColor value="10" />
    <defaultBodyHealth value="1000.000000" />
    <pretendOccupantsScale value="1.000000" />
    <visibleSpawnDistScale value="1.500000" />
    <trackerPathWidth value="2.000000" />
    <weaponForceMult value="1.000000" />
    <frequency value="100" />
    <swankness>SWANKNESS_4</swankness>
    <maxNum value="999" />
    <flags>FLAG_NO_BOOT FLAG_HAS_LIVERY FLAG_DRIVER_NO_DRIVE_BY FLAG_DONT_SPAWN_IN_CARGEN FLAG_DONT_SPAWN_AS_AMBIENT FLAG_HEADLIGHTS_ON_LANDINGGEAR FLAG_BLOCK_FROM_ATTRACTOR_SCENARIO FLAG_DONT_TIMESLICE_WHEELS FLAG_DISABLE_WEAPON_WHEEL_IN_FIRST_PERSON FLAG_USE_WEAPON_WHEEL_WITHOUT_HELMET FLAG_USE_PILOT_HELMET</flags>
    <type>VEHICLE_TYPE_PLANE</type>
    <plateType>VPT_NONE</plateType>
    <dashboardType>VDT_LAZER</dashboardType>
    <vehicleClass>VC_PLANE</vehicleClass>
    <wheelType>VWT_SPORT</wheelType>
    <trailers />
    <additionalTrailers />
    <drivers>
    <Item>
    <driverName>S_M_M_Marine_02</driverName>
    <npcName />
    </Item>
    </drivers>
    <extraIncludes />
    <doorsWithCollisionWhenClosed>
    <Item>VEH_EXT_DOOR_DSIDE_F</Item>
    </doorsWithCollisionWhenClosed>
    <driveableDoors />
    <bumpersNeedToCollideWithMap value="false" />
    <needsRopeTexture value="false" />
    <requiredExtras />
    <rewards />
    <cinematicPartCamera>
    <Item>WINGTIP_LEFT_CAMERA</Item>
    <Item>WINGTIP_RIGHT_CAMERA</Item>
    <Item>LAZER_TAIL_RIGHT_CAMERA</Item>
    </cinematicPartCamera>
    <NmBraceOverrideSet />
    <buoyancySphereOffset x="0.000000" y="0.000000" z="0.000000" />
    <buoyancySphereSizeScale value="1.000000" />
    <pOverrideRagdollThreshold type="NULL" />
    <firstPersonDrivebyData>
    <Item>STD_FRONT_LEFT</Item>
    </firstPersonDrivebyData>
    </Item>
    </InitDatas>

    <txdRelationships>



  • @DarthPungz Making changes in vehiclelayouts.meta can also change seating position and subsequently, the hands position.

    I had a file for RHD vehicles that caused the hands to be in the wrong position with a high seating position. It was because it was using the LOW seat position,...when I changed it to the STANDARD seat position, the whole position of the player changed and the hands appeared on the wheel.

    That file also determines what animation sets are used in a vehicle but I don't know much about which do what.

    The items marked as game definitions in this section, seem to be the ones that control how the player sits in the vehicle. Not sure if there is a HIGH version of this but both result in different hand positions relative to the wheel.

    <Item>
    	<SeatInfo ref="SEAT_LOW_FRONT_LEFT" /> <----- This is a game definition
    	<SeatAnimInfo ref="SEAT_ANIM_LOW_RHD_FRONT_LEFT" /> <----- This is a section defined by me in this file
    </Item>
    
    <Item>
    	<SeatInfo ref="SEAT_STANDARD_FRONT_LEFT" /> <----- This is a game definition
    	<SeatAnimInfo ref="SEAT_ANIM_STANDARD_RHD_FRONT_LEFT" /> <----- This is a section defined by me in this file
    </Item>

  • MODERATOR

    @LeeC2202 I didn't see those sections in this vehicle meta, is it something I need to add?



  • @DarthPungz vehiclelayouts.meta

    You have to make one of them and that appears to be a bit of a handful to create. I modified existing ones for my RHD fixes, making one from scratch is probably tricky.


  • MODERATOR

    @LeeC2202 So I should make one custom for my add-on package then.

    Unless someone has a simpler solution I will find another mod that has this structure to use as a reference.

    Ty Professor!



  • @DarthPungz What I would be tempted to do, is build one based on the data for the vanilla vehicle your addon was based on and then see what seats are used and try changing them to alternate types.

    This is your key line:

    <layout>LAYOUT_PLANE_MAMMATUS</layout>

    You need to find the layout that matches that and then work back through the sections it references as parts of that layout.


  • MODERATOR

    @LeeC2202 I will get to this tomorrow, hopefully I can get this figured out, finalize my textures and release the "F-5E USMC/US Navy Adversary Pack" tomorrow... Otherwise it will have to wait until next week.



  • @DarthPungz Here's a starting point for you

    <Item type="CVehicleLayoutInfo">
      <Name>LAYOUT_PLANE_MAMMATUS</Name>
      <Seats>
        <Item>
          <SeatInfo ref="SEAT_STANDARD_FRONT_LEFT" />
          <SeatAnimInfo ref="SEAT_ANIM_PLANE_MAMMATUS_FRONT_LEFT" />
        </Item>
        <Item>
          <SeatInfo ref="SEAT_STANDARD_FRONT_RIGHT" />
          <SeatAnimInfo ref="SEAT_ANIM_PLANE_MAMMATUS_FRONT_RIGHT" />
        </Item>
        <Item>
          <SeatInfo ref="SEAT_STANDARD_REAR_LEFT" />
          <SeatAnimInfo ref="SEAT_ANIM_PLANE_MAMMATUS_REAR_LEFT" />
        </Item>
        <Item>
          <SeatInfo ref="SEAT_STANDARD_REAR_RIGHT" />
          <SeatAnimInfo ref="SEAT_ANIM_PLANE_MAMMATUS_REAR_RIGHT" />
        </Item>
      </Seats>
      <EntryPoints>
        <Item>
          <EntryPointInfo ref="ENTRY_POINT_STANDARD_FRONT_LEFT" />
          <EntryPointAnimInfo ref="ENTRY_POINT_ANIM_PLANE_MAMMATUS_FRONT_LEFT" />
        </Item>
        <Item>
          <EntryPointInfo ref="ENTRY_POINT_STANDARD_FRONT_RIGHT" />
          <EntryPointAnimInfo ref="ENTRY_POINT_ANIM_PLANE_MAMMATUS_FRONT_RIGHT" />
        </Item>
        <Item>
          <EntryPointInfo ref="ENTRY_POINT_PLANE_MAMMATUS_MP_WARP_LEFT" />
          <EntryPointAnimInfo ref="ENTRY_POINT_ANIM_PLANE_MAMMATUS_MP_WARP_LEFT" />
        </Item>
        <Item>
          <EntryPointInfo ref="ENTRY_POINT_PLANE_MAMMATUS_MP_WARP_RIGHT" />
          <EntryPointAnimInfo ref="ENTRY_POINT_ANIM_PLANE_MAMMATUS_MP_WARP_RIGHT" />
        </Item>
      </EntryPoints>
      <LayoutFlags>StreamAnims DisableJackingAndBusting UseFinerAlignTolerance</LayoutFlags>
      <BicycleInfo ref="NULL" />
      <HandsUpClipSetId>busted_vehicle_std</HandsUpClipSetId>
      <SteeringWheelOffset x="0.000000" y="0.350000" z="0.320000" />
    </Item>

  • MODERATOR

    @LeeC2202 Ty again bud!



  • I would call it something else from mammatus though or else you screw up the default Mammuts handling. Easiest would be to edit tje position in ZModeler though. Contrary to cars you can also set the hand positions in ZM for planes.


  • MODERATOR

    @SkylineGTRFreak is this something that you might be able to make time for? I know you are a busy bee and you have already helped me so so much...


  • MODERATOR

    @SkylineGTRFreak zm3 would be easier


  • MODERATOR

    I cannot get the model of the player to move, I have changed some things a few times in the vehicleshandling .meta but the player model just doesn't want to scoot back so that his back rests against the seat back.

    He still kept doing that lame lean to the left for reversing.. his head clips outside of the jet a bit.

    I dont care so much about his hands because you dont really see them in first person view.

    alt text

    alt text


  • MODERATOR

    @DarthPungz wah man awesome shots, and who ever made this model, you can request them to change the position for you in zmodeler 3. it's like 5 min max job.


  • MODERATOR

    @DarthPungz fixed hands on wheels, seating position and wheels bug.

    alt text
    alt text
    alt text


  • MODERATOR

    @FoxtrotDelta Thank you for your kind donation of time and skill my friend! I see your orange toy in the background :)


  • MODERATOR

    @DarthPungz

    there you go, hand's on wheel fixed. plus seating position as well.
    alt text

    haha. yea that Toy was for a kid, now i plan to use it in youtube videos :D


  • MODERATOR

    Yay! Sitting back with his hands on the stick! Thank you @FoxtrotDelta :) You made my day man!!! Really I never would have thought someone could do so much so quickly!

    alt text

    Thank you also for fixing the flickering tire/hub problem!!!

    AND

    For adding these awesome lights that retract with the landing gears :)

    alt text

    alt text


  • MODERATOR


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.