Bug when I attempt to modify a mining laser.

These are old bug reports that have been closed.
Locked
User avatar
PKodon
Militia Lieutenant
Militia Lieutenant
Posts: 127
Joined: Sat Apr 18, 2009 6:03 pm
Location: "Minocs. I've got a baaad feeling about this.... This is no cave!"

I wanted to make a mining laser with the same characteristics as the dual-Bollide blaster turret I had made for the FalconCV, but when I put in the following definition:

Code: Select all

<!-- Outlaw Miner's Mining Laser Turret -->

	<ItemType UNID="&itCVMiningLaser;"
		name=				"mining laser turret"
		level=				"4"
		value=				"3700"
		mass=				"4200"
		frequency=			"veryrare"
		modifiers=			"EnergyWeapon; MajorItem; Specialty; NotForSale"
		showReference=			"true"

		description=			"Outlaw miners have taken a captured Triplex Industries turret and mounted 2 mining lasers on it to create this weapon."
		>

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

		<Weapon
			type=				"beam"

			omnidirectional="true"
			multiTarget=	"True"
			repeating=			"4"
			damage=				"laser:1d4; mining3"
			fireRate=			"21"
			lifetime=			"15"
			powerUse=			"45"

			beamType=			"laser"
			primaryColor=		"0x5f, 0xf1, 0x2a"
			secondaryColor=		"0x00, 0xff, 0x00"
			sound=				"&snLaserCannon;"
			>
			<Configuration aimTolerance="0" alternating="true">
				<Shot posAngle="90" posRadius="12" angle="1d2-3"/>
				<Shot posAngle="270" posRadius="12" angle="1d2"/>
			</Configuration>
		</Weapon>

	</ItemType>
I ended up with the game locking up for several seconds, each time I tried to fire, and after the first shot, which was forward, the next shots were at some angle off to the side. I did not have any targeting software, and it did not matter whether there were targets in the area or not, it still shot at whatever angle it had chosen after the first shot.

What I would like to do, is have it appear to be two multitargeting mining lasers mounted on a turret, with converging beams to forward when there is no target, or when mining.
"Don't ask ..., I don't wanna know, and I don't wanna care!" - PK
Meet us on IRC --> Image
"... the hornet battlepod is the closest we have ingame to flying into battle in a wheelbarrow
with a bathtub nailed upside down to the top of it to provide armor."
- The Shrike
User avatar
Atarlost
Fleet Admiral
Fleet Admiral
Posts: 2391
Joined: Tue Aug 26, 2008 12:02 am

Oh. You alternating and repeating don't mix. An alternating repeating weapon requires you to muck about with onFireWeapon.
Locked