[SNIPPET] CREATE VELOCITY PUSH FROM ACTOR

Code:
//0AB1: @CREATE_VELOCITY_PUSH 4 FROM ACTOR $PLAYER_ACTOR _TO_OFFSET 0.0 0.0 0.0 STORE_TO 4@ 5@ 6@
:CREATE_VELOCITY_PUSH
04C4: store_coords_to 4@ 5@ 6@ from_actor 0@ with_offset 1@ 2@ 3@
Actor.StorePos(0@, 7@, 8@, 9@)
0063: 4@ -= 7@ // (float)
0063: 5@ -= 8@ // (float)
0063: 6@ -= 9@ // (float)
0AB2: RET 3 4@ 5@ 6@
 

TheZeRots

Expert
Joined
Dec 21, 2013
Messages
1,247
Reaction score
1
Re: CREATE VELOCITY PUSH FROM ACTOR

And this would add velocity to whom and in which way?

What would it be used for?
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,486
Reaction score
227
Location
( ͡° ͜ʖ ͡°)
Re: CREATE VELOCITY PUSH FROM ACTOR

Example: u wanna make an Flying hack.

if
KEY_PRESSED W
then
0AB1: @CREATE_VELOCITY_PUSH 4 FROM ACTOR $PLAYER_ACTOR _TO_OFFSET 0.0 2.0 0.0 STORE_TO 4@ 5@ 6@
end
Set Playr Velociy 4@ 5@ 6@

It will 'fly' the player forward
 

TheZeRots

Expert
Joined
Dec 21, 2013
Messages
1,247
Reaction score
1
Re: CREATE VELOCITY PUSH FROM ACTOR

Hmmm and what is the main difference between this and other fly hacks? Also, may there be any other uses of this?
 
Top