Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local v6flips
- addHook("ThinkFrame", do
- for player in players.iterate
- if not P_IsObjectOnGround(player.mo) and player.mo.state ~= S_PLAY_SPRING
- P_SetObjectMomZ(player.mo,-16*FRACUNIT)
- if player.mo.state ~= S_PLAY_FALL1 and player.mo.state ~=S_PLAY_FALL2
- player.mo.state = S_PLAY_FALL1
- end
- end
- if player.pamim==PA_IDLE or player.pamim==PA_WALK or player.pamim==PA_RUN
- v6flips=0
- end
- end
- end)
- addHook("JumpSpecial", do
- for player in players.iterate
- if player.pflags ~= player.pflags|PF_JUMPDOWN
- if player.mo.health>10 or v6flips<1
- player.mo.flags2 = $1^^MF2_OBJECTFLIP
- player.mo.health = $1-10
- player.health = $1-10
- player.mo.state = S_PLAY_FALL1
- v6flips=$1+1
- end
- end
- end
- return true
- end)
Advertisement
Add Comment
Please, Sign In to add comment