Jumping Sucks

Jumping Sucks V2

This puts in little notes to explain the process for people who want to edit the script but aren't really good at Lua.

Code:
-- This is a lil simple script i made, I'll explain the process.
addHook("PlayerThink", function(player) -- Adds a "Hook" to the player.
    if player and player.valid and player.mo.valid then -- Checks for the player.
        if player.mo.state == S_PLAY_JUMP -- Sees if the player is doing the Jumping State.
            player.pflags = $ |PF_SPINNING -- Toggles on the spinning flag.
        end
    end
end)
Top