View unanswered posts | View active topics It is currently Fri Jan 10, 2025 7:54 am



Reply to topic  [ 6 posts ] 
 Creating attachables 
Author Message

Joined: Thu Jun 04, 2009 8:47 am
Posts: 66
Location: Where am I?
Reply with quote
Post 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.


Sun Jul 12, 2009 2:26 am
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post 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]


Sun Jul 12, 2009 3:18 am
Profile

Joined: Thu Jun 04, 2009 8:47 am
Posts: 66
Location: Where am I?
Reply with quote
Post Re: Creating attachables
Thanks!! I may have a faction coming up now, yay, and, you posted before mail did, awsim!!!


Sun Jul 12, 2009 3:44 am
Profile

Joined: Thu Jun 04, 2009 8:47 am
Posts: 66
Location: Where am I?
Reply with quote
Post Re: Creating attachables
Also, where would you find this Msrotating code?


Sun Jul 12, 2009 3:50 am
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post 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.


Sun Jul 12, 2009 11:55 am
Profile

Joined: Thu Jun 04, 2009 8:47 am
Posts: 66
Location: Where am I?
Reply with quote
Post Re: Creating attachables
Thanks!


Sun Jul 12, 2009 3:22 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users


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.109s | 15 Queries | GZIP : Off ]