Modding a Weapon
Posted: Tue Feb 26, 2013 3:43 am
Right, so, I've been through the weapon mod guide and I have experience making multiple ships. I'm currently making a weapon for one of those ships, but I can't seem to make the actual weapon image appear. The projectile custom projectile works, just not the weapon. Here's the coding in the animation file:
And the coding in the blueprints:
I've been through it multiple times and found nothing. I'm hoping a second set of eyes can spot what I'm missing. Anyone?
Code: Select all
<animSheet name="duallaser2" w="192" h="60" fw="16" fh="60">weapons/duallaser2_strip12.png</animSheet>
<weaponAnim name="duallaser2">
<sheet>duallaser2</sheet>
<desc length="12" x="0" y="0"/>
<chargedFrame>5</chargedFrame>
<fireFrame>8</fireFrame>
<firePoint x="10" y="16"/>
<mountPoint x="4" y="44"/>
</weaponAnim>
<animSheet name="laser_light3" w="200" h="20" fw="50" fh="20">weapons/laser_light3_strip4.png</animSheet>
<anim name="laser_light3">
<sheet>laser_light3</sheet>
<desc length="4" x="0" y="0"/>
<time>0.5</time>
</anim>
Code: Select all
<weaponBlueprint name="Laser_Battery">
<type>LASER</type>
<title>Laser Battery</title>
<short>Laser Battery</short>
<desc>A laser weapon which fires two shots at once.</desc>
<tooltip>Two shots, one damage per shot, simultaneous fire.</tooltip>
<damage>2</damage>
<shots>1</shots>
<sp>0</sp>
<fireChance>3</fireChance>
<breachChance>3</breachChance>
<cooldown>9</cooldown>
<power>1</power>
<cost>55</cost>
<bp>6</bp>
<rarity>2</rarity>
<image>laser_light3</image>
<launchSounds>
<sound>heavyLaser1</sound>
<sound>heavyLaser2</sound>
<sound>heavyLaser3</sound>
</launchSounds>
<hitShipSounds>
<sound>hitHull1</sound>
</hitShipSounds>
<hitShieldSounds>
<sound>hitShield1</sound>
<sound>hitShield2</sound>
<sound>hitShield3</sound>
</hitShieldSounds>
<missSounds>
<sound>miss</sound>
</missSounds>
<weaponArt>duallaser2</weaponArt>
</weaponBlueprint>
<blueprintList name="STARTING_WEAPONS">
<name>laser_battery</name>
</blueprintList>