TwentyOne420
Member
- Joined
- Apr 15, 2022
- Messages
- 6
- Reaction score
- 0
CODE:
// 0AB1: @camatpos 5 _XYZ 0@ 1@ 2@ _withCamOffsetAngleX 3@ _andCamOffsetAngleZ 4@
:camatpos
//
068D: get_camera_position_to 31@ 30@ 29@
//
//
0A25: set_camera_on_players_X_angle 27@ Z_angle 28@
ret 0
ERROR:
Incorrect expression TIMERA >= 400.
One of the variables has unknown type, or operands are incompatible.A
// 0AB1: @camatpos 5 _XYZ 0@ 1@ 2@ _withCamOffsetAngleX 3@ _andCamOffsetAngleZ 4@
:camatpos
//
Code:
~~~~~~~anti auto-vehicle cam movement
if and
TIMERA>=400
Actor.Driving($PLAYER_ACTOR)
then
0A8C: write_memory 0xB70118 size 4 value 50.0 virtual_protect 0 // reset camera stabalizer timer, credit to Parazitas
TIMERA = 0
end
// ~~~~~~~
068D: get_camera_position_to 31@ 30@ 29@
//
Code:
~~~~~~~Camera Z-Angle from our camera towards the target
0087: 28@ = 1@ // y2
0063: 28@ -= 30@ // y1
0087: 27@ = 0@ // x2
0063: 27@ -= 31@ // x1
0AA5: atan2 | 0x4207C0 2 2 | _X 27@ _Y 28@
0AE9: pop_float 28@ // store result from above operation
28@ += 3.1415926535897981710616733832795 // Camera Angle Leads 180 degrees respect to Z world coordinats
005B: 28@ += 4@ // use the defined camz offset to move the camera leftwards or rightwards
// ~~~~~~~
//
Code:
~~~~~~~Camera X-Angle from our camera towards the target
0087: 27@ = 2@ // z2
0063: 27@ -= 29@ // z1
0509: 26@ = distance_between_XY 31@ 30@ and_XY 0@ 1@ // adjacent side
0AA5: atan2 | 0x4207C0 2 2 | _X 26@ _Y 27@
0AE9: pop_float 27@ // store result from above operation
005B: 27@ += 3@ // use the defined camx offset to move the camera downwards or upwards
// ~~~~~~~
0A25: set_camera_on_players_X_angle 27@ Z_angle 28@
ret 0
ERROR:
Incorrect expression TIMERA >= 400.
One of the variables has unknown type, or operands are incompatible.A