Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin 0x0, 0x7
- try. loc_15
- pushVar. 0x1, 0x27
- pushInt. script_71
- callFunc 0x1
- loc_15:
- if loc_20
- pushInt. 0x1
- return_6
- loc_20:
- pushVar. 0x1, 0x12
- pushInt. 0x2
- notEquals.
- if loc_35
- pushInt. 0x0
- return_6
- loc_35:
- pushVar. 0x1, 0x18
- pushInt. 0x400000
- bitAnd.
- if loc_72
- pushInt. 0x15
- pushInt. 0x1e00003d #"Action Status-Type1? 61"
- sys. 0x2, 0x16
- if loc_72
- try loc_6C
- pushInt. 0x0 #NOTE: SPEED CALCULATION STARTS HERE:
- pushInt. 0xffffffff
- sys. 0x2, 0x11 #currentXSpeed = var0
- setVar 0x0, 0x0
- pushInt. 0x1
- pushInt. 0xffffffff
- sys. 0x2, 0x11 #currentYSpeed = var1
- setVar 0x0, 0x1
- pushInt. 0x0
- sys. 0x1, 0xf #stickX = var2
- setVar 0x0, 0x2
- pushInt. 0x1
- sys. 0x1, 0xf #stickY = var3
- setVar 0x0, 0x3
- pushVar. 0x0, 0x2
- pushInt. script_13 #get absolute value of stickX
- callFunc 0x1
- pushInt. 0x6
- pushInt. 0x2000002d #roll sensitivity
- sys. 0x2, 0x16
- floatLess.
- pushVar. 0x0, 0x3
- pushInt. script_13 #get absolute value of stickY
- callFunc 0x1
- pushInt. 0x6
- pushInt. 0x20000063 #up/down special sensitivity
- sys. 0x2, 0x16
- floatLess.
- bitAnd. #if stickX and stickY are both inside the sensitivity "zone"
- if loc_40
- pushInt. 0x0
- pushVar. 0x0, 0x2
- pushVar. 0x0, 0x2
- multf.
- pushVar. 0x0, 0x3
- pushVar. 0x0, 0x3
- multf.
- addf.
- sys. 0x2, 0xa #magnitude of stick displacement
- setVar 0x0, 0x4
- pushVar. 0x0, 0x2
- pushVar. 0x0, 0x4
- divf.
- setVar 0x0, 0x5 #X value of unit vector
- pushVar. 0x0, 0x3
- pushVar. 0x0, 0x4
- divf.
- setVar 0x0, 0x6 #Y value of unit vector
- else loc_41
- loc_40:
- pushInt 0x0
- setVar. 0x0, 0x5
- pushInt. 0x0
- setVar 0x0, 0x6
- loc_41:
- pushInt. 0x40466666 #base speed
- setVar 0x0, 0x7
- pushInt. 0x11
- pushInt. 0x2
- pushVar. 0x0, 0x5
- pushVar. 0x0, 0x7
- multf.
- pushVar. 0x0, 0x0
- subf. #final value is HComponent * Speed - SpeedX
- pushVar. 0x0, 0x6
- pushVar. 0x0, 0x7
- multf.
- pushVar. 0x0, 0x1
- subf. #final value is VComponent * Speed - SpeedY
- sys 0x4, 0x10 #set speed
- pushInt. 0xb
- pushInt. 0x2
- sys 0x2, 0x10 #apply speed
- pushInt. 0x22
- pushInt. 0x1
- pushInt. script_16 #"call action EscapeAir"
- callFunc 0x2
- loc_6C:
- pushInt. 0x1
- return_6
- loc_72:
- pushInt. 0x0
- return_6
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement