[SNIPPET] Get/Set Camera Rotation

Hi guys, Some camera rotation function by me to get camera rotation because CLEO dosent have it, With this you can make a aim slapper hax :)
With set you can do soething IDK but it is currently having problems the set camera rot one and it will eventually change ur keys layout to something like ADSW if u set it like 99.98

Get Camera Rotation
Code:
:GetCameraRotation
0A8D: 0@ = read_memory 0xB6F178 size 4 virtual_protect 0
0AB2: ret 1 0@

// Call like call @GetCameraRotation 0 4@
Set Camera Rotation
Code:
:SetCameraRotation
0A8C: write_memory 0xB6F178 size 4 value 0@ virtual_protect 0
0AB2: ret 0

// Call like call @SetCameraRotation 1 4@ + 99.98


Special Weed Effects made by me using this snippet
Code:
{$CLEO .cs}
{$INCLUDE SF}

thread "0x32789"
0000: NOP

31@ = 0


:LoopLoop
wait 0
/*if
31@ == 1
then */
    call @GetCameraRotation 0 4@
    call @SetCameraRotation 1 4@ + 1
    0003: shake_camera 4@ * 0.3
    printf "Cam Rot 1: %f" 1000 4@
//end
jump @LoopLoop

:GetCameraRotation
0A8D: 0@ = read_memory 0xB6F178 size 4 virtual_protect 0
0AB2: ret 1 0@

:SetCameraRotation
0A8C: write_memory 0xB6F178 size 4 value 0@ virtual_protect 0
0AB2: ret 0
I hope u enjoy, AND BEFORE you start saying that I am a noob and nub and nublord because of this:
Code:
    call @SetCameraRotation 1 4@ + 1
    0003: shake_camera 4@ * 0.3
Let me just tell you, I am playing with this and you shouldnt take it seriously.. I just made it for fun >v
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,117
Solutions
5
Reaction score
882
Location
Lithuania
This work to , but only if u mooving...
Code:
{$CLEO .cs}

0000:

wait 10000

while true
wait 0

0AB1: call @Get_Camera_Rotation 0 2@
chatmsg "%f" -1 2@ /// Radian

end

:Get_Camera_Rotation
0A96: 1@ = actor $PLAYER_ACTOR struct
1@ += 0x558
0A8D: 2@ = read_memory 1@ size 4 virtual_protect 0
0AB2: ret 1 2@
 
Last edited:

SamThapa

Active member
Joined
Jan 22, 2018
Messages
38
Reaction score
1
hey there is there possibility to set camera to left or right X position i mean i try hard no luck yet
need memory address thanks in advance
 
Top