1 [
EntityEditorProps(
category:
"GameScripted/FiringRange", description:
"Handles Score on Firing Range.", color:
"0 0 255 255")]
20 s_Manager.RemoveAssignedPlayerFromFireline(playerID);
24 if (
s_Manager.IsPlayerInFiringRangeArea(playerID))
35 void OnKill(
int playerId, IEntity playerEntity, IEntity killerEntity, notnull
Instigator killer)
38 s_Manager.RemoveAssignedPlayerFromFireline(playerId);
42 if (
s_Manager.IsPlayerInFiringRangeArea(playerId))
52 playerInfo.m_iID = playerID;
74 if (playerScoreInfoFiringRange)
75 playerScoreInfoFiringRange.Clear();
85 if (playerScoreInfoFiringRange)
86 playerScoreInfoFiringRange.m_iScore = playerScoreInfoFiringRange.GetScore() + scorePoints;
96 if (playerScoreInfoFiringRange)
97 playerScoreInfoFiringRange.m_iScoreMax = scorePointsMax;
107 if (playerScoreInfoFiringRange)
108 return playerScoreInfoFiringRange.GetScore();
144 Replication.BumpMe();
154 SetEventMask(owner, EntityEvent.INIT);
164 gameMode.GetOnPlayerConnected().Insert(
AddPlayer);
166 gameMode.GetOnPlayerKilled().Insert(
OnKill);
168 array<int> playerIds = {};
169 GetGame().GetPlayerManager().GetPlayers(playerIds);
171 foreach (
int id : playerIds)