3 private static const float PACK_DAMAGE_TOLERANCE = 0.5;
9 void EmptySeedPack(PlayerBase player)
12 string seeds_type =
"";
14 g_Game.ConfigGetText(
"cfgVehicles " + pack_type +
" Horticulture ContainsSeedsType", seeds_type);
16 int seeds_quantity_max =
g_Game.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.
vector GetPosition()
Get the world position of the Effect.
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)