Data Realms Fan Forums
http://45.55.195.193/

Creating attachables
http://45.55.195.193/viewtopic.php?f=1&t=15815
Page 1 of 1

Author:  Megashroom [ Sun Jul 12, 2009 2:26 am ]
Post subject:  Creating attachables

I would like too have the basic code for an attachable, preferably a spike to add to the riot shield

All I really need is a template for it, or a tutorial for making it and other attachables,

Thanks in advance to whoever tells me how...

I bet myself 20 dollars that it would be Mail who tells me.

Author:  Duh102 [ Sun Jul 12, 2009 3:18 am ]
Post subject:  Re: Creating attachables

Take the code for a MOSRotating, then make the following changes.
Code:
AddEffect = Attachable
(tab)JointOffset = Vector
(tab)(tab)X = [X]
(tab)(tab)Y = [Y]
(tab)JointStrength = [strength]

Voila, attachable.

EDIT: Oh, and just in case you don't know how to attach them.
On a MOSRotating, Actor, AEmitter, etc:
Code:
(tab)AddAttachable = Attachable
(tab)(tab)CopyOf = [PresetName]

Author:  Megashroom [ Sun Jul 12, 2009 3:44 am ]
Post subject:  Re: Creating attachables

Thanks!! I may have a faction coming up now, yay, and, you posted before mail did, awsim!!!

Author:  Megashroom [ Sun Jul 12, 2009 3:50 am ]
Post subject:  Re: Creating attachables

Also, where would you find this Msrotating code?

Author:  Duh102 [ Sun Jul 12, 2009 11:55 am ]
Post subject:  Re: Creating attachables

I'll just give it to you. I meant the basics for making a MOSRotating.
Code:
AddAmmo = MOSRotating
(tab)PresetName = Bare MOSRotating
(tab)Mass = 1
(tab)Sharpness = 0
(tab)HitsMOs = 0
(tab)GetsHitByMOs = 0
(tab)SpriteFile = ContentFile
(tab)(tab)FilePath = Base.rte/Null.bmp
(tab)FrameCount = 1
(tab)SpriteOffset = Vector
(tab)(tab)X = 0
(tab)(tab)Y = 0
(tab)AtomGroup = AtomGroup
(tab)(tab)AutoGenerate = 1
(tab)(tab)Material = Material
(tab)(tab)(tab)CopyOf = Air
(tab)(tab)Resolution = 1
(tab)(tab)Depth = 0
(tab)DeepGroup = AtomGroup
(tab)(tab)AutoGenerate = 1
(tab)(tab)Material = Material
(tab)(tab)(tab)CopyOf = Air
(tab)(tab)Resolution = 1
(tab)(tab)Depth = 1
(tab)DeepCheck = 0

You probably also want to put in there EntryWound, ExitWound, and BreakWound to make it come off nicely, as well as gibs and GibWoundLimit and GibImpulseLimit. Oh, and I forgot JointStiffness. Probably a good idea too.

Author:  Megashroom [ Sun Jul 12, 2009 3:22 pm ]
Post subject:  Re: Creating attachables

Thanks!

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/