![]() |
Idea for fixing magnetic detonator
I'm new on subsim but i was wondering if anyone could help me. I was wondering how hard it would be to create a mod that fixes the issue with magnetic detonator's not working on GR2 ship files. TheBeast mentioned adding a Damage Zone for the Magnetic Influence Detonator that extended above the torpedo which is then linked to the detonator to detonate the torpedo(sort of a buffer zone). I was wondering if this would be possible and how hard it would be. I'm barely beginning to mod, otherwise I would do it myself.
I absolutely love SH5 but this thing with mag detonators is driving me crazy and robbing me of one of my most favorite features of Silent Hunter.:damn::damn: |
Quote:
...You and most everyone on this forum. I think its one of those things that isn't fixable by mods. I know some of the best modders on this forum have looked into it. |
Rongel made a great discovery that the magnetic detonator works on .dat rendered units. Now it's just figuring out why and what the major differences between .dat and .GR2 units is :yep:
|
The problem with adding invisible zone to magnetic torpedoes is that both magnetic and impact torpedoes use the same actual torpedo. So we can't add new zone only in magnetic torpedo, it will affect the impact-detonator too.
I think the answer is in the DMG_col_-node and it's 3d model. SH 4 ships work just well, something is different in SH 5 damage 3d model. And I believe that dud- and magnetic torpedo issues are related, if we get one working, other will work too. |
I don't mind if it affects both torpedoes. I know it's kind of an ugly fix, but I would just like something that makes the torpedoes able to detonate under the ship 100% of the time. So if someone could create it would be greatly appreciated.
If someone does create it could you do two versions-one the standard height and another 20m high? I like to mod the blast range to 20-30m sometimes. |
Quote:
|
Quote:
|
Today I finally narrowed down the routine that checks for magnetic 'collision' of the torpedoes in shcollision.act. I was able to get the game to detonate the torpedo when using magnetic detonators on GR2 ships :D There are a few 'problems' I'm working out before I can release a patch for this. One of the problems is that the unit takes no damage from the torpedo (this is because of something that is missing in the GR2 type units) and I'm looking for a way to tell the game that it does exist :yep:
|
Quote:
|
I also found the routine that is called when the unit hits the bottom of the ocean...I'll flag this for further looking into so that maybe units will stay sitting on the bottom when they are destroyed :DL
I've also found the routines that are called when debris should be shown, when the damage effects (the explosions, etc.) should be shown, when to add unit destroyed mark to the map, and many other things. Been a very productive day so far! |
Quote:
|
Quote:
|
My fix works :rock: The GR2 unit takes damage from magnetic torpedoes! Of course this needs full testing but I'll put together a patch for it now :D
|
Quote:
Edit: woop! Quote:
|
I see some problems with the GR2 units as far as collision spheres go and magnetic detonators. Since almost all the GR2 units have a sphere in the middle of the ship and nowhere else (on the root node) the magnetic detonator will only detonate near the middle of the ship. We'll have to add collision spheres to all the GR2 units (ships) so that the entire unit is covered :shifty:
|
All times are GMT -5. The time now is 06:33 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.