-- Spin addHook("PlayerThink", function(player) if (player.pflags & PF_SPINNING) and not (player.pflags & PF_JUMPED) and not P_IsObjectOnGround(player.mo) and not (player.mo.eflags & (MFE_TOUCHWATER)) player.pflags = $|PF_JUMPED|PF_CANCARRY|PF_THOKKED&~PF_SPINNING end if (player.mo.eflags & (MFE_TOUCHWATER)) and not P_IsObjectOnGround(player.mo) and (player.pflags & PF_JUMPED) and (player.pflags & PF_THOKKED) and (player.pflags & PF_THOKKED) and (player.pflags & PF_CANCARRY) player.pflags = $|PF_SPINNING&~PF_JUMPED player.pflags = $ & ~PF_THOKKED end -- Jump if not P_IsObjectOnGround(player.mo) and (player.pflags & PF_SPINNING) and (player.pflags & PF_JUMPED) player.pflags = $ & ~PF_SPINNING end end)