CLEO Help Spin Player camera when press and hold key

CLEO related
Status
Not open for further replies.

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
So i trying make my camera spin circle.. 360%

But don't work... 
@supahdupahnubah
@springfield

PHP:
WHILE 0AB0: 2
wait 0
    068D: get_camera_position_to 18@ 19@ 21@
    //CHATMSG "Camera poss .:%f %f %f" 18@ 19@ 21@
    18@ += 0.1 
    19@ += 0.1 
    21@ += 0.1 
    015F: set_camera_position 18@ 19@ 21@ rotation 0.0 0.0 0.0
END
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
Parazitas said:
supahdupahnubah said:
you should only increment horizontal camera

I tested , but get same ... , screen not spin when i press and hold or i doing wrong...
https://gtagmodding.com/opcode-database/opcode/015F/
if you want to apply any changes on the hor. camera, write the float value to 0xB6F258
also be aware that 360 degrees is 6,28~ (2 * pi) in radians, means that if you increment it by 0.1 radians, you'll make a 5.72~ degree rotation
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
I think don't need create new post , so i write here...

@springfield
You know how make auto press "Spawn" when pasword is already entered?
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
supahdupahnubah said:
Parazitas said:
supahdupahnubah said:
you should only increment horizontal camera

I tested , but get same ... , screen not spin when i press and hold or i doing wrong...
https://gtagmodding.com/opcode-database/opcode/015F/
if you want to apply any changes on the hor. camera, write the float value to 0xB6F258
also be aware that 360 degrees is 6,28~ (2 * pi) in radians, means that if you increment it by 0.1 radians, you'll make a 5.72~ degree rotation

By @Opcode.eXe
https://blast.hk/threads/897/page-2#post-52964


Code:
0AB1: @MouseMOVE_DOWN 0
0AB1: @MouseMOVE_UP 0
0AB1: @MouseMOVE_LEFT 0
0AB1: @MouseMOVE_RIGHT 0

PHP:
:MouseMOVE_RIGHT
0AA2: 31@ = load_library "user32.dll"
0AA4: 30@ = get_proc_address "mouse_event" library 31@ 
IF
0A4C:   mouse_not_inverted_vertically
THEN
    0AA5: call 30@ num_params 5 pop 0 0 0 0 -2 0
ELSE
    0AA5: call 30@ num_params 5 pop 0 0 0 0 2 0
END
0AA3: free_library 31@
0AB2: 0

:MouseMOVE_LEFT
0AA2: 31@ = load_library "user32.dll"
0AA4: 30@ = get_proc_address "mouse_event" library 31@ 
IF
0A4C:   mouse_not_inverted_vertically
THEN
    0AA5: call 30@ num_params 5 pop 0 0 0 0 2 0
ELSE
    0AA5: call 30@ num_params 5 pop 0 0 0 0 -2 0
END
0AA3: free_library 31@
0AB2: 0

:MouseMOVE_DOWN
0AA2: 31@ = load_library "user32.dll"
0AA4: 30@ = get_proc_address "mouse_event" library 31@ 
0AA5: call 30@ num_params 5 pop 0 0 0 -2 0 0
0AA3: free_library 31@
0AB2: 0

:MouseMOVE_UP
0AA2: 31@ = load_library "user32.dll"
0AA4: 30@ = get_proc_address "mouse_event" library 31@ 
0AA5: call 30@ num_params 5 pop 0 0 0 2 0 0
0AA3: free_library 31@
0AB2: 0
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
How to get animation name by id?
@supahdupahnubah
PHP:
0B2B: samp 2@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B57: samp 3@ = player 2@ animation_id

Edit.:
Solved!
 
Status
Not open for further replies.
Top