This adds new fields (damage, altDamage, splashDamage, splashRadius, altSplashDamage, altSplashRadius) for most weapons in the weapons.dat file. The advantage of this is that now you can modify these values without changing the game's source code.
WP_SABER, WP_MELEE, WP_TUSKEN_STAFF, WP_TUSKEN_RIFLE, WP_SCEPTER, WP_NOGHRI_STICK
You need OpenJK or a mod that uses OpenJK's source as a framework (go look up OpenJK if you need to get that). Just extract the pk3 file to your Gamedata/base folder or Gamedata/modname if you want to use it in a separately loaded game mod from the default game. Then change the values inside the pk3 in ext_data/weapons.dat
OpenJK had added code support a while ago courtesy of Eezstreet for this but no one ever released an actual new version of the weapons.dat so you had to add the fields manually if you wanted to use them. I thought maybe I would whip this up. I'm pretty sure I didn't make any mistakes, all the values should be the same as their default hard-coded values (which are used if you neglect to include the field in the weapons.dat file).
If I didn't include a field it probably doesn't work, you can try adding it if you really want, it won't make your game crash, but the code might not do anything with the value (I tried adding splash damage to the blaster pistol for example, but it didn't do anything). Some of the fields seem kind of redundant (is there a difference between Det Pack primary and alt fire??) but I included whatever fields didn't have zeroes for defaults in the code.
Some weapons don't support the new fields for obvious reasons, like WP_SABER. Others like WP_MELEE are still hard-coded I guess because left and right punches, kicks, and katas all have special damage values. The ONLY weapon I know you can add values to is WP_BOWCASTER. You can give it splash damage which also does a little knockback but there are no visual effects for it.
KEEP IN MIND!!!
Feel free to use this however you want, but keep in mind it can't be distributed in the same download as the OpenJK source code just so you know. No assets of any kind are allowed to be distributed with OpenJK if I remember correctly. Easy enough to do right?
THIS FILE IS NOT MADE, DISTRIBUTED, OR SUPPORTED BY ACTIVISION, RAVEN SOFTWARE, OR LUCASARTS ENTERTAINMENT COMPANY LLC. ELEMENTS™ & © LUCASARTS ENTERTAINMENT COMPANY, LLC AND/OR ITS LICENSORS.