View unanswered posts | View active topics It is currently Fri Dec 27, 2024 6:40 am



Reply to topic  [ 9 posts ] 
 Layer Attatchments? 
Author Message
User avatar

Joined: Sat Oct 20, 2012 11:03 am
Posts: 48
Reply with quote
Post 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.


Wed Oct 24, 2012 4:03 am
Profile
User avatar

Joined: Thu Jan 21, 2010 10:59 pm
Posts: 151
Reply with quote
Post 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


Last edited by ShadowStorm on Thu Oct 25, 2012 3:28 am, edited 1 time in total.



Wed Oct 24, 2012 6:27 pm
Profile
User avatar

Joined: Sat Oct 20, 2012 11:03 am
Posts: 48
Reply with quote
Post 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?


Wed Oct 24, 2012 10:26 pm
Profile
User avatar

Joined: Thu Jan 21, 2010 10:59 pm
Posts: 151
Reply with quote
Post 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.


Thu Oct 25, 2012 3:26 am
Profile
User avatar

Joined: Sat Oct 20, 2012 11:03 am
Posts: 48
Reply with quote
Post 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?


Thu Oct 25, 2012 1:42 pm
Profile
User avatar

Joined: Thu Jan 21, 2010 10:59 pm
Posts: 151
Reply with quote
Post 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?


Thu Oct 25, 2012 6:31 pm
Profile
User avatar

Joined: Sat Oct 20, 2012 11:03 am
Posts: 48
Reply with quote
Post 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


Thu Oct 25, 2012 8:43 pm
Profile
User avatar

Joined: Thu Jan 21, 2010 10:59 pm
Posts: 151
Reply with quote
Post 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


Thu Oct 25, 2012 10:20 pm
Profile
User avatar

Joined: Sat Oct 20, 2012 11:03 am
Posts: 48
Reply with quote
Post Re: Layer Attatchments?
Ah ok, that works, I'll mess around with it and post my result here first


Thu Oct 25, 2012 11:07 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 9 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.051s | 16 Queries | GZIP : Off ]