Profile image

Useful FT AI CODES

1,040 MSLITecnik  7 days ago
Dear UrName
     These are the FT AI Steering Codes simply made by KSB24 and modified by MSLITecnik and also

there are various versions of steering, acceleration, braking system, UI FT Codes (useful FR) and some mo-
nitors made by me so here are the versions hope it works if not just do the original RoyalTechnicalTeam just
made it harder for everyone to understand his FT Code how it works is just the same as KSB nothing chan-
ged. Durd has it that get the bait runaway from the AI then the AI follows you!

AI STEER VERSIONS:

MSLI TECNIK clamp( sin(atan2(XDiff,ZDiff(atan2(XDiff2,ZDiff2-Heading)-YawRate/958(abs(AngleOfSlip)<90) ,-1,1)*(1-2*clamp01(-10+GS*(abs(AngleOfSlip)>90)))
KSB24 clamp( sin(atan2(XDiff,ZDiff)-Heading)-YawRate/95*(abs(AngleOfSlip)<90) ,-1,1)*(1-2*clamp01(-10+GS*(abs(AngleOfSlip)>90)))
RoyalTechnicalTeam clamp( sin(atan2(XDiff ,ZDiff)-Heading)-YawRate/80*(abs(AngleOfSlip)<90)RollRate/80*(abs(RollAngle)<85) ,-1,1)*(1-2*clamp01(-10+GS*(abs(AngleOfSlip)>90)))
Durd clamp( sin(atan2(Steer,Acc)-Heading(TargetHeading-TargetHeading)

AI ACCELERATION VERSIONS:

MSLI TECNIK ( -abs(ZDiff)*cos(repeat(atan2(XDiff,ZDiff)-180,360)atan2(XDiff2,ZDiff2)-180,360)-Heading)-abs(atan2(XDiff,XDiff2)*cos(repeat(atan2(XDiff,ZDiff)-180,360-Heading) )/90
KSB24 ( -abs(ZDiff)*cos(repeat(atan2(XDiff,ZDiff)-180,360)-Heading)-abs(XDiff)*cos(repeat(atan2(XDiff,ZDiff)-180,360)-Heading) )/90

AI ZDiff,XDiff 1

KSB24 ZDiff (((TargetDistance)*cos(TargetElevation))*cos(TargetHeading))-rate(Latitude)*0.5+rate((TargetDistance*cos(TargetElevation))*cos(TargetHeading))*2
KSB24 XDiff (((TargetDistance)*cos(TargetElevation))*sin(TargetHeading))-rate(Longitude)*0.5+rate(((TargetDistance*cos(TargetElevation))*sin(TargetHeading))*2

AI ZDiff,XDiff 2

KSB24 ZDiff (((TargetDistance)*cos(TargetElevation))*cos(TargetHeading))-rate(Latitude)*0.5+rate((TargetDistance*cos(TargetElevation))*cos(TargetHeading))*2
KSB24 XDiff (((TargetDistance)*cos(TargetElevation))*sin(TargetHeading))-rate(Longitude)*0.5+rate(((TargetDistance*cos(TargetElevation))*sin(TargetHeading))*2
MSLI TECNIK ZDiff (((TargetDistance)*cos(TargetElevation))*cos(TargetHeading))-rate(Latitude)*1.5+rate((TargetDistance*cos(TargetElevation))*cos(TargetHeading))*2-rate(Latitude)))
MSLI TECNIK XDiff (((TargetDIstance)*sin(TargetElevation))*cos(TargetHeading))-rate(Longitude)*1.3+rate((TargetDistance*cos(TargetElevation))*cos(TargetHeading))*2-rate(Longitude)))

THANK YOU

  • Log in to leave a comment
  • Profile image
    487 griges

    @MSLITecnik i think the problem is my logic is not logic-ing

    i thought, but it wasnt work
    i tried X=Latitude-targetLatitude and Y=Longitude-targetLongitude
    so to get my plane to target place i tried to use heading= tan(X/Y) but i think i use it wrong

    i only know
    sin=opposite/(the longest line across the 90° corner thing)
    and i use tan to get degree bcs tan=opposite/side

    pls tell me how wrong am i

    10 hours ago
  • Profile image
    1,040 MSLITecnik

    @griges use it simply its logic in simpleplanes :)

    +1 12 hours ago
  • Profile image
    487 griges

    im indonesian, my teacher teach me
    sincostan seccoseccotan
    demisamidesamisamidesade
    basically
    sin=de/mi
    cos=sa/mi and so on
    but idk how to use it in simpleplane
    like, HOW and when lol

    5 days ago
  • Profile image
    1,040 MSLITecnik

    @griges oh thats wat I NOT know

    +1 5 days ago
  • Profile image
    487 griges

    @MSLITecnik i know only that, just like in the vids
    idk how and when if its implemented. to FT

    7 days ago
  • Profile image
    1,040 MSLITecnik

    @griges !Trigonometry

    7 days ago
  • Profile image
    487 griges

    whats with the trigonometry... i cant understand... help
    how does it work, here in SP

    7 days ago