9 [
Attribute(
"10", UIWidgets.EditBox,
"Regeneration duration of related hitzone when consuming this item in seconds",
category:
"Consumable")]
12 [
Attribute(
"0", UIWidgets.EditBox,
"Total amount of regeneration that will be applied to the related hitzone",
category:
"Consumable")]
13 protected float m_fItemAbsoluteRegenerationAmount;
16 override void ApplyEffect(notnull IEntity target, notnull IEntity user, IEntity item,
ItemUseParameters animParams)
18 super.ApplyEffect(target, user, item, animParams);
20 ChimeraCharacter
char = ChimeraCharacter.Cast(target);
32 SCR_InventoryStorageManagerComponent inventoryStorageComp = SCR_InventoryStorageManagerComponent.Cast(user.FindComponent(SCR_InventoryStorageManagerComponent));
33 if (!inventoryStorageComp)
37 if (!salineStorageComp)
45 override bool CanApplyEffect(notnull IEntity target, notnull IEntity user,out SCR_EConsumableFailReason failReason = SCR_EConsumableFailReason.NONE)
47 ChimeraCharacter
char = ChimeraCharacter.Cast(target);
53 if (!damageMgr || damageMgr.GetBloodHitZone().GetDamageState() ==
EDamageState.UNDAMAGED)
55 failReason = SCR_EConsumableFailReason.UNDAMAGED;
61 if (!salineStorageMan)
64 array<IEntity> items = {};
65 salineStorageMan.GetAll(items);
68 failReason = SCR_EConsumableFailReason.ALREADY_APPLIED;
76 override bool CanApplyEffectToHZ(notnull IEntity target, notnull IEntity user,
ECharacterHitZoneGroup group, out SCR_EConsumableFailReason failReason = SCR_EConsumableFailReason.NONE)
78 return CanApplyEffect(target, user, failReason);
83 void SCR_ConsumableSalineBag()