View unanswered posts | View active topics It is currently Thu Jan 02, 2025 8:45 pm



Reply to topic  [ 4 posts ] 
 Attached Shield 
Author Message
User avatar

Joined: Thu Dec 16, 2010 11:06 pm
Posts: 276
Reply with quote
Post 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.


Sat Dec 25, 2010 2:44 am
Profile
User avatar

Joined: Thu Dec 16, 2010 11:06 pm
Posts: 276
Reply with quote
Post Re: Attached Shield
What would be the code for this, if you wouldn't mind?


Sat Dec 25, 2010 3:39 pm
Profile
User avatar

Joined: Wed Feb 10, 2010 12:41 pm
Posts: 182
Location: OMG where am i ?
Reply with quote
Post 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.


Sat Dec 25, 2010 4:23 pm
Profile
User avatar

Joined: Thu Dec 16, 2010 11:06 pm
Posts: 276
Reply with quote
Post Re: Attached Shield
Thanks a lot, man. You're awesome.


Sun Dec 26, 2010 1:35 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: Google [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.054s | 14 Queries | GZIP : Off ]