I am currently running a few mods allowing up to 9 different weapons per team (unscoped springfield, greaser, unscoped fg42, flametrower, panzerschreck,...), so I was wondering if any of you modders out there were working on any new weapons. Although I'm not a great fan of shotguns, I haven't found any possibility of creating one for UO...
I don't think it's possible to create a shotgun for UO without actually editing the game's dll files. The shotgun's weapontype in CoD2 is "spread", if i remember correctly, and there's no code in any of Cod/UO's dlls that relate to that as far as I know.
You could simulate a short range shotgun, assuming you know how to edit weapons, by creating a grenade (weaponType) weapon, with a fuseTime of about 0.5, projectileSpeed of 1000, an explosionRadius of about 200, explosionInnerDamage 100, explosionOuterDamage 20, and a projTrailEffect pointing to an fx that looks like buckshot. It won't be realistic though, as you will still get an explosion - leaving projExplosionType\ empty will make the game use the grenade explosion type as a default. I don't think you can make new ones either as they're hardcoded
You could try this too - set a weapon's (SVT40 I reckon) fireTime to 0.001, add 2.0 to all entries with "Spread" (hipSpreadMax, adsSpread etc), put 0 for semiAuto and change it's clipSize to 8, and quadruple the maxAmmo, minAmmo, dropAmmoMin, dropAmmoMax and startAmmo. This will fire 8 rounds at nearly the same time in random directions.
The downside is that it'll layer the gun's firing sounds up in quick succession making it sound crap