Val{ BRAKE(max=800,step=100) ENGINE(min=-100000,max=100000,step=50000) POWERF(min=-100000,max=100000) HANDLE(default=90,min=65,max=115,step=2.5) HBRAKE(max=400,step=400,disp=0) LIFTL(default=4,min=-7,max=16,step=1) LIFTR(default=4,min=-7,max=16,step=1) RUDDER(min=-15,max=15,step=3) POWERR(min=-100000,max=100000) wingR(default=-15,min=-25,max=-15,step=1) wingL(default=15,min=15,max=25,step=1) wing(default=180,min=160,max=180,step=1) BRAKEF(max=1600) BRAKER(max=1600) BRAKEMR(max=1600) BRAKEML(max=1600) } Key{ 0:ENGINE(step=-5000) 1:ENGINE(step=5000) 2:HANDLE(step=-1),LIFTL(step=1),RUDDER(step=1),LIFTR(step=-1),wingL(step=1) 3:HANDLE(step=1),LIFTR(step=1),RUDDER(step=-1),LIFTL(step=-1),wingR(step=-1) 7:BRAKE(step=40),wing(step=-5) 8:HBRAKE(step=30) } Body{ Core(Color=#FF7F7F){ E:Frame(Color=#80FF00, Angle=LIFTL, Damper=100, Spring=100){ E:Frame(Color=#FF7F7F, Damper=1, Spring=1){ E:Wheel(Name=MR, Angle=60, Damper=100, Spring=100, Brake=BRAKEMR, Option=1){} } E:TrimF(Color=#80FF00, Angle=wingR){ N:Chip(Color=#80FF00, Angle=-wing, Damper=1){} } } W:Frame(Color=#80FF00, Angle=LIFTR, Damper=100, Spring=100){ W:Frame(Color=#FF7F7F, Damper=1, Spring=1){ W:Wheel(Name=LW, Angle=60, Damper=100, Spring=100, Brake=BRAKEML, Option=1){} } W:TrimF(Color=#80FF00, Angle=wingL){ N:Chip(Color=#80FF00, Angle=-wing, Damper=1){} } } S:Frame(Color=#FF7F7F, Angle=8, Damper=100, Spring=100){ S:TrimF(Color=#408000, Angle=-HANDLE, Damper=100, Spring=100){ S:Chip(Color=#408000, Damper=100, Spring=100){ S:Rudder(Color=#408000, Damper=2, Spring=2){ S:Wheel(Name=RW, Angle=RUDDER, Damper=100, Spring=100, Power=-POWERR, Brake=BRAKER, Option=1, Effect=3){} S:Chip(Color=#408000, Angle=RUDDER, Damper=100, Spring=100){} S:TrimF(Color=#408000, Angle=90){ N:Chip(Color=#408000, Angle=-164, Spring=0.1){} } } } } } N:Frame(Color=#FF7F7F, Angle=8, Damper=100, Spring=100){ N:TrimF(Color=#408000, Angle=HANDLE, Damper=100, Spring=100){ N:Chip(Color=#408000, Damper=100, Spring=100){ N:Rudder(Color=#408000, Damper=2, Spring=2){ N:Wheel(Name=FW, Angle=RUDDER, Damper=100, Spring=100, Power=-POWERF, Brake=BRAKEF, Option=1, Effect=3){} N:TrimF(Color=#408000, Angle=90, Damper=100, Spring=100){ N:Chip(Color=#408000, Angle=180, Spring=0.1){} } } } } } } } Script{ slipF=_abs(_wy(FW))/(_abs(_vz(FW))+_abs(_vx(FW))) slipR=_abs(_wy(RW))/(_abs(_vz(RW))+_abs(_vx(RW))) slipMR=_abs(_wy(MR))/(_abs(_vz(MR))+_abs(_vx(MR))) slipML=_abs(_wy(ML))/(_abs(_vz(ML))+_abs(_vx(ML))) v=-(_VZ(0)*3.6) print 0,"SLIPF=",slipF print 1,"SLIPR=",slipR print 2," ",v,"km/h POWERF=ENGINE*(SLIPR/(SLIPF+SLIPR)) POWERR=ENGINE-POWERF brakeF=brake*((SLIPF)/(SLIPF+SLIPR)) brakeR=brake*((SLIPR)/(SLIPF+SLIPR))+Hbrake brakeMR=brake*((SLIPMR)/(SLIPMR+SLIPML)) brakeML=brake*((SLIPML)/(SLIPML+SLIPMR)) }