Data Realms Fan Forums http://45.55.195.193/ |
|
Attached Shield http://45.55.195.193/viewtopic.php?f=1&t=20886 |
Page 1 of 1 |
Author: | thesoupiest [ Sat Dec 25, 2010 2:44 am ] |
Post subject: | Attached Shield |
Is it possible to make a gun with a shield attached? For example, a shotgun with a riot shield attached to it. The shield would take whatever number of bullets it could and then be destroyed separately from the gun. |
Author: | thesoupiest [ Sat Dec 25, 2010 3:39 pm ] |
Post subject: | Re: Attached Shield |
What would be the code for this, if you wouldn't mind? |
Author: | MrC121989 [ Sat Dec 25, 2010 4:23 pm ] |
Post subject: | Re: Attached Shield |
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. |
Author: | thesoupiest [ Sun Dec 26, 2010 1:35 am ] |
Post subject: | Re: Attached Shield |
Thanks a lot, man. You're awesome. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |