Improved field of fire display

Improved field of fire display

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
ThinkSome
Posts: 387
Joined: 14 Jun 2015, 13:36

Improved field of fire display

Post 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.
raaar
Metal Factions Developer
Posts: 1094
Joined: 20 Feb 2010, 12:17

Re: Improved field of fire display

Post by raaar »

it'd be interesting to have this.

Shouldn't be enabled by default it the performance cost is significant, though.
DmitryProfessional
Posts: 20
Joined: 03 Jun 2019, 21:06

Re: Improved field of fire display

Post 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.
User avatar
ThinkSome
Posts: 387
Joined: 14 Jun 2015, 13:36

Re: Improved field of fire display

Post by ThinkSome »

For anyone else looking, FLOZi pointed me to this:

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

Return to “Lua Scripts”