Page 1 of 1

Improved field of fire display

Posted: 29 Nov 2019, 00:47
by ThinkSome
Does there already exist an improved field-of-fire display code that would, in addition to left and right traverse of deployed guns, show which terrain is hidden behind obstacles and which is not?

The current display of field of fire in s44 is the following:
fof.jpg
(75.95 KiB) Not downloaded yet
As you can see, it does not indicate that there is a hill in the way.

Re: Improved field of fire display

Posted: 30 Nov 2019, 22:36
by raaar
it'd be interesting to have this.

Shouldn't be enabled by default it the performance cost is significant, though.

Re: Improved field of fire display

Posted: 01 Dec 2019, 20:05
by DmitryProfessional
You can span circles from afar to up close and apply GetUnitWeaponHaveFreeLineOfFire to the points, finding those which are not obstructed. This will give u a mesh to draw.
And it will be moderately expensive.

Re: Improved field of fire display

Posted: 07 Jul 2020, 16:00
by ThinkSome
For anyone else looking, FLOZi pointed me to this:

viewtopic.php?f=23&t=29606&p=543980&hil ... et#p543980