79 if ( crate.GetInventory().CountInventory() > 1 )
89 int hp = crate.GetHealthLevel(
"");
95 results[0].SetHealth( results[0].GetMaxHealth() *
Math.
RandomFloat( 0.6, 0.8 ));
97 results[1].SetHealth( results[1].GetMaxHealth() *
Math.
RandomFloat( 0.6, 0.8 ));
102 results[0].SetHealth( results[0].GetMaxHealth() *
Math.
RandomFloat( 0.5, 0.8 ));
104 results[1].SetHealth( results[1].GetMaxHealth() *
Math.
RandomFloat( 0.5, 0.8 ));
109 results[0].SetHealth( results[0].GetMaxHealth() *
Math.
RandomFloat( 0.3, 0.6 ));
111 results[1].SetHealth( results[1].GetMaxHealth() *
Math.
RandomFloat( 0.3, 0.6 ));
116 results[0].SetHealth( results[0].GetMaxHealth() *
Math.
RandomFloat( 0.1, 0.3 ));
118 results[1].SetHealth( results[1].GetMaxHealth() *
Math.
RandomFloat( 0.1, 0.3 ));
124 results[0].SetHealth( results[0].GetMaxHealth() *
Math.
RandomFloat( 0.05, 0.2 ));
126 results[1].SetHealth( results[1].GetMaxHealth() *
Math.
RandomFloat( 0.05, 0.2 ));
131 results[0].SetHealth( results[0].GetMaxHealth() *
Math.
RandomFloat( 0.05, 0.2 ));
133 results[1].SetHealth( results[1].GetMaxHealth() *
Math.
RandomFloat( 0.05, 0.2 ));
Super root of all classes in Enforce script.
bool m_IngredientDestroy[MAX_NUMBER_OF_INGREDIENTS]
int m_ResultToInventory[MAXIMUM_RESULTS]
override bool CanDo(ItemBase ingredients[], PlayerBase player)
bool m_IngredientUseSoftSkills[MAX_NUMBER_OF_INGREDIENTS]
float m_ResultSetHealth[MAXIMUM_RESULTS]
float m_ResultSetQuantity[MAXIMUM_RESULTS]
bool m_ResultSetFullQuantity[MAXIMUM_RESULTS]
override void Do(ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
void AddResult(string item)
bool m_ResultUseSoftSkills[MAXIMUM_RESULTS]
int m_ResultReplacesIngredient[MAXIMUM_RESULTS]
float m_IngredientAddHealth[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientSetHealth[MAX_NUMBER_OF_INGREDIENTS]
int m_ResultInheritsHealth[MAXIMUM_RESULTS]
float m_MinQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
int m_ResultInheritsColor[MAXIMUM_RESULTS]
float m_MaxQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientAddQuantity[MAX_NUMBER_OF_INGREDIENTS]
float m_MinDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
float m_MaxDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
void InsertIngredient(int index, string ingredient, DayZPlayerConstants uid=DayZPlayerConstants.CMD_ACTIONFB_CRAFTING)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
const int STATE_BADLY_DAMAGED
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].