Arma Reforger Script API
|
Nametag data. More...
Public Member Functions | |
void | UpdatePriorityEntityState () |
Update the highest priority entity state (as ordered in enum) | |
void | ActivateEntityState (ENameTagEntityState state) |
Add entity state flag. | |
void | DeactivateEntityState (ENameTagEntityState state) |
Remove ENameTagEntityState flag. | |
void | SetVisibility (Widget widget, bool visible, float visibleOpacity, bool animate=true) |
Set visibility of nametag widget. | |
void | ResizeElement (Widget widget, float targetVal) |
Resize nametag element. | |
void | UpdateEntityType () |
Determine type of nametag entity. | |
void | GetName (out string name, out notnull array< string > nameParams) |
Get/update nametag name. | |
void | SetTagPosition (ENameTagPosition pos, bool gradualChange=true) |
Set what is the nametag position attached to. | |
void | SetGroup (SCR_AIGroup group) |
Set group state if it matches with current player group. | |
void | CheckAISubordinate (IEntity entity) |
Set AI_SUBORDINATE if it falls under current players command. | |
void | RemoveVehicleOccupant (IEntity vehicle) |
Remove this tag as occupant to a vehicle tag. | |
void | OnVehicleEntered (IEntity vehicle, BaseCompartmentManagerComponent manager, int mgrID, int slotID) |
SCR_CompartmentAccessComponent event. | |
void | OnVehicleLeft (IEntity vehicle, BaseCompartmentManagerComponent manager, int mgrID, int slotID) |
SCR_CompartmentAccessComponent event. | |
void | OnReceivedVON (int playerId, BaseTransceiver receiver, int frequency, float quality) |
VoNComponent event, only used for "Current player" tag. | |
void | OnLifeStateChanged (ECharacterLifeState previousLifeState, ECharacterLifeState newLifeState) |
SCR_CharacterController event. | |
void | Cleanup (bool removeFromArray=true) |
Cleanup. | |
void | UpdateTagPos () |
Update tag position. | |
bool | InitTag (SCR_NameTagDisplay display, IEntity entity, SCR_NameTagConfig config, bool IsCurrentPlayer=false) |
Init nametag data class, the widget is held and reused, data has to be reinitialized. | |
void | ResetTag () |
Uninitialize class when its being moved to unsued tags in order to be reused. | |
void | SCR_NameTagData (ResourceName layout, Widget rootWidget) |
void | ~SCR_NameTagData () |
Public Attributes | |
ENameTagFlags | m_Flags |
ENameTagEntityState | m_eEntityStateFlags |
ENameTagEntityState | m_ePriorityEntityState |
ENameTagPosition | m_eAttachedTo |
ENameTagPosition | m_eAttachedToLast |
ENameTagEntityType | m_eType |
bool | m_bIsCurrentPlayer |
int | m_iZoneID |
int | m_iGroupID |
int | m_iPlayerID |
int | m_iSpineBone |
int | m_iHeadBone |
float | m_fTimeSliceUpdate |
float | m_fTimeSliceVON |
float | m_fTimeSlicePosChange |
float | m_fTimeSliceCleanup |
float | m_fTimeSliceFade |
float | m_fTimeSliceVisibility |
float | m_fDistance |
float | m_fOpacityFade |
float | m_fVisibleOpacity = 1 |
float | m_fAngleToScreenCenter |
vector | m_vTagScreenPos |
vector | m_vTagWorldPos |
vector | m_vTagWorldPosLast |
vector | m_vEntHeadPos |
vector | m_vEntWorldPos |
string | m_sName |
ref array< string > | m_aNameParams |
IEntity | m_Entity |
Widget | m_NameTagWidget |
SCR_VehicleTagData | m_VehicleParent |
SCR_CharacterControllerComponent | m_CharController |
float | m_fDeadEntitiesCleanup |
float | m_fTagFadeSpeed |
ref Widget | m_aNametagElements [10] |
Static Public Attributes | |
const string | HEAD_BONE = "head" |
const string | SPINE_BONE = "Neck1" |
const vector | HEAD_OFFSET = "0 0.3 0" |
const vector | BODY_OFFSET = "0 -0.1 0" |
Protected Member Functions | |
void | AddAsVehicleOccupant (IEntity vehicle, BaseCompartmentSlot slot, ENameTagFlags flag) |
Add this tag as occupant to a vehicle tag. | |
bool | UpdateEntityStateFlags () |
Initial check of active states for JIP /return false if invalid/should be cleaned up. | |
void | InitDefaults () |
Init default tag data. | |
void | InitData (SCR_NameTagConfig config) |
Init configurable data. | |
Protected Attributes | |
SCR_NameTagDisplay | m_NTDisplay |
BaseCompartmentSlot | m_VehicleCompartment |
SCR_GroupsManagerComponent | m_GroupManager |
SCR_PossessingManagerComponent | m_PossessingManager |
Nametag data.
void SCR_NameTagData.SCR_NameTagData | ( | ResourceName | layout, |
Widget | rootWidget | ||
) |
void SCR_NameTagData.~SCR_NameTagData | ( | ) |
void SCR_NameTagData.ActivateEntityState | ( | ENameTagEntityState | state | ) |
Add entity state flag.
state | is the flag to be added |
|
protected |
Add this tag as occupant to a vehicle tag.
void SCR_NameTagData.CheckAISubordinate | ( | IEntity | entity | ) |
Set AI_SUBORDINATE if it falls under current players command.
void SCR_NameTagData.Cleanup | ( | bool | removeFromArray = true | ) |
Cleanup.
removeFromArray | determines whether the tag is removed from main array, this is not desired when entrire array is being cleaned up |
void SCR_NameTagData.DeactivateEntityState | ( | ENameTagEntityState | state | ) |
Remove ENameTagEntityState flag.
state | is the flag to be removed |
void SCR_NameTagData.GetName | ( | out string | name, |
out notnull array< string > | nameParams | ||
) |
Get/update nametag name.
[out] | name | Name or formatting of name |
[out] | names | If uses formating: Firstname, Alias and Surname (Alias can be an empty string) |
Implemented in SCR_VehicleTagData.
|
protected |
Init configurable data.
|
protected |
Init default tag data.
Implemented in SCR_VehicleTagData.
bool SCR_NameTagData.InitTag | ( | SCR_NameTagDisplay | display, |
IEntity | entity, | ||
SCR_NameTagConfig | config, | ||
bool | IsCurrentPlayer = false |
||
) |
Init nametag data class, the widget is held and reused, data has to be reinitialized.
display | is nametag info display |
entity | is nametag subject |
void SCR_NameTagData.OnLifeStateChanged | ( | ECharacterLifeState | previousLifeState, |
ECharacterLifeState | newLifeState | ||
) |
SCR_CharacterController event.
void SCR_NameTagData.OnReceivedVON | ( | int | playerId, |
BaseTransceiver | receiver, | ||
int | frequency, | ||
float | quality | ||
) |
VoNComponent event, only used for "Current player" tag.
void SCR_NameTagData.OnVehicleEntered | ( | IEntity | vehicle, |
BaseCompartmentManagerComponent | manager, | ||
int | mgrID, | ||
int | slotID | ||
) |
void SCR_NameTagData.OnVehicleLeft | ( | IEntity | vehicle, |
BaseCompartmentManagerComponent | manager, | ||
int | mgrID, | ||
int | slotID | ||
) |
void SCR_NameTagData.RemoveVehicleOccupant | ( | IEntity | vehicle | ) |
Remove this tag as occupant to a vehicle tag.
void SCR_NameTagData.ResetTag | ( | ) |
Uninitialize class when its being moved to unsued tags in order to be reused.
void SCR_NameTagData.ResizeElement | ( | Widget | widget, |
float | targetVal | ||
) |
Resize nametag element.
void SCR_NameTagData.SetGroup | ( | SCR_AIGroup | group | ) |
Set group state if it matches with current player group.
void SCR_NameTagData.SetTagPosition | ( | ENameTagPosition | pos, |
bool | gradualChange = true |
||
) |
Set what is the nametag position attached to.
pos | is the new tag position |
gradualChange | controls whether the position change will be instant (false) or gradually lerped |
void SCR_NameTagData.SetVisibility | ( | Widget | widget, |
bool | visible, | ||
float | visibleOpacity, | ||
bool | animate = true |
||
) |
Set visibility of nametag widget.
widget | is the target widget |
visible | controls whether the widget should be made visible or invisible |
animate | controls if the widget should fade in/out |
|
protected |
Initial check of active states for JIP /return false if invalid/should be cleaned up.
Implemented in SCR_VehicleTagData.
void SCR_NameTagData.UpdateEntityType | ( | ) |
Determine type of nametag entity.
void SCR_NameTagData.UpdatePriorityEntityState | ( | ) |
Update the highest priority entity state (as ordered in enum)
void SCR_NameTagData.UpdateTagPos | ( | ) |
Update tag position.
Implemented in SCR_VehicleTagData.
|
static |
|
static |
|
static |
ref array<string> SCR_NameTagData.m_aNameParams |
ref Widget SCR_NameTagData.m_aNametagElements[10] |
bool SCR_NameTagData.m_bIsCurrentPlayer |
SCR_CharacterControllerComponent SCR_NameTagData.m_CharController |
ENameTagPosition SCR_NameTagData.m_eAttachedTo |
ENameTagPosition SCR_NameTagData.m_eAttachedToLast |
ENameTagEntityState SCR_NameTagData.m_eEntityStateFlags |
IEntity SCR_NameTagData.m_Entity |
ENameTagEntityState SCR_NameTagData.m_ePriorityEntityState |
ENameTagEntityType SCR_NameTagData.m_eType |
float SCR_NameTagData.m_fAngleToScreenCenter |
float SCR_NameTagData.m_fDeadEntitiesCleanup |
float SCR_NameTagData.m_fDistance |
ENameTagFlags SCR_NameTagData.m_Flags |
float SCR_NameTagData.m_fOpacityFade |
float SCR_NameTagData.m_fTagFadeSpeed |
float SCR_NameTagData.m_fTimeSliceCleanup |
float SCR_NameTagData.m_fTimeSliceFade |
float SCR_NameTagData.m_fTimeSlicePosChange |
float SCR_NameTagData.m_fTimeSliceUpdate |
float SCR_NameTagData.m_fTimeSliceVisibility |
float SCR_NameTagData.m_fTimeSliceVON |
float SCR_NameTagData.m_fVisibleOpacity = 1 |
|
protected |
int SCR_NameTagData.m_iGroupID |
int SCR_NameTagData.m_iHeadBone |
int SCR_NameTagData.m_iPlayerID |
int SCR_NameTagData.m_iSpineBone |
int SCR_NameTagData.m_iZoneID |
Widget SCR_NameTagData.m_NameTagWidget |
|
protected |
|
protected |
string SCR_NameTagData.m_sName |
|
protected |
SCR_VehicleTagData SCR_NameTagData.m_VehicleParent |
vector SCR_NameTagData.m_vEntHeadPos |
vector SCR_NameTagData.m_vEntWorldPos |
vector SCR_NameTagData.m_vTagScreenPos |
vector SCR_NameTagData.m_vTagWorldPos |
vector SCR_NameTagData.m_vTagWorldPosLast |
|
static |