SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 05-15-08, 06:41 AM   #1
ref
Grey Wolf
 
Join Date: Nov 2005
Location: Mar del Plata, Argentina
Posts: 871
Downloads: 0
Uploads: 0
Default

Try changing the weapon type from AAgun to Cannon in the weapon sim file, at least in sh3 as long as it has AP/HE and AA shells it opens fire on both surface and air targets.

Ref
__________________
ref is offline   Reply With Quote
Old 05-15-08, 08:07 AM   #2
Snaptrap
Eternal Patrol
 
Join Date: Oct 2007
Location: Alberta, Canada
Posts: 224
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by ref
Try changing the weapon type from AAgun to Cannon in the weapon sim file, at least in sh3 as long as it has AP/HE and AA shells it opens fire on both surface and air targets.

Ref
Any shell type can be used for this. The important thing is that the Crew AI understands that the gun can be used on either surface or air targets. I was going to do this once but left it out because the shells used in the AA guns were at maximum strength and only used to quickly dispatch annoying aircraft. It would've ended up doing the same for everything else too.
Snaptrap is offline   Reply With Quote
Old 05-15-08, 09:37 AM   #3
ref
Grey Wolf
 
Join Date: Nov 2005
Location: Mar del Plata, Argentina
Posts: 871
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by Snaptrap
Quote:
Originally Posted by ref
Try changing the weapon type from AAgun to Cannon in the weapon sim file, at least in sh3 as long as it has AP/HE and AA shells it opens fire on both surface and air targets.

Ref
Any shell type can be used for this. The important thing is that the Crew AI understands that the gun can be used on either surface or air targets. I was going to do this once but left it out because the shells used in the AA guns were at maximum strength and only used to quickly dispatch annoying aircraft. It would've ended up doing the same for everything else too.
A human player can shoot any type of shell, the AI will only shoot if they have the correct type of shell for the different kind of targets, also if the weapon controller is set to AAgun they'll only shoot to airplanes, if it's set to to cannon they'll shoot at both kind of targets only if they have the correct ammo.

Ref
__________________
ref is offline   Reply With Quote
Old 05-15-08, 09:42 AM   #4
Snaptrap
Eternal Patrol
 
Join Date: Oct 2007
Location: Alberta, Canada
Posts: 224
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by ref
A human player can shoot any type of shell, the AI will only shoot if they have the correct type of shell for the different kind of targets, also if the weapon controller is set to AAgun they'll only shoot to airplanes, if it's set to to cannon they'll shoot at both kind of targets only if they have the correct ammo.

Ref
That's interesting because I have no AA shells at all in my mod and the AI does just fine. Perhaps some other modification causing them to act that way even without AA shells.
Snaptrap is offline   Reply With Quote
Old 05-15-08, 09:42 AM   #5
akdavis
Samurai Navy
 
Join Date: Mar 2005
Location: Fort Worth, Texas
Posts: 597
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by ref
Quote:
Originally Posted by Snaptrap
Quote:
Originally Posted by ref
Try changing the weapon type from AAgun to Cannon in the weapon sim file, at least in sh3 as long as it has AP/HE and AA shells it opens fire on both surface and air targets.

Ref
Any shell type can be used for this. The important thing is that the Crew AI understands that the gun can be used on either surface or air targets. I was going to do this once but left it out because the shells used in the AA guns were at maximum strength and only used to quickly dispatch annoying aircraft. It would've ended up doing the same for everything else too.
A human player can shoot any type of shell, the AI will only shoot if they have the correct type of shell for the different kind of targets, also if the weapon controller is set to AAgun they'll only shoot to airplanes, if it's set to to cannon they'll shoot at both kind of targets only if they have the correct ammo.

Ref
Sounds like a good place to start. Main problem will be adding AA ammo and squaring that with real ammo types. Can AA ammo be added to a gun in the sim file as well?
__________________
-AKD
akdavis is offline   Reply With Quote
Old 05-15-08, 09:58 AM   #6
ref
Grey Wolf
 
Join Date: Nov 2005
Location: Mar del Plata, Argentina
Posts: 871
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by akdavis
Quote:
Originally Posted by ref
Quote:
Originally Posted by Snaptrap
Quote:
Originally Posted by ref
Try changing the weapon type from AAgun to Cannon in the weapon sim file, at least in sh3 as long as it has AP/HE and AA shells it opens fire on both surface and air targets.

Ref
Any shell type can be used for this. The important thing is that the Crew AI understands that the gun can be used on either surface or air targets. I was going to do this once but left it out because the shells used in the AA guns were at maximum strength and only used to quickly dispatch annoying aircraft. It would've ended up doing the same for everything else too.
A human player can shoot any type of shell, the AI will only shoot if they have the correct type of shell for the different kind of targets, also if the weapon controller is set to AAgun they'll only shoot to airplanes, if it's set to to cannon they'll shoot at both kind of targets only if they have the correct ammo.

Ref
Sounds like a good place to start. Main problem will be adding AA ammo and squaring that with real ammo types. Can AA ammo be added to a gun in the sim file as well?
Yes, open the sim file with s3d, and look into the wpn_Cannon controller in the ammo_storage section, you'll also need to look in the shells dat file for the Id numbers of the ammo.

Ref
__________________
ref is offline   Reply With Quote
Old 05-15-08, 11:24 PM   #7
akdavis
Samurai Navy
 
Join Date: Mar 2005
Location: Fort Worth, Texas
Posts: 597
Downloads: 0
Uploads: 0
Default

Well, partial success. Changing the id to cannon did in fact allow them to engage surface targets, but now they won't engage air targets. Added AA ammo to all guns as indicated above. And the positions sometimes go wonky and won't allow manual control anymore, only panning view around independent of the gun mount.

If I knew I could consistently man the 40mm/37mm myself, I'd just change those, but without being sure I can turn it against aircraft, that might not be a good idea.
__________________
-AKD
akdavis is offline   Reply With Quote
Old 05-16-08, 12:29 AM   #8
Snaptrap
Eternal Patrol
 
Join Date: Oct 2007
Location: Alberta, Canada
Posts: 224
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by akdavis
Well, partial success. Changing the id to cannon did in fact allow them to engage surface targets, but now they won't engage air targets. Added AA ammo to all guns as indicated above. And the positions sometimes go wonky and won't allow manual control anymore, only panning view around independent of the gun mount.

If I knew I could consistently man the 40mm/37mm myself, I'd just change those, but without being sure I can turn it against aircraft, that might not be a good idea.
That's because it's not the proper method. The actual steps to get the result you're looking for is more of a pain to explain than it is to do. At the moment I'm busy updating my mod, but I can hel you out when I'm done.

You don't need AA shells either because some of the AA guns don't come with AA shells and they still attack air targets. An anti-aircraft shell is just a type of shell, and is not an indication of what it's specifically designed for. The AI will use any round that is selected/highlighted.
Snaptrap is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12: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.