TheDarkWraith |
02-24-09 11:43 AM |
You guys have to remember that I was unable to slow down the torpedos that AI shoot. They move at 150knots....which is quite unrealistic BUT it is awesome to watch :yep: Also they can, and do, pass through solid objects. The torpedoes do not detonate on impact but rather they are given a range to run. Once they reach that distance they detonate.
So basically here's how the AI shoots the torpedoes:
- they calculate the heading to the object. They are not intelligent enough to 'fire ahead' of your course. They will fire directly at you present position.
- they calculate the range to you. Once they have that range they fire the AI torpedo. It moves at 150 knots, leaving a bubble trail, and once the preset range has been reached it detonates. Anything within the blast radius takes damage.
That was the best I could and still can do. There's just no way to spawn a torpedo at a given heading. They all want to run north when spawned.
So why the 150 knots? It all has to do with how I got the 'torpedo' to be a torpedo. It's not a true torpedo, it's piggy backed onto another object that isn't visible.
Basically the torpedo launcher is a gun, a normal say 88mm gun. It shoots torpedo 'shells'. The minimum speed of these shells has to be around 150 knots in order for the gun to lock onto an object and fire at a reasonable distance out (~1500 meters). Now the shells travel in an arc, going up in the air and coming back down. This would not be realistic at all for any kind of torpedo so I piggy backed a torpedo 'object' to the shell but locked it to a certain distance under the water. Now as the shell moves through the air the torpedo follows it but at a certain distance under the water (now you see why the torpedo moves at 150 knots) leaving the familiar bubble trail as usual. Now since the torpedo doesn't have a collision model it can pass through solid objects (I was unable to give it a collision model - if this obstacle can be overcome then the AI torps will be a little more realistic as they can detonate on impact).
So how does the torpedo detonate? Well as the torpedo 'shell' travels back down to earth it will at some point splash down into the water. When it splashes into the water the piggy backed torpedo 'object' disappears and a torpedo 'depth charge' is made that very quickly falls to the depth the AI torpedo was at. As soon as it reaches that depth it detonates like all depth charges do. This gives the illusion that the AI torpedo detonated.
Now you see how and why the AI torpedo has to be at 150 knots. Do you all still want it?
|