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 > Silent Hunter III
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 11-05-25, 09:05 PM   #1
Bladekill1298
Engineer
 
Join Date: Sep 2014
Location: Land of Corn
Posts: 210
Downloads: 63
Uploads: 0
Default I Need Help Figuring Out Airplane Guns

Hello Subsim my friend wants me to make a UFO Airplane Mod for him I already have a model that I can use but I'm not sure what controls turrets angle of restriction (when a gun can no longer turn because somethings in the way) because I want to keep them in one place so they shoot down so I can make it shoot some kind in a ring of guns on the bottom or just 1 gun that has the shell for a 16 inch or something. My issue is I can't find in the files what controls what stops how far a gun can rotate until its considered blocked like with ships where thats controlled in obj_turret. Does anyone know what controls how far a gun on an airplane is allowed to rotate before it is stopped or "blocked"
Bladekill1298 is offline   Reply With Quote
Old 11-06-25, 03:55 AM   #2
VikingGrandad
Chief
 
Join Date: Jul 2005
Location: AM93
Posts: 319
Downloads: 99
Uploads: 0
Default

wpn_Cannon -> obj_Turret -> Traverse -> min & max
__________________
VikingGrandad is offline   Reply With Quote
Old 11-06-25, 10:55 AM   #3
Bladekill1298
Engineer
 
Join Date: Sep 2014
Location: Land of Corn
Posts: 210
Downloads: 63
Uploads: 0
Default

Quote:
Originally Posted by VikingGrandad View Post
wpn_Cannon -> obj_Turret -> Traverse -> min & max
I tried adding that in before to the airplane but it didn't work what was I doing wrong?

Edit: Thank you for helping and I managed to make the guns on this JU88 as an example able to rotate completely through the x-axis but all guns are still limited to a certain threshold on the Y axis and won't cross over it. This probably isn't necessary for what I want to do but I still want to know why it won't cross the Y axis over a certain point even though I set the min to -360 and max to 360 for basically both traverse and elevation respectfully.

Example of what I did so far:

All guns should be shooting through the material of the plane at the ships but they don't and you can see them shooting through some of the material of the plane but not over the Y axis

Last edited by Bladekill1298; 11-06-25 at 10:59 PM.
Bladekill1298 is offline   Reply With Quote
Old 11-10-25, 04:07 PM   #4
Mister_M
Ace of the Deep
 
Join Date: Feb 2021
Posts: 1,055
Downloads: 31
Uploads: 0


Default

Quote:
Originally Posted by Bladekill1298 View Post
I set the min to -360 and max to 360 for basically both traverse and elevation respectfully

Don't do that!

For traverse : min=0, max=360
For elevation: min=-90, max=90
__________________
KENDRAS / MISTER_M
https://kendras-sh3-modding.forumgaming.fr/
-
Mister_M is offline   Reply With Quote
Old 11-14-25, 10:13 PM   #5
Bladekill1298
Engineer
 
Join Date: Sep 2014
Location: Land of Corn
Posts: 210
Downloads: 63
Uploads: 0
Default

Quote:
Originally Posted by Mister_M View Post
Don't do that!

For traverse : min=0, max=360
For elevation: min=-90, max=90
Thank you I'm guessing having the elevation higher than what it should just breaks it?
Bladekill1298 is offline   Reply With Quote
Old 11-15-25, 09:37 AM   #6
Mister_M
Ace of the Deep
 
Join Date: Feb 2021
Posts: 1,055
Downloads: 31
Uploads: 0


Default

Quote:
Originally Posted by Bladekill1298 View Post
Thank you I'm guessing having the elevation higher than what it should just breaks it?

Yes. It may be even safer to set elevation as: min=-89, max=89
__________________
KENDRAS / MISTER_M
https://kendras-sh3-modding.forumgaming.fr/
-
Mister_M is offline   Reply With Quote
Old 11-15-25, 10:15 AM   #7
Bladekill1298
Engineer
 
Join Date: Sep 2014
Location: Land of Corn
Posts: 210
Downloads: 63
Uploads: 0
Default

Quote:
Originally Posted by Mister_M View Post
Yes. It may be even safer to set elevation as: min=-89, max=89
Your settings make them shoot as they are supposed to normally I was going more for a full circle range
Bladekill1298 is offline   Reply With Quote
Old 12-10-25, 10:07 AM   #8
JU_88
Silent Hunter
 
Join Date: Jan 2006
Location: Spain
Posts: 3,529
Downloads: 11
Uploads: 0
Default

Seems like the other chaps got you sorted,
one thing to note about turret and mounted guns in baked in to a units sim file *and not an equip library called gun*
The guns default rotation and elevation when the unit loads in to the game should be exactly pivoted to 0, 90, 180 or 270 degrees rotation, with elevation at 0.
If you do not do this the guns aim will be messed up and it will never be able to hit any target.
__________________
JU_88 is offline   Reply With Quote
Old 12-10-25, 04:18 PM   #9
Bladekill1298
Engineer
 
Join Date: Sep 2014
Location: Land of Corn
Posts: 210
Downloads: 63
Uploads: 0
Default

Quote:
Originally Posted by JU_88 View Post
Seems like the other chaps got you sorted,
one thing to note about turret and mounted guns in baked in to a units sim file *and not an equip library called gun*
The guns default rotation and elevation when the unit loads in to the game should be exactly pivoted to 0, 90, 180 or 270 degrees rotation, with elevation at 0.
If you do not do this the guns aim will be messed up and it will never be able to hit any target.
If you mean the sim.cfg I messed with it so everything's got an error angle of 2 so they basically are pinpoint accurate.

Thank you for noting that though
Bladekill1298 is offline   Reply With Quote
Old 12-11-25, 05:30 AM   #10
JU_88
Silent Hunter
 
Join Date: Jan 2006
Location: Spain
Posts: 3,529
Downloads: 11
Uploads: 0
Default

No, sorry to be clear I actually mean the default position of the guns node in the dat file. If its default position is set at any kind of diagonal angle (traverse or elevation) in the 3d preveiw in the Dat file, its aim will be off when it opens fire. fromthe perspective of the Unit, the guns must point perfectly straight ahead, aft or to the sides.
found this out the hard way with the Chin gun on the B-18 Bolo and the ventral guns on many other bombers, IRL they are default angled to point down slightly, not dead forwards or aft. - But Yeah, Sh3 doesnt like that at all, and when firing at your Uboat, they'll miss by a country mile.
__________________
JU_88 is offline   Reply With Quote
Old 12-11-25, 03:25 PM   #11
Bladekill1298
Engineer
 
Join Date: Sep 2014
Location: Land of Corn
Posts: 210
Downloads: 63
Uploads: 0
Default

Quote:
Originally Posted by JU_88 View Post
No, sorry to be clear I actually mean the default position of the guns node in the dat file. If its default position is set at any kind of diagonal angle (traverse or elevation) in the 3d preveiw in the Dat file, its aim will be off when it opens fire. fromthe perspective of the Unit, the guns must point perfectly straight ahead, aft or to the sides.
found this out the hard way with the Chin gun on the B-18 Bolo and the ventral guns on many other bombers, IRL they are default angled to point down slightly, not dead forwards or aft. - But Yeah, Sh3 doesnt like that at all, and when firing at your Uboat, they'll miss by a country mile.
So the .dat gun position should an integral of 90 so it doesn't mess up its targetting?
Bladekill1298 is offline   Reply With Quote
Old 12-13-25, 05:53 AM   #12
JU_88
Silent Hunter
 
Join Date: Jan 2006
Location: Spain
Posts: 3,529
Downloads: 11
Uploads: 0
Default

Quote:
Originally Posted by Bladekill1298 View Post
So the .dat gun position should an integral of 90 so it doesn't mess up its targetting?

Yes sir.
__________________
JU_88 is offline   Reply With Quote
Old 12-13-25, 03:51 PM   #13
Bladekill1298
Engineer
 
Join Date: Sep 2014
Location: Land of Corn
Posts: 210
Downloads: 63
Uploads: 0
Default

Quote:
Originally Posted by JU_88 View Post
Yes sir.
Thank you
Bladekill1298 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 07:00 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.