frozenLake

Untitled

Sep 24th, 2014
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. local v6flips
  2.  
  3. addHook("ThinkFrame", do
  4. for player in players.iterate
  5. if not P_IsObjectOnGround(player.mo)
  6. if player.mo.flags2&MF2_OBJECTFLIP then player.mo.momz=16*FRACUNIT
  7. else player.mo.momz=-16*FRACUNIT
  8. end
  9. else v6flips=0
  10. end
  11. if P_IsObjectInGoop(player.mo)
  12. v6flips=0
  13. end
  14. end
  15. end)
  16.  
  17. addHook("JumpSpecial", do
  18. for player in players.iterate
  19. if player.mo.health>10*v6flips
  20. player.mo.flags2 = $1^^MF2_OBJECTFLIP
  21. player.mo.health = $1-10*v6flips
  22. v6flips=1
  23. end
  24. end
  25. return true
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment