Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: psyhotik on December 01, 2008, 08:15:54 am

Title: Missile not destroyed in collision with torpedo
Post by: psyhotik on December 01, 2008, 08:15:54 am
Hi! Sorry for posting it here but I still can't register to Mantis :\

When torpedo (Cyclops) is destroyed by a missile (I've tested it on Harpoon, not sure about the rest), sometimes (if not always - this is hard to observe if you ale the one shooting harpoon) the missile is not destroyed by torpedo shockwave, insted missile continues its flight until it lifetime ends. I assume it's some kind of a bug, as it would be more logical if missile gets destroyed when it hits the torpedo. This effect can be observed by equiping capship turret with harpoon, ordering it (by SEXP) to target torpedos and adding some enemy bombers. Also, sometimes the missile seems to pass through the torpedo without destroying it but it may be a near miss (I'm no coder/moder so I can't test it closely)...

Im using fs2_open_3_6_10d-20081121_r4956.exe and MediaVP 3.6.10 Beta .
Title: Re: Missile not destroyed in collision with torpedo
Post by: chief1983 on December 01, 2008, 10:06:08 am
It shouldn't even be the shockwave that destroys it as much as the actual impact with the Cyclops.  Interesting bug.
Title: Re: Missile not destroyed in collision with torpedo
Post by: Titan on December 01, 2008, 05:41:49 pm
well, only bombs can be destroyed mid-flight. I missle will keep going  untill it hits something. bombs are small targets, and since you only need a near miss to destroy them, it might be that the missles aren't even hitting the cyclops.
Title: Re: Missile not destroyed in collision with torpedo
Post by: FUBAR-BDHR on December 01, 2008, 06:14:21 pm
I didn't even think it was possible to destroy a bomb with a missile.  Tried it quite a few times in retail and it never seemed to work. 
Title: Re: Missile not destroyed in collision with torpedo
Post by: General Battuta on December 01, 2008, 06:35:33 pm
You can. It's just not reliable.
Title: Re: Missile not destroyed in collision with torpedo
Post by: chief1983 on December 01, 2008, 07:41:00 pm
As I'm reading this it sounds like it would be awesome to have a very small, fast, long range bomb-busting missile, that could be carried en masse, with a short lock time that's very effective against small, low agility targets.  Perhaps even heat seeking, tracking the heat signatures of bombs as opposed to fighters (it should be possible in the universe to discern bombs from any type of fighter or larger ship I would imagine).
Title: Re: Missile not destroyed in collision with torpedo
Post by: FUBAR-BDHR on December 01, 2008, 07:50:32 pm
Might as well give it a proximity warhead with a small explosion radius as well.   Kind of like a combination of a missile and a shotgun. 


Then we can give the missiles counter measures.    :lol:
Title: Re: Missile not destroyed in collision with torpedo
Post by: psyhotik on December 02, 2008, 07:22:47 am
As I'm reading this it sounds like it would be awesome to have a very small, fast, long range bomb-busting missile, that could be carried en masse, with a short lock time that's very effective against small, low agility targets.  Perhaps even heat seeking, tracking the heat signatures of bombs as opposed to fighters (it should be possible in the universe to discern bombs from any type of fighter or larger ship I would imagine).

Yeah :) I found this bug when I was trying to make an anti-bomb missile for capships :) It works good except the missile passing through bomb (sometimes without destroyng it)... :\
Title: Re: Missile not destroyed in collision with torpedo
Post by: Angelus on December 02, 2008, 08:13:48 am
I have a similar prob with missiles not destroying bombs/ nukes.
I never was able do destroy a bomb with secondaries, primaries work like a charm.

The standard missiles explode as soon they hit the bomb, but the bomb is not destroyed,
even all 16 missiles ( changed the fire rate and the speed ) don't do the job.
If i fire primaries on the bomb, it goes off with the first hit every time, although the damage the primaries cause is much smaller then the damage caused by missiles ( 1 shot primary= 35 damage , 1 missile= 350 damage ).

Is it possible that the amount of damage a missile with the bomb flag ( in my case a nuke with 9000 damage ) has anything to do with the fact that secondaries have trouble destroying them?
Or am i on the wrong path here?
Title: Re: Missile not destroyed in collision with torpedo
Post by: General Battuta on December 02, 2008, 08:23:02 am
Do bombs even have hit points?
Title: Re: Missile not destroyed in collision with torpedo
Post by: Angelus on December 02, 2008, 09:55:22 am
Do bombs even have hit points?

I didn't check the FS2 tables, so i'm not sure, but i don't think so.

That was my thought, everything target able in game has hitpoints, ships, installations even the build in asteroid field. The "bomb" flag makes missiles target able, but missiles don't have hitpoints, afaik.
I assume they get a hitpoint value from the engine.

Dunno how the engine treats the missiles ( with and without "bomb" flag), but it's surely different then primaries.
Either the missiles with the flag have a predefined value of hitpoints or the thing the damage value of the missiles applies.

But since it's mentioned, that a near miss will destroy the bomb, i guess i'm wrong here.
Title: Re: Missile not destroyed in collision with torpedo
Post by: Wanderer on December 02, 2008, 10:07:25 am
Missiles with bomb tag have hitpoints, 50 of them to be precise. And no ATM you cant alter that value (well.. in trunk you cant :P )
Title: Re: Missile not destroyed in collision with torpedo
Post by: Angelus on December 02, 2008, 10:09:06 am
HA! I was right...do a degree.  :pimp: