addHook("ThinkFrame", do
	for player in players.iterate
		if player.mo.skin == "lepori"
			and not (player.exiting)
			and not (player.pflags & PF_SLIDING)
			and not (player.pflags & PF_JUMPED)
			and not (player.pflags & PF_JUMPDOWN)
			and not (player.mo.state == S_PLAY_SPRING)
			and not (player.mo.state == S_PLAY_FALL)
			and not (player.mo.state == S_PLAY_DEAD)
			and not (player.mo.state == S_PLAY_DRWN)
			and not (player.mo.state == S_PLAY_GASP)
			and not (player.mo.state == S_PLAY_PAIN)
			and not (player.mo.state == S_PLAY_ROLL)
			and not (player.mo.state == S_PLAY_FLY)
			and not (player.mo.state == S_PLAY_FLY_TIRED)
			and not (player.mo.state == S_PLAY_SWIM)
			and not (player.weapondelay)
			and not (player.mo.tracer and player.mo.tracer.type == MT_TUBEWAYPOINT)
                        and not P_IsObjectOnGround(player.mo)
			and not player.climbing
				player.mo.state = S_PLAY_FALL
		end
	end
end)
