addHook("PlayerThink", function(player) // Make sure that it runs
	if (player.speed >= player.runspeed) // Check if the player is moving faster than their run
	and (player.cmd.forwardmove or player.cmd.sidemove) // Is the player purposely moving?
		player.mo.friction = FRACUNIT // Make the momentum happen
	end // Finish this if statement
end) // Close this hook