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?
Possible in Spring, with minor recoding?
Moderator: Moderators
-
- Imperial Winter Developer
- Posts: 3742
- Joined: 24 Aug 2004, 08:59
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.
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.
-
- Imperial Winter Developer
- Posts: 3742
- Joined: 24 Aug 2004, 08:59
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.
-
- Imperial Winter Developer
- Posts: 3742
- Joined: 24 Aug 2004, 08:59