Skip to content

[Change] Use variables for map marker config#310

Merged
Bubbus merged 5 commits intodevelopfrom
feature/dynamic-ft-marker-toggle
Feb 11, 2026
Merged

[Change] Use variables for map marker config#310
Bubbus merged 5 commits intodevelopfrom
feature/dynamic-ft-marker-toggle

Conversation

@empollak
Copy link
Copy Markdown
Collaborator

@empollak empollak commented Feb 7, 2026

Pull Request Description

When merged this pull request will:

  • Allow dynamic toggling of fireteam member markers
  • Change mapMarkers config to use variables instead of #define, to make it clearer how to toggle map markers during a mission (no second hidden variable like how f_var_hideSquadMarkers was)
  • Make it so that hooks are always added for drawing FT and squad markers. This is a small performance cost for missions that have map markers disabled the whole time, but it's no more than the cost for drawing map markers normally, so it shouldn't be a big deal. The benefit is it's simpler for MMs to dynamically change whether they are drawn or not.

Release Notes

Map marker configuration now uses variables instead of #define. Mission makers can change these variables mid-mission to toggle squad or fireteam member markers dynamically.

IMPORTANT

  • Testing has been completed as neccessary, depending on the nature & impact of the changes.
  • The Release Notes section below must be filled out appropriately to explain the changes made in this PR. This section will be used in Framework Changelogs.
  • If the contribution affects the wiki, please include your changes in this pull request so the wiki is consistently updated.
  • Contribution Guidelines are read, understood and applied.
  • Title of this PR uses our standard template [Descriptor] - Add|Fix|Improve|Change|Make|Remove {changes}.

This does technically cause a performance hit to missions that disable squad/FT markers, but it's no more than the normal performance cost of having them, so it should be fine.
@Bubbus
Copy link
Copy Markdown
Collaborator

Bubbus commented Feb 7, 2026

Looks nice, thank you. I'll test it soon

Replaced with f_var_showSquadMarkers in mapMarkers config
@Bubbus
Copy link
Copy Markdown
Collaborator

Bubbus commented Feb 10, 2026

Just tested - this works well. It is locally changeable which is really useful but that needs to be explained, especially to new MMs.

I've splatted a bunch of documentation into it in this example but it may be too verbose. Feel free to chop and cut:

/*

	Map marker configuration

	All settings below can be changed while the mission is running (except for MicroDAGR integration).

	These settings are individually changeable for each player.  This is useful if some players should have markers and some should not.
	To change these settings for everyone, make sure that the change is 'global'.  Some examples are below:

	Example: disable squad markers for everyone (can be run mid-mission):
		missionNamespace setVariable ["f_var_showSquadMarkers", false, true];

	Example: disable squad markers for only the OPFOR side (can put this into the 'customStartup_server.sqf' file):
		[missionNamespace, ["f_var_showSquadMarkers", false]] remoteExecCall ["setVariable", east, "ChangeOpforMarkers"];

*/

// To disable squad markers on the map, set the variable on the line below to false
// Note: This variable can be changed while the mission is running
f_var_showSquadMarkers = true;

// To disable fireteam member markers on the map, set the variable on the line below to false
// Note: This variable can be changed while the mission is running
f_var_showFTMarkers = true;

// To hide AI squads on the map, set the variable on the line below to false
// Note: This variable can be changed while the mission is running
f_var_showNPCSquads = true;

// To disable squadmarker MicroDAGR integration, set the below variable to false.
// Note: MicroDAGR markers act like a normal GPS - they respect the configuration of the three settings above.
// Note: This variable cannot be changed while the mission is running
f_var_enableMicroDAGRSquadMarkers = true;

@Bubbus Bubbus merged commit c416cca into develop Feb 11, 2026
1 check passed
@Bubbus Bubbus deleted the feature/dynamic-ft-marker-toggle branch February 11, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants