3 private static const float PACK_DAMAGE_TOLERANCE = 0.5;
13 string seeds_type =
"";
15 GetGame().ConfigGetText(
"cfgVehicles " + pack_type +
" Horticulture ContainsSeedsType", seeds_type );
17 int seeds_quantity_max =
GetGame().ConfigGetInt(
"cfgVehicles " + pack_type +
" Horticulture ContainsSeedsQuantity" );
18 int seeds_quantity = seeds_quantity_max;
20 seeds_quantity =
Math.Round( seeds_quantity_max * GetHealth01(
"",
"") );
22 if ( seeds_quantity < 1 )
30 player.ServerReplaceItemInHandsWithNew(lambda);
59 super.CopyOldPropertiesToNew(old_item, new_item);
62 Class.CastTo(unboxed, new_item);
68 super.OnSuccess(new_item);