bug with particle weapons ?

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

particle type weapons have been revamped again in RC1 :D (Thanks George!)
(after the new awesome modifications in 0.99)
I was testing the new variables when i found a problem:

Take this weapon as an example:

Code: Select all

<ItemType UNID="&itcometfalltestweapon;"
			name=				"Cometfall test weapon"
			level=				"8"
			value=				"150000"
			mass=				"5000"
			frequency=			"notrandom"
			modifiers=			"MajorItem; EnergyWeapon; Rasiermesser; NotForSale"

			description=		"This is an experimental weapon."
			>

		<Image imageID="&rsItems1;" imageX="96" imageY="0" imageWidth="96" imageHeight="96"/>

				<Weapon
				type=				"particles"
				count ="1"
				damage=				"blast:2d12; momentum2; WMD2"
				fireRate=			"35"
				missileSpeed=		"20-50"
				lifetime=			"120-160"
				powerUse=			"100"
				hitPoints=			"10"
				
				directional=		"true"
				fireEffect=			"&efMediumCannonFlash;"
				sound=				"&snRecoillessCannon;"
				
				particleCount=	"1"
				particleEmitTime="5-12"
				particleSpreadWidth="90" 
				particleSpreadAngle="0"
				>

			<Effect>
				<MoltenBolt
						width=				"4"
						length=				"10"
						growth=				"3"
						primaryColor=		"0xea, 0xed, 0xae"
						secondaryColor=		"0xc0, 0xc2, 0x85"
						/>
			</Effect>

		</Weapon>
	</ItemType>
It emits 9 particles. (NINE)
It seems that the culprit is particleEmitTime="5-12"
When I remove it, i get 1 shot only.

Is this a bug ?
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

I don't think so; it seems that the emit time is the period in which it will emit said number of particles. It looks intended to me.
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

ok, i understand that, but why if count ="1" and particlecount="1", then I have multiple particles when I use particleEmitTime ?
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

Because the count is the number of ... let's call them projectile sets fired, like in the repeating ones, and particle count controls the number of particles within each set. ... I think :wink:
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

mmmhh... not really. I simply don't get why while using particleEmitTime i get multiple shots, even when i should get only 1.
:roll:
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

digdug wrote:mmmhh... not really. I simply don't get why while using particleEmitTime i get multiple shots, even when i should get only 1.
:roll:
particleEmitTime is how long the weapons emits particles (in ticks). Set it to some high number, like 120 and you'll see that it continues to emit particles. Each tick, it emits the number of particles specified in particleCount.
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

thanks George ! Now I understand !
I thought it was something like a dilution factor that distribute the number of particles created in a certain timeframe.
Post Reply