Go to the source code of this file.
|
void | ScriptInvokerOnPossessedProxyMethod (int playerID, bool isPossessing, RplId mainEntityID) |
|
ScriptInvoker | GetOnPossessed () |
|
ScriptInvokerOnPossessedProxy | GetOnPossessedProxy () |
|
IEntity | GetMainEntity (int iPlayerId) |
|
RplId | GetMainRplId (int iPlayerId) |
|
IEntity | GetPossessedEntity (int iPlayerId) |
|
RplId | GetPossessedRplId (int iPlayerId) |
|
int | GetIdFromMainEntity (IEntity entity) |
|
int | GetIdFromMainRplId (RplId rplId) |
|
int | GetIdFromControlledEntity (IEntity entity) |
|
int | GetIdFromControlledRplId (RplId rplId) |
|
bool | IsPossessing (int iPlayerId) |
|
void | SetMainEntity (int playerID, IEntity controlledEntity, IEntity mainEntity, bool isPossessing) |
|
protected void | SetMainEntityBroadcast (int playerID, bool isPossessing, RplId mainEntityID) |
|
protected override void | OnControllableDeleted (IEntity entity) |
|
protected RplId | GetRplId (IEntity entity) |
|
override void | OnControllableDestroyed (IEntity entity, IEntity killerEntity, notnull Instigator killer) |
|
override bool | HandlePlayerKilled (int playerId, IEntity playerEntity, IEntity killerEntity, notnull Instigator killer) |
|
override void | OnPlayerDisconnected (int playerId, KickCauseCode cause, int timeout) |
|
override void | OnPostInit (IEntity owner) |
| Editable Mine. More...
|
|
override void | OnDelete (IEntity owner) |
|
override bool | RplSave (ScriptBitWriter writer) |
|
override bool | RplLoad (ScriptBitReader reader) |
|
◆ ScriptInvokerOnPossessedProxy
◆ ScriptInvokerOnPossessedProxyMethod
◆ GetIdFromControlledEntity()
int GetIdFromControlledEntity |
( |
IEntity |
entity | ) |
|
Get player ID from directly controlled or main entity.
- Parameters
-
[in] | entity | Evaluated entity |
- Returns
- Player ID, or 0 if the entity does not belong to any player
Definition at line 147 of file SCR_PossessingManagerComponent.c.
◆ GetIdFromControlledRplId()
int GetIdFromControlledRplId |
( |
RplId |
rplId | ) |
|
Get player ID from RplId of directly controlled or main entity.
- Parameters
-
[in] | rplId | Evaluated entity's RplId |
- Returns
- Player ID, or 0 if the entity does not belong to any player
Definition at line 160 of file SCR_PossessingManagerComponent.c.
◆ GetIdFromMainEntity()
int GetIdFromMainEntity |
( |
IEntity |
entity | ) |
|
Get player ID based on main entity, no matter if it's currently controlled or not.
- Parameters
-
[in] | entity | Evaluated entity |
- Returns
- Player ID, or 0 if the entity does not belong to any player
Definition at line 117 of file SCR_PossessingManagerComponent.c.
◆ GetIdFromMainRplId()
int GetIdFromMainRplId |
( |
RplId |
rplId | ) |
|
Get player ID based on main entity's RplId, no matter if it's currently controlled or not.
- Parameters
-
[in] | rplId | Evaluated entity's RplId |
- Returns
- Player ID, or 0 if the entity does not belong to any player
Definition at line 132 of file SCR_PossessingManagerComponent.c.
◆ GetMainEntity()
IEntity GetMainEntity |
( |
int |
iPlayerId | ) |
|
Get player's main entity. When not possessing, this will be the same as GetPlayerControlledEntity() When possessing, this will be player's main entity which was controlled before possessing started
- Parameters
-
- Returns
- Main player entity
Definition at line 57 of file SCR_PossessingManagerComponent.c.
◆ GetMainRplId()
RplId GetMainRplId |
( |
int |
iPlayerId | ) |
|
Get RplId of player's main entity. When not possessing, this will be RplId of GetPlayerControlledEntity() When possessing, this will be RplId of player's main entity which was controlled before possessing started
- Parameters
-
- Returns
- Main player entity's RplId. Returned even if the entity is not streamed in.
Definition at line 80 of file SCR_PossessingManagerComponent.c.
◆ GetOnPossessed()
ScriptInvoker GetOnPossessed |
( |
| ) |
|
◆ GetOnPossessedProxy()
◆ GetPossessedEntity()
IEntity GetPossessedEntity |
( |
int |
iPlayerId | ) |
|
Get the entity currently possessed by player.
- Parameters
-
- Returns
- Possessed entity. When not possessing, null is returned.
Definition at line 93 of file SCR_PossessingManagerComponent.c.
◆ GetPossessedRplId()
RplId GetPossessedRplId |
( |
int |
iPlayerId | ) |
|
Get RplId of the entity currently possessed by player.
- Parameters
-
- Returns
- RplId of possessed entity. When not possessing, default RplId is returned.
Definition at line 105 of file SCR_PossessingManagerComponent.c.
◆ GetRplId()
protected RplId GetRplId |
( |
IEntity |
entity | ) |
|
◆ HandlePlayerKilled()
override bool HandlePlayerKilled |
( |
int |
playerId, |
|
|
IEntity |
playerEntity, |
|
|
IEntity |
killerEntity, |
|
|
notnull Instigator |
killer |
|
) |
| |
◆ IsPossessing()
bool IsPossessing |
( |
int |
iPlayerId | ) |
|
◆ OnControllableDeleted()
protected override void OnControllableDeleted |
( |
IEntity |
entity | ) |
|
Prior to a controllable entity being DELETED, this event is raised. Controllable entity is such that has BaseControllerComponent and can be possessed either by a player, an AI or stay unpossessed.
- Parameters
-
[in] | entity | Entity about to be deleted |
Definition at line 307 of file SCR_PossessingManagerComponent.c.
◆ OnControllableDestroyed()
override void OnControllableDestroyed |
( |
IEntity |
entity, |
|
|
IEntity |
killerEntity, |
|
|
notnull Instigator |
killer |
|
) |
| |
When a controllable entity is destroyed, this event is raised. Entity is destroyed when DamageManager.OnStateChanged -> EDamageState.Destroyed
- Parameters
-
[in] | entity | Destroyed entity that raised this event |
[in] | killerEntity | Instigator entity that destroyed our victim |
[in] | killer | Instigator of the kill |
Definition at line 337 of file SCR_PossessingManagerComponent.c.
◆ RplLoad()
override bool RplLoad |
( |
ScriptBitReader |
reader | ) |
|
◆ RplSave()
override bool RplSave |
( |
ScriptBitWriter |
writer | ) |
|
◆ ScriptInvokerOnPossessedProxyMethod()
◆ SetMainEntity()
void SetMainEntity |
( |
int |
playerID, |
|
|
IEntity |
controlledEntity, |
|
|
IEntity |
mainEntity, |
|
|
bool |
isPossessing |
|
) |
| |
◆ SetMainEntityBroadcast()
protected void SetMainEntityBroadcast |
( |
int |
playerID, |
|
|
bool |
isPossessing, |
|
|
RplId |
mainEntityID |
|
) |
| |
◆ Event_OnPossessed
protected ref ScriptInvoker Event_OnPossessed |
◆ Event_OnPossessedProxy
◆ int
◆ m_MainEntities