About This File
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.
Unsupported Weapons:
WP_SABER, WP_MELEE, WP_TUSKEN_STAFF, WP_TUSKEN_RIFLE, WP_SCEPTER, WP_NOGHRI_STICK
Installation:
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
Other Details:
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 developed, distributed, or endorsed by Activision Publishing, Inc., Raven Software, Lucasfilm Ltd., Disney, Inc., or any of their affiliated entities. All trademarks, copyrights, and intellectual property rights belong to their respective owners. Star Wars®, Jedi®, and Jedi Knight® are registered trademarks of Lucasfilm Ltd.™ and Disney, Inc.™. This file is intended for educational, non-commercial, or fan-based use under the principles of fair use. No copyright infringement is intended. Any claims of ownership or DMCA takedown requests can be submitted here.
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now