Data Realms Fan Forums
http://forums.datarealms.com/

[Mod Contest Winner: AutoDefense System] Tesla Coil [Update]
http://forums.datarealms.com/viewtopic.php?f=61&t=24290
Page 1 of 2

Author:  Asklar [ Sat Jun 18, 2011 8:21 pm ]
Post subject:  [Mod Contest Winner: AutoDefense System] Tesla Coil [Update]

Fear the mighty Tesla Coil!

Image

Awesome sprite by Kettenkrad.


Shoot lightning bolts at your enemies, defeat armies, destroy crafts!
Attachment:
File comment: Fixes!
-No more digging
-First strike damages now
-Looks a bit more lighting-ish

TCT.rte.rar [66.86 KiB]
Downloaded 1483 times

Attachment:
TCT.rte.rar [66.85 KiB]
Downloaded 453 times


--Known issues:
Placing too many of them (I place 3 as a max) will probably cause lag and less probably crashes.
It has a semi-working auto-firing system (activate with F). Use under your own risk.
Upon destruction, it might generate lag. That's why I don't place many towers.

Author:  thesoupiest [ Sat Jun 18, 2011 8:37 pm ]
Post subject:  Re: [Mod Contest Entry: Auto-Defense System] Tesla Coil

The Good:
It's very powerful. I like it.
It feels like you're harnessing a strange energy.

The Bad:
The sprites aren't so pretty.
It doesn't actually look or feel like lightning.

The Ugly:
It's unreliable. It killed my own brain by burring through the base of the tower and digging towards it. It's also not very sure to kill a target, in fact, more likely to bounce off.

Author:  Asklar [ Sat Jun 18, 2011 8:39 pm ]
Post subject:  Re: [Mod Contest Entry: Auto-Defense System] Tesla Coil

I've tried to make it more lightning-ish, but I can't achieve that feel. And I've been trying to solve the thing of the bounce off, but the only time I did it it created an horribly over-powered lightning.

Author:  thesoupiest [ Sat Jun 18, 2011 8:40 pm ]
Post subject:  Re: [Mod Contest Entry: Auto-Defense System] Tesla Coil

Make the lightning particle more likely to explode on impact by decreasing GibImpulseLimit.

Author:  Asklar [ Sat Jun 18, 2011 9:07 pm ]
Post subject:  Re: [Mod Contest Entry: Auto-Defense System] Tesla Coil

The particle actually does gib, it gibs into other lightning particles, that's why it looks like it bounces.
I gave many particles to the first lightning it fires when it gibs, but it still doesn't damage too much the target when hit.

EDIT:
Fixed most stuff soupy posted up.

Author:  Xery [ Sat Jun 18, 2011 10:33 pm ]
Post subject:  Re: [Mod Contest Entry: Auto-Defense System] Tesla Coil [Update]

Just use CastMORay for enemy detection.

Author:  Asklar [ Sat Jun 18, 2011 10:46 pm ]
Post subject:  Re: [Mod Contest Entry: Auto-Defense System] Tesla Coil [Update]

I don't want to detect if the target is or not on the same team.
Because a lightning is suposed to be attracted to anything that it can be attracted to.

Author:  LeonXross [ Sun Jun 19, 2011 12:10 am ]
Post subject:  Re: [Mod Contest Entry: Auto-Defense System] Tesla Coil [Update]

I have an idea. You know those missiles that are shot into the air, then detatches its casing to release a bunch of smaller missiles? Maybe you can do that. Since it only shoots 1 bolt on every reload, the lighting can split and the bolts can track to the nearest enemy unit.

The rational for the bolt not being attracted to all units is that the units are outfitted with anti-tesla bolt implants?

The other option you might consider, and I totally agree with this one, is make the tower shoot multiple bolts in one clip.

Or this: you know when units normally track other enemy units? Well maybe you can make the tower generate crosshairs that lock onto a target and after it locks on, it shoots the bolt. It would make your tower 10.51x more awesome.

And maybe you could also make them adjusted to vanilla bunker modules?

Author:  Asklar [ Sun Jun 19, 2011 12:19 am ]
Post subject:  Re: [Mod Contest Entry: Auto-Defense System] Tesla Coil [Update]

LeonXross wrote:
I have an idea. You know those missiles that are shot into the air, then detatches its casing to release a bunch of smaller missiles? Maybe you can do that. Since it only shoots 1 bolt on every reload, the lighting can split and the bolts can track to the nearest enemy unit.


I've already thought of that, and that does actually happens but when the bolt travels very long distances.

LeonXross wrote:
The other option you might consider, and I totally agree with this one, is make the tower shoot multiple bolts in one clip.


Do you mean to make it shoot like 3-5 bolts at once? That would probably over-power this much more, but I will consider that.

LeonXross wrote:
Or this: you know when units normally track other enemy units? Well maybe you can make the tower generate crosshairs that lock onto a target and after it locks on, it shoots the bolt. It would make your tower 10.51x more awesome.


I've been working on an auto-targeting system, but I can't make it work as I want to.
When you activate the auto-fire (selecting the coil and pressing F), it aims to the nearest target in a radius of 2300 px, and after a while it fires. I think it works, but the actual AI screws my artificial lua-driven AI.

LeonXross wrote:
And maybe you could also make them adjusted to vanilla bunker modules?


I would, but I can't sprite by myself =D

Author:  Kettenkrad [ Sun Jun 19, 2011 3:00 am ]
Post subject:  Re: [Mod Contest Entry: Auto-Defense System] Tesla Coil [Update]

Ha, this is really cool Asklar, much cooler than I expected. I do agree with Soupy though ,that it doesn't really feel like lightening, it needs to be more... crackly, like the DS Electrolaser. Apart from that, its brilliant fun.

Also it just needs some simple reload sounds, like charge up effects or something.

EDIT: Forgot; Good job!

EDIT 2; Say Asklar, could I include this in the Wehrmacht? It would go really cool with them.......

Author:  Asklar [ Sun Jun 19, 2011 3:46 am ]
Post subject:  Re: [Mod Contest Entry: Auto-Defense System] Tesla Coil [Update]

Yeah, sure.
I would want credits, other than that, use it for anything.

Author:  Mehman [ Sun Jun 19, 2011 11:32 am ]
Post subject:  Re: [Mod Contest Entry: Auto-Defense System] Tesla Coil [Update]

Asklar wrote:
but the actual AI screws my artificial lua-driven AI.

Then deactivate the AI (self.AIMode = 0)

Author:  Asklar [ Sun Jun 19, 2011 11:44 pm ]
Post subject:  Re: [Mod Contest Entry: Auto-Defense System] Tesla Coil [Update]

Dude, I didn't know that was even possible!
I'll fix that and make major changes to the lua AI.

Author:  Glowsticks [ Mon Jun 20, 2011 3:30 am ]
Post subject:  Re: [Mod Contest Entry: Auto-Defense System] Tesla Coil [Update]

I legitimately had a-lot of fun with this thing. My only gripe is it doesn't feel like lightning. I mean It feels like some weird arcane energy/seeking plasma or something but not really lightning. I would make it non seeking, and add more shots to the clip, and try to add some sort of effect like the D-9 electro rifle. Other than that though its very, very cool.

Author:  Asklar [ Mon Jun 20, 2011 3:34 am ]
Post subject:  Re: [Mod Contest Entry: Auto-Defense System] Tesla Coil [Update]

I know it doesn't look like lightning, I've tried to make it look more like it but it's hard. The best way to make it look more like lightning would be adding a muzzle flash that was like a lighting, but that wouldn't look good, specially with the lightnings chasing dudes afterwards. And I don't want to change that thing, because if I did that it would be just a common turret shooting a fancy bullet.

I'll keep trying, but I'll focus more on the part I really want to be cool, and that is the targeting system.

EDIT:
Crap, I guess I won't be able to modify this further for the contest. I'm going on a school trip until june 22, one day after the end of the submissions. So, I guess I won't change anything else and I'll have to submit this.

Anyway, I love this proyect so after I come back I'll script again the lua AI and make some changes to the lightning and stuff.

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