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

Go to the source code of this file.

Classes

class  SCR_CallsignGroupComponentClass

Functions

override void InitOnServer (IEntity owner)
void OnPlayerAddedToGroup (SCR_AIGroup aiGroup, int playerID)
void OnPlayerRemovedFromGroup (SCR_AIGroup aiGroup, int playerID)
void OnPlayerLeaderAssigned (int groupID, int playerID)
void UpdatePlayerRoles ()
void AssignPlayerCallsign (int playerID, int characterCallsign=-1)
void UpdateAllCharacterRoleCallsigns ()
bool IsUniqueRoleInUse (int roleToCheck)
void OnAILeaderAssigned (AIAgent currentLeader, AIAgent prevLeader)
void ReplaceAILeaderRole (AIAgent currentLeader, AIAgent prevLeader)
void OnAIAddedToGroup (notnull AIAgent character)
void OnAIRemovedFromGroup (SCR_AIGroup group, AIAgent character)
void AssignAICallsign (AIAgent character, SCR_CallsignCharacterComponent characterCallsignComponent, int characterCallsign=-1)
void MakeAIRoleAvailable (int roleIndex)
override bool GetCallsignNames (out string company, out string platoon, out string squad, out string character, out string format)
override bool GetCallsignIndexes (out int companyIndex, out int platoonIndex, out int squadIndex, out int characterNumber=-1, out ERoleCallsign characterRole=ERoleCallsign.NONE)
void AssignGroupCallsign ()
void DoAssignCallsign (int company, int platoon, int squad)
void AssignCallsignBroadcast (int company, int platoon, int squad)
void FactionInit (Faction faction, bool isFactionChange=false)
SCR_AIGroup GetGroup ()
void OnFactionChanged (Faction faction)
override bool RplSave (ScriptBitWriter writer)
override bool RplLoad (ScriptBitReader reader)
void ~SCR_CallsignGroupComponent ()

Variables

SCR_CallsignGroupComponentClass m_bGroupInitCalled
 Component of assigning and storing squad names.
SCR_AIGroup m_Group
const int iLEADER_ROLE_CHARACTER_CALLSIGN = 1
ref map< int, AIAgent > m_mAICallsigns = new map<int, AIAgent>()
 Keeps track of AI callsigns in group.
ref map< int, AIAgent > m_mAIRoleCallsigns = new map<int, AIAgent>()
 Keeps track of specific AI role callsigns in group.
ref map< int, intm_mPlayerCallsigns = new map<int, int>()
 Keeps track of player callsigns in group <Callsign, PlayerID>. Player callsigns never change.
ref map< int, intm_mPlayerRoleCallsigns = new map<int, int>()
 Keeps track of specific AI role callsigns in group. map<RoleID, PlayerID>.
bool m_bIsSlave
SCR_AIGroup m_MasterGroup
SCR_CallsignGroupComponent m_MasterGroupCallsignComponent

Function Documentation

◆ AssignAICallsign()

void AssignAICallsign ( AIAgent character,
SCR_CallsignCharacterComponent characterCallsignComponent,
int characterCallsign = -1 )
protected

Definition at line 335 of file SCR_CallsignGroupComponent.c.

◆ AssignCallsignBroadcast()

void AssignCallsignBroadcast ( int company,
int platoon,
int squad )
protected

Definition at line 501 of file SCR_CallsignGroupComponent.c.

◆ AssignGroupCallsign()

void AssignGroupCallsign ( )
protected

Definition at line 482 of file SCR_CallsignGroupComponent.c.

◆ AssignPlayerCallsign()

void AssignPlayerCallsign ( int playerID,
int characterCallsign = -1 )
protected

Definition at line 151 of file SCR_CallsignGroupComponent.c.

◆ DoAssignCallsign()

void DoAssignCallsign ( int company,
int platoon,
int squad )
protected

Definition at line 493 of file SCR_CallsignGroupComponent.c.

◆ FactionInit()

void FactionInit ( Faction faction,
bool isFactionChange = false )
protected

On Group init and faction change

Parameters
[in]faction
[in]isFactionChange

Definition at line 517 of file SCR_CallsignGroupComponent.c.

◆ GetCallsignIndexes()

override bool GetCallsignIndexes ( out int companyIndex,
out int platoonIndex,
out int squadIndex,
out int characterNumber = -1,
out ERoleCallsign characterRole = ERoleCallsign.NONE )
protected

Definition at line 461 of file SCR_CallsignGroupComponent.c.

◆ GetCallsignNames()

override bool GetCallsignNames ( out string company,
out string platoon,
out string squad,
out string character,
out string format )
protected

Definition at line 432 of file SCR_CallsignGroupComponent.c.

◆ GetGroup()

SCR_AIGroup GetGroup ( )
protected

Definition at line 614 of file SCR_CallsignGroupComponent.c.

◆ InitOnServer()

override void InitOnServer ( IEntity owner)
protected

Definition at line 34 of file SCR_CallsignGroupComponent.c.

◆ IsUniqueRoleInUse()

bool IsUniqueRoleInUse ( int roleToCheck)
protected

Check if unique role is in use by Players or AI in group None Unique roles are not checked Will always check Master if group is slave

Parameters
roleToCheckRole to check if it is in use
Returns
true if the role is in use

Definition at line 214 of file SCR_CallsignGroupComponent.c.

◆ MakeAIRoleAvailable()

void MakeAIRoleAvailable ( int roleIndex)
protected

Definition at line 367 of file SCR_CallsignGroupComponent.c.

◆ OnAIAddedToGroup()

void OnAIAddedToGroup ( notnull AIAgent character)
protected

Definition at line 286 of file SCR_CallsignGroupComponent.c.

◆ OnAILeaderAssigned()

void OnAILeaderAssigned ( AIAgent currentLeader,
AIAgent prevLeader )
protected

Definition at line 235 of file SCR_CallsignGroupComponent.c.

◆ OnAIRemovedFromGroup()

void OnAIRemovedFromGroup ( SCR_AIGroup group,
AIAgent character )
protected

Definition at line 306 of file SCR_CallsignGroupComponent.c.

◆ OnFactionChanged()

void OnFactionChanged ( Faction faction)
protected

Definition at line 620 of file SCR_CallsignGroupComponent.c.

◆ OnPlayerAddedToGroup()

void OnPlayerAddedToGroup ( SCR_AIGroup aiGroup,
int playerID )
protected

Definition at line 84 of file SCR_CallsignGroupComponent.c.

◆ OnPlayerLeaderAssigned()

void OnPlayerLeaderAssigned ( int groupID,
int playerID )
protected

Definition at line 127 of file SCR_CallsignGroupComponent.c.

◆ OnPlayerRemovedFromGroup()

void OnPlayerRemovedFromGroup ( SCR_AIGroup aiGroup,
int playerID )
protected

Definition at line 100 of file SCR_CallsignGroupComponent.c.

◆ ReplaceAILeaderRole()

void ReplaceAILeaderRole ( AIAgent currentLeader,
AIAgent prevLeader )
protected

Definition at line 259 of file SCR_CallsignGroupComponent.c.

◆ RplLoad()

override bool RplLoad ( ScriptBitReader reader)
protected

Definition at line 636 of file SCR_CallsignGroupComponent.c.

◆ RplSave()

override bool RplSave ( ScriptBitWriter writer)
protected

Definition at line 626 of file SCR_CallsignGroupComponent.c.

◆ UpdateAllCharacterRoleCallsigns()

void UpdateAllCharacterRoleCallsigns ( )
protected

Definition at line 183 of file SCR_CallsignGroupComponent.c.

◆ UpdatePlayerRoles()

void UpdatePlayerRoles ( )
protected

Definition at line 140 of file SCR_CallsignGroupComponent.c.

◆ ~SCR_CallsignGroupComponent()

void ~SCR_CallsignGroupComponent ( )
protected

Definition at line 651 of file SCR_CallsignGroupComponent.c.

Variable Documentation

◆ iLEADER_ROLE_CHARACTER_CALLSIGN

const int iLEADER_ROLE_CHARACTER_CALLSIGN = 1
protected

Definition at line 13 of file SCR_CallsignGroupComponent.c.

◆ m_bGroupInitCalled

SCR_CallsignGroupComponentClass m_bGroupInitCalled

Component of assigning and storing squad names.

◆ m_bIsSlave

bool m_bIsSlave
protected

Definition at line 28 of file SCR_CallsignGroupComponent.c.

◆ m_Group

SCR_AIGroup m_Group
protected

Definition at line 10 of file SCR_CallsignGroupComponent.c.

◆ m_mAICallsigns

ref map<int, AIAgent> m_mAICallsigns = new map<int, AIAgent>()
protected

Keeps track of AI callsigns in group.

Definition at line 16 of file SCR_CallsignGroupComponent.c.

◆ m_mAIRoleCallsigns

ref map<int, AIAgent> m_mAIRoleCallsigns = new map<int, AIAgent>()
protected

Keeps track of specific AI role callsigns in group.

Definition at line 19 of file SCR_CallsignGroupComponent.c.

◆ m_MasterGroup

SCR_AIGroup m_MasterGroup
protected

Definition at line 29 of file SCR_CallsignGroupComponent.c.

◆ m_MasterGroupCallsignComponent

SCR_CallsignGroupComponent m_MasterGroupCallsignComponent
protected

Definition at line 30 of file SCR_CallsignGroupComponent.c.

◆ m_mPlayerCallsigns

ref map<int, int> m_mPlayerCallsigns = new map<int, int>()
protected

Keeps track of player callsigns in group <Callsign, PlayerID>. Player callsigns never change.

Definition at line 22 of file SCR_CallsignGroupComponent.c.

◆ m_mPlayerRoleCallsigns

ref map<int, int> m_mPlayerRoleCallsigns = new map<int, int>()
protected

Keeps track of specific AI role callsigns in group. map<RoleID, PlayerID>.

Definition at line 25 of file SCR_CallsignGroupComponent.c.