Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
What do you need to change in an edit of a weapon? [Resolved]
« previous
next »
Print
Pages: [
1
]
Author
Topic: What do you need to change in an edit of a weapon? [Resolved] (Read 523 times)
Hawkclaw
January 17, 2010, 02:21:32 PM
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
»
Ad Bot
Advertisement
Space Guy
January 17, 2010, 03:50:15 PM
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)
Hawkclaw
January 18, 2010, 10:54:33 AM
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
»
Space Guy
January 18, 2010, 12:28:56 PM
Make sure you've changed the datablock name of "gunImage" in your WeaponImage and the "uiName" and "image" fields in the ItemData.
Hawkclaw
January 18, 2010, 01:01:56 PM
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.
Space Guy
January 18, 2010, 01:06:18 PM
You will need to edit the "gunImage::onFire" method defined near the bottom of the file to your weapon's name.
Hawkclaw
January 18, 2010, 01:12:20 PM
Heh, never thought to look there. Thanks again!
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
What do you need to change in an edit of a weapon? [Resolved]