Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_CampaignFeedbackComponent Interface Reference
Inheritance diagram for SCR_CampaignFeedbackComponent:

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
 

Constructor & Destructor Documentation

◆ ~SCR_CampaignFeedbackComponent()

void SCR_CampaignFeedbackComponent.~SCR_CampaignFeedbackComponent ( )

Member Function Documentation

◆ BaseOutOfRangeHint()

void SCR_CampaignFeedbackComponent.BaseOutOfRangeHint ( SCR_CampaignMilitaryBaseComponent base)
Parameters
[in]base

◆ CanShowPlayerSpawn()

bool SCR_CampaignFeedbackComponent.CanShowPlayerSpawn ( )
Returns

◆ CheckPlayerInsideRadioRange()

void SCR_CampaignFeedbackComponent.CheckPlayerInsideRadioRange ( )
protected

◆ EnablePlayerSpawnHint()

void SCR_CampaignFeedbackComponent.EnablePlayerSpawnHint ( bool enable)

Serves for enabling spawn hint on map.

Also saves player spawn position

Parameters
[in]enable

◆ EOnInit()

override void SCR_CampaignFeedbackComponent.EOnInit ( IEntity owner)

◆ GetBaseWithPlayer()

SCR_CampaignMilitaryBaseComponent SCR_CampaignFeedbackComponent.GetBaseWithPlayer ( )
Returns

◆ GetInstance()

static SCR_CampaignFeedbackComponent SCR_CampaignFeedbackComponent.GetInstance ( )
static
Returns

◆ GetPlayerSpawnPos()

vector SCR_CampaignFeedbackComponent.GetPlayerSpawnPos ( )

Returns players position after spawning.

◆ GetSpawnTime()

TimeContainer SCR_CampaignFeedbackComponent.GetSpawnTime ( )
Returns

◆ GroupLeaderHint()

void SCR_CampaignFeedbackComponent.GroupLeaderHint ( )
protected

◆ IsConscious()

bool SCR_CampaignFeedbackComponent.IsConscious ( )
Returns

◆ LoneDriverHint()

void SCR_CampaignFeedbackComponent.LoneDriverHint ( )
protected

◆ MobileAssemblyFeedback()

void SCR_CampaignFeedbackComponent.MobileAssemblyFeedback ( SCR_EMobileAssemblyStatus msgID,
int playerID,
int factionID )
Parameters
[in]msgID
[in]playerID
[in]factionID

◆ OnBaseEntered()

void SCR_CampaignFeedbackComponent.OnBaseEntered ( notnull SCR_CampaignMilitaryBaseComponent base)
Parameters
[in]base

◆ OnBaseFactionChanged()

void SCR_CampaignFeedbackComponent.OnBaseFactionChanged ( notnull SCR_MilitaryBaseComponent base,
Faction faction )
Parameters
[in]base
[in]faction

◆ OnBaseLeft()

void SCR_CampaignFeedbackComponent.OnBaseLeft ( notnull SCR_CampaignMilitaryBaseComponent base)
Parameters
[in]base

◆ OnConsciousnessChanged()

void SCR_CampaignFeedbackComponent.OnConsciousnessChanged ( bool conscious)

Upon death, the unconscious state is no longer detectable, we need to cache it.

Parameters
[in]conscious

◆ OnMapOpen()

void SCR_CampaignFeedbackComponent.OnMapOpen ( MapConfiguration config)
Parameters
[in]config

◆ OnMatchSituationChanged()

void SCR_CampaignFeedbackComponent.OnMatchSituationChanged ( )
protected

◆ OnOwnershipChanged()

void SCR_CampaignFeedbackComponent.OnOwnershipChanged ( bool changing,
bool becameOwner )
Parameters
[in]changing
[in]becameOwner

◆ OnPlayerKilled()

void SCR_CampaignFeedbackComponent.OnPlayerKilled ( notnull SCR_InstigatorContextData instigatorContextData)
Parameters
[in]playerId
[in]playerEntity
[in]killerEntity
[in]killer

◆ OnPlayerSuppliesInteraction()

void SCR_CampaignFeedbackComponent.OnPlayerSuppliesInteraction ( EResourcePlayerInteractionType interactionType,
PlayerController playerController,
SCR_ResourceComponent resourceComponentFrom,
SCR_ResourceComponent resourceComponentTo,
EResourceType resourceType,
float resourceValue )
Parameters
[in]interactionType
[in]playerController
[in]resourceComponentFrom
[in]resourceComponentTo
[in]resourceType
[in]resourceValue

◆ OnPostInit()

override void SCR_CampaignFeedbackComponent.OnPostInit ( IEntity owner)

◆ OnRespawn()

void SCR_CampaignFeedbackComponent.OnRespawn ( )

Hints are displayed with a delay after respawn so player has time to find their bearings.

◆ OnSeizingTimerChange()

void SCR_CampaignFeedbackComponent.OnSeizingTimerChange ( WorldTimestamp start,
WorldTimestamp end )
Parameters
[in]start
[in]end

◆ OnXPChanged()

void SCR_CampaignFeedbackComponent.OnXPChanged ( int totalXP,
SCR_EXPRewards rewardID,
int XP,
bool volunteer,
bool profileUsed,
int skillLevel )
protected

◆ PauseHintQueue()

void SCR_CampaignFeedbackComponent.PauseHintQueue ( )

◆ PlayRadioMsg()

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 )
Parameters
[in]msg
[in]factionId
[in]baseCallsign
[in]callerCallsignCompany
[in]callerCallsignPlatoon
[in]callerCallsignSquad
[in]calledCallsignCompany
[in]calledCallsignPlatoon
[in]calledCallsignSquad
[in]param
[in]seed
[in]quality

◆ ProcessEvents()

void SCR_CampaignFeedbackComponent.ProcessEvents ( bool activate)
protected

◆ ProcessHintQueue()

void SCR_CampaignFeedbackComponent.ProcessHintQueue ( )
protected

◆ RefreshCurrentPopupMessage()

void SCR_CampaignFeedbackComponent.RefreshCurrentPopupMessage ( )
protected

◆ RegisterTasksShown()

void SCR_CampaignFeedbackComponent.RegisterTasksShown ( )
protected

◆ SetIsPlayerInRadioRange()

void SCR_CampaignFeedbackComponent.SetIsPlayerInRadioRange ( bool status)
Parameters
[in]status

◆ SetMapCampaignUI()

void SCR_CampaignFeedbackComponent.SetMapCampaignUI ( SCR_MapCampaignUI mapUi)
Parameters
[in]mapUi

◆ SetMapOpened()

void SCR_CampaignFeedbackComponent.SetMapOpened ( bool wasOpened)

Sets that map was already opened by player.

Parameters
[in]wasOpened

◆ SetSpawnTime()

void SCR_CampaignFeedbackComponent.SetSpawnTime ( )

◆ ShowHint()

void SCR_CampaignFeedbackComponent.ShowHint ( EHint hintID,
bool showImmediately = false,
bool showMultipleTimes = false )
Parameters
[in]hintID
[in]showImmediately
[in]showMultipleTimes

◆ ShowVolunteerHint()

void SCR_CampaignFeedbackComponent.ShowVolunteerHint ( )
protected

◆ TransportRequestHint()

void SCR_CampaignFeedbackComponent.TransportRequestHint ( )
protected

◆ WasMapOpened()

bool SCR_CampaignFeedbackComponent.WasMapOpened ( )
Returns
true if map was already opened, false otherwise

Member Data Documentation

◆ AFTER_RESPAWN_HINT_DELAY_MS

const int SCR_CampaignFeedbackComponent.AFTER_RESPAWN_HINT_DELAY_MS = 16500
staticprotected

◆ DELAY_BETWEEN_HINTS_MS

const int SCR_CampaignFeedbackComponent.DELAY_BETWEEN_HINTS_MS = 1000
staticprotected

◆ FEATURE_HINT_DELAY

const int SCR_CampaignFeedbackComponent.FEATURE_HINT_DELAY = 120000
staticprotected

◆ ICON_FLASH_DURATION

const float SCR_CampaignFeedbackComponent.ICON_FLASH_DURATION = 20
static

◆ ICON_FLASH_PERIOD

const float SCR_CampaignFeedbackComponent.ICON_FLASH_PERIOD = 0.5
static

◆ m_aHintQueue

ref array<int> SCR_CampaignFeedbackComponent.m_aHintQueue = {}
protected

◆ m_aShownHints

ref array<int> SCR_CampaignFeedbackComponent.m_aShownHints = {}
protected

◆ m_BaseWithPlayer

SCR_CampaignMilitaryBaseComponent SCR_CampaignFeedbackComponent.m_BaseWithPlayer
protected

◆ m_bCanShowSpawnPosition

bool SCR_CampaignFeedbackComponent.m_bCanShowSpawnPosition
protected

◆ m_bIsConscious

bool SCR_CampaignFeedbackComponent.m_bIsConscious
protected

◆ m_bIsPlayerInRadioRange

bool SCR_CampaignFeedbackComponent.m_bIsPlayerInRadioRange = true
protected

◆ m_bWasMapOpened

bool SCR_CampaignFeedbackComponent.m_bWasMapOpened
protected

◆ m_Campaign

SCR_GameModeCampaign SCR_CampaignFeedbackComponent.m_Campaign
protected

◆ m_fBaseWithPlayerCaptureEnd

WorldTimestamp SCR_CampaignFeedbackComponent.m_fBaseWithPlayerCaptureEnd
protected

◆ m_fBaseWithPlayerCaptureStart

WorldTimestamp SCR_CampaignFeedbackComponent.m_fBaseWithPlayerCaptureStart
protected

◆ m_fNextAllowedHintTimestamp

float SCR_CampaignFeedbackComponent.m_fNextAllowedHintTimestamp
protected

◆ m_HintsConfig

ref SCR_CampaignHintStorage SCR_CampaignFeedbackComponent.m_HintsConfig
protected

◆ m_MapCampaignUI

SCR_MapCampaignUI SCR_CampaignFeedbackComponent.m_MapCampaignUI
protected

◆ m_PlayedRadio

AudioHandle SCR_CampaignFeedbackComponent.m_PlayedRadio = AudioHandle.Invalid
protected

◆ m_PlayerController

SCR_PlayerController SCR_CampaignFeedbackComponent.m_PlayerController
protected

◆ m_sHintsConfig

ResourceName SCR_CampaignFeedbackComponent.m_sHintsConfig
protected

◆ m_SpawnTime

ref TimeContainer SCR_CampaignFeedbackComponent.m_SpawnTime
protected

◆ m_vFirstSpawnPosition

vector SCR_CampaignFeedbackComponent.m_vFirstSpawnPosition
protected

The documentation for this interface was generated from the following file: