There is no way to set a custom weapon type in the WeaponComponent.
You can mod EWeaponType but that type does not match the type used in WeaponComponent.
There should either be a another way to add and set a custom weapon type or the EWeaponType should be directly used in the WeaponComponent so modding it has an effect.