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



Reply to topic  [ 5 posts ] 
 How can I make a drill? 
Author Message

Joined: Mon Mar 12, 2012 6:06 am
Posts: 58
Location: Flyin through the Matrix
Reply with quote
Post How can I make a drill?
I want to make a drill attached to a craft, But how do I make a functional drill? I've read through the digger code and havnt figured out how it works.


Fri Aug 03, 2012 11:29 pm
Profile
User avatar

Joined: Wed Feb 08, 2012 10:12 pm
Posts: 611
Location: Brazil
Reply with quote
Post Re: How can I make a drill?
The digger just fires a bunch of bullets that have a very low life time. I think that to make a craft with a functional drill, you would need to make the drill functional every time, needless of pressing a button. That way, you could make some bullets with low lifetime come out of the drill. But I never made a mod, that's just my guess :)


Sat Aug 04, 2012 12:22 am
Profile

Joined: Mon Mar 12, 2012 6:06 am
Posts: 58
Location: Flyin through the Matrix
Reply with quote
Post Re: How can I make a drill?
Joseh123 wrote:
The digger just fires a bunch of bullets that have a very low life time. I think that to make a craft with a functional drill, you would need to make the drill functional every time, needless of pressing a button. That way, you could make some bullets with low lifetime come out of the drill. But I never made a mod, that's just my guess :)


Mmmm ok, So all I need to do is make a short range low-life bullet thats shaped like the edge, Ok this couldnt posibly go worse then a self detonating mega bomb that can wipe out the map.

EDIT: Murderd a few things to make sprites gona try to code this monster now...


Sat Aug 04, 2012 1:06 am
Profile

Joined: Mon Mar 12, 2012 6:06 am
Posts: 58
Location: Flyin through the Matrix
Reply with quote
Post Re: How can I make a drill?
Oh crap offsets look hard :shock:


Sat Aug 04, 2012 1:22 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Mon Jul 12, 2010 5:39 am
Posts: 4558
Reply with quote
Post Re: How can I make a drill?
If you want an easy solution, do this:
Create a sprite of a drill, and animate it with the FrameCount variable. Name the images something like Drill000, Drill001, going up 1 every time. Put in the number of frames in the .ini under framecount, and you have an animated drill!
For the digging part, you could go a few ways. You could just copy the digger code and attach the barrel offset to the end of the drill, or you could define an invisible AEmitter that comes out and digs the same way.. it would just look better.
If you're really up to it, there's plenty of complicated ways to do it. Those are just the 2 easiest.


Sat Aug 04, 2012 4:56 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.074s | 13 Queries | GZIP : Off ]