All pastes #894515 Raw Edit

Someone

public text v1 · immutable
·published 2008-02-07 00:39 UTC
rendered paste body
N@Fighter Control System
I@W S A D Shift Space Active
O@MultB FP MultR MultP
interval(50)
clk() -> Clock = ( Clock == 3 ? 1 : Clock + 1);
MultB = 1
FP == 1.3 -> FP = 1;
W -> Pitch = Pitch + 0.1;
S -> Pitch = Pitch - 0.1;
A -> Roll = Roll + 0.1;
D -> Roll = Roll - 0.1;
clk() & Active & Clock == 1 -> 
Pitch = (Pitch > 0 ? Pitch - 0.1 : (Pitch < 0 ? Pitch + 0.1 : 0))
Roll = (Roll > 0 ? Roll - 0.1 : (Roll < 0 ? Roll + 0.1 : 0))
;
Active & ~Active -> FP = 0.4;
Space & ~Space -> FP = (FP == 0.4 ? 1 : 0.4);
Shift -> FP = 1.3;
!Active ->
Pitch = 0
Roll = 0
MultB = 0.1
FP = 0;
Pitch = (Pitch > 1 ? 1 : (Pitch < -1 ? -1 : Pitch))
Roll = (Roll > 1 ? 1 : (Roll < -1 ? -1 : Roll))
MultR = Roll
MultP = Pitch