12 return "emptyVessle_WaterBottle_SoundSet";
17 return "pour_HardGround_WatterBottle_SoundSet";
22 return "pour_SoftGround_WatterBottle_SoundSet";
27 return "pour_Water_WatterBottle_SoundSet";
32 return "pour_End_HardGround_WatterBottle_SoundSet";
37 return "pour_End_SoftGround_WatterBottle_SoundSet";
42 return "pour_End_Water_WatterBottle_SoundSet";
47 if( !super.CanPutInCargo(parent) ) {
return false;}
48 if ( parent && (parent.IsKindOf(
"WatterBottle")))
70 super.OnConsume(amount,consumer);
83 if (liquidTemperature >= GetTemperatureMax())
85 float temperatureDiff = liquidTemperature - GetTemperature();
89 DecreaseHealth(amount * damageVal * temperatureDiffCoef,
false);
98 float temperatureDiff = sourceLiquidTemperature - GetTemperature();
102 DecreaseHealth(amount * damageVal * temperatureDiffCoef,
false);
109 return GetTemperatureMax();
override int GetQuantityMax()
proto native Mission GetMission()
override string GetEmptyingEndSoundsetWater()
override string GetEmptyingLoopSoundsetHard()
override float GetItemOverheatThreshold()
disregards liquid boil threshold if filled
override string GetEmptyingLoopSoundsetWater()
override void AffectLiquidContainerOnFill(int liquid_type, float amount)
override string GetEmptyingEndSoundsetHard()
override int FilterAgents(int agentsIn)
const float DAMAGE_ENVIRO_LIQUID_COEF_MAX
override void OnConsume(float amount, PlayerBase consumer)
const float DAMAGE_OVERHEAT_PER_S
override string GetEmptyingEndSoundsetSoft()
const float DAMAGE_ENVIRO_TEMPDIFF_MIN
override string GetEmptyingLoopSoundsetSoft()
override bool CanPutInCargo(EntityAI parent)
const float DAMAGE_ENVIRO_TEMPDIFF_MAX
override void AffectLiquidContainerOnTransfer(int liquidType, float amount, float sourceLiquidTemperature)
const float DAMAGE_ENVIRO_LIQUID_COEF_MIN
void DamageBottleConsume(float amount, PlayerBase consumer)
override string GetPouringSoundset()
const float DAMAGE_CONSUME_PER_ML
float GetLiquidTypeEnviroTemperature(int liquidType)
proto native CGame GetGame()
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...