I've got GnuWin DiffUtils, I've never worked with it so I can't tell if it worked properly
.
diff --exclude=.git C:\PerfLogs\Cb\headswe-Cataclysm-eccf49f\bin\Debug\code0/crafting.cpp C:\PerfLogs\Cb\headswe-Cataclysm-eccf49f\bin\Debug\code1/crafting.cpp
69a70,84
> RECIPE(itm_gunparts, CC_WEAPON, sk_mechanics, sk_gun, 1, 8000);
> TOOL(itm_screwdriver, -1, NULL);
> COMP(itm_bbgun, 1, itm_rifle_22, 1, itm_rifle_9mm, 1, itm_smg_9mm, 1, itm_smg_45, 1,
> itm_sig_mosquito, 1, itm_sw_22, 1, itm_glock_19, 1, itm_usp_9mm, 1, itm_sw_619, 1,
> itm_taurus_38, 1, itm_sig_40, 1, itm_sw_610, 1, itm_ruger_redhawk, 1, itm_deagle_44, 1,
> itm_usp_45, 1, itm_m1911, 1, itm_fn57, 1, itm_hk_ucp, 1, itm_shotgun_sawn, 1,
> itm_shotgun_s, 1, itm_shotgun_d, 1, itm_remington_870, 1, itm_mossberg_500, 1,
> itm_saiga_12, 1, itm_american_180, 1, itm_uzi, 1, itm_tec9, 1, itm_calico, 1,
> itm_hk_mp5, 1, itm_mac_10, 1, itm_hk_ump45, 1, itm_TDI, 1, itm_fn_p90, 1,
> itm_hk_mp7, 1, itm_marlin_9a, 1, itm_ruger_1022, 1, itm_browning_blr, 1,
> itm_remington_700, 1, itm_sks, 1, itm_ruger_mini, 1, itm_savage_111f, 1,
> itm_hk_g3, 1, itm_hk_g36, 1, itm_ak47, 1, itm_fn_fal, 1, itm_acr, 1,
> itm_ar15, 1, itm_m4a1, 1, itm_scar_l, 1, itm_scar_h, 1, itm_steyr_aug, 1,
> itm_m249, 1, itm_v29, 1, itm_ftk93, 1, NULL);
>
74a90
> COMP(itm_gunparts, 1, NULL);
80a97
> COMP(itm_gunparts, 1, NULL);
88a106
> COMP(itm_gunparts, 1, NULL);
96a115
> COMP(itm_gunparts, 1, NULL);
648c667
<
---
>
diff --exclude=.git C:\PerfLogs\Cb\headswe-Cataclysm-eccf49f\bin\Debug\code0/itype.h C:\PerfLogs\Cb\headswe-Cataclysm-eccf49f\bin\Debug\code1/itype.h
55c55
< itm_wasp_sting, itm_chitin_piece, itm_canister_empty, itm_gold,
---
> itm_wasp_sting, itm_chitin_piece, itm_canister_empty, itm_gold, itm_gunparts,
diff --exclude=.git C:\PerfLogs\Cb\headswe-Cataclysm-eccf49f\bin\Debug\code0/itypedef.cpp C:\PerfLogs\Cb\headswe-Cataclysm-eccf49f\bin\Debug\code1/itypedef.cpp
29c29
<
---
>
748a749,753
> MELEE("gun parts", 10, 50, '*', c_green, STEEL, MNULL,
> // VOL WGT DAM CUT HIT FLAGS
> 5, 5, 5, 0, -1, 0, "\
> An assortment of gun parts. Most of them are still usable.");
>
It should change crafting.cpp, itypedef.cpp and itype.h. It adds "gun parts" misc/melee item and adds a new recipe which allows you to disassemble guns to get gun parts. Also it changes all pipe rifle/handmade SMG recipes to require gun parts.
I've built it on top of Headswe's source (eccf49f).