Spearhead 1944 Nametags: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (added usage)
m (update)
Line 1: Line 1:
{{TOC|side}}
{{TOC|side}}
[[Spearhead 1944]] introduces a scripted nametag system. While it was designed for the campaign to aid new players it can also be enabled in other scenarios.
[[Spearhead 1944]] introduces a scripted nametag system. While it was designed for the campaign to aid new players it can also be enabled in other scenarios.
Nametags can be shown by pressing {{Controls|^}}. Double tap {{Controls|^}} to toggle permanent mode. In singleplayer the nametags are shown for all members of the player's group. In multiplayer, they are shown for all group members of groups that have a player in it.
[[File: spe_nametags_preview.jpg|500px]]


= Setup =
= Setup =
Line 19: Line 23:


== Setting Descriptions ==
== Setting Descriptions ==
=== Enable Nametags ===
{| class="wikitable"
'''Description''': Toggles the nametags system on/off.<br />
|-
'''Default Value''': [[true]] <br />
! Setting !! Description !! Default Value !! [[missionNamespace]] Variable
'''[[missionNamespace|MissionNamespace variable]]''': {{hl|spe_options_client_nametags_enabled}}
|-
=== Enable Shadows ===
| Enable Nametags || Toggles the nametags system on/off. || [[true]] || {{hl|spe_options_client_nametags_enabled}}
'''Description''': Draws a drop shadow behind the text and icon for better legibility.<br />
|-
'''Default Value''': [[true]] <br />
| Enable Shadows || Draws a drop shadow behind the text and icon for better legibility. || [[true]] || {{hl|SPE_Options_Client_NameTags_Shadow}}
'''[[missionNamespace|MissionNamespace variable]]''': {{hl|SPE_Options_Client_NameTags_Shadow}}
|-
=== Red ===
| Red || Red color amount. || 1 (100%) || {{hl|SPE_Options_Client_NameTags_Color_R}}
'''Description''': Red color amount.<br />
|-
'''Default Value''': 1 (100%) <br />
| Red || Green color amount. || 1 (100%) || {{hl|SPE_Options_Client_NameTags_Color_G}}
'''[[missionNamespace|MissionNamespace variable]]''': {{hl|SPE_Options_Client_NameTags_Color_R}}
|-
=== Green ===
| Red || Blue color amount. || 1 (100%) || {{hl|SPE_Options_Client_NameTags_Color_B}}
'''Description''': Green color amount.<br />
|-
'''Default Value''': 1 (100%) <br />
| Draw Distance || How many meters the nametags are going to be visible. The nametags will start fading out at {{hl|drawDistance/1.5}} meters. || 150 || {{hl|SPE_Options_Client_NameTags_DistMax}}
'''[[missionNamespace|MissionNamespace variable]]''': {{hl|SPE_Options_Client_NameTags_Color_G}}
|-
=== Blue ===
| Height Offset || Height offset in meters from original position. || 0 || {{hl|SPE_Options_Client_NameTags_Offset}}
'''Description''': Blue color amount.<br />
|-
'''Default Value''': 1 (100%) <br />
| Icon Size ||  Icon size in percent. || 0.8 (80%) || {{hl|SPE_Options_Client_NameTags_IconSize}}
'''[[missionNamespace|MissionNamespace variable]]''': {{hl|SPE_Options_Client_NameTags_Color_B}}
|-
=== Draw Distance ===
| Text Size || Text size in percent. || 0.8 (80%) || {{hl|SPE_Options_Client_NameTags_TextSize_Modifier}}
'''Description''': How many meters the nametags are going to be visible. The nametags will start fading out at {{hl|drawDistance/1.5}} meters.<br />
|-
'''Default Value''': 150 <br />
| Show Icon || Toggle the visiblity of the icon on/off. || 0.8 (80%) || {{hl|SPE_Options_Client_NameTags_ShowIcon}}
'''[[missionNamespace|MissionNamespace variable]]''': {{hl|SPE_Options_Client_NameTags_DistMax}}
|-
=== Height Offset ===
| Reset Settings || Resets settings to default value. For this option to take effect, the settings UI needs to be closed by pressing {{hl|OK}}. || [[false]] || {{hl|-}}
'''Description''': Height offset in meters from original position. <br />
|}
'''Default Value''': 0 <br />
'''[[missionNamespace|MissionNamespace variable]]''': {{hl|SPE_Options_Client_NameTags_Offset}}
=== Icon Size ===
'''Description''': Icon size in percent. <br />
'''Default Value''': 0.8 (80%) <br />
'''[[missionNamespace|MissionNamespace variable]]''': {{hl|SPE_Options_Client_NameTags_IconSize}}
=== Text Size ===
'''Description''': Text size in percent. <br />
'''Default Value''': 0.8 (80%) <br />
'''[[missionNamespace|MissionNamespace variable]]''': {{hl|SPE_Options_Client_NameTags_TextSize_Modifier}}
=== Show Icon ===
'''Description''': Toggle the visiblity of the icon on/off. <br />
'''Default Value''': 0.8 (80%) <br />
'''[[missionNamespace|MissionNamespace variable]]''': {{hl|SPE_Options_Client_NameTags_ShowIcon}}
=== Reset Settings ===
'''Description''': Resets settings to default value. For this option to take effect, the settings UI needs to be closed by pressing {{hl|OK}}. <br />
'''Default Value''': [[false]] <br />
'''[[missionNamespace|MissionNamespace variable]]''': {{hl|-}}
 
= Usage =
Nametags can be shown by pressing {{Controls|^}}. Double tap {{Controls|^}} to toggle permanent mode.
{{Feature|informative|Nametags can greatly improve your situational awareness and encourage teamwork.}}


[[Category: Spearhead 1944]]
[[Category: Spearhead 1944]]

Revision as of 16:12, 10 August 2023

Spearhead 1944 introduces a scripted nametag system. While it was designed for the campaign to aid new players it can also be enabled in other scenarios.

Nametags can be shown by pressing ^. Double tap ^ to toggle permanent mode. In singleplayer the nametags are shown for all members of the player's group. In multiplayer, they are shown for all group members of groups that have a player in it.

spe nametags preview.jpg

Setup

Put the following code into the initPlayerLocal.sqf.

[] call SPE_MISSIONUTILITYFUNCTIONS_fnc_NameTags;

The system will then be initialized on every client.

The nametag system will not get initialized if ACE nametags are enabled.

Settings

Accessing Settings Menu

The nametag system comes with the option to be customized by the player. The settings menu can be found in the pause menu ESC. Settings are only available after a scneario has started.

spe nametags settings pause menu.jpg

spe nametags settings.jpg

Setting Descriptions

Setting Description Default Value missionNamespace Variable
Enable Nametags Toggles the nametags system on/off. true spe_options_client_nametags_enabled
Enable Shadows Draws a drop shadow behind the text and icon for better legibility. true SPE_Options_Client_NameTags_Shadow
Red Red color amount. 1 (100%) SPE_Options_Client_NameTags_Color_R
Red Green color amount. 1 (100%) SPE_Options_Client_NameTags_Color_G
Red Blue color amount. 1 (100%) SPE_Options_Client_NameTags_Color_B
Draw Distance How many meters the nametags are going to be visible. The nametags will start fading out at drawDistance/1.5 meters. 150 SPE_Options_Client_NameTags_DistMax
Height Offset Height offset in meters from original position. 0 SPE_Options_Client_NameTags_Offset
Icon Size Icon size in percent. 0.8 (80%) SPE_Options_Client_NameTags_IconSize
Text Size Text size in percent. 0.8 (80%) SPE_Options_Client_NameTags_TextSize_Modifier
Show Icon Toggle the visiblity of the icon on/off. 0.8 (80%) SPE_Options_Client_NameTags_ShowIcon
Reset Settings Resets settings to default value. For this option to take effect, the settings UI needs to be closed by pressing OK. false -