Arma Reforger Script API
|
Public Member Functions | |
void | EnablePlayerSpawnHint (bool enable) |
Serves for enabling spawn hint on map. | |
void | SetMapCampaignUI (SCR_MapCampaignUI mapUi) |
void | SetSpawnTime () |
TimeContainer | GetSpawnTime () |
bool | CanShowPlayerSpawn () |
vector | GetPlayerSpawnPos () |
Returns players position after spawning. | |
bool | WasMapOpened () |
void | SetMapOpened (bool wasOpened) |
Sets that map was already opened by player. | |
SCR_CampaignMilitaryBaseComponent | GetBaseWithPlayer () |
void | SetIsPlayerInRadioRange (bool status) |
void | BaseOutOfRangeHint (SCR_CampaignMilitaryBaseComponent base) |
void | OnMapOpen (MapConfiguration config) |
void | OnRespawn () |
Hints are displayed with a delay after respawn so player has time to find their bearings. | |
void | ShowHint (EHint hintID, bool showImmediately=false, bool showMultipleTimes=false) |
void | PauseHintQueue () |
void | OnConsciousnessChanged (bool conscious) |
Upon death, the unconscious state is no longer detectable, we need to cache it. | |
bool | IsConscious () |
void | OnPlayerKilled (notnull SCR_InstigatorContextData instigatorContextData) |
void | OnBaseFactionChanged (notnull SCR_MilitaryBaseComponent base, Faction faction) |
void | OnBaseEntered (notnull SCR_CampaignMilitaryBaseComponent base) |
void | OnBaseLeft (notnull SCR_CampaignMilitaryBaseComponent base) |
void | OnSeizingTimerChange (WorldTimestamp start, WorldTimestamp end) |
void | MobileAssemblyFeedback (SCR_EMobileAssemblyStatus msgID, int playerID, int factionID) |
void | PlayRadioMsg (SCR_ERadioMsg msg, int factionId, int baseCallsign, int callerCallsignCompany, int callerCallsignPlatoon, int callerCallsignSquad, int calledCallsignCompany, int calledCallsignPlatoon, int calledCallsignSquad, int param, float seed, float quality) |
void | OnOwnershipChanged (bool changing, bool becameOwner) |
void | OnPlayerSuppliesInteraction (EResourcePlayerInteractionType interactionType, PlayerController playerController, SCR_ResourceComponent resourceComponentFrom, SCR_ResourceComponent resourceComponentTo, EResourceType resourceType, float resourceValue) |
override void | EOnInit (IEntity owner) |
override void | OnPostInit (IEntity owner) |
void | ~SCR_CampaignFeedbackComponent () |
Static Public Member Functions | |
static SCR_CampaignFeedbackComponent | GetInstance () |
Static Public Attributes | |
static const float | ICON_FLASH_DURATION = 20 |
static const float | ICON_FLASH_PERIOD = 0.5 |
Protected Member Functions | |
void | CheckPlayerInsideRadioRange () |
void | RegisterTasksShown () |
void | GroupLeaderHint () |
void | LoneDriverHint () |
void | TransportRequestHint () |
void | RefreshCurrentPopupMessage () |
void | ProcessHintQueue () |
void | OnMatchSituationChanged () |
void | OnXPChanged (int totalXP, SCR_EXPRewards rewardID, int XP, bool volunteer, bool profileUsed, int skillLevel) |
void | ProcessEvents (bool activate) |
void | ShowVolunteerHint () |
Protected Attributes | |
ResourceName | m_sHintsConfig |
SCR_GameModeCampaign | m_Campaign |
SCR_PlayerController | m_PlayerController |
SCR_CampaignMilitaryBaseComponent | m_BaseWithPlayer |
AudioHandle | m_PlayedRadio = AudioHandle.Invalid |
vector | m_vFirstSpawnPosition |
SCR_MapCampaignUI | m_MapCampaignUI |
ref TimeContainer | m_SpawnTime |
ref SCR_CampaignHintStorage | m_HintsConfig |
ref array< int > | m_aShownHints = {} |
ref array< int > | m_aHintQueue = {} |
bool | m_bIsPlayerInRadioRange = true |
bool | m_bCanShowSpawnPosition |
bool | m_bWasMapOpened |
bool | m_bIsConscious |
float | m_fNextAllowedHintTimestamp |
WorldTimestamp | m_fBaseWithPlayerCaptureStart |
WorldTimestamp | m_fBaseWithPlayerCaptureEnd |
Static Protected Attributes | |
static const int | AFTER_RESPAWN_HINT_DELAY_MS = 16500 |
static const int | DELAY_BETWEEN_HINTS_MS = 1000 |
static const int | FEATURE_HINT_DELAY = 120000 |
void SCR_CampaignFeedbackComponent.~SCR_CampaignFeedbackComponent | ( | ) |
void SCR_CampaignFeedbackComponent.BaseOutOfRangeHint | ( | SCR_CampaignMilitaryBaseComponent | base | ) |
[in] | base |
bool SCR_CampaignFeedbackComponent.CanShowPlayerSpawn | ( | ) |
|
protected |
void SCR_CampaignFeedbackComponent.EnablePlayerSpawnHint | ( | bool | enable | ) |
Serves for enabling spawn hint on map.
Also saves player spawn position
[in] | enable |
override void SCR_CampaignFeedbackComponent.EOnInit | ( | IEntity | owner | ) |
SCR_CampaignMilitaryBaseComponent SCR_CampaignFeedbackComponent.GetBaseWithPlayer | ( | ) |
|
static |
vector SCR_CampaignFeedbackComponent.GetPlayerSpawnPos | ( | ) |
Returns players position after spawning.
TimeContainer SCR_CampaignFeedbackComponent.GetSpawnTime | ( | ) |
|
protected |
bool SCR_CampaignFeedbackComponent.IsConscious | ( | ) |
|
protected |
void SCR_CampaignFeedbackComponent.MobileAssemblyFeedback | ( | SCR_EMobileAssemblyStatus | msgID, |
int | playerID, | ||
int | factionID ) |
[in] | msgID | |
[in] | playerID | |
[in] | factionID |
void SCR_CampaignFeedbackComponent.OnBaseEntered | ( | notnull SCR_CampaignMilitaryBaseComponent | base | ) |
[in] | base |
void SCR_CampaignFeedbackComponent.OnBaseFactionChanged | ( | notnull SCR_MilitaryBaseComponent | base, |
Faction | faction ) |
[in] | base | |
[in] | faction |
void SCR_CampaignFeedbackComponent.OnBaseLeft | ( | notnull SCR_CampaignMilitaryBaseComponent | base | ) |
[in] | base |
void SCR_CampaignFeedbackComponent.OnConsciousnessChanged | ( | bool | conscious | ) |
Upon death, the unconscious state is no longer detectable, we need to cache it.
[in] | conscious |
void SCR_CampaignFeedbackComponent.OnMapOpen | ( | MapConfiguration | config | ) |
[in] | config |
|
protected |
void SCR_CampaignFeedbackComponent.OnOwnershipChanged | ( | bool | changing, |
bool | becameOwner ) |
[in] | changing | |
[in] | becameOwner |
void SCR_CampaignFeedbackComponent.OnPlayerKilled | ( | notnull SCR_InstigatorContextData | instigatorContextData | ) |
[in] | playerId | |
[in] | playerEntity | |
[in] | killerEntity | |
[in] | killer |
void SCR_CampaignFeedbackComponent.OnPlayerSuppliesInteraction | ( | EResourcePlayerInteractionType | interactionType, |
PlayerController | playerController, | ||
SCR_ResourceComponent | resourceComponentFrom, | ||
SCR_ResourceComponent | resourceComponentTo, | ||
EResourceType | resourceType, | ||
float | resourceValue ) |
[in] | interactionType | |
[in] | playerController | |
[in] | resourceComponentFrom | |
[in] | resourceComponentTo | |
[in] | resourceType | |
[in] | resourceValue |
override void SCR_CampaignFeedbackComponent.OnPostInit | ( | IEntity | owner | ) |
void SCR_CampaignFeedbackComponent.OnRespawn | ( | ) |
Hints are displayed with a delay after respawn so player has time to find their bearings.
void SCR_CampaignFeedbackComponent.OnSeizingTimerChange | ( | WorldTimestamp | start, |
WorldTimestamp | end ) |
[in] | start | |
[in] | end |
|
protected |
void SCR_CampaignFeedbackComponent.PauseHintQueue | ( | ) |
void SCR_CampaignFeedbackComponent.PlayRadioMsg | ( | SCR_ERadioMsg | msg, |
int | factionId, | ||
int | baseCallsign, | ||
int | callerCallsignCompany, | ||
int | callerCallsignPlatoon, | ||
int | callerCallsignSquad, | ||
int | calledCallsignCompany, | ||
int | calledCallsignPlatoon, | ||
int | calledCallsignSquad, | ||
int | param, | ||
float | seed, | ||
float | quality ) |
[in] | msg | |
[in] | factionId | |
[in] | baseCallsign | |
[in] | callerCallsignCompany | |
[in] | callerCallsignPlatoon | |
[in] | callerCallsignSquad | |
[in] | calledCallsignCompany | |
[in] | calledCallsignPlatoon | |
[in] | calledCallsignSquad | |
[in] | param | |
[in] | seed | |
[in] | quality |
|
protected |
|
protected |
|
protected |
|
protected |
void SCR_CampaignFeedbackComponent.SetIsPlayerInRadioRange | ( | bool | status | ) |
[in] | status |
void SCR_CampaignFeedbackComponent.SetMapCampaignUI | ( | SCR_MapCampaignUI | mapUi | ) |
[in] | mapUi |
void SCR_CampaignFeedbackComponent.SetMapOpened | ( | bool | wasOpened | ) |
Sets that map was already opened by player.
[in] | wasOpened |
void SCR_CampaignFeedbackComponent.SetSpawnTime | ( | ) |
void SCR_CampaignFeedbackComponent.ShowHint | ( | EHint | hintID, |
bool | showImmediately = false, | ||
bool | showMultipleTimes = false ) |
[in] | hintID | |
[in] | showImmediately | |
[in] | showMultipleTimes |
|
protected |
|
protected |
bool SCR_CampaignFeedbackComponent.WasMapOpened | ( | ) |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |