Front-only repulsor shield

Front-only repulsor shield

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
MadRat
Posts: 532
Joined: 24 Oct 2006, 13:45

Front-only repulsor shield

Post by MadRat »

I can see some amazing benefits from a front repulsor shield. It could be simple, like something that could simply take the units footprint and draw a square area in front of the unit. As the unit turned, the shield would turn to always face straight out from the base. Anything that hits the front shield could be repulsed just like the shield generator, only deflected at a refractive angle.

This would allow us to simulate armor battles where frontal armor would be better than side or top armors. It would also allow units with said shield to only be destroyed from side, top/bottom, and rear shots.

A nice refinement to the idea would be a way to define the model piece that the shield was generated from. This would allow a mod maker to develop units where they have a shield always facing their nearest threat, which means some sort of pincer attack has to be coordinated to kill it efficiently.
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Post by Gnomre »

http://spring.clan-sy.com/phpbb/viewtopic.php?t=11021

Don't know if the patch ever got applied though.
User avatar
MadRat
Posts: 532
Joined: 24 Oct 2006, 13:45

Post by MadRat »

I hate the whole idea of that double damage for flanking. And it really needs an easy off switch... its ass backwards to be enabled by default.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Yeah, the current bonusshield behaviour should be disabled by default. Unfortunately that'll probably mess some balancing up. A modrules switch would be easy to use but someone is bound to want a per-unit setting (even though the current behaviour of the bonusshield seems totally useless to me). So I guess we'll end up with yet another tag we have to throw into every single unit fbi...
Saktoth
Zero-K Developer
Posts: 2665
Joined: 28 Nov 2006, 13:22

Post by Saktoth »

A nice refinement to the idea would be a way to define the model piece that the shield was generated from. This would allow a mod maker to develop units where they have a shield always facing their nearest threat, which means some sort of pincer attack has to be coordinated to kill it efficiently.
You can already do this, since you need a weapon slot for a shield and thus the shield is emitted from the weapon piece. However, at the moment, though the visible shield follows the weapon piece the actual shield does not, it remains at the 0 0 0 location on the model. This means all projectile will be deflected as if the shield was at 0 0 0. The exception to this is beamlasers, which seem to collide with the visible shield, not the one emitted from the 0 0 0 position. Presumably this is because beamlaser collision with shields was done later.

Fix PLEASE. Please. :(
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Post by lurker »

The code for directional shields is simple and I can whip up a quick patch if you want, but visualization might take longer. I'll also look at the placement issue on my spring-coding weekend here.
Saktoth
Zero-K Developer
Posts: 2665
Joined: 28 Nov 2006, 13:22

Post by Saktoth »

Really, if you can just stick the shield in front of the unit you can do the directional thing easy.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Post by lurker »

Okay, thanks to kdr giving me a fresh perspective, aka. I'm an idiot it only takes a single transform with dot products and I should have rethought the problem after realizing the awesomeness of dot products a couple months ago, I should pump out a directional shields patch easily, probably this weekend.
And then I'll do shield with different repulse direction characteristics. Then more. I have lots of fun ideas for shields.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

WOOT, that'd be something I'd definitely use.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Post by lurker »

Saktoth wrote:
A nice refinement to the idea would be a way to define the model piece that the shield was generated from. This would allow a mod maker to develop units where they have a shield always facing their nearest threat, which means some sort of pincer attack has to be coordinated to kill it efficiently.
You can already do this, since you need a weapon slot for a shield and thus the shield is emitted from the weapon piece. However, at the moment, though the visible shield follows the weapon piece the actual shield does not, it remains at the 0 0 0 location on the model. This means all projectile will be deflected as if the shield was at 0 0 0. The exception to this is beamlasers, which seem to collide with the visible shield, not the one emitted from the 0 0 0 position. Presumably this is because beamlaser collision with shields was done later.

Fix PLEASE. Please. :(
Is this still true? If it is it should be an extremely simple fix.

Edit: already fixed, and the dirctional repulsion direction is done. Now to do the visualization. I should probably add a tag to determine if the texture reorients...
Post Reply

Return to “Feature Requests”