Changing a pistol swep into a close range melee weapon

I wanted to create in a melee “close range (knife)” swep except… what I am interested in making is already in a pistol swep. “This is NOT a prop or entity flinging lua this is a ragdolling weapon that affects npcs” So my question is… What is the simplest direction I could go to modify the pistol swep so it will function as a melee swep?

A download link might help people understand what you’re even talking about.

I would change models in crowbar SWEP so it could be melee but with pistol models.