View unanswered posts | View active topics It is currently Wed Jul 03, 2024 7:06 am



Reply to topic  [ 9 posts ] 
 Homing lightning gun script (derived from Large PileO' Stuf) 
Author Message
User avatar

Joined: Mon Apr 05, 2010 8:04 am
Posts: 149
Location: Under your bed
Reply with quote
Post Homing lightning gun script (derived from Large PileO' Stuf)
I'm making a Tesla Cannon derived from The Large Pile O' Stuff, I'd like it to arc from the gun to the nearest enemy (preferably without killing the Parent) If anyone feels like it, I'd also be glad if someone added a chain lightning script for a separate gun.


Tue Oct 05, 2010 3:44 am
Profile YIM
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post Re: Homing lightning gun script (derived from Large PileO' Stuf)
You mean something like is contained here?


Tue Oct 05, 2010 6:45 am
Profile WWW
User avatar

Joined: Mon Apr 05, 2010 8:04 am
Posts: 149
Location: Under your bed
Reply with quote
Post Re: Homing lightning gun script (derived from Large PileO' Stuf)
Yes, but I don't believe that one homes, (i could be wrong i just read the description) and plus i would prefer it not to be one shot one kill.


Tue Oct 05, 2010 6:50 am
Profile YIM
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post Re: Homing lightning gun script (derived from Large PileO' Stuf)
It homes. It homes so very much.


Tue Oct 05, 2010 6:53 am
Profile WWW
User avatar

Joined: Mon Apr 05, 2010 8:04 am
Posts: 149
Location: Under your bed
Reply with quote
Post Re: Homing lightning gun script (derived from Large PileO' Stuf)
ok thanks


Tue Oct 05, 2010 7:15 am
Profile YIM
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post Re: Homing lightning gun script (derived from Large PileO' Stuf)
Not a problem.
You may be able to decrease the lethality by changing the values of the particles it generates.


Tue Oct 05, 2010 7:31 am
Profile WWW
User avatar

Joined: Mon Apr 05, 2010 8:04 am
Posts: 149
Location: Under your bed
Reply with quote
Post Re: Homing lightning gun script (derived from Large PileO' Stuf)
Yeah, I'm giving that a shot, also, what in the D9Bolt.lua would I edit to enhance the autoaim?


Tue Oct 05, 2010 7:45 am
Profile YIM
User avatar

Joined: Fri Oct 16, 2009 7:45 pm
Posts: 72
Reply with quote
Post Re: Homing lightning gun script (derived from Large PileO' Stuf)
it looks like a homing script that changes the direction of the lightning to the actor within 50 pixels
though i don't understand everything of it.
this should be what you want to change .
Code:
local curdist = 50;

bigger values mean bigger autoaim.


Tue Oct 05, 2010 8:10 pm
Profile
User avatar

Joined: Mon Apr 05, 2010 8:04 am
Posts: 149
Location: Under your bed
Reply with quote
Post Re: Homing lightning gun script (derived from Large PileO' Stuf)
I was wondering about that bit, but to my completely new-to-lua eyes made me think that was something that controlled how far the shot itself went.


Wed Oct 06, 2010 2:15 am
Profile YIM
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.036s | 13 Queries | GZIP : Off ]