Making a burst missile

A place to discuss mods in development and concepts for new mods.
Post Reply
User avatar
Militia Lieutenant
Militia Lieutenant
Posts: 235
Joined: Fri Jan 06, 2012 10:51 am

Thu Dec 04, 2014 8:43 am

As topic, I am attempting to create what is called a "burst missile". It is a missile which, upon detonation, creates a large shockwave that does high damage to whatever caught in its radius. I am trying to implement this through the following code, but to no avail:

Code: Select all

				<Missile ammoID="&itLRBM5;"
						type=			"missile"
						damage=			"generic:1; momentum6; WMD7"
						missileSpeed=	"30"
						hitPoints=		"70"
						lifetime=		"1000"

						autoacquiretarget=                "true"
						directional=	"true"
						sound=			"&snmissile1;"
						vaporTrailColor="0xd0, 0xd0, 0xd0"

						<Image imageID="&rsStdMissile1;" imageX="0" imageY="0" imageWidth="32" imageHeight="32" rotationCount="40"/>

						<Image imageID="&rsExplosionsAG128;"

							type=				"area"
							damage=				"generic:50"
							expansionSpeed=		"30"
							missileSpeed=		"0"
							lifetime=			"100"

							style=			"glowRing"
							width=			"20"
							glowSize=		"12"
							primaryColor=	"0xff, 0xff, 0xff"
							secondaryColor=	"0xff, 0x00, 0xff"

The missile fires and hits, but it appears that no fragment is produced. Is there a mistake in coding or is there another way to implement this effect?
Has resurfaced!

User avatar
Militia Captain
Militia Captain
Posts: 848
Joined: Fri Dec 14, 2007 1:52 am
Location: Orion Arm, Milky Way

Thu Dec 04, 2014 7:49 pm

Try this. I worked backward from the Ares Micronuke here.

Code: Select all

<Itemtype UNID="&itLRBM5;"
		name=				"MRBM5"
		level=				"4"
		value=				"350"
		mass=				"20"
		attributes=			"Commonwealth"
		frequency=			"common"
		numberAppearing=	"12d20"
		description=		"The compact warheads detonate into an expanding shockwave of thermonuclear damage. They require a launcher."

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

				type=			"missile"
				lifetime=		"180"
				damage=			"thermo:4d12; WMD3"
				missileSpeed=	"60"
				hitPoints=		"20"

				fragmentCount=	"1"
				failsafe=		"6"

				sound=			"&snMissileLauncher;"

						fixedPos=			"true"
						emitRate=			"40"
						tangentSpeed=		"3d2-3"
						particleLifetime=	"10-30"
						XformTime=			"20"
								style=			"plain"
								minWidth=		"1"
								maxWidth=		"4"
								primaryColor=	"#f7ffc6"
								secondaryColor=	"#b63718"

				<Image imageID="&rsMissiles;" imageX="0" imageY="32" imageWidth="16" imageHeight="16" imageFrameCount="12" imageTicksPerFrame="3"/>

						style=			"fadingBlast"
						radius=			"170"
						primaryColor=	"0xff, 0xff, 0xf0"
						lifetime=		"8"

					type=			"area"

					damage=			"thermo:1d12; WMD3"
					expansionSpeed=	"35"
					missileSpeed=	"0"
					lifetime=		"24"

							fadeStart=	"70"
						<Image imageID=				"&rsShockwave1;"
								imageX=				"0"
								imageY=				"0"
								imageWidth=			"512"
								imageHeight=		"128"
								imageFrameCount=	"1"
								imageTicksPerFrame=	"1"/>
Project Renegade (Beta) : "The Poor Man's Corporate Command!"
Real programmers count from 0. And sometimes I do, too.

Post Reply