frozenLake

Untitled

Sep 23rd, 2016
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 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) and player.mo.state ~= S_PLAY_SPRING
  6. P_SetObjectMomZ(player.mo,-16*FRACUNIT)
  7. if not P_IsObjectInGoop(player.mo)
  8. if player.mo.state ~= S_PLAY_FALL1 and player.mo.state~=S_PLAY_FALL2
  9. player.mo.state = S_PLAY_FALL1
  10. end
  11. end
  12. end
  13. if player.mo.state>=S_PLAY_STND and player.mo.state<=S_PLAY_SPD4
  14. v6flips=0
  15. end
  16. end
  17. end)
  18.  
  19. addHook("JumpSpecial", do
  20. for player in players.iterate
  21. if player.pflags~=player.pflags|PF_JUMPDOWN
  22. if player.mo.health>10*v6flips
  23. player.mo.flags2 = $1^^MF2_OBJECTFLIP
  24. player.mo.health = $1-10*v6flips
  25. player.health = $1-10*v6flips
  26. v6flips=1
  27. player.mo.state = S_PLAY_FALL1
  28. end
  29. end
  30. end
  31. return true
  32. end)
Add Comment
Please, Sign In to add comment