17 protected int m_iCompanyCallsign = -1;
18 protected int m_iPlatoonCallsign = -1;
19 protected int m_iSquadCallsign = -1;
22 protected bool m_bIsServer;
28 protected ref ScriptInvokerBase<SCR_CallsignBaseComponent_OnCallsignChanged> Event_OnCallsignChanged =
new ScriptInvokerBase<SCR_CallsignBaseComponent_OnCallsignChanged>();
38 bool GetCallsignNames(out
string company, out
string platoon, out
string squad, out
string character, out
string format)
51 bool GetCallsignIndexes(out
int companyIndex, out
int platoonIndex, out
int squadIndex, out
int characterNumber = -1, out
ERoleCallsign characterRole =
ERoleCallsign.NONE)
56 protected void ClearCallsigns()
60 m_iCompanyCallsign = -1;
61 m_iPlatoonCallsign = -1;
62 m_iSquadCallsign = -1;
66 protected bool SetCallsignInfo()
71 if (group && group.IsPlayable())
72 currentFaction = group.GetFaction();
76 if (editableEntityComponent)
77 currentFaction = editableEntityComponent.GetFaction();
80 if (
m_Faction != currentFaction && currentFaction !=
null)
102 ScriptInvokerBase<SCR_CallsignBaseComponent_OnCallsignChanged> GetOnCallsignChanged()
104 return Event_OnCallsignChanged;
108 protected void InitOnServer(IEntity owner)
113 override void EOnInit(IEntity owner)
118 BaseGameMode gameMode =
GetGame().GetGameMode();
123 if (!m_CallsignManager)
127 if (editableEntityComponent)
128 m_Faction = editableEntityComponent.GetFaction();
129 m_bIsServer = Replication.IsServer();
134 GetGame().GetCallqueue().CallLater(InitOnServer, 1,
false, owner);
138 override void OnPostInit(IEntity owner)
140 SetEventMask(owner, EntityEvent.INIT);