Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Raptor on October 18, 2006, 05:22:35 pm

Title: Detonation Range?
Post by: Raptor on October 18, 2006, 05:22:35 pm
I have a query about this new weapons tbl flag in relation with a weapon I have in mind.

As I read it, it says that the weapon will detonate once it has travelled a set distance from the point where it was launched.

Surely a more useful flag would be detonate the weapon a set distance from the target, right? Kinda like 'Arm radius'

Or am I just reading it wrong?

FYI, the weapon I had in mind was like those multi-warhead missiles carried by nuclear subs, where there are actually 8-12 warheads in each missile.  Idea is that a missile is launched, it flies to target... and then at a set distance from the target it fragments into a dozen smaller missiles which then rain down on the target.
Title: Re: Detonation Range?
Post by: Axem on October 18, 2006, 05:29:21 pm
I think the idea for detonation range was to create a defensive flak screen, more or less seen in the new Battlestar Galactica.

But your offensive version of the flag seems quite interesting. :)
Title: Re: Detonation Range?
Post by: Trivial Psychic on October 18, 2006, 08:36:29 pm
FYI, the weapon I had in mind was like those multi-warhead missiles carried by nuclear subs, where there are actually 8-12 warheads in each missile.  Idea is that a missile is launched, it flies to target... and then at a set distance from the target it fragments into a dozen smaller missiles which then rain down on the target.
Sounds like the Sierra torpedo dispersal pattern from Star Trek.
Title: Re: Detonation Range?
Post by: Raptor on October 20, 2006, 04:09:44 am
Well, I tried using the 'Remote Detonate' flag, but that didn't work right...

Anyway, I've put together a weapon for the idea, including new models.  still needs a little tweakage...
Title: Re: Detonation Range?
Post by: Wanderer on October 21, 2006, 05:50:40 am
I made a script to get the weapon detonated when it gets close enough to the target but it measures distance from the center of the enemy model, not the surface so it doesnt work as well as i would like it to
Title: Re: Detonation Range?
Post by: WMCoolmon on October 26, 2006, 12:58:07 am
I've added & tested a "$Detonation Radius" field after "$Detonation Range", as well as making the latter apply for all weapons rather than just flak.

However, it works the same way as Wanderer's script does. If the general consensus is that it should be changed to measure against the object's radius, I can do that, and/or change the name to something less confusing (if someone can come up with something better).

The changes will go into CVS with the new scripting system, so watch for that. If you want a build to test with just ask.
Title: Re: Detonation Range?
Post by: WMCoolmon on October 26, 2006, 04:42:07 am
Or this build: http://www.hard-light.net/forums/index.php/topic,43015.0.html
Title: Re: Detonation Range?
Post by: Raptor on October 26, 2006, 12:11:00 pm
Oh... my... god.  A code change that I suggested has actually been implermented!?!
:jaw:
It's just that has not happened to me before (as far as I know...)

Nice work people!  I'll try that ASAP! :yes:
Title: Re: Detonation Range?
Post by: Nuke on October 26, 2006, 01:44:04 pm
actually ive been asking for this sence the code was released :D