I'm glad you didn't allow AK-74 swallowing with this script, since you limited it to hiding pistols. Hmm, though it would have been fun to create a spray of vomit particles ;P
Instead of having an array of pistol classes, check that the weapon inherits from PistolCore, using the method I explained in
another thread. This will allow the script to holster any pistol from any addon.