This component should be attached to a PlayerController.
More...
This component should be attached to a PlayerController.
It manages player-specific loadout and the communication between player and authority regarding so.
◆ AssignLoadout_S()
bool SCR_PlayerLoadoutComponent.AssignLoadout_S |
( |
int |
loadoutIndex | ) |
|
|
protected |
◆ CanAssignLoadout_S()
bool SCR_PlayerLoadoutComponent.CanAssignLoadout_S |
( |
int |
loadoutIndex | ) |
|
|
protected |
Authority: Returns whether provided loadout can be assigned for this player.
- Parameters
-
◆ CanRequestLoadout()
Sends a can-ask request to the authority.
- Parameters
-
- Returns
- True if request was sent, false if request was caught (on owner, still!) because it was invalid. NOTE: This is not the final result of the assignation. That result is can be listened to by hooking onto GetOnCanPlayerLoadoutResponseInvoker(), successful request will have a response of SCR_ESpawnResult.OK.
◆ CanRequestLoadoutResponse_O()
void SCR_PlayerLoadoutComponent.CanRequestLoadoutResponse_O |
( |
int |
loadoutIndex, |
|
|
bool |
response |
|
) |
| |
|
protected |
Owner: Response from the authority about whether loadout was set successfully or not.
- Parameters
-
[in] | loadoutIndex | |
[in] | response | |
◆ GetAssignedLoadout()
Authority.
- Returns
- assigned loadout for this player.
◆ GetLoadout()
- Returns
- player faction affiliation, if any is present.
◆ GetLock()
◆ GetOnCanPlayerLoadoutRequestInvoker_O()
OnPlayerLoadoutRequestInvoker SCR_PlayerLoadoutComponent.GetOnCanPlayerLoadoutRequestInvoker_O |
( |
| ) |
|
- Returns
- an invoker that is invoked after this component requests a loadout change from the authority.
◆ GetOnCanPlayerLoadoutRequestInvoker_S()
OnPlayerLoadoutRequestInvoker SCR_PlayerLoadoutComponent.GetOnCanPlayerLoadoutRequestInvoker_S |
( |
| ) |
|
- Returns
- an invoker that is invoked after this component requests a loadout change from the authority.
◆ GetOnCanPlayerLoadoutResponseInvoker_O()
OnPlayerLoadoutResponseInvoker SCR_PlayerLoadoutComponent.GetOnCanPlayerLoadoutResponseInvoker_O |
( |
| ) |
|
- Returns
- an invoker that is invoked after this component receives a response from the authority regarding loadout change.
◆ GetOnCanPlayerLoadoutResponseInvoker_S()
OnPlayerLoadoutResponseInvoker SCR_PlayerLoadoutComponent.GetOnCanPlayerLoadoutResponseInvoker_S |
( |
| ) |
|
- Returns
- an invoker that is invoked after this component receives a response from the authority regarding loadout change.
◆ GetOnPlayerLoadoutRequestInvoker_O()
OnPlayerLoadoutRequestInvoker SCR_PlayerLoadoutComponent.GetOnPlayerLoadoutRequestInvoker_O |
( |
| ) |
|
- Returns
- an invoker that is invoked after this component requests a loadout change from the authority.
◆ GetOnPlayerLoadoutRequestInvoker_S()
OnPlayerLoadoutRequestInvoker SCR_PlayerLoadoutComponent.GetOnPlayerLoadoutRequestInvoker_S |
( |
| ) |
|
- Returns
- an invoker that is invoked after this component requests a loadout change from the authority.
◆ GetOnPlayerLoadoutResponseInvoker_O()
OnPlayerLoadoutResponseInvoker SCR_PlayerLoadoutComponent.GetOnPlayerLoadoutResponseInvoker_O |
( |
| ) |
|
- Returns
- an invoker that is invoked after this component receives a response from the authority regarding loadout change.
◆ GetOnPlayerLoadoutResponseInvoker_S()
OnPlayerLoadoutResponseInvoker SCR_PlayerLoadoutComponent.GetOnPlayerLoadoutResponseInvoker_S |
( |
| ) |
|
- Returns
- an invoker that is invoked after this component receives a response from the authority regarding loadout change.
◆ GetPlayerController()
◆ GetPlayerFactionAffiliationComponent()
- Returns
- player faction affiliation, if any is present.
◆ GetPlayerId()
int SCR_PlayerLoadoutComponent.GetPlayerId |
( |
| ) |
|
◆ IsLoadoutUseableByFaction()
- Parameters
-
- Returns
- whether the provided loadout is useable by the provided faction (if provided).
◆ IsOwner()
bool SCR_PlayerLoadoutComponent.IsOwner |
( |
| ) |
|
|
protected |
◆ IsProxy()
bool SCR_PlayerLoadoutComponent.IsProxy |
( |
| ) |
|
|
protected |
◆ OnDelete()
override void SCR_PlayerLoadoutComponent.OnDelete |
( |
IEntity |
owner | ) |
|
|
protected |
◆ OnFactionChanged()
◆ OnPostInit()
override void SCR_PlayerLoadoutComponent.OnPostInit |
( |
IEntity |
owner | ) |
|
|
protected |
◆ RequestLoadout()
Sends a request to get assignedf provided loadout.
- Parameters
-
- Returns
- True if request was sent, false if request was caught (on owner, still!) because it was invalid. NOTE: This is not the final result of the assignation. That result is can be listened to by hooking onto GetOnPlayerLoadoutResponseInvoker(), successful request will have a response of SCR_ESpawnResult.OK.
◆ RequestLoadoutResponse_O()
void SCR_PlayerLoadoutComponent.RequestLoadoutResponse_O |
( |
int |
loadoutIndex, |
|
|
bool |
response |
|
) |
| |
|
protected |
Owner: Response from the authority about whether loadout was set successfully or not.
- Parameters
-
[in] | loadoutIndex | |
[in] | response | |
◆ Rpc_CanRequestLoadout_S()
void SCR_PlayerLoadoutComponent.Rpc_CanRequestLoadout_S |
( |
int |
loadoutIndex | ) |
|
|
protected |
Ask the authority to whether provided loadout can be assigned.
- Parameters
-
◆ Rpc_RequestLoadout_S()
void SCR_PlayerLoadoutComponent.Rpc_RequestLoadout_S |
( |
int |
loadoutIndex | ) |
|
|
protected |
Ask the authority to assign provided loadout.
- Parameters
-
◆ SendCanRequestLoadoutResponse_S()
void SCR_PlayerLoadoutComponent.SendCanRequestLoadoutResponse_S |
( |
int |
loadoutIndex, |
|
|
bool |
response |
|
) |
| |
|
protected |
Authority: Sends response to the owner whether loadout assignation can be done or not.
- Parameters
-
[in] | loadoutIndex | |
[in] | response | Can loadout be assigned? |
◆ SendRequestLoadoutResponse_S()
void SCR_PlayerLoadoutComponent.SendRequestLoadoutResponse_S |
( |
int |
loadoutIndex, |
|
|
bool |
response |
|
) |
| |
|
protected |
Authority: Sends response to the owner whether loadout assignation was successfull or not.
- Parameters
-
[in] | loadoutIndex | |
[in] | response | Was loadout assigned? |
◆ m_Loadout
Assigned loadout index. Relevant to authority only.
◆ m_OnCanPlayerLoadoutRequestInvoker_O
ref OnPlayerLoadoutRequestInvoker SCR_PlayerLoadoutComponent.m_OnCanPlayerLoadoutRequestInvoker_O = new OnPlayerLoadoutRequestInvoker() |
|
protected |
◆ m_OnCanPlayerLoadoutRequestInvoker_S
ref OnPlayerLoadoutRequestInvoker SCR_PlayerLoadoutComponent.m_OnCanPlayerLoadoutRequestInvoker_S = new OnPlayerLoadoutRequestInvoker() |
|
protected |
◆ m_OnCanPlayerLoadoutResponseInvoker_O
ref OnPlayerLoadoutResponseInvoker SCR_PlayerLoadoutComponent.m_OnCanPlayerLoadoutResponseInvoker_O = new OnPlayerLoadoutResponseInvoker() |
|
protected |
◆ m_OnCanPlayerLoadoutResponseInvoker_S
ref OnPlayerLoadoutResponseInvoker SCR_PlayerLoadoutComponent.m_OnCanPlayerLoadoutResponseInvoker_S = new OnPlayerLoadoutResponseInvoker() |
|
protected |
◆ m_OnPlayerLoadoutRequestInvoker_O
ref OnPlayerLoadoutRequestInvoker SCR_PlayerLoadoutComponent.m_OnPlayerLoadoutRequestInvoker_O = new OnPlayerLoadoutRequestInvoker() |
|
protected |
◆ m_OnPlayerLoadoutRequestInvoker_S
ref OnPlayerLoadoutRequestInvoker SCR_PlayerLoadoutComponent.m_OnPlayerLoadoutRequestInvoker_S = new OnPlayerLoadoutRequestInvoker() |
|
protected |
◆ m_OnPlayerLoadoutResponseInvoker_O
ref OnPlayerLoadoutResponseInvoker SCR_PlayerLoadoutComponent.m_OnPlayerLoadoutResponseInvoker_O = new OnPlayerLoadoutResponseInvoker() |
|
protected |
◆ m_OnPlayerLoadoutResponseInvoker_S
ref OnPlayerLoadoutResponseInvoker SCR_PlayerLoadoutComponent.m_OnPlayerLoadoutResponseInvoker_S = new OnPlayerLoadoutResponseInvoker() |
|
protected |
The documentation for this interface was generated from the following file:
- Game/Respawn/Loadouts/SCR_PlayerLoadoutComponent.c