3 private static const float PACK_DAMAGE_TOLERANCE = 0.5;
12 string seeds_type =
"";
14 GetGame().ConfigGetText(
"cfgVehicles " + pack_type +
" Horticulture ContainsSeedsType", seeds_type);
16 int seeds_quantity_max =
GetGame().ConfigGetInt(
"cfgVehicles " + pack_type +
" Horticulture ContainsSeedsQuantity");
17 int seeds_quantity = seeds_quantity_max;
19 seeds_quantity =
Math.Round(seeds_quantity_max * GetHealth01(
"",
""));
21 if (seeds_quantity < 1)
29 player.ServerReplaceItemInHandsWithNew(lambda);
60 super.CopyOldPropertiesToNew(old_item, new_item);
63 Class.CastTo(unboxed, new_item);
69 super.OnSuccess(new_item);
eBleedingSourceType GetType()
void AddAction(typename actionName)
const int ECE_PLACE_ON_SURFACE
Super root of all classes in Enforce script.
base class for transformation operations (creating one item from another)
void OnSuccess(EntityAI new_item)
Step H. - notification on finish.
void CopyOldPropertiesToNew(notnull EntityAI old_item, EntityAI new_item)
Step E. copy properties from old object to the created one.
proto native CGame GetGame()
class JsonUndergroundAreaTriggerData GetPosition
const float DEFAULT_SPAWN_DISTANCE
class SeedPackBase extends Inventory_Base m_ItemCount
void EmptySeedsPackLambda(EntityAI old_item, string new_item_type, PlayerBase player, int count)