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)
- if player.mo.flags2&MF2_OBJECTFLIP then player.mo.momz=16*FRACUNIT
- else player.mo.momz=-16*FRACUNIT
- end
- else v6flips=0
- end
- if P_IsObjectInGoop(player.mo)
- v6flips=0
- end
- end
- end)
- addHook("JumpSpecial", do
- for player in players.iterate
- if player.mo.health>10*v6flips
- player.mo.flags2 = $1^^MF2_OBJECTFLIP
- player.mo.health = $1-10*v6flips
- v6flips=1
- end
- end
- return true
- end)
Advertisement
Add Comment
Please, Sign In to add comment