![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
|
|
Thread Tools | Display Modes |
07-20-13, 05:40 PM
|
#11 |
|
Black Magic
![]() |
All the code is finished for using the stadimeter as a sextant. I went to test it in game:
Seems to me the angle is greater than 8.95 degrees ![]() What I did was add 3 new commands to the game: Enable_Sextant Disable_Sextant and Sextant_angle Sextant_angle is not a command the user calls. Instead the game calls it passing the angle calculated between the two green lines to all the scripts. Thus it's easy to intercept in the scripts (Param1Float) and grab the angle. How this all works: First, in order to use the stadimeter as a sextant you have to have the TDC on. Next you have to bring up the sextant window. In my UIs mod click the Navigator to bring up his orders bar. Then click the Sextant to display the Sextant window. Next place the green line on the horizon. Then you have to enable the stadimeter as sextant (call the Enable_Sextant command). You do this in my UIs mod by pressing the Enable sextant button. If you decide you do not want to use the sextant simply press the Disable sextant to return stadimeter to normal (which calls the Disable_Sextant command). Then press the stadimeter button to use the sextant (in my UIs mod press the stadimeter button located above the TDC Range dial). Then move the green line to the position in the sky you want to take a reading on. The angle is automatically updated in the Sextant box for you (in my UIs mod). Once done taking you reading simply click the scope screen (just like you do with the stadimeter) to stop using the sextant. You do not need to click the Disable sextant button after this, the game automatically clears the bit for you. We need to figure out the math required to get this angle value correct. All I did was grab the value that the game calculates and would show in the old torpedo box (think back SH3). EDIT: added another new command to the game: Stadimeter_active This command is not called by the player. It is called by the game. When the stadimeter goes active the game will call this command passing 1 in Param1 (goes out to all the scripts). When the stadimeter is no longer active the game will call this command passing 0 in Param1 (goes out to all the scripts). Very useful for many things! Last edited by TheDarkWraith; 07-20-13 at 07:44 PM. |
|
|
|
|
