Data Realms Fan Forums
http://45.55.195.193/

Homing lightning gun script (derived from Large PileO' Stuf)
http://45.55.195.193/viewtopic.php?f=75&t=19863
Page 1 of 1

Author:  blargiefarg [ Tue Oct 05, 2010 3:44 am ]
Post subject:  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.

Author:  411570N3 [ Tue Oct 05, 2010 6:45 am ]
Post subject:  Re: Homing lightning gun script (derived from Large PileO' Stuf)

You mean something like is contained here?

Author:  blargiefarg [ Tue Oct 05, 2010 6:50 am ]
Post subject:  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.

Author:  411570N3 [ Tue Oct 05, 2010 6:53 am ]
Post subject:  Re: Homing lightning gun script (derived from Large PileO' Stuf)

It homes. It homes so very much.

Author:  blargiefarg [ Tue Oct 05, 2010 7:15 am ]
Post subject:  Re: Homing lightning gun script (derived from Large PileO' Stuf)

ok thanks

Author:  411570N3 [ Tue Oct 05, 2010 7:31 am ]
Post subject:  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.

Author:  blargiefarg [ Tue Oct 05, 2010 7:45 am ]
Post subject:  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?

Author:  dutchsmoker [ Tue Oct 05, 2010 8:10 pm ]
Post subject:  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.

Author:  blargiefarg [ Wed Oct 06, 2010 2:15 am ]
Post subject:  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.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/