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 > SHIII Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 08-26-11, 01:45 PM   #16
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
Default WIP Impact Angle

I have managed to find a dial in SH3 that does not appear to be used in the TDC operation to my knowledge (Please let me know if this is not the case).

I'm using this dial

Code:
[Dial44]
Name=Impact_Angle
Type=42; DIAL_TGT_ANG_ON_BOW
Cmd=Set_tgt_sel_value
Dial=0x3BBF0002 
CrtVal=0x3BBF0001
NewVal=0x0
DialVal=0,360
RealVal=0,360; degrees
Circular=Yes
I have not noticed any ill effect on using this dial type - but I've not done any real in-dept testing as of yet.

Ok so what have I done:
Basically I have external code that is hijacking that particular dial that is setting it to the position that I've coded.
At the moment It is basically taking the Gyroangle from the game and subtracting 180 from it (In essence mirroring the gyroangle).
I need to work out what the actual code for the Impact Angle needs to be and replace my current code with that maths.

Here you can see it in action:





What calculation will be needed to do this. Is it just the AOB plus the gyro subtracted from 360?


Last edited by reaper7; 08-26-11 at 02:38 PM.
reaper7 is offline   Reply With Quote
 


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 05:29 PM.


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