Author Topic: What do you need to change in an edit of a weapon? [Resolved]  (Read 521 times)

Specifically, what do you need to change to make it work along with the original?
Of course, I'm not going to release this, as it is just an edit of the gun that makes the projectile be affected by gravity.
« Last Edit: January 18, 2010, 01:14:22 PM by Hawkclaw »

Change at least the names in the datablock () parts to something different and the uiName fields.

If your gun uses the same particle effects as another then use forceRequiredAddOn (look at the Guns Akimbo) to run that one, the same names in referencing them and don't add the datablocks in yours. (e.g. run Weapon_Gun and set your projectile's explosion to gunExplosion if you want the same hit effect)

Thank you.
Update: There is a slight problem, in that it causes the normal gun to do the same thing as it, and I cannot select it on the Q menu.
« Last Edit: January 18, 2010, 12:05:28 PM by Hawkclaw »

Make sure you've changed the datablock name of "gunImage" in your WeaponImage and the "uiName" and "image" fields in the ItemData.

It works, although it doesn't play both animations; it just plays the animation of the top thingy going backward, not the recoil thingy. I have no idea what they're called.

You will need to edit the "gunImage::onFire" method defined near the bottom of the file to your weapon's name.

Heh, never thought to look there. Thanks again!