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

Recommended Comments

Wystan

Posted

Thanks

scp_chaos1

Posted

This package serves more weapons jka

Dusty

Posted

This package serves more weapons jka

 

JK2 doesn't have a weapons.dat file, only JA I'm pretty sure. Unless if you ran OpenJK in JK2 mode... maybe that would work...

SteveTheHero

Posted

Hey dusty, was wondering if there would be an option to modify projectile speed by chance?

Dusty

Posted

Hey dusty, was wondering if there would be an option to modify projectile speed by chance?

 

Hmm, that would be a nice feature... I was thinking of adding a cvar for this in Dusty's Patch... I could look at Eezstreet's code and try and copy it I guess and maybe it could be put into OpenJK, or the projectile speed cvar, or both...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...