Possible in Spring, with minor recoding?

Possible in Spring, with minor recoding?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Possible in Spring, with minor recoding?

Post by Warlord Zsinj »

Well, over at SWS, we are considering releasing one or two jedi units with or next release. This leads me to wonder whether it would be possible for us to make it so that our jedi can reflect incoming laser shots; hitting them back the way they came, aiming at another unit, or simply randomly deflecting the incoming laser.

I realise that the repulsion code cannot be used, because the plasma weapons use proper physics, and hence can be reflected, unlike lasers.

Would it be possible for Spring to simply calculate the angle of incidence of the incoming laser shot, and then be reflected either back the way it came (opposite angle)? Preferably in a manner allowing us to script it so that an animation is called when a shot is reflected, and not all shots can be reflected.

While this would be perfect for the jedi in Spring; I could see other mods using it, as it would be an effective means of creating a shield where lasers are reflected from the ship (perhaps FF - AA might wish to make use of it too). If AATA or WD decide to use laser-based tracer weaponry, they could make their tanks reflect those bullets too.

Would it be possible for this coding to be included in Spring without much difficulty, or is it far more difficult then I previously imagined?
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

I would use this for NanoBlobs and future mods in a heartbeat. Anything that bends traditional RTS rules like this could be extremely handy.

But, as usual, I want more. I want to be able to selectively repulse any type of shot, especially if I can have a randomizer that lets some get through!

The same code for PlasmaRepulsor could probably do this with "physical" shots very easily. Lasers I can see being a bit more tricky- they'd have to take code out've the current plasmarepulsor, because it already uses the angle of incidence... but not too hard.

Mainly, though.. it'd be nice to have repulsors that worked like the ARMOR tag system... and could have some additional effects, like being "degraded" over time. It'd be just plain awesome to have shields like most space games do... for ground combat, it'd be sweet.

Think about it- we could have an entire armor system built around this... very useful for all sorts of things that the ARMOR tag system, while useful, just isn't as cool for.
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Post by Warlord Zsinj »

Judging by how long it took to get a response, and the complete avoidance by any actual programmers, it seems that this is highly unlikely to be included. :(
Last edited by Warlord Zsinj on 09 Mar 2006, 03:35, edited 1 time in total.
User avatar
Kuroneko
Posts: 483
Joined: 03 Jan 2005, 05:32

Post by Kuroneko »

Warlord Zsinj wrote:Judging by how long it took to get a response, and the complete avoidance by any atual programmers, it seems that this is highly unlikely to be included. :(
You could always learn to code! :P Thats always a good way to get a feature added :)
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Post by Warlord Zsinj »

I'm too busy working on my mod, uni and real life to learn how to code. Plus after learning Visual Basic and Pascal in highschool, I realised I didn't really have any particular aptitude for programming.
Post Reply

Return to “Engine”