Page 1 of 1

How do I add in a custom weapon?

Posted: Tue Nov 25, 2014 7:22 am
by Cdm98
I've been working on a few private mods (mainly just adding in ships such as the Millennium Falcon, Normandy and the Forward Unto Dawn) and I want to add a custom weapon to the Dawn. Since I'm new to modding I have no idea how to do so.

I want to add this weapon:

<weaponBlueprint name="BOMB_DAMAGE_1">
<type>BOMB</type>
<tip>tip_bombs</tip>
<title>Magnetic Accelerator Cannon</title>
<short>MAC</short>
<locked>0</locked>
<desc>A large coilgun that serves as the primary offensive weapon for UNSC warships. It fires slugs of ferric Tungsten approximately 9.1 meters long at around 30,000 meters per second.</desc>
<tooltip>A large coilgun. It fires slugs of tungsten at 30,000 m/s</tooltip>
<damage>2</damage>
<sysDamage>1</sysDamage>
<persDamage>2</persDamage>
<missiles>1</missiles>
<shots>1</shots>
<sp>5</sp>
<fireChance>0</fireChance>
<breachChance>10</breachChance>
<cooldown>15</cooldown>
<power>3</power>
<cost>60</cost>
<bp>4</bp>
<rarity>0</rarity>
<image>bomb_breach</image>
<explosion>explosion_random</explosion>
<launchSounds>
<sound>bombTeleport</sound>
</launchSounds>
<hitShipSounds>
<sound>smallExplosion</sound>
</hitShipSounds>
<weaponArt>bomb_breach</weaponArt>
<iconImage>bomb</iconImage>
</weaponBlueprint>

All I did was modify the code for the breach bomb.

I have tried looking at guides but none of them have helped.

Re: How do I add in a custom weapon?

Posted: Tue Nov 25, 2014 7:40 am
by stylesrj
Did you make a file called blueprints.xml.append
Or if you're making a custom ship, make the ship first and add the blueprint to the blueprints.xml.append file it creates.

Then when it comes to weapons, add the weapon name to the list on the ship (I think it's under the <weapons> tags in the ship blueprint). I'm sure there are plenty of guides out there. I can't list them by heart though, someone else will do that I'm certain.

Re: How do I add in a custom weapon?

Posted: Tue Nov 25, 2014 10:22 am
by Gencool
Check out the 'Modding Reference Links' post (it's stickied at the top of this page - at the time of writing it's the post above this one).
I think some of it's not 100% up to date, but the 'New Guide on creating weapons' by Metzelmax should be able to help you pretty well (it's linked in the Reference post under Guides)

Re: How do I add in a custom weapon?

Posted: Wed Nov 26, 2014 6:39 am
by Cdm98
stylesrj wrote:Did you make a file called blueprints.xml.append
Or if you're making a custom ship, make the ship first and add the blueprint to the blueprints.xml.append file it creates.

Then when it comes to weapons, add the weapon name to the list on the ship (I think it's under the <weapons> tags in the ship blueprint). I'm sure there are plenty of guides out there. I can't list them by heart though, someone else will do that I'm certain.
Thanks for the help. I did what you said and it worked. Now I just need to lower the damage, breach chance and change it from a bomb to a missile.