Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CommandingManagerComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_CommandingManagerComponentClass
 

Functions

SCR_CommandingManagerComponentClass SCR_BaseGameModeComponentClass Attribute ("{000CD338713F2B5A}Prefabs/AI/Groups/Group_Base.et")
 
ResourceName GetGroupPrefab ()
 
void SCR_CommandingManagerComponent (IEntityComponentSource src, IEntity ent, IEntity parent)
 
override void OnPostInit (IEntity owner)
 Called on PostInit when all components are added. More...
 
void InitiateCommandMaps ()
 
void ResetSlaveGroupWaypoints (int playerId, IEntity player)
 
void RequestCommandExecution (int commandIndex, RplId cursorTargetID, RplId groupRplID, vector targetPosition, int playerID)
 
void RPC_DoExecuteCommand (int commandIndex, RplId cursorTargetID, RplId groupRplID, vector targetPosition, int playerID)
 
void PlayCommanderSound (int playerID, int commandIndex)
 
SCR_BaseRadialCommand FindCommand (string commandName)
 
int FindCommandIndex (string commandName)
 
string GetCommandSoundEventName (int commandIndex)
 
string FindCommandNameFromIndex (int commandIndex)
 
bool CanShowCommand (string commandName)
 
bool CanShowOnMap (string commandName)
 
SCR_PlayerCommandsConfig GetCommandsConfig ()
 
int GetMaxAIPerGroup ()
 
void SetMaxAIPerGroup (int max)
 

Variables

Configs Commanding Commands conf protected ResourceName m_sCommandsConfigPath
 
protected int m_iMaxAIPerGroup
 
protected SCR_PlayerCommandsConfig m_CommandsConfig
 
protected ref array< ref SCR_BaseRadialCommandm_aCommands
 
protected ref map< string, ref SCR_BaseRadialCommandm_mNameCommand = new map<string, ref SCR_BaseRadialCommand>()
 

Function Documentation

◆ Attribute()

SCR_CommandingManagerComponentClass SCR_BaseGameModeComponentClass Attribute ( "{000CD338713F2B5A}Prefabs/AI/Groups/Group_Base.et )

Definition at line 9 of file SCR_CommandingManagerComponent.c.

◆ CanShowCommand()

bool CanShowCommand ( string  commandName)
Parameters
[in]commandName
Returns

Definition at line 294 of file SCR_CommandingManagerComponent.c.

◆ CanShowOnMap()

bool CanShowOnMap ( string  commandName)
Parameters
[in]commandName
Returns

Definition at line 307 of file SCR_CommandingManagerComponent.c.

◆ FindCommand()

SCR_BaseRadialCommand FindCommand ( string  commandName)
Parameters
[in]commandName
Returns

Definition at line 245 of file SCR_CommandingManagerComponent.c.

◆ FindCommandIndex()

int FindCommandIndex ( string  commandName)
Parameters
[in]commandName
Returns

Definition at line 254 of file SCR_CommandingManagerComponent.c.

◆ FindCommandNameFromIndex()

string FindCommandNameFromIndex ( int  commandIndex)
Parameters
[in]commandIndex
Returns

Definition at line 281 of file SCR_CommandingManagerComponent.c.

◆ GetCommandsConfig()

SCR_PlayerCommandsConfig GetCommandsConfig ( )
Returns

Definition at line 318 of file SCR_CommandingManagerComponent.c.

◆ GetCommandSoundEventName()

string GetCommandSoundEventName ( int  commandIndex)
Parameters
[in]commandIndex
Returns

Definition at line 266 of file SCR_CommandingManagerComponent.c.

◆ GetGroupPrefab()

ResourceName GetGroupPrefab ( )
Returns

Definition at line 36 of file SCR_CommandingManagerComponent.c.

◆ GetMaxAIPerGroup()

int GetMaxAIPerGroup ( )
Returns

Definition at line 341 of file SCR_CommandingManagerComponent.c.

◆ InitiateCommandMaps()

void InitiateCommandMaps ( )

Definition at line 68 of file SCR_CommandingManagerComponent.c.

◆ PlayCommanderSound()

void PlayCommanderSound ( int  playerID,
int  commandIndex 
)
Parameters
[in]playerID
[in]commandIndex

Definition at line 217 of file SCR_CommandingManagerComponent.c.

◆ RequestCommandExecution()

void RequestCommandExecution ( int  commandIndex,
RplId  cursorTargetID,
RplId  groupRplID,
vector  targetPosition,
int  playerID 
)

Called on server

Parameters
[in]commandIndex
[in]cursorTargetID
[in]groupRplID
[in]targetPosition
[in]playerID

Definition at line 163 of file SCR_CommandingManagerComponent.c.

◆ ResetSlaveGroupWaypoints()

void ResetSlaveGroupWaypoints ( int  playerId,
IEntity  player 
)

Gets called when player respawns so the newly recruited AIs dont follow the old waypoints from orders

Parameters
[in]playerId
[in]player

Definition at line 86 of file SCR_CommandingManagerComponent.c.

◆ RPC_DoExecuteCommand()

void RPC_DoExecuteCommand ( int  commandIndex,
RplId  cursorTargetID,
RplId  groupRplID,
vector  targetPosition,
int  playerID 
)
Parameters
[in]commandIndex
[in]cursorTargetID
[in]groupRplID
[in]targetPosition
[in]playerID

Definition at line 178 of file SCR_CommandingManagerComponent.c.

◆ SCR_CommandingManagerComponent()

void SCR_CommandingManagerComponent ( IEntityComponentSource  src,
IEntity  ent,
IEntity  parent 
)
Parameters
[in]src
[in]ent
[in]parent

Definition at line 46 of file SCR_CommandingManagerComponent.c.

◆ SetMaxAIPerGroup()

void SetMaxAIPerGroup ( int  max)
Parameters
[in]max

Definition at line 348 of file SCR_CommandingManagerComponent.c.

Variable Documentation

◆ m_aCommands

protected ref array<ref SCR_BaseRadialCommand> m_aCommands

Definition at line 22 of file SCR_CommandingManagerComponent.c.

◆ m_CommandsConfig

protected SCR_PlayerCommandsConfig m_CommandsConfig

Definition at line 18 of file SCR_CommandingManagerComponent.c.

◆ m_iMaxAIPerGroup

protected int m_iMaxAIPerGroup

Definition at line 16 of file SCR_CommandingManagerComponent.c.

◆ m_mNameCommand

protected ref map<string, ref SCR_BaseRadialCommand> m_mNameCommand = new map<string, ref SCR_BaseRadialCommand>()

Definition at line 23 of file SCR_CommandingManagerComponent.c.

◆ m_sCommandsConfigPath

Configs Commanding Commands conf protected ResourceName m_sCommandsConfigPath

Definition at line 13 of file SCR_CommandingManagerComponent.c.