Re: Vehicle facing
OK - Now have this incorporated into both games for testing. seems to be working fine.
One thing - there were two right click events to handle, one on the map with no detected enemy there (turns turret if it has one), and one onto an enemy unit (the latter shows the enemy info, and also aligns the hull). Now, the latter has an option to SHIFT+RIGHT_CLICK if all you want is target info, unit does not turn to face the enemy then, possibly drawing fire.
I have also limited it to a maximum range of a kilometre or so, half that if it's an infantry unit, as only close-by enemy may notice. Chance of popping off an opfire shot is also higher closer than far away.
|