34 {
36 float baseTemp =
GetGame().GetMission().GetWorldData().GetBaseEnvTemperature();
37
39 {
42
44 {
46 SetHealth( "", "", GetMaxHealth()*0.1 );
47
48 }
49 else
50 {
52 SetHealth( "", "", GetMaxHealth()*0.4 );
53 }
54 }
55 else
56 {
58 {
60 SetHealth( "", "", GetMaxHealth()*0.1 );
61 }
63 {
65 SetHealth( "", "", GetMaxHealth()*0.4 );
66 }
67 }
68 }
FoodStageType
Definition FoodStage.c:2
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
Set item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity re...
Definition ItemBase.c:7981
void ChangeFoodStage(FoodStageType new_food_stage_type)
Definition Edible_Base.c:509
Definition constants.c:638
proto native CGame GetGame()
const float COLD_AREA_TEMPERATURE_THRESHOLD
Definition constants.c:760
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].