Imrightyourleft Posted January 18, 2016 Posted January 18, 2016 As the title says - how do I go about raising or lower the amount of damage that a weapon inflicts on an NPC? I've checked the weapon.dat but I can't see anything which changes this...?
Futuza Posted January 18, 2016 Posted January 18, 2016 You have to change it in the code itself. Take a look at this tutorial: http://jkhub.org/tutorials/article/131-how-to-create-a-new-weapon-mp/ The steps for singleplayer are relatively similar, you just have to look at slightly different files eg: g_weapon.cpp
ensiform Posted January 19, 2016 Posted January 19, 2016 OpenJK's SP allows custom weapon.dat with damage entries but the defaults of course are not in the weapon.dat file so you'd have to still go through the code to find the right values for SP.
Asgarath83 Posted January 19, 2016 Posted January 19, 2016 Single Player, right?For damage inflicted by player: you can change into weapon.dat adding damage and altdamage value to the weapons strings.NOTE: this require openjk. for NPC damage.You need to change into the code. you can see how is setted NPC damage into My SP weapon Tutorial.it's defined on weapons.h
Imrightyourleft Posted January 19, 2016 Author Posted January 19, 2016 Thanks for your responses and for all the info.Only trouble is that I've been advised against using OpenJK with JK2 SP as it's buggy and unstable. I've already tried it with JK2 SP before and couldn't get past the main menu.
ensiform Posted January 21, 2016 Posted January 21, 2016 OpenJK doesn't ship with JK2 support at all. You'd have to compile it yourself.
Recommended Posts
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