addHook("PlayerThink", do
	for player in players.iterate
		if not player.mo and player.mo.skin == "cman" return end
		if (player.cmd.buttons & BT_CUSTOM2) //set the button
			and (player.speed == 0) // must not be moving
			and not P_PlayerInPain(player)
			player.mo.state = S_PLAY_GLIDE_LANDING //use this for whatever, if you make it S_PLAY_FALL, they will fall!
			S_ChangeMusic("_PDSZ1", true, player)
			player.pflags = $1|PF_FULLSTASIS
			elseif not (player.cmd.buttons & BT_CUSTOM1)	
			P_RestoreMusic(player)
		end
	end
end)
