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

Go to the source code of this file.

Classes

class  SCR_CallsignCharacterComponentClass

Functions

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 AssignCharacterCallsign (Faction faction, int companyIndex, int platoonIndex, int squadIndex, int characterNumber, ERoleCallsign role, bool aloneInGroup)
void UpdateCharacterRoleCallsign (ERoleCallsign roleCallsignIndex)
void UpdateCharacterCallsignAndRole (int characterCallsign, ERoleCallsign roleCallsignIndex)
override void ClearCallsigns ()
 Called on server only before assigning new callsign to make sure everything is clear. Does not broadcast cleared values to players!
void ClearCharacterRoleCallsign ()
 Called on server only before assigning new role callsign to make sure everything is clear. It is not broadcast!
void AssignCallsignBroadcast (int company, int platoon, int squad, int character, int role, bool aloneInGroup)
void AssignCallsignNoRoleBroadcast (int company, int platoon, int squad, int character, bool aloneInGroup)
void AssignCharacterAndRoleCallsignBroadcast (int character, int role)
void AssignCharacterCallsignBroadcast (int character)
void AssignRoleCallsignBroadcast (int role)
void SetAloneInGroupBroadcast (bool isAloneInGroup)
void SetFactionBroadCast (int factionID)
bool GetIsCharacterAloneInGroup ()
int GetCharacterCallsignIndex ()
int GetCharacterOrRoleCallsignIndex ()
void GetCharacterAndRoleCallsign (out int character, out int role)
bool GetCharacterCallsignName (out string characterCallsignName)
void OnPlayerCallsignChanged (int playerId, int companyIndex, int platoonIndex, int squadIndex, int characterNumber, ERoleCallsign characterRole)
void InitPlayerOnServer (int playerId)
override bool RplSave (ScriptBitWriter writer)
override bool RplLoad (ScriptBitReader reader)
void ~SCR_CallsignCharacterComponent ()

Variables

SCR_CallsignCharacterComponentClass m_iCharacterCallsign = -1
 Component of assigning and storing squad names.
ERoleCallsign m_iRoleCallsign = ERoleCallsign.NONE
bool m_bAloneInGroup = false
int m_iFactioniD = -1
int m_iPlayerId = 0

Function Documentation

◆ AssignCallsignBroadcast()

void AssignCallsignBroadcast ( int company,
int platoon,
int squad,
int character,
int role,
bool aloneInGroup )
protected

Definition at line 190 of file SCR_CallsignCharacterComponent.c.

◆ AssignCallsignNoRoleBroadcast()

void AssignCallsignNoRoleBroadcast ( int company,
int platoon,
int squad,
int character,
bool aloneInGroup )
protected

Definition at line 204 of file SCR_CallsignCharacterComponent.c.

◆ AssignCharacterAndRoleCallsignBroadcast()

void AssignCharacterAndRoleCallsignBroadcast ( int character,
int role )
protected

Definition at line 217 of file SCR_CallsignCharacterComponent.c.

◆ AssignCharacterCallsign()

void AssignCharacterCallsign ( Faction faction,
int companyIndex,
int platoonIndex,
int squadIndex,
int characterNumber,
ERoleCallsign role,
bool aloneInGroup )
protected

Called by group, assigns a specific character group index and role (if any assigned) to character within specific group

Parameters
[in]factionFaction of group
[in]companyIndexCompany Index
[in]platoonIndexPlatoon Index
[in]squadIndexSquad Index
[in]characterNumberCharacter number in squad (starts with 1)
[in]roleCharacter role (If any assigned)
[in]aloneInGroupIf character is alone in the group

Definition at line 86 of file SCR_CallsignCharacterComponent.c.

◆ AssignCharacterCallsignBroadcast()

void AssignCharacterCallsignBroadcast ( int character)
protected

Definition at line 227 of file SCR_CallsignCharacterComponent.c.

◆ AssignRoleCallsignBroadcast()

void AssignRoleCallsignBroadcast ( int role)
protected

Definition at line 236 of file SCR_CallsignCharacterComponent.c.

◆ ClearCallsigns()

override void ClearCallsigns ( )
protected

Called on server only before assigning new callsign to make sure everything is clear. Does not broadcast cleared values to players!

Definition at line 171 of file SCR_CallsignCharacterComponent.c.

◆ ClearCharacterRoleCallsign()

void ClearCharacterRoleCallsign ( )
protected

Called on server only before assigning new role callsign to make sure everything is clear. It is not broadcast!

Definition at line 180 of file SCR_CallsignCharacterComponent.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 58 of file SCR_CallsignCharacterComponent.c.

◆ GetCallsignNames()

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

Definition at line 17 of file SCR_CallsignCharacterComponent.c.

◆ GetCharacterAndRoleCallsign()

void GetCharacterAndRoleCallsign ( out int character,
out int role )
protected

Returns both character index and character role index

Parameters
[out]charactergroup index
[out]roleindex

Definition at line 299 of file SCR_CallsignCharacterComponent.c.

◆ GetCharacterCallsignIndex()

int GetCharacterCallsignIndex ( )
protected

Returns the character index (ignoring the role)

Returns
character group index

Definition at line 279 of file SCR_CallsignCharacterComponent.c.

◆ GetCharacterCallsignName()

bool GetCharacterCallsignName ( out string characterCallsignName)
protected

Returns the character callsign name, this either the character group index or the specific role name

Parameters
[out]characterCallsignNamethe character Callsign name in string
Returns
if name was succesfully found

Definition at line 309 of file SCR_CallsignCharacterComponent.c.

◆ GetCharacterOrRoleCallsignIndex()

int GetCharacterOrRoleCallsignIndex ( )
protected

Returns either the character index or, if a role is assigned, it will return the character role index instead

Returns
int character group index or role index

Definition at line 287 of file SCR_CallsignCharacterComponent.c.

◆ GetIsCharacterAloneInGroup()

bool GetIsCharacterAloneInGroup ( )
protected
Returns
is character alone in group. ALso returns true if not in a group at all

Definition at line 271 of file SCR_CallsignCharacterComponent.c.

◆ InitPlayerOnServer()

void InitPlayerOnServer ( int playerId)
protected

Called by Callsign Manager. Makes sure that player characters listen to On Callsign Changed (Server Only)

Parameters
[in]playerId

Definition at line 351 of file SCR_CallsignCharacterComponent.c.

◆ OnPlayerCallsignChanged()

void OnPlayerCallsignChanged ( int playerId,
int companyIndex,
int platoonIndex,
int squadIndex,
int characterNumber,
ERoleCallsign characterRole )
protected

Definition at line 324 of file SCR_CallsignCharacterComponent.c.

◆ RplLoad()

override bool RplLoad ( ScriptBitReader reader)
protected

Definition at line 377 of file SCR_CallsignCharacterComponent.c.

◆ RplSave()

override bool RplSave ( ScriptBitWriter writer)
protected

Definition at line 363 of file SCR_CallsignCharacterComponent.c.

◆ SetAloneInGroupBroadcast()

void SetAloneInGroupBroadcast ( bool isAloneInGroup)
protected

Definition at line 245 of file SCR_CallsignCharacterComponent.c.

◆ SetFactionBroadCast()

void SetFactionBroadCast ( int factionID)
protected

Definition at line 252 of file SCR_CallsignCharacterComponent.c.

◆ UpdateCharacterCallsignAndRole()

void UpdateCharacterCallsignAndRole ( int characterCallsign,
ERoleCallsign roleCallsignIndex )
protected

Updates the assigned callsign and role. Called when leader role is assigned as leader is always 1

Parameters
[in]characterCallsigncharacter callsign
[in]roleCallsignIndexrole index

Definition at line 156 of file SCR_CallsignCharacterComponent.c.

◆ UpdateCharacterRoleCallsign()

void UpdateCharacterRoleCallsign ( ERoleCallsign roleCallsignIndex)
protected

Updates the assigned role

Parameters
[in]roleCallsignIndexrole index

Definition at line 139 of file SCR_CallsignCharacterComponent.c.

◆ ~SCR_CallsignCharacterComponent()

void ~SCR_CallsignCharacterComponent ( )
protected

Definition at line 398 of file SCR_CallsignCharacterComponent.c.

Variable Documentation

◆ m_bAloneInGroup

bool m_bAloneInGroup = false
protected

Definition at line 12 of file SCR_CallsignCharacterComponent.c.

◆ m_iCharacterCallsign

SCR_CallsignCharacterComponentClass m_iCharacterCallsign = -1

Component of assigning and storing squad names.

◆ m_iFactioniD

int m_iFactioniD = -1
protected

Definition at line 13 of file SCR_CallsignCharacterComponent.c.

◆ m_iPlayerId

int m_iPlayerId = 0
protected

Definition at line 14 of file SCR_CallsignCharacterComponent.c.

◆ m_iRoleCallsign

ERoleCallsign m_iRoleCallsign = ERoleCallsign.NONE
protected

Definition at line 11 of file SCR_CallsignCharacterComponent.c.