Template/TDExplosive

From Data Realms Wiki

Revision as of 10:16, 5 June 2010 by Petethegoat (Talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is the source code to the standard Frag Grenade. It includes all of the required variables, and can be used as a framework for a mod you wish to create.

AddDevice = TDExplosive
	InstanceName = Frag Grenade
	AddToGroup = Bombs
	Mass = 2
	RestThreshold = -500
	HitsMOs = 1
	GetsHitByMOs = 0
	SpriteFile = ContentFile
		FilePath = Base.rte/Devices/Explosives/FragGrenade.bmp
	FrameCount = 1
	SpriteOffset = Vector
		X = -3
		Y = -4
	EntryWound = AEmitter
		CopyOf = Dent Metal
	ExitWound = AEmitter
		CopyOf = Dent Metal
	GoldValue = 5
	AtomGroup = AtomGroup
		AutoGenerate = 1
		Material = Material
			CopyOf = Military Stuff
		Resolution = 2
		Depth = 0
	DeepGroup = AtomGroup
		AutoGenerate = 1
		Material = Material
			CopyOf = Military Stuff
		Resolution = 4
		Depth = 10
	DeepCheck = 1
	JointStrength = 75
	JointStiffness = 0.5
	DrawAfterParent = 1
	DetonationSound = Sound
		AddSample = ContentFile
			Path = Base.rte/Sounds/Explode2.wav
	StanceOffset = Vector
		X = -12
		Y = -5
	StartThrowOffset = Vector
		X = -12
		Y = -5
	EndThrowOffset = Vector
		X = -12
		Y = -5
	TriggerDelay = 2500
	ParticleNumberToAdd = 10
	AddParticles = MOSParticle
		CopyOf = Side Thruster Blast Ball 1
	ParticleNumberToAdd = 20
	AddParticles = MOPixel
		CopyOf = Grenade Fragment Gray
	ParticleNumberToAdd = 20
	AddParticles = MOPixel
		CopyOf = Grenade Fragment Yellow
	ParticleNumberToAdd = 30
	AddParticles = MOPixel
		CopyOf = Air Blast
Personal tools