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



Reply to topic  [ 9 posts ] 
 Draw After Parent sprite problem 
Author Message
User avatar

Joined: Sun Oct 31, 2010 5:23 pm
Posts: 17
Reply with quote
Post Draw After Parent sprite problem
I've got a little problem with one of my actors. I'm still a newb in modding so "my" actor ended up being respritted dummy. After I finished this I thought I could make an addition to it, an armour. I've checked some of the actors, such as dreadnought to check how it works. First I made a helmet. Worked perfectly, as the helmet sprite was in front of the head sprite. However, the torso armour didn't work so well. Even thought I used DrawAfterParent to 1 nothing changed, legs and arms were in front of the armour which I tried to avoid. now the question is, is it possible for me to make the armour in front of arms and legs?


Wed Nov 03, 2010 5:00 pm
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: Draw After Parent sprite problem
To make the armor infront of BG legs and arms, have the addatachable code under AHuman be defined AFTER the BG leg n arm
if you want it over everything, define it after all legs and arms n such.


Wed Nov 03, 2010 5:09 pm
Profile
User avatar

Joined: Sun Oct 31, 2010 5:23 pm
Posts: 17
Reply with quote
Post Re: Draw After Parent sprite problem
Even thought it's at the very end of the AHuman it's still behind FG leg and FG arm.


Wed Nov 03, 2010 5:26 pm
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: Draw After Parent sprite problem
Then it's probably hardcoded.
Why do you want torso armor to be infront of FG arms and legs anyways?


Wed Nov 03, 2010 5:36 pm
Profile
User avatar

Joined: Sun Oct 31, 2010 5:23 pm
Posts: 17
Reply with quote
Post Re: Draw After Parent sprite problem
It looks strange this way. Maybe I should just make some arm and leg holes in the armour sprite and forget about this whole thing.


Wed Nov 03, 2010 5:39 pm
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: Draw After Parent sprite problem
You can just have the arms and legs have armor on the sprites.


Wed Nov 03, 2010 5:40 pm
Profile
User avatar

Joined: Sun Oct 31, 2010 5:23 pm
Posts: 17
Reply with quote
Post Re: Draw After Parent sprite problem
I'm so dumb I didn't even think about a possibility like that. Thanks a lot Lizard.


Wed Nov 03, 2010 6:12 pm
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: Draw After Parent sprite problem
You're welcome :)


Wed Nov 03, 2010 6:44 pm
Profile
User avatar

Joined: Mon Oct 06, 2008 2:04 am
Posts: 1559
Reply with quote
Post Re: Draw After Parent sprite problem
To reiterate for anyone else, there IS a hard-coded (read: tough sh*t) draw order for actors.

FIRST LAYER:
-BG Arms-Legs will always come first.
-Any BG Arm/Leg Attachables (Including feet, but not hands)
-Jetpack next.
SECOND LAYER:
-Torso, Head will come after that.
-Any Torso or Head attachables next.
THIRD LAYER:
-FG Arms/Legs.
-FG Foot.
-Any FG Arm/Leg Attachables are drawn over next.
-FG and BG Hands are drawn over just about everything.

I'm 80% sure I have an accurate draw order, or if not, I'm not far off.
The thing I am sure about, is that while you can use DrawAfterParent = 0 or 1 to move certain body parts in front of or behind other parts, you CAN NOT use it to move anything from one "layer" to another "layer".

For example, you CAN add an attachable helmet to the head that you can make appear in front of the head, or behind it. However, you CAN'T ever make that helmet be drawn after the FG Arm or Leg.

Someone correct me if I'm wrong, it's late and I'm not nearly as active in CC as I should be.


Mon Nov 15, 2010 7:29 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 9 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.030s | 13 Queries | GZIP : Off ]