addHook("PlayerThink", function(player)
	if player.mo and player.mo.valid then
		player.doyouwantthis = false
		//tell me if you want this ability. i am not offended if you do not want it.
	end
end)
//smash slam
addHook("PlayerThink", function(player)
	if (player.mo and player.mo.valid and player.mo.skin == "pedro")
	and player.doyouwantthis then
		if not (player.cmd.buttons & BT_CUSTOM1) then
			player.C1tapready = true
			player.C1tapping = false
		elseif player.C1tapready then
			player.C1tapping = true
			player.C1tapready = false
		else
			player.C1tapping = false
		end
		
		if player.C1tapping then
			if P_IsObjectOnGround(player.mo) == false and player.smakuse == false then
				P_SetObjectMomZ(player.mo, (0 - 20*FRACUNIT), true) 
				S_StartSound(player.mo,sfx_zoom, player)
				player.smakuse = true
			end
		elseif P_IsObjectOnGround(player.mo) 
		and player.smakuse then
			player.smakuse = false
			S_StartSound(player.mo,sfx_kc40, player)
		end
	end
end)

//makes attack attack
addHook("PlayerCanDamage", function(player, mobj)
	if player.mo and player.mo.valid and player.mo.skin == "pedro"
	and player.smakuse
	return true end
end)

