Best way is to DL and decompile an addon that has wound textures (eg the Bike Rider I made for the Kawasaki) and take a look at the cpp.
Basically you need to include the wounds line, with all the xicht combos and then your custom textures mapped to the custom damage textures. (each one goes in pairs, the undamaged one then the damaged one).
SelectThis