Code for Attachment
Code:
AddEffect = Attachable
PresetName = ShieldAttachment
Mass = 2.5
HitsMOs = 0
GetsHitByMOs = 1
SpriteFile = ContentFile
FilePath = YOUR MODULE NAME.rte\PATH TO SHIELD SPRITE
FrameCount = 1
SpriteOffset = Vector
X = 0
Y = 0
AngularVel = 6
DrawAfterParent = 1
EntryWound = AEmitter
CopyOf = Dent Metal
ExitWound = AEmitter
CopyOf = Dent Metal
AtomGroup = AtomGroup
AutoGenerate = 1
Material = Material
CopyOf = Military Stuff
Resolution = 4
Depth = 0
DeepCheck = 0
JointStrength = 250
JointStiffness = 0.5
JointOffset = Vector
X = 0
Y = 0
AddGib = Gib
GibParticle = MOSRotating
CopyOf = ShieldAttachment Gib1
Offset = Vector
X = 0
Y = 0
AddGib = Gib
GibParticle = MOSRotating
CopyOf = ShieldAttachment Gib2
Offset = Vector
X = 0
Y = 0
GibWoundLimit = 20
If you dont want to make gibs for shield remove GibParticles
Add this in your weapon code
Code:
AddAttachable = Attachable
CopyOf = ShieldAttachment
ParentOffset = Vector
X = 0
Y = 0
If i'm not mistaken it should be like this.