EXPLODE_ON_HIT

EXPLODE_ON_HIT

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

EXPLODE_ON_HIT

Post by Argh »

...uh, is it just me, or does that not actually work?

If not, could somebody please fix that? It makes big things that fall behave like rubber balls. If it's supposed to work, then how can I make big Pieces die when they hit the ground or Units, 100%?

Sorry to cry about that at this late date, but meh, I just got to see what happens with huge multistory buildings collapse using the projectile stuff, and it's great until they start interacting with the ground. I've literally seen them sit there bouncing for several seconds, long after the dust has settled... kinda screws up the effect :P
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: EXPLODE_ON_HIT

Post by KDR_11k »

It makes the debries deal 20 damage to every unit they hit.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: EXPLODE_ON_HIT

Post by Argh »

That's all it does? It's supposed to remove the projectile when it hits. At least, IIRC, that's what it did in OTA. Well, that, and show a GAF (which is a problem that I don't have with this, since I can override that).
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: EXPLODE_ON_HIT

Post by FLOZi »

Indeed. It'd be nice to control whether or not it dies and how much damage it does. Not a trivial change, however.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: EXPLODE_ON_HIT

Post by Argh »

That sucks. I was hoping it would be low-hanging fruit. We can't just kill the projectile when it detects a collision, I take it?
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: EXPLODE_ON_HIT

Post by jK »

you can with lua but that's slow
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: EXPLODE_ON_HIT

Post by Argh »

I don't care if it's slow, this is something that happens only once in a blue moon, gamecode-wise. How do I detect the collision? How do I destroy a Piece projectile?

Oh, wait... you're probably going to tell me I need to put it in a list and track it every gameframe vs. the ground. Yeah, that would get slow. Too slow, unfortunately.

Do Piece projectiles return a valid weaponID if they trigger an explosion? That might be a way around this...
Post Reply

Return to “Feature Requests”