Arma Reforger Script API
|
Base class for nametag visiblity ruleset - single tag displayed continuously. More...
Public Member Functions | |
bool | Init (SCR_NameTagDisplay display, SCR_NameTagConfig config) |
Initialize ruleset. | |
void | Update (float timeSlice, array< ref SCR_NameTagData > nameTags, SCR_NameTagData nameTagPlayer) |
void | ~SCR_NameTagRulesetBase () |
Public Attributes | |
float | m_fTagFadeTime |
float | m_fDeadEntitiesCleanup |
SCR_NameTagData | m_CurrentPlayerTag |
Static Public Attributes | |
const int | DISABLE_FLAGS = ENameTagFlags.UPDATE_DISABLE | ENameTagFlags.DISABLED |
const int | SECONDARY_FLAGS = ENameTagEntityState.VON |
const int | NEAR_TAG_ANGLE = 3 |
const int | DISABLED_CLEANUP = 5.0 |
const int | POSITION_UPDATE = 0.1 |
const float | POS_TRANSITION_MULT = 2 |
const float | VERT_ANGLE_ADJUST = 0.3 |
const vector | HEAD_LOS_OFFSET = "0 0.05 0" |
const float | VON_STOP_TIME = 1 |
Protected Member Functions | |
bool | TestVisibility (SCR_NameTagData data, float timeSlice) |
Determine whether the tag passes basic conditions for visibility. | |
bool | TestVisibilityFiltered (SCR_NameTagData data, float timeSlice) |
Determine secondary visibility rules from the filtered tags. | |
void | UpdateVisibleTag (SCR_NameTagData data, float timeSlice) |
Update for visible tags. | |
void | CheckLOS () |
Change opacity based on line of sight. | |
bool | TraceLOS (SCR_NameTagData data) |
Check if target is visible to the player. | |
void | SelectTagToExpand (float timeSlice) |
Evaluates if player is focusing a nametag entity or not, expands/collapses nametag after a set time. | |
void | ExpandTag (SCR_NameTagData data) |
Logic for showing additional info when nametag becomes expanded. | |
void | CollapseTag (float timeSlice, SCR_NameTagData data) |
Logic for collapsing the nametag back to its basic format. | |
bool | DisableTag (SCR_NameTagData data, float timeSlice) |
Fade out tag and disable it when it no longer passes rules for visibility. | |
float | GetCameraToEntityAngle (vector targetOrigin, float verticalWeight) |
Calculates angle between screen center and target entity. | |
void | CalculateScreenPos (SCR_NameTagData data) |
Calculate tag 2d screen pos. | |
void | DetermineVisibility (float timeSlice) |
Uses provided nametag data to determine which tags pass the visibility conditions and filters them into a new array. | |
void | OnUserSettingChanged () |
Settings changed event. | |
void | Cleanup () |
Cleanup. | |
void | UpdateDebug () |
Debug. | |
Protected Attributes | |
float | m_fTagFocusDelay |
bool | m_bCancelFadeOnNewFocus |
bool | m_bTraceForLOS |
float | m_fLOSFadeDelay |
int | m_iMaxAngle |
float | m_fTimeElapsed = 0 |
float | m_fTimeFade = 0 |
float | m_fFocusPrioAngle |
int | m_iIndexLOS = 0 |
int | m_iRefResolutionX |
int | m_iRefResolutionY |
SCR_NameTagData | m_ClosestAngleTag |
SCR_NameTagData | m_PrimaryTag |
SCR_NameTagData | m_ExpandedTag |
SCR_2DPIPSightsComponent | m_PIPSightsComp |
BaseWorld | m_World |
WorkspaceWidget | m_Workspace |
SCR_NameTagDisplay | m_NTDisplay |
SCR_NameTagConfig | m_ZoneCfg |
ref array< ref SCR_NameTagData > | m_aNameTags = {} |
ref array< ref SCR_NameTagData > | m_aCandidateTags = {} |
Base class for nametag visiblity ruleset - single tag displayed continuously.
void SCR_NameTagRulesetBase.~SCR_NameTagRulesetBase | ( | ) |
|
protected |
Calculate tag 2d screen pos.
data | is the subject nametag |
|
protected |
Change opacity based on line of sight.
|
protected |
Cleanup.
Implemented in SCR_NameTagRulesetSingle.
|
protected |
Logic for collapsing the nametag back to its basic format.
timeSlice | is the frame slice |
data | is the subject nametag |
|
protected |
Uses provided nametag data to determine which tags pass the visibility conditions and filters them into a new array.
timeSlice | is frame time slice |
Implemented in SCR_NameTagRulesetFriendlies, and SCR_NameTagRulesetSingle.
|
protected |
Fade out tag and disable it when it no longer passes rules for visibility.
data | is the subject nametag |
|
protected |
Logic for showing additional info when nametag becomes expanded.
data | is the subject nametag |
|
protected |
Calculates angle between screen center and target entity.
targetOrigin | is the targets world position |
bool SCR_NameTagRulesetBase.Init | ( | SCR_NameTagDisplay | display, |
SCR_NameTagConfig | config | ||
) |
Initialize ruleset.
|
protected |
Settings changed event.
|
protected |
Evaluates if player is focusing a nametag entity or not, expands/collapses nametag after a set time.
timeSlice | is the OnFrame timeslice |
|
protected |
Determine whether the tag passes basic conditions for visibility.
data | is the subject nametag |
timeSlice | is frame time slice |
|
protected |
Determine secondary visibility rules from the filtered tags.
data | is the subject nametag |
timeSlice | is frame time slice |
Implemented in SCR_NameTagRulesetFriendlies, and SCR_NameTagRulesetSingle.
|
protected |
Check if target is visible to the player.
data | is the subject nametag |
void SCR_NameTagRulesetBase.Update | ( | float | timeSlice, |
array< ref SCR_NameTagData > | nameTags, | ||
SCR_NameTagData | nameTagPlayer | ||
) |
|
protected |
Debug.
|
protected |
Update for visible tags.
data | is the subject nametag |
timeSlice | is the OnFrame timeslice |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
SCR_NameTagData SCR_NameTagRulesetBase.m_CurrentPlayerTag |
|
protected |
float SCR_NameTagRulesetBase.m_fDeadEntitiesCleanup |
|
protected |
|
protected |
float SCR_NameTagRulesetBase.m_fTagFadeTime |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |