addHook("PlayerThink", function(player)
    if (player.mo and player.valid) and (player.mo.skin == "knuckles") and (player.mo.eflags & MFE_UNDERWATER) and player.tier == 2 and not (player.pflags & PF_GLIDING) and not (player.mo.state == S_PLAY_GLIDE or player.mo.state == S_PLAY_SWIM or player.mo.state == S_PLAY_CLING or player.mo.state == S_PLAY_CLIMB or player.mo.state == S_PLAY_FALL or player.mo.state == S_PLAY_FALL or player.mo.state == S_PLAY_GLIDE_LANDING)
        player.charability = CA_SWIM
		player.actionspd = 100*FRACUNIT
	elseif (player.mo and player.valid) and (player.mo.skin == "knuckles") and not (player.mo.eflags & MFE_UNDERWATER) and player.tier == 2
		player.actionspd = 34*FRACUNIT
		end
end)