Log in to reply

Can anyone stop suicidal pilots?

  • Hey guys, I've been struggling with the suicidal bots. They just keep crashing their planes/helis on purpose. Maybe something that I installed causing that but its really annoying. They just keep crashing and crashing. Is it just me or do you guys have that problem, if so what's the solution?

  • @lasper
    I'm not sure but here's a few ideas anyway:

    Maybe try defaulting 'vehicleaitasks.ymt' to vanilla?

    Specifically these parts:

    <Item type="CTaskVehicleGoToHelicopter__Tunables">
    <slowDistance value="150.0" />
    <maxCruiseSpeed value="250.0" />
    <maxPitchRoll value="1.0" />
    <maxThrottle value="1.0" />
    <leanKp value="0.1" />
    <leanKi value="0.0" />
    <leanKd value="0.05" />
    <yawKp value="1.0" />
    <yawKi value="0.0" />
    <yawKd value="0.05" />
    <throttleKp value="1.0" />
    <throttleKi value="0.0" />
    <throttleKd value="0.1" />
    <whiskerForwardTestDistance value="50.0" />
    <whiskerForwardSpeedScale value="3.0" />
    <whiskerLateralTestDistance value="20.0" />
    <whiskerVerticalTestDistance value="25.0" />
    <whiskerTestAngle value="30.0" />
    <avoidHeadingChangeSpeed value="180.0" />
    <avoidHeadingJump value="30.0" />
    <avoidPitchChangeSpeed value="90.0" />
    <avoidPitchJump value="90.0" />
    <avoidLockDuration value="1.0" />
    <hash_collision_4970624124 value="0.25" />
    <hash_collision_1056893569 value="1.0" />
    <hash_collision_3844241672 value="2.0" />
    <hash_collision_15394816095 value="10.0" />
    <hash_collision_7215765668 value="-0.75" />
    <numHeightmapFutureSamples value="10" />
    <futureHeightmapSampleTime value="1.0" />
    <DistanceXYToUseHeightMapAvoidance value="500.0" />
    <TimesliceMinDistToTarget value="15.0" />
    <TimesliceTimeAfterAvoidanceMs value="5000" />


    <Item type="CTaskVehicleGoToPlane__Tunables">
    <numFutureSamples value="8" />
    <futureSampleTime value="0.5" />
    <maxDesiredAngleYawDegrees value="15.0" />
    <maxDesiredAnglePitchDegrees value="30.0" />
    <maxDesiredAngleRollDegrees value="60.0" />
    <angleToTargetDegreesToNotUseMinRadius value="45.0" />
    <minMinDistanceForRollComputation value="20.0" />
    <maxMinDistanceForRollComputation value="100.0" />
    <maxYaw value="1.0" />
    <maxPitch value="1.0" />
    <maxRoll value="1.0" />
    <maxThrottle value="2.0" />
    <yawKp value="1.0" />
    <yawKi value="0.0" />
    <yawKd value="0.05" />
    <pitchKp value="0.1" />
    <pitchKi value="0.0" />
    <pitchKd value="0.05" />
    <rollKp value="0.1" />
    <rollKi value="0.0" />
    <rollKd value="0.05" />
    <throttleKp value="1.0" />
    <throttleKi value="0.0" />
    <throttleKd value="0.1" />

    Note: Those are the settings I have & they work (no suicide/crashing etc) but they may not be the same as vanilla. Compare what you have to my values (or a default copy of the file) & see if anything pops out :thumbsup:

    Extra: Obviously if you have edited the 'handling.meta' values for planes etc then that might be causing it also. Planes too fast/can't turn enough etc. Might be worth defaulting them also just to see. Make backups etc.
    Also temporarily remove any/all scripts that may be causing it. Rename 'scripts' folder etc just to remove them as a variable.
    Let us know how you get on :thumbsup:

  • @a63nt-5m1th Oh my god, you really solved it, if anyone has that problem and reading this, I can assure you this will work for you. I didn't install any handling.meta or something but my values wasn't same as your's, I dont' know why. Thank you really :)


    Redux? Other mod? Would be nice to pinpoint.

  • @lasper
    Glad you got it working :slight_smile: :thumbsup:

  • @ReNNie Yeah I installed redux but I'm not sure that was the problem because I installed redux like 5 months ago, the problem just popped out of nowhere.

Log in to reply

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