View unanswered posts | View active topics It is currently Thu Dec 26, 2024 5:36 pm



Reply to topic  [ 6 posts ] 
 How to make stuff... infront of other stuff... 
Author Message
User avatar

Joined: Mon Oct 25, 2010 5:51 am
Posts: 1198
Location: Sydney
Reply with quote
Post How to make stuff... infront of other stuff...
I'm very very new to this .lua stuff... Well, I have no idea how, but I squashed some of MDC's gunship turret .lua, Mehman's U-Boat .lua, and the Base.rte train .lua into one file.
Guess what I'm making?
No? - Understandable... An AC-130-like gunship.
My problem is that the turret is behind the dropship, any special line or something I need to add to make it appear in-front of the gunship?


Fri Dec 24, 2010 4:17 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: How to make stuff... infront of other stuff...
change the type of particle it is

craft draw in front of actors which draw in front of particles

basically.

What I'd suggest, if you have the knowhow to do the lua-offsets, is to make the turret the sprite of the actual acraft, and then have the main body be an attachable that has its position constantly updated.


Fri Dec 24, 2010 7:30 am
Profile
User avatar

Joined: Mon Oct 25, 2010 5:51 am
Posts: 1198
Location: Sydney
Reply with quote
Post Re: How to make stuff... infront of other stuff...
Thanks Grif, I'll give it a go.

EDIT: Way to difficult for me, is there anything at all that appears infront of a dropship?

In addition, on a different topic: Is it possible to pick an actor/weapon sprite depending on which scene it's playing on. Say I made desert, arctic, and generic camo for a gun, and I loaded Tundra 1, could I make it choose the arctic sprite? Or have three differently sprited actors, and have it choose one?


Fri Dec 24, 2010 7:54 am
Profile
User avatar

Joined: Tue Dec 12, 2006 3:10 pm
Posts: 495
Location: Uncertain quantum state
Reply with quote
Post Re: How to make stuff... infront of other stuff...
Just checking, are we sure that it's the class type and not the atomgroup depths at work?


Fri Dec 24, 2010 1:58 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: How to make stuff... infront of other stuff...
Kettenkrad wrote:
Is it possible to pick an actor/weapon sprite depending on which scene it's playing on. Say I made desert, arctic, and generic camo for a gun, and I loaded Tundra 1, could I make it choose the arctic sprite? Or have three differently sprited actors, and have it choose one?

Yes you could, but you'd have to drop the gun for it to change. Have each different camo as a frame of the gun's sprite, then write some fancy Lua to check the scene name and switch to the relevant frame.


Fri Dec 24, 2010 5:04 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: How to make stuff... infront of other stuff...
findude wrote:
Just checking, are we sure that it's the class type and not the atomgroup depths at work?


atomgroup depth affects physics; draw order is hardcoded by class

at least, such is the extent of my knowledge, and I promise it is based on practical experience.


Fri Dec 24, 2010 8:20 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.115s | 13 Queries | GZIP : Off ]