8 [
Attribute(
"-1",
desc:
"How much of the given item (or weapon magazines) can be in the inventory of the character. -1 means it is unlimited")]
11 [
Attribute(
"#AR-SupportStation_Resupply_ActionInvalid_NoInventorySpace",
desc:
"Text shown on action if player cannot resupply because inventory is full", uiwidget:
UIWidgets.LocaleEditBox)]
14 [
Attribute(
"#AR-SupportStation_Resupply_ActionInvalid_RankTooLow",
desc:
"Text shown on action if player cannot resupply because their rank is Renegade", uiwidget:
UIWidgets.LocaleEditBox)]
17 [
Attribute(
"#AR-SupportStation_Resupply_ActionInvalid_NotEnoughAvailableAllocatedSupplies",
desc:
"Text shown on action if player cannot resupply because the player does not have enough Available Allocated Supplies", uiwidget:
UIWidgets.LocaleEditBox)]
20 [
Attribute(
ENotification.UNKNOWN.ToString(),
desc:
"Notification when the action is used. Shown to player using the action if resupply self or on the player that is being resupplied if resupply other. Leave unknown to ignore", uiwidget:
UIWidgets.SearchComboBox, enums: ParamEnumArray.FromEnum(
ENotification))]
55 return super.GetInvalidPerformReasonString(reasonInvalid);
95 return super.CanBeShownScript(user);
108 bool canBePerformed = super.CanBePerformedScript(user);
130 return canBePerformed;
138 super.CanBePerformedUpdate(user);
175 SCR_ResupplyCatalogItemSupportStationData catalogSupportData = SCR_ResupplyCatalogItemSupportStationData.Cast(
m_ResupplyData);
176 SCR_ResupplyHeldWeaponSupportStationData muzzleSupportData = SCR_ResupplyHeldWeaponSupportStationData.Cast(
m_ResupplyData);
178 if (characterRank <= SCR_ECharacterRank.RENEGADE || (catalogSupportData && characterRank < catalogSupportData.GetRequiredRank(owner,
m_SupportStationGadget)))
181 if (SCR_ArsenalManagerComponent.IsMilitarySupplyAllocationEnabled())
184 int playerId = playerManager.GetPlayerIdFromControlledEntity(user);
187 SCR_PlayerSupplyAllocationComponent playerSupplyAllocationComponent;
189 if (playerController)
190 playerSupplyAllocationComponent = SCR_PlayerSupplyAllocationComponent.Cast(playerController.FindComponent(SCR_PlayerSupplyAllocationComponent));
194 if (playerSupplyAllocationComponent && muzzleSupportData && !playerSupplyAllocationComponent.HasPlayerEnoughAvailableAllocatedSupplies(muzzleSupportData.GetRequiredAvailableAllocatedSupplies(owner,
m_sItemPrefab)))
199 if (playerSupplyAllocationComponent && catalogSupportData && !playerSupplyAllocationComponent.HasPlayerEnoughAvailableAllocatedSupplies(catalogSupportData.GetRequiredAvailableAllocatedSupplies(owner,
m_SupportStationGadget)))
210 super.PerformAction(pOwnerEntity, pUserEntity);
237 super.ResetReferencesOnServer();
246 super.DelayedInit(owner);
ESupportStationReasonInvalid
ArmaReforgerScripted GetGame()
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
void SCR_CharacterRankComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERITED VERSION ONLY!")
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
static SCR_ArsenalComponent FindArsenalComponent(notnull IEntity entity, bool getFromSlotted=true)
ResourceName m_sItemPrefab
ref SCR_ResupplySupportStationData m_ResupplyData
ResourceName GetItemPrefab()
bool GetShowButDisabled()
override void CanBePerformedUpdate(IEntity user)
override string GetActionStringParam()
override ESupportStationType GetSupportStationType()
ESupportStationType m_eSupportStationType
override void ResetReferencesOnServer()
ENotification GetNotificationOnUse()
InventoryStorageManagerComponent GetProviderInventory()
const LocalizedString CURRENT_ITEM_AMOUNT_FORMATTING
void SetTargetInventory(IEntity user, IEntity owner)
override bool CanHaveMultipleUsers()
override bool CanBeShownScript(IEntity user)
void UpdateCanResupply(IEntity owner, IEntity user)
override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
override bool CanBePerformedScript(IEntity user)
EResupplyUnavailableReason m_eResupplyUnavailableReason
SCR_ArsenalManagerComponent m_ArsenalManager
LocalizedString m_sInvalidNotEnoughAvailableAllocatedSupplies
SCR_ArsenalComponent m_ArsenalComponent
LocalizedString m_sInvalidRankTooLow
override void DelayedInit(IEntity owner)
ENotification m_eNotificationOnUse
const LocalizedString X_OUTOF_Y_FORMATTING
override LocalizedString GetInvalidPerformReasonString(ESupportStationReasonInvalid reasonInvalid)
LocalizedString m_sInvalidNoInventorySpace
SCR_InventoryStorageManagerComponent GetTargetInventory()
SCR_InventoryStorageManagerComponent m_InventoryManagerTarget
SCR_SupportStationGadgetComponent m_SupportStationGadget
void SetCanPerform(bool canPerform, ESupportStationReasonInvalid reasonInvalid)
ESupportStationReasonInvalid m_eCannotPerformReason
static bool IsEmptyOrWhiteSpace(string input)
IEntity GetOwner()
Owner entity of the fuel tank.
SCR_FieldOfViewSettings Attribute
proto native bool IsEmpty()