PDA

View Full Version : [REQ]Calculations in the mod, display calculated values


Amihai
04-05-12, 05:00 PM
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