11 return "emptyVessle_WaterBottle_SoundSet";
16 return "pour_HardGround_WatterBottle_SoundSet";
21 return "pour_SoftGround_WatterBottle_SoundSet";
26 return "pour_Water_WatterBottle_SoundSet";
31 return "pour_End_HardGround_WatterBottle_SoundSet";
36 return "pour_End_SoftGround_WatterBottle_SoundSet";
41 return "pour_End_Water_WatterBottle_SoundSet";
46 if( !super.CanPutInCargo(parent) ) {
return false;}
47 if ( parent && (parent.IsKindOf(
"WatterBottle")))
87 float temperatureDiff = liquidTemperature - GetTemperature();
91 DecreaseHealth(amount * damageVal * temperatureDiffCoef,
false);
100 float temperatureDiff = sourceLiquidTemperature - GetTemperature();
104 DecreaseHealth(amount * damageVal * temperatureDiffCoef,
false);
111 return GetTemperatureMax();
override void InsertAgent(int agent, float count=1)
override int GetQuantityMax()
override string GetEmptyingEndSoundsetWater()
override void OnDebugSpawn()
override void AffectLiquidContainerOnFill(int liquid_type, float amount)
override void AffectLiquidContainerOnTransfer(int liquidType, float amount, float sourceLiquidTemperature)
override string GetEmptyingLoopSoundsetWater()
override string GetEmptyingLoopSoundsetHard()
const float DAMAGE_ENVIRO_LIQUID_COEF_MIN
override string GetEmptyingEndSoundsetSoft()
override void EEOnCECreate()
const float DAMAGE_ENVIRO_LIQUID_COEF_MAX
override bool CanPutInCargo(EntityAI parent)
const float DAMAGE_ENVIRO_TEMPDIFF_MAX
const float DAMAGE_ENVIRO_TEMPDIFF_MIN
const float DAMAGE_OVERHEAT_PER_S
override string GetEmptyingLoopSoundsetSoft()
override string GetEmptyingEndSoundsetHard()
override float GetItemOverheatThreshold()
disregards liquid boil threshold if filled
override string GetPouringSoundset()
proto native Mission GetMission()
float GetAgentSpawnChance(eAgents agent)
float GetLiquidTypeEnviroTemperature(int liquidType)
Keeps information about currently loaded world, like temperature.
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 RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].
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,...