Data Realms Fan Forums
http://45.55.195.193/

Layer Attatchments?
http://45.55.195.193/viewtopic.php?f=1&t=31998
Page 1 of 1

Author:  JayTasslehoff [ Wed Oct 24, 2012 4:03 am ]
Post subject:  Layer Attatchments?

Hello, I'm trying to create attachments but I'm wondering how to decide what layers go where? As in, I want some attachments to overlap others in a specific order and am wondering how I control this?

Thank you.

Author:  ShadowStorm [ Wed Oct 24, 2012 6:27 pm ]
Post subject:  Re: Layer Attatchments?

Heh, I've been doing this for multiple 'helmets'(Refer to my avatar, it has 3). How you control the layers is, the next attachable is always the one that overlaps the attachable before it.

So as an example, I had:

Code:
   AddAttachable = Attachable
      CopyOf = Face Wrap <-- This goes under the Riot Helmet
      ParentOffset = Vector
         X = 0
         Y = 0

EDIT: The Riot Helmet Glass is attached to the Riot Helmet, so when the Riot Helmet is shot off, the glass will go with it.

   AddAttachable = Attachable
      CopyOf = Riot Helmet <-- Overlaps the Face Wrap
      ParentOffset = Vector
         X = 0
         Y = 0
      AddAttachable = Attachable
         CopyOf = Riot Helmet Glass <-- This is part of the Riot Helmet, but thats not what you're looking for.
         ParentOffset = Vector
            X = 0
            Y = 0

Author:  JayTasslehoff [ Wed Oct 24, 2012 10:26 pm ]
Post subject:  Re: Layer Attatchments?

Ah! very sick man thats exactly what I'm looking for. Have you seen my mod?
what I'm trying to do is have attachable's for the head, legs, torso, arms, and feet.

Here is my mod: viewtopic.php?f=61&t=31979

What I'm TRYING to do, is I want to overlap this form:
Attachment:
File comment: Form 2
fleshblue.jpeg [4.38 KiB]
Not downloaded yet



With this form:
Attachment:
File comment: Form 1
flesh1.jpeg [6.57 KiB]
Not downloaded yet


Using attachables.

See, I have the base sprite I'm trying to work with that I made right here:

Attachment:
File comment: Example
example2.png [2.5 KiB]
Not downloaded yet



How would I make it so my attachables can be destroyed? and is it possible to make it so when one attachable is destroyed other attachables are destroyed with it while others remain?

Author:  ShadowStorm [ Thu Oct 25, 2012 3:26 am ]
Post subject:  Re: Layer Attatchments?

Question 1:
You can make attachables destroyable by simply setting "GetsHitByMOs" to 1

Question 2:
Remember how I said "...But thats not what you're looking for" well... that's what you're asking right now, refer to that section again.

Author:  JayTasslehoff [ Thu Oct 25, 2012 1:42 pm ]
Post subject:  Re: Layer Attatchments?

ShadowStorm wrote:
Question 1:
You can make attachables destroyable by simply setting "GetsHitByMOs" to 1

Question 2:
Remember how I said "...But thats not what you're looking for" well... that's what you're asking right now, refer to that section again.


I think I see what you're saying.

Ok so to create standalone attachments I simply add them seperately within the ini file. And to create attachments connected to attachments I add them directly under another attachments entry with the right spacing so it is counted as an attachment under an attachment?

Soo..

Here is what I want to do, I want to have a face scarf, under a head model, and I want to have a scarf, over a body, thats over another body.

So, How would I make it so that when the body gets destroyed, or when the head gets destroyed. All my other attachables get destroyed EXCEPT the scarf?

Simply add the face scarf, then add the body, and then add the body scarf, but add it under the facescarf code to get it to stay when the body is destroyed?

Or is it easier to simply have 2 seperate body scarfs?

This is where I'm getting confused.

I see how the other parts work, I'll attach them under the body attachable code. But how would this work?

Author:  ShadowStorm [ Thu Oct 25, 2012 6:31 pm ]
Post subject:  Re: Layer Attatchments?

Let me get this straight first:

You want for the head:
Base Head > Scarf(?) > Head?
or is it:
Base Head > Head > Scarf?

and for the body:
Base Body > Body.. > Scarf?

Author:  JayTasslehoff [ Thu Oct 25, 2012 8:43 pm ]
Post subject:  Re: Layer Attatchments?

ShadowStorm wrote:
Let me get this straight first:

You want for the head:
Base Head > Scarf(?) > Head?
or is it:
Base Head > Head > Scarf?

and for the body:
Base Body > Body.. > Scarf?



well I pretty much need:

Base Head> Scarf> Head

and for the body I need:

Base Body> Base Body Scarf> Body > Either the same scarf somehow, or pretty much shoulder pad scarf that covers the first scarf but looks different and perhaps bigger so when the top parts are destroyed the base body gets its own version of its own scarf

Author:  ShadowStorm [ Thu Oct 25, 2012 10:20 pm ]
Post subject:  Re: Layer Attatchments?

Ok so, since you want the face scarf under the second head just do this:
Code:
AddEffect = Attachable
   PresetName = Head <-- This is your base head
...
blah
blah
blah
...
   AddAttachable = Attachable
      CopyOf = Face Scarf <--Scarf will go on the head
      ParentOffset = Vector
         X = 0
         Y = 0
   AddAttachable = Attachable
      CopyOf = Head <-- Make this bigger than the scarf and head if you want to cover it.
      ParentOffset = Vector
         X = 0
         Y = 0


For the body it would be same as the code from the previous post
Code:
   AddAttachable = Attachable
      CopyOf = Body Scarf
      ParentOffset = Vector
         X = 0
         Y = 0
   AddAttachable = Attachable
      CopyOf = Body
      ParentOffset = Vector
         X = 0
         Y = 0
      AddAttachable = Attachable
         CopyOf = Bigger Scarf
         ParentOffset = Vector
            X = 0
            Y = 0

Author:  JayTasslehoff [ Thu Oct 25, 2012 11:07 pm ]
Post subject:  Re: Layer Attatchments?

Ah ok, that works, I'll mess around with it and post my result here first

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