Skip to content

Add Fire Support Component#752

Open
Mike-MF wants to merge 6 commits into
masterfrom
firesupport
Open

Add Fire Support Component#752
Mike-MF wants to merge 6 commits into
masterfrom
firesupport

Conversation

@Mike-MF
Copy link
Copy Markdown
Member

@Mike-MF Mike-MF commented Oct 30, 2025

When merged this pull request will:

  • Core functionality for using mortars to fire on any kind of projectile, ideally smokes/flares.
  • Mixed between template / settings.

@Mike-MF Mike-MF marked this pull request as ready for review May 8, 2026 20:03
@Mike-MF Mike-MF requested a review from jonpas May 8, 2026 20:04
Comment thread addons/firesupport/XEH_postInit.sqf Outdated

if !(_ammo in tac_scripts_ammoTypes) exitWith {};

// Delayed for accurate projectile position.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On which machine is the projectile local? We should take position on that machine.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iirc projectiles are local to the machine that fired them

Comment thread addons/firesupport/XEH_preInit.sqf Outdated
// Ensure defaults are set.
if (hasInterface) then {
if (isNil "tac_scripts_ammoTypes") then {
tac_scripts_ammoTypes = ["SmokeShellOrange", "G_40mm_SmokeOrange"];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why tac_scripts_* here? Just do tac_firesupport_*, it makes way more sense.

Especially with tac_scripts_areaSize, that variable does nothing to limit to to fire support functionality.

Copy link
Copy Markdown
Member Author

@Mike-MF Mike-MF May 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the customisation is handled in the template, aside from me everyone who would use it just gets confused. & areaSize creates a marker that mortar strike uses for it's radius

Comment thread addons/firesupport/XEH_preInit.sqf
#include "initSettings.inc.sqf"

// Ensure defaults are set.
if (hasInterface) then {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why even set on hasInterface machines? Wouldn't it be better to just set ammo types on the server and on clients just check if it's a general GL/larger round (so we filter out small arms fire)?

Even better would be an event handler only setup on the server that does everything. Eg. Fired/FiredMan.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it's based on a player fired EH, the initial part is handled locally and the server does the rest (The EH filters for ammo type early and it's fast)

Mike-MF and others added 2 commits May 11, 2026 11:07
Co-authored-by: jonpas <jonpas33@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants