SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
01-12-17, 06:49 AM | #1 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
I have finally something working .... but the way it works is strange .... further tests needed .... I tell you more this evening .... or later .....
|
01-12-17, 05:05 PM | #2 | |
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
|
Quote:
Can't wait for your news! |
|
01-12-17, 07:07 PM | #3 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
RESULTS OF MY TESTS
So, I will explain you how it works.
How did I succeed ? First because I'm obstinate. And second thanks to gap's excellent ideas. Thank you bro ! Now, here are the details : First, I've removed the collision boxes and zones from the wings to prevent them to be destroyed by the explosion input. Now, I could probably add them again without any problem I think, I didn't test. I've separated the 3D model of the rockets from the rack and made it child node. Perhaps I could also put the virtual gun as child node to have more simple loadout definitions files. I've added a "trigger" under each rack placement in the airplane .dat file. For these triggers, I've created a special zone in the Zones.cfg. To have these triggers destroyed when a rocket is fired, 3 things are necessary : - a collision sphere, whatever size or location. - the new type-box, but with an armor level different from -1 (which is odd, because -1 means that the value is the one in the Zones.cfg file which is 90) : if you set 90 instead of -1, it works ! (it's very odd). This type-box is linked to the object of the rockets model in the guns_SB.dat file. Thus, when the trigger is destroyed, the rockets model disappear. - a 3D model (which can be invisible, but I let it visible for my tests, so I can see it when destroyed). And finally, I've created an explosion input. For that, I downloaded The Dark Wraith mod about fire destroying the ships. I've understood the process and created a file containing the settings for a single explosion. There is an odd thing here : there must be a very high value (200) to destroy a zone with only 20 hitpoints ... Anyway. This explosion is linked to the particles.dat file where the effect of rocket launch event is stored. Moreover, the explosion is in a child node which allows to put it UNDER the wings, where I placed the triggers. Thus, the explosion can't destroy the wings ! And that's it. To better understand what's going on, I've added some visual marks (small light stars) spawned when an event occures. The red stars indicate the location of the explosion impulses. The blue stars indicate the location of each rocket-shell departure and last 5 seconds during which you can see the virtual gun moving on the left or on the right, you will see that the marks are always placed in the rockets models. So, maybe now you want to see this by yourself ? No problem, here is my experimental airplane with the necessary files for the rockets. And also a single mission to test (called "rockets"). It is JSGME ready. http://www.mediafire.com/file/kvs7q7...ET_TESTING.zip But before installing, you have to create a new zone in Zones.cfg (a new number at the end of the list (example : 192=Rocket), and a new paragraph), and report its number in the airplane .zon file (for each trigger, the actual number is 192, but maybe it will be different for you). The zone settings are : [Rocket] Multiplier=1.0 Flotability=0.0 HitPoints=20 Destructible=Yes Armor Level=90 Critic Flotation=0.3 Critical=No FloodingTime=1 CargoType=None For testing, there are 40 rockets for each gun, one rocket is launched every second. I've made them inoffensive for your U-Boot. A strange thing is that sometimes, more than 5 rockets are launched and the rockets model is not destroyed. That's why I made bigger boxes in .zon file but without success. I was on the point to test with a bigger 3D model for one of the trigger. Perhaps by adding more collision spheres ? You see ? That was a hard work, and it's still not perfect, even if I spent near 25 hours in tests. Thank you very much gap for your excellent advice which helped me to solve the problem. Have fun with tests, and tell me what could be improved, and how ?? Last thing : I didn't manage to fix the crazy forward machine guns of the Avenger, also firing straight forward when the U-Boot is behind ... |
01-13-17, 11:26 AM | #4 |
Ocean Warrior
Join Date: May 2012
Location: In the sea, on land and above
Posts: 3,349
Downloads: 848
Uploads: 0
|
I get the wrong suspension missiles
|
01-13-17, 11:54 AM | #5 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
That's normal. What you see are the triggers models. They will be invisible in the final version !
|
01-13-17, 12:05 PM | #6 |
Ocean Warrior
Join Date: May 2012
Location: In the sea, on land and above
Posts: 3,349
Downloads: 848
Uploads: 0
|
|
01-13-17, 03:22 PM | #7 |
Sea Lord
|
Kendras your work is amazing . join WAC TEAM
|
01-13-17, 04:16 PM | #8 | |||
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
|
Brilliant
Quote:
Quote:
Quote:
|
|||
01-14-17, 07:27 AM | #9 |
Ocean Warrior
Join Date: May 2012
Location: In the sea, on land and above
Posts: 3,349
Downloads: 848
Uploads: 0
|
Rockets do not fly
Last edited by Anvar1061; 01-14-17 at 08:53 AM. |
01-14-17, 10:50 AM | #10 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
Thank you for input. But what do you mean ? You don't see any rocket beeing fired ? You're taking damage : maybe from the machine guns ?
|
01-14-17, 11:20 AM | #11 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
It appears that the mechanism is not at all reliable. Sometimes, the rockets model disappears as soon as one rocket is fired. Sometimes, 2 or 3 rockets are necessary. And sometimes, the model doesn't disappear at all. And worse, the airplane is sometimes destroyed. Random effects ... So I won't add this feature to my first version. Last edited by Kendras; 01-14-17 at 11:28 AM. |
01-14-17, 11:32 AM | #12 |
Ocean Warrior
Join Date: May 2012
Location: In the sea, on land and above
Posts: 3,349
Downloads: 848
Uploads: 0
|
|
01-14-17, 12:59 PM | #13 | |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
Quote:
Else, I have resized all the rockets with the RL dimensions. Indeed : |
|
|
|