Anyone Interested in Torpedo Firing AI Subs ?
Just a quick update ... as part of the development work for the TSWSM, I've managed to make submerged AI submarines which fire Torpedoes.
This will be released with the TSWSM, but for those experienced modders among the community, I thought I'd describe the method in case anyone wants to start coding it into their own work;
1) Create an AI controlled submarine (if you don't know how to do this ... you'll struggle with the rest)
2) Improtant bit - import the conning tower model from the relevant conning tower file in \objects into the main submarine model.
3) Remove the refeence to mounting the conning tower to Z01 at the top of the units .eqp file.
4) Add a mount point (I used M02) 1 Metre in front of the sub and 1.1 M above it and then mount Darkfishes torpedo launcher on it.
5) Set the surfaced draft in the subs .sim file to a value which puts the sub below the surface. For the IXD2 I'm using a draft of 15
To validate if this works, modify drakfishes torpedolauncher.dat to make the launcher visible - this will help you see if the torpedo launcher is clear of the surface and will also help validate whether or not its firing.
The above does seem to be a bit snesitive to depth ... if I make the IXD2 go much deeper by increasing the draft by a couple of metres, it stops firing.
Any Q's ...post here and I'll try and answer (TSWSM development is keeping the team real busy at present)
|