Code for making Metal's Hover defy gravity

Maverick Finn

thought air was free, til I bought a bag of chips
In vanilla, if you use Metal's Hover and stand still mid-air, you will gradually lose height. Can someone guide me through a lua code that cancels that behavior?
 
This should work. Tell me if you have any other requests 👍
Metal Hover Forever:
addHook("PlayerThink", function(p)
    if p.mo and p.mo.valid and p.mo.skin == "metalsonic"
    and p.mo.state == S_PLAY_FLOAT then
    P_SetObjectMomZ(p.mo, 0*FRACUNIT)
    end
end)
 

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

Back
Top