6 class SCR_PlayerRadioSpawnPoint : SCR_PlayerSpawnPoint
9 protected void OnItemAdded(IEntity item, BaseInventoryStorageComponent storageOwner)
12 if (loadoutCloth && loadoutCloth.GetAreaType() && loadoutCloth.GetAreaType().IsInherited(
LoadoutBackpackArea) && item.FindComponent(SCR_RadioComponent))
13 super.ActivateSpawnPoint();
17 protected void OnItemRemoved(IEntity item, BaseInventoryStorageComponent storageOwner)
20 if (loadoutCloth && loadoutCloth.GetAreaType() && loadoutCloth.GetAreaType().IsInherited(
LoadoutBackpackArea) && item.FindComponent(SCR_RadioComponent))
21 super.DeactivateSpawnPoint();
28 SCR_InventoryStorageManagerComponent inventoryManager = SCR_InventoryStorageManagerComponent.Cast(m_TargetPlayer.FindComponent(SCR_InventoryStorageManagerComponent));
31 inventoryManager.m_OnItemAddedInvoker.Insert(
OnItemAdded);
32 inventoryManager.m_OnItemRemovedInvoker.Insert(
OnItemRemoved);
36 EquipedLoadoutStorageComponent loadoutStorage = EquipedLoadoutStorageComponent.Cast(m_TargetPlayer.FindComponent(EquipedLoadoutStorageComponent));
50 SCR_InventoryStorageManagerComponent inventoryManager = SCR_InventoryStorageManagerComponent.Cast(m_TargetPlayer.FindComponent(SCR_InventoryStorageManagerComponent));
53 inventoryManager.m_OnItemAddedInvoker.Remove(
OnItemAdded);
54 inventoryManager.m_OnItemRemovedInvoker.Remove(
OnItemRemoved);
58 super.DeactivateSpawnPoint();