Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CommandingManagerComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_CommandingManagerComponentClass

Functions

SCR_CommandingManagerComponentClass SCR_BaseGameModeComponentClass Attribute ("{04D3B38E23F51754}Prefabs/AI/Groups/Slave_Group.et")
ResourceName GetGroupPrefab ()
void SCR_CommandingManagerComponent (IEntityComponentSource src, IEntity ent, IEntity parent)
override void OnPostInit (IEntity owner)
 Editable Mine.
void InitiateCommandMaps ()
void ResetSlaveGroupWaypoints (int playerId, IEntity player)
void RequestCommandExecution (int commandIndex, RplId cursorTargetID, RplId groupRplID, vector targetPosition, int playerID, float seed)
void RPC_DoExecuteCommand (int commandIndex, RplId cursorTargetID, RplId groupRplID, RplId responderRplID, vector targetPosition, int playerID, float seed)
void PlayCommanderSound (int playerID, int commandIndex, float seed)
void PlayAICommandResponse (int playerID, bool positive, float seed, RplId responderRplId)
SCR_BaseRadialCommand FindCommand (string commandName)
int FindCommandIndex (string commandName)
string GetCommandSoundEventName (int commandIndex)
float GetCommandSoundEventSeed (int commandIndex)
string FindCommandNameFromIndex (int commandIndex)
bool CanShowCommand (string commandName)
bool CanShowOnMap (string commandName)
SCR_PlayerCommandsConfig GetCommandsConfig ()
int GetMaxAIPerGroup ()
void SetMaxAIPerGroup (int max)
IEntity GetRespondingAI (int playerID)
string GetCommandDisplayTextByName (string commandName)

Variables

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

Function Documentation

◆ Attribute()

SCR_CommandingManagerComponentClass SCR_BaseGameModeComponentClass Attribute ( "{04D3B38E23F51754}Prefabs/AI/Groups/Slave_Group.et" )

Definition at line 1 of file SCR_CommandingManagerComponent.c.

◆ CanShowCommand()

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

Definition at line 338 of file SCR_CommandingManagerComponent.c.

◆ CanShowOnMap()

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

Definition at line 351 of file SCR_CommandingManagerComponent.c.

◆ FindCommand()

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

Definition at line 275 of file SCR_CommandingManagerComponent.c.

◆ FindCommandIndex()

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

Definition at line 284 of file SCR_CommandingManagerComponent.c.

◆ FindCommandNameFromIndex()

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

Definition at line 325 of file SCR_CommandingManagerComponent.c.

◆ GetCommandDisplayTextByName()

string GetCommandDisplayTextByName ( string commandName)
protected
Returns

Definition at line 421 of file SCR_CommandingManagerComponent.c.

◆ GetCommandsConfig()

SCR_PlayerCommandsConfig GetCommandsConfig ( )
protected
Returns

Definition at line 362 of file SCR_CommandingManagerComponent.c.

◆ GetCommandSoundEventName()

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

Definition at line 296 of file SCR_CommandingManagerComponent.c.

◆ GetCommandSoundEventSeed()

float GetCommandSoundEventSeed ( int commandIndex)
protected
Parameters
[in]commandIndex
Returns

Definition at line 310 of file SCR_CommandingManagerComponent.c.

◆ GetGroupPrefab()

ResourceName GetGroupPrefab ( )
protected
Returns

Definition at line 36 of file SCR_CommandingManagerComponent.c.

◆ GetMaxAIPerGroup()

int GetMaxAIPerGroup ( )
protected
Returns

Definition at line 385 of file SCR_CommandingManagerComponent.c.

◆ GetRespondingAI()

IEntity GetRespondingAI ( int playerID)
protected

Definition at line 398 of file SCR_CommandingManagerComponent.c.

◆ InitiateCommandMaps()

void InitiateCommandMaps ( )
protected

Definition at line 68 of file SCR_CommandingManagerComponent.c.

◆ PlayAICommandResponse()

void PlayAICommandResponse ( int playerID,
bool positive,
float seed,
RplId responderRplId )
protected

Definition at line 252 of file SCR_CommandingManagerComponent.c.

◆ PlayCommanderSound()

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

Definition at line 218 of file SCR_CommandingManagerComponent.c.

◆ RequestCommandExecution()

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

Called on server

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

Definition at line 130 of file SCR_CommandingManagerComponent.c.

◆ ResetSlaveGroupWaypoints()

void ResetSlaveGroupWaypoints ( int playerId,
IEntity player )
protected

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,
RplId responderRplID,
vector targetPosition,
int playerID,
float seed )
protected
Parameters
[in]commandIndex
[in]cursorTargetID
[in]groupRplID
[in]targetPosition
[in]playerID

Definition at line 172 of file SCR_CommandingManagerComponent.c.

◆ SCR_CommandingManagerComponent()

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

Definition at line 46 of file SCR_CommandingManagerComponent.c.

◆ SetMaxAIPerGroup()

void SetMaxAIPerGroup ( int max)
protected
Parameters
[in]max

Definition at line 392 of file SCR_CommandingManagerComponent.c.

Variable Documentation

◆ m_aCommands

ref array<ref SCR_BaseRadialCommand> m_aCommands
protected

Definition at line 22 of file SCR_CommandingManagerComponent.c.

◆ m_CommandsConfig

SCR_PlayerCommandsConfig m_CommandsConfig
protected

Definition at line 18 of file SCR_CommandingManagerComponent.c.

◆ m_iMaxAIPerGroup

int m_iMaxAIPerGroup
protected

Definition at line 16 of file SCR_CommandingManagerComponent.c.

◆ m_mNameCommand

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

Definition at line 23 of file SCR_CommandingManagerComponent.c.

◆ m_sCommandsConfigPath

ResourceName m_sCommandsConfigPath
protected

Definition at line 13 of file SCR_CommandingManagerComponent.c.