Jump to content

Expanded Weapons.dat (OpenJK) v1.0

   (4 reviews)

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 MADE, DISTRIBUTED, OR SUPPORTED BY ACTIVISION PUBLISHING, INC., RAVEN SOFTWARE, OR LUCASARTS ENTERTAINMENT COMPANY, LLC. ELEMENTS™ & © LUCASFILM LTD.™ & DISNEY, INC.™ AND/OR ITS LICENSORS. STAR WARS®, JEDI®, & JEDI KNIGHT® ARE REGISTERED TRADEMARKS OF LUCASFILM LTD™ AND WALT DISNEY, INC.™ STAR WARS®, JEDI®, & JEDI KNIGHT® ARE REGISTERED TRADEMARKS OF LUCASFILM LTD™ & DISNEY, INC.™


User Feedback

Create an account or sign in to leave a review

You need to be a member in order to leave a review

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...