[Help-Fixed] Coding for chain weapon

Discuss and distribute tools and methods for modding. Moderator - Grognak
Post Reply
User avatar
Jumbocarrot0
Posts: 423
Joined: Sat Oct 21, 2017 1:18 am

[Help-Fixed] Coding for chain weapon

Post by Jumbocarrot0 »

I have been trying to make a chain beam that increases damage over time to eventually be as strong as a glaive beam but I have not been able to get the chain glow to appear.

Here is the code:

Code: Select all

dlcBlueprints

<weaponBlueprint name="FTLA_BEAM_CHAINGUN">
	<type>BEAM</type>
	<title>Chain Beam</title>
	<short>C. Beam</short>
	<tip>tip_beams</tip>
	<desc>This beam uses holographic projections to increase its damage overtime.</desc>
	<tooltip>One damage per room beam weapon. Increases damage to three damage per room</tooltip>
	<damage>1</damage>
	<sp>0</sp>
	<fireChance>1</fireChance>
	<breachChance>0</breachChance>
	<cooldown>16</cooldown>
	<power>2</power>
	<cost>75</cost> 
	<bp>12</bp>
	<rarity>4</rarity>
	<length>90</length>
	<image>beam_contact</image>
	<boost>
		<type>damage</type>
		<amount>1</amount>
		<count>2</count>
	</boost>
	<launchSounds>
		<sound>beam2</sound>
	</launchSounds>
	<weaponArt>FTLA_beam_chaingun</weaponArt> 
	<iconImage>beam</iconImage>
</weaponBlueprint>


dlcAnimations

<animSheet name="FTLA_beam_chaingun" w="270" h="59" fw="30" fh="59">weapons/FTLA_beam_chain_strip9.png</animSheet>

<weaponAnim name="FTLA_beam_chaingun">
	<sheet>FTLA_beam_chaingun</sheet>
	<desc length="9" x="0" y="0"/>
	<chargedFrame>1</chargedFrame>
	<fireFrame>2</fireFrame>
	<firePoint  x="19" y="40"/>
	<mountPoint x="4" y="62"/>
	<chargeImage>weapons/FTLA_beam_chain_glow.png</chargeImage>
	<boost>FTLA_beam_chaingun_charge</boost>
</weaponAnim>


<animSheet name="FTLA_beam_chaingun_charge" w="60" h="59" fw="30" fh="59">weapons/FTLA_beam_chain_chargeglow.png</animSheet>

<anim name="FTLA_beam_chaingun_charge">
	<sheet>FTLA_beam_chaingun_charge</sheet>
	<desc length="2" x="0" y="0"/>
	<time>1.0</time>
</anim>
And as for the images:
Main body

Image
Chain Glow

Image
If your wondering what the blue ring is its meant to be a hologram that makes the beam stronger.
Normal Glow
Image

If anyone can help me out here that'll be great because I am truely stumped.
Last edited by Jumbocarrot0 on Sun Dec 03, 2017 7:08 pm, edited 1 time in total.
User avatar
Arfy
Posts: 206
Joined: Mon Apr 11, 2016 4:14 am

Re: [Help] Coding for chain weapon

Post by Arfy »

This sounds like an extremely trivial change, but place the animation code block for the chain glow on top of the weapon animation code block.

I.e this;

Code: Select all

<animSheet name="FTLA_beam_chaingun_charge" w="60" h="59" fw="30" fh="59">weapons/FTLA_beam_chain_chargeglow.png</animSheet>
<anim name="FTLA_beam_chaingun_charge">
   <sheet>FTLA_beam_chaingun_charge</sheet>
   <desc length="2" x="0" y="0"/>
   <time>1.0</time>
</anim>

<animSheet name="FTLA_beam_chaingun" w="270" h="59" fw="30" fh="59">weapons/FTLA_beam_chain_strip9.png</animSheet>
<weaponAnim name="FTLA_beam_chaingun">
   <sheet>FTLA_beam_chaingun</sheet>
   <desc length="9" x="0" y="0"/>
   <chargedFrame>1</chargedFrame>
   <fireFrame>2</fireFrame>
   <firePoint  x="19" y="40"/>
   <mountPoint x="4" y="62"/>
   <chargeImage>weapons/FTLA_beam_chain_glow.png</chargeImage>
   <boost>FTLA_beam_chaingun_charge</boost>
</weaponAnim>
It sounds extremely dumb, I know -- but I tested it.
Discord: ATLAS#9226
User avatar
Jumbocarrot0
Posts: 423
Joined: Sat Oct 21, 2017 1:18 am

Re: [Help] Coding for chain weapon

Post by Jumbocarrot0 »

It works on my end. Thank you very much, I never would've thought of that on my own.
Post Reply