SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=219)
-   -   [REQ]Calculations in the mod, display calculated values (https://www.subsim.com/radioroom/showthread.php?t=194053)

Amihai 04-05-12 05:00 PM

[REQ]Calculations in the mod, display calculated values
 
hi. sorry my bad english

I don't find handy aob tool.I was read old menu.ini manual and don't understand where from devices get values and where controls state stored.

Is it possible to *calculate* value:
360 - (Direction+Bearing) - (Direction+Bearing) \ 360 * 360
and draw mark on the attack data tool?

Hitman 04-05-12 05:19 PM

No, it can't be done directly. You will need to do several different marks on the map with different tools to calculate all that.

Amihai 04-05-12 07:52 PM

Why?
It's pure mathematics.
bearing is periscope indication
course is compass indication
I can SEE all of them, but I need to ACCESS them.

One string of code, calculated mark on the ADT, counterclockwise 360 scale instead +-180. and we have ultra handy AOB device:D

questions are :
how to access bearing and course data
how to implement simple calculations in the mod
how to draw dynamic calculated mark on the 360 static round scale


All times are GMT -5. The time now is 04:32 AM.

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.