![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
11-05-25, 09:05 PM
|
#1 |
|
Engineer
![]() Join Date: Sep 2014
Location: Land of Corn
Posts: 210
Downloads: 63
Uploads: 0
|
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"
|
|
|
11-06-25, 03:55 AM
|
#2 |
|
Chief
![]() Join Date: Jul 2005
Location: AM93
Posts: 319
Downloads: 99
Uploads: 0
|
wpn_Cannon -> obj_Turret -> Traverse -> min & max
|
|
|
11-06-25, 10:55 AM
|
#3 |
|
Engineer
![]() Join Date: Sep 2014
Location: Land of Corn
Posts: 210
Downloads: 63
Uploads: 0
|
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. |
|
|
11-10-25, 04:07 PM
|
#4 | |
|
Ace of the Deep
![]() |
Quote:
Don't do that! ![]() For traverse : min=0, max=360 For elevation: min=-90, max=90 |
|
|
|
11-14-25, 10:13 PM
|
#5 |
|
Engineer
![]() Join Date: Sep 2014
Location: Land of Corn
Posts: 210
Downloads: 63
Uploads: 0
|
|
|
|
11-15-25, 09:37 AM
|
#6 | |
|
Ace of the Deep
![]() |
Quote:
Yes. It may be even safer to set elevation as: min=-89, max=89 |
|
|
|
11-15-25, 10:15 AM
|
#7 |
|
Engineer
![]() Join Date: Sep 2014
Location: Land of Corn
Posts: 210
Downloads: 63
Uploads: 0
|
|
|
|
12-10-25, 10:07 AM
|
#8 |
|
Silent Hunter
![]() Join Date: Jan 2006
Location: Spain
Posts: 3,529
Downloads: 11
Uploads: 0
|
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. |
|
|
12-10-25, 04:18 PM
|
#9 | |
|
Engineer
![]() Join Date: Sep 2014
Location: Land of Corn
Posts: 210
Downloads: 63
Uploads: 0
|
Quote:
Thank you for noting that though |
|
|
|
12-11-25, 05:30 AM
|
#10 |
|
Silent Hunter
![]() Join Date: Jan 2006
Location: Spain
Posts: 3,529
Downloads: 11
Uploads: 0
|
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. |
|
|
12-11-25, 03:25 PM
|
#11 | |
|
Engineer
![]() Join Date: Sep 2014
Location: Land of Corn
Posts: 210
Downloads: 63
Uploads: 0
|
Quote:
|
|
|
|
12-13-25, 05:53 AM
|
#12 | |
|
Silent Hunter
![]() Join Date: Jan 2006
Location: Spain
Posts: 3,529
Downloads: 11
Uploads: 0
|
Quote:
Yes sir. |
|
|
|
12-13-25, 03:51 PM
|
#13 |
|
Engineer
![]() Join Date: Sep 2014
Location: Land of Corn
Posts: 210
Downloads: 63
Uploads: 0
|
|
|
|
![]() |
|
|
