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?
addHook("PlayerThink", function(p)
if p.mo and p.mo.valid and p.mo.skin == "metalsonic" then
if p.mo.state == S_PLAY_FLOAT then
P_SetObjectMomZ(p.mo, 0*FRACUNIT)
end
end
end)
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)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.