CLEO Help [HELP] Creating Velocity Left and Right of Looking direction

CLEO related
Status
Not open for further replies.

MaryKate

Active member
Joined
Feb 7, 2014
Messages
28
Reaction score
0
So i'm making a speed hack using opcodexe's create velocity in players looking direction snippet (posted below) but im wondering if anyone knows how to create velocity left and right of the looking direction as i want to incorporate the A+D keys to move left and right as well as forward.

Thanks

Code:
//0AB1: @CREATE_VELOCITY_IN_LOOKING_DIRECTION 1 POWER 1.0 _STORE_TO 4@ 5@ 6@
:CREATE_VELOCITY_IN_LOOKING_DIRECTION
0087: 13@ = 0@ // (float)
Actor.StorePos($PLAYER_ACTOR, 20@, 21@, 22@)
068D: get_camera_position_to 24@ 25@ 26@ 
0063: 20@ -= 24@ // (float) 
0063: 21@ -= 25@ // (float) 
0063: 22@ -= 26@ // (float) 
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
006B: 20@ *= 13@ // (float) 
006B: 21@ *= 13@ // (float) 
006B: 22@ *= 13@ // (float) 
005B: 22@ += 13@ // (float) 
005B: 0@ += 20@ // (float) 
005B: 1@ += 21@ // (float) 
005B: 2@ += 22@ // (float) 
Actor.StorePos($PLAYER_ACTOR, 3@, 4@, 5@)
0063: 0@ -= 3@ // (float) 
0063: 1@ -= 4@ // (float) 
0063: 2@ -= 5@ // (float) 
0AB2: RET 3 0@ 1@ 2@
 
Status
Not open for further replies.
Top