@name EngineTimingSound
@inputs Throttle GPS:vector
@outputs H1 H2 H3 H4 RPM
@persist Rotation A B Q
@trigger 
@model models/props_phx/wheels/magnetic_small_base.mdl
interval(20)
E=entity()
if(RPM>1000){A=0}else{A=Throttle*10}
if(RPM>1000){B=0}else{B=-Throttle*10}
Rotation=entity():bearing(GPS)
if (Rotation>-180&Rotation<0) {H1=A, H3=B} else {H1=B, H3=A}
if (Rotation>-90&Rotation<90) {H2=A, H4=B} else {H2=B, H4=A}
RPM = abs(entity():angVel():yaw()/6)
Q+=sign(RPM-Q)*5
if(first()){E:soundPlay(100,0,"vehicles/airboat/fan_motor_fullthrottle_loop1.wav")}
soundPitch(100,45+Q/4)
