9 protected int m_iQueuedAIs;
11 static const float NOTIFICATION_DURATION = 2;
22 [
RplRpc(RplChannel.Reliable, RplRcver.Owner)]
32 m_iQueuedAIs += value;
33 if (m_iQueuedAIs <= 0)
53 IEntity spawnerOwnerEntity = defenderSpawnerComp.GetOwner();
54 if (!spawnerOwnerEntity)
57 RplComponent spawnerRplComp = RplComponent.Cast(spawnerOwnerEntity.FindComponent(RplComponent));
69 [
RplRpc(RplChannel.Reliable, RplRcver.Server)]
72 RplComponent rplComp = RplComponent.Cast(Replication.FindItem(defenderSpawnerID));
77 if (!entitySpawnerComp)
80 entitySpawnerComp.EnableSpawning(enable, playerID);
91 int userId =
GetGame().GetPlayerManager().GetPlayerIdFromControlledEntity(user);
95 IEntity spawnerOwnerEntity = spawnerComponent.GetOwner();
96 if (!spawnerOwnerEntity)
99 RplComponent spawnerRplComp = RplComponent.Cast(spawnerOwnerEntity.FindComponent(RplComponent));
103 RplComponent slotRplComp = RplComponent.Cast(slot.GetOwner().FindComponent(RplComponent));
116 [
RplRpc(RplChannel.Reliable, RplRcver.Server)]
119 RplComponent rplComp = RplComponent.Cast(Replication.FindItem(rplCompId));
123 SCR_CatalogEntitySpawnerComponent entitySpawnerComp = SCR_CatalogEntitySpawnerComponent.Cast(rplComp.GetEntity().FindComponent(SCR_CatalogEntitySpawnerComponent));
124 if (!entitySpawnerComp)
131 RplComponent slotRplComp = RplComponent.Cast(Replication.FindItem(slotRplId));
135 SCR_EntitySpawnerSlotComponent slotComp = SCR_EntitySpawnerSlotComponent.Cast(slotRplComp.GetEntity().FindComponent(SCR_EntitySpawnerSlotComponent));
139 entitySpawnerComp.InitiateSpawn(entityEntry, userId, slotComp);
154 [
RplRpc(RplChannel.Reliable, RplRcver.Owner)]
162 msg =
"#AR-Campaign_DeliveryPointObstructed-UC";
173 SCR_EntityCatalog factionCatalog = faction.GetFactionEntityCatalogOfType(catalogType);
185 msg2 = spawnerData.GetOverwriteName();
187 if (msg2 ==
string.Empty)
188 msg2 = entry.GetEntityName();
202 return "#AR-Campaign_VehicleReady-UC";
206 return "#AR-Campaign_UnitReady-UC";
210 return "#AR-Campaign_GroupReady-UC";
215 return "#AR-Campaign_AssetReady-UC";