Need Help Recreating Fallswitch In Lua.

cheeseboi.

‎rock around the croc
cheeseboi has had the ability since 1.1, and i added a dust effect, but due to using the AbilitySpecial hook, cheeseboi’s fallswitch no longer works.

i have put P_SetObjectMomZ and It does work, but of course, it just acts like a double jump. is there a way to make P_SetObjectMomZ reverse your z momentum rather than just making you go up?
 
cheeseboi has had the ability since 1.1, and i added a dust effect, but due to using the AbilitySpecial hook, cheeseboi’s fallswitch no longer works.

i have put P_SetObjectMomZ and It does work, but of course, it just acts like a double jump. is there a way to make P_SetObjectMomZ reverse your z momentum rather than just making you go up?
P_SetObjectMomZ(mo,-mo.momz) should set the objects momz to the inverse of itself
 

Who is viewing this thread (Total: 0, Members: 0, Guests: 0)

Back
Top