DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Файл FireplaceBase.c

См. исходные тексты.

Перечисления

enum  FireplaceFireState {
  NO_FIRE = 1 , START_FIRE = 2 , SMALL_FIRE = 3 , NORMAL_FIRE = 4 ,
  END_FIRE = 5 , EXTINGUISHING_FIRE = 6 , EXTINGUISHED_FIRE = 7 , REIGNITED_FIRE = 8 ,
  COUNT = 9
}
 

Функции

void FireplaceBase ()
 
void ~FireplaceBase ()
 
override void EEInit ()
 
override void EEItemAttached (EntityAI item, string slot_name)
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
override void OnAttachmentRuined (EntityAI attachment)
 
override void EEDelete (EntityAI parent)
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void AfterStoreLoad ()
 
void Synchronize ()
 
override void OnVariablesSynchronized ()
 
override bool IsFireplace ()
 
bool IsBaseFireplace ()
 
bool IsBarrelWithHoles ()
 
bool IsFireplaceIndoor ()
 
bool IsIndoorOven ()
 
override bool CanHaveWetness ()
 
override bool CanHaveTemperature ()
 
override bool GetCookingTargetTemperature (out float temperature)
 
override bool IsSelfAdjustingTemperature ()
 
void InitializeTemperatureSources ()
 
ItemBase GetCookingEquipment ()
 
void SetCookingEquipment (ItemBase equipment)
 
void ClearCookingEquipment (ItemBase pItem)
 
void ClearCookingEquipment ()
 DEPRECATED.
 
bool DirectCookingSlotsInUse ()
 
bool SmokingSlotsInUse ()
 
void DestroyFireplace ()
 [DEPRECATED]
 
override bool IsPrepareToDelete ()
 
override void OnChildItemRemoved (InventoryItem item)
 
override void CheckForDestroy ()
 
void RefreshFireplaceVisuals ()
 
void SetBurntFirewood ()
 DEPRECATED.
 
void RefreshFireplacePhysics ()
 
void RefreshFireParticlesAndSounds (bool force_refresh)
 
void StopAllParticlesAndSounds ()
 
bool CanShowSmoke ()
 
void RefreshFireState ()
 
bool PlayParticle (out Particle particle, int particle_type, vector pos, bool worldpos=false)
 
bool StopParticle (out Particle particle)
 
void ParticleFireStartStart ()
 
void ParticleFireStartStop ()
 
void ParticleSmallFireStart ()
 
void ParticleSmallFireStop ()
 
void ParticleNormalFireStart ()
 
void ParticleNormalFireStop ()
 
void ParticleSmallSmokeStart ()
 
void ParticleSmallSmokeStop ()
 
void ParticleNormalSmokeStart ()
 
void ParticleNormalSmokeStop ()
 
void ParticleFireEndStart ()
 
void ParticleFireEndStop ()
 
void ParticleFireWindyNoIgniteStart ()
 
void ParticleSteamExtinguishingStart ()
 
void ParticleSteamExtinguishingStop ()
 
void ParticleSteamEndStart ()
 
void ParticleSteamEndStop ()
 
void ParticleWetNoIgniteStart ()
 
void ParticleWetNoIgniteStop ()
 
bool GetCeilingHeight (out float actual_height)
 
float GetAirResistanceForSmokeParticles (float actual_height)
 
vector GetFireEffectPosition ()
 
vector GetSmokeEffectPosition ()
 
void SoundFireLightStart ()
 
void SoundFireHeavyStart ()
 
void SoundFireNoFireStart ()
 
void SoundFireExtinguishedStart ()
 
void SoundFireWetNoIgniteStart ()
 
void SoundFireExtinguishingStart ()
 
void SoundFireWindyNoIgniteStart ()
 
void SoundFireStop ()
 
void AddToFireConsumables (ItemBase item)
 
float GetFireConsumableTypeEnergy (ItemBase item)
 
void RemoveFromFireConsumables (FireConsumable fire_consumable)
 
FireConsumable GetFireConsumableByItem (ItemBase item)
 
FireConsumable SetItemToConsume ()
 
FireConsumable GetItemToConsume ()
 
void SpendFireConsumable (float amount)
 
int GetKindlingCount ()
 Returns count of all kindling type items (define in 'm_KindlingTypes') attached to fireplace.
 
int GetFuelCount ()
 Returns count of all fuel type items (define in 'm_FuelTypes') attached to fireplace.
 
bool IsKindling (ItemBase item)
 Returns if item attached to fireplace is kindling.
 
bool IsFuel (ItemBase item)
 Returns if item attached to fireplace is fuel.
 
bool IsItemTypeAttached (typename item_type)
 
bool IsItemAttachedQuantity (typename item_type, float quantity)
 
bool HasLastAttachment ()
 
bool HasLastFuelKindlingAttached ()
 
bool IsBurning ()
 
void SetBurningState (bool is_burning)
 
bool HasAshes ()
 
void SetAshesState (bool has_ashes)
 
bool IsOven ()
 
bool HasStoneCircle ()
 
bool HasStones ()
 
int GetAttachedStonesCount ()
 
void SetOvenState (bool is_oven)
 
void SetStoneCircleState (bool has_stonecircle)
 
float GetFuelBurnRateMP ()
 
void SetFuelBurnRateMP (float value)
 
int GetFireState ()
 
void SetFireState (FireplaceFireState state)
 
void SetExtinguishingState ()
 
void StartFire (bool force_start=false)
 
void StartHeating ()
 
void Heating ()
 
void StopFire (FireplaceFireState fire_state=FireplaceFireState.END_FIRE)
 
void StopHeating ()
 
void StartCooling ()
 
void Cooling ()
 
void StopCooling ()
 
void CookWithEquipment ()
 
Cooking GetCookingProcess ()
 
void CookOnDirectSlot (ItemBase slot_item, float temp_equip, float temp_ext)
 
void SmokeOnSmokingSlot (ItemBase slot_item, float temp_equip, float temp_ext)
 
void BurnItemsInFireplace ()
 
void AddTemperatureToItemByFire (ItemBase item)
 
void AddTemperatureToFireplace (float amount)
 DEPRECATED.
 
void AddDamageToItemByFireEx (ItemBase item, bool can_be_ruined, bool pAttachment)
 
void AddWetnessToItem (ItemBase item, float amount)
 
void AddWetnessToFireplace (float amount)
 
void TransferHeatToNearPlayers ()
 DEPRECATED.
 
void CreateAreaDamage ()
 
void DestroyAreaDamage ()
 
bool IsFacingFireplace (PlayerBase player)
 DEPRECATED.
 
bool HasAnyKindling ()
 
static bool IsWindy ()
 
bool GetIgniteFailure ()
 
void SetIgniteFailure (bool failure)
 
static bool IsEntityWet (notnull EntityAI entity_ai)
 
bool IsWet ()
 
override bool IsOpen ()
 
bool IsCeilingHighEnoughForSmoke ()
 
static bool IsRainingAboveEntity (notnull EntityAI entity_ai)
 
bool IsRainingAbove ()
 
static bool IsEntityOnWaterSurface (notnull EntityAI entity_ai)
 
float GetSurfaceWetnessOnHeatModifier (notnull EntityAI entity)
 
bool IsOnWaterSurface ()
 
static bool IsEntityOnInteriorSurface (notnull EntityAI entity_ai)
 
bool IsOnInteriorSurface ()
 
override bool IsEmpty ()
 
bool IsCargoEmpty ()
 
bool HasCookingStand ()
 
bool IsInAnimPhase (string anim_phase)
 
bool IsSpaceFor (vector size)
 
override bool CanSwapEntities (EntityAI otherItem, InventoryLocation otherDestination, InventoryLocation destination)
 
bool CanBuildOven ()
 
bool IsSpaceForOven ()
 
bool CanBuildStoneCircle ()
 
bool IsSpaceForCircle ()
 
bool CanDismantleOven ()
 
bool CanDismantleStoneCircle ()
 
bool CanCookOnStick ()
 
bool CanExtinguishFire ()
 
FireplaceLight GetLightEntity ()
 
void SetLightEntity (FireplaceLight light)
 
override bool CanBePlaced (Man player, vector position)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override string GetDeploySoundset ()
 
void CalcAndSetTotalEnergy ()
 
void CalcAndSetQuantity ()
 
override void OnAttachmentQuantityChanged (ItemBase item)
 
override bool CanReleaseAttachment (EntityAI attachment)
 
void LockOvenAttachments (bool lock)
 
override bool DisassembleOnLastDetach ()
 
override void OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx)
 
override void OnDebugSpawn ()
 
override void GetDebugActions (out TSelectableActionInfoArrayEx outputList)
 
override bool OnAction (int action_id, Man player, ParamsReadContext ctx)
 
float GetTemperatureLossMP ()
 determines how fast will the fireplace loose its temperature when cooling (lower is better)
 
void SetTemperatureLossMP (float value)
 
void AddDamageToItemByFire (ItemBase item, bool can_be_ruined)
 

Переменные

enum FireplaceFireState WIND = 0
 
enum FireplaceFireState WET = 1
 
enum FireplaceFireState m_IsBurning = false
 
bool m_HasAshes = false
 
bool m_IsOven = false
 
bool m_HasStoneCircle = false
 
bool m_NoIgnite = false
 
int m_OvenAttachmentsLockState = -1
 
FireplaceFireState m_FireState = FireplaceFireState.NO_FIRE
 
FireplaceFireState m_LastFireState = FireplaceFireState.NO_FIRE
 
vector m_HalfExtents
 
float m_FuelBurnRateMP = 1.0
 
ref Cooking m_CookingProcess
 determines how fast will the fuel item burn before spending (lower is better)
 
const float PARAM_SMALL_FIRE_TEMPERATURE = 150
 
const float PARAM_NORMAL_FIRE_TEMPERATURE = 1000
 maximum fireplace temperature of a small fire (degree Celsius)
 
const float PARAM_OUTDOOR_FIRE_TEMPERATURE = 500
 maximum fireplace temperature of a normal fire (degree Celsius)
 
const float PARAM_MIN_FIRE_TEMPERATURE = 30
 maximum fireplace temperature of an outdoor fire (degree Celsius)
 
const float PARAM_TEMPERATURE_INCREASE = 10
 minimum fireplace temperature under which the fireplace is inactive (degree Celsius)
 
const float PARAM_TEMPERATURE_DECREASE = 3
 how much will temperature increase when fireplace is burning (degree Celsius per second)
 
const float PARAM_MAX_WET_TO_IGNITE = 0.2
 how much will temperature decrease when fireplace is cooling (degree Celsius per second)
 
const float PARAM_MIN_TEMP_TO_REIGNITE = 30
 maximum wetness value when the fireplace can be ignited
 
const float PARAM_IGNITE_RAIN_THRESHOLD = 0.1
 minimum fireplace temperature under which the fireplace can be reignited using air only (degree Celsius)
 
const float PARAM_BURN_WET_THRESHOLD = 0.40
 maximum rain value when the fireplace can be ignited
 
const float PARAM_WET_HEATING_DECREASE_COEF = 0.01
 maximum wetness value when the fireplace is able to burn
 
const float PARAM_WET_COOLING_DECREASE_COEF = 0.002
 value for calculating wetness loss during heating process
 
const float PARAM_FIRE_CONSUM_RATE_AMOUNT = 0.5
 value for calculating wetness loss during cooling process
 
const float PARAM_BURN_DAMAGE_COEF = 5.0
 base value of fire consumption rate (how many base energy will be spent on each update)
 
const float PARAM_FULL_HEAT_RADIUS = 2.0
 value for calculating damage on items located in fireplace cargo
 
const float PARAM_HEAT_RADIUS = 4.0
 radius in which objects are fully heated by fire
 
const float PARAM_MAX_TRANSFERED_TEMPERATURE = 20
 radius in which objects are heated by fire
 
const int MIN_STONES_TO_BUILD_CIRCLE = 8
 maximum value for temperature that will be transfered to player (environment)
 
const int MIN_STONES_TO_BUILD_OVEN = 16
 minimum amount of stones for circle
 
const int MAX_TEMPERATURE_TO_DISMANTLE_OVEN = 40
 minimum amount of stones for oven
 
const float MIN_CEILING_HEIGHT = 5
 maximum temperature for dismantling oven
 
const float FUEL_BURN_RATE_DEFAULT = 1.0
 min height of ceiling for fire to be ignited
 
const float FUEL_BURN_RATE_STONES = 0.92
 
const float FUEL_BURN_RATE_OVEN = 0.85
 
const float PARAM_COOKING_TEMP_THRESHOLD = 100
 cooking
 
const int TIMER_HEATING_UPDATE_INTERVAL = 3
 timer constants
 
const int TIMER_COOLING_UPDATE_INTERVAL = 3
 update interval duration of heating process (seconds)
 
const int DIRECT_COOKING_SLOT_COUNT = 3
 direct cooking slots
 
const int SMOKING_SLOT_COUNT = 4
 
const float SMOKING_SPEED = 1
 
const int LIFETIME_FIREPLACE_STONE_CIRCLE = 172800
 
const int LIFETIME_FIREPLACE_STONE_OVEN = 604800
 
const float IGNITE_WIND_THRESHOLD = 0.8
 
const float RAIN_EFFECT_LIMIT = 0.4
 
const float SNOWFALL_EFFECT_LIMIT = 1.3
 rain level that triggers fireplace to start soaking
 
const float RAIN_WETNESS_INCREASE = 0.02
 snowfall level that triggers fireplace to start soaking
 
const float SNOWFALL_WETNESS_INCREASE = 0.01
 value for calculating of wetness that fireplace gain when raining
 
ref Timer m_HeatingTimer
 value for calculating of wetness that fireplace gain when raining
 
ref Timer m_CoolingTimer
 
FireplaceLight m_Light
 
float m_LightDistance = 2000
 
ItemBase m_CookingEquipment
 
ItemBase m_DirectCookingSlots [DIRECT_COOKING_SLOT_COUNT]
 
ItemBase m_SmokingSlots [SMOKING_SLOT_COUNT]
 
ref FireConsumable m_ItemToConsume
 
int PARTICLE_FIRE_START = ParticleList.CAMP_FIRE_START
 
int PARTICLE_OVEN_FIRE_START = ParticleList.CAMP_STOVE_FIRE_START
 
int PARTICLE_SMALL_FIRE = ParticleList.CAMP_SMALL_FIRE
 
int PARTICLE_NORMAL_FIRE = ParticleList.CAMP_NORMAL_FIRE
 
int PARTICLE_OVEN_FIRE = ParticleList.CAMP_STOVE_FIRE
 
int PARTICLE_SMALL_SMOKE = ParticleList.CAMP_SMALL_SMOKE
 
int PARTICLE_NORMAL_SMOKE = ParticleList.CAMP_NORMAL_SMOKE
 
int PARTICLE_FIRE_END = ParticleList.CAMP_FIRE_END
 
int PARTICLE_OVEN_FIRE_END = ParticleList.CAMP_STOVE_FIRE_END
 
int PARTICLE_STEAM_END = ParticleList.CAMP_STEAM_2END
 
int PARTICLE_STEAM_EXTINGUISHING = ParticleList.CAMP_STEAM_EXTINGUISH_START
 
int PARTICLE_NO_IGNITE_WIND = ParticleList.CAMP_NO_IGNITE_WIND
 
Particle m_ParticleFireStart
 
Particle m_ParticleSmallFire
 
Particle m_ParticleNormalFire
 
Particle m_ParticleSmallSmoke
 
Particle m_ParticleNormalSmoke
 
Particle m_ParticleFireEnd
 
Particle m_ParticleSteamEnd
 
Particle m_ParticleSteamExtinguishing
 
const string SOUND_FIRE_HEAVY = "HeavyFire_SoundSet"
 
const string SOUND_FIRE_LIGHT = "LightFire_SoundSet"
 
const string SOUND_FIRE_NO_FIRE = "NoFuelFire_SoundSet"
 
const string SOUND_FIRE_EXTINGUISHING = "ExtinguishByWater_SoundSet"
 
const string SOUND_FIRE_EXTINGUISHED = "ExtinguishByWaterEnd_SoundSet"
 
EffectSound m_SoundFireLoop
 
EffectSound m_SoundFire
 
static ref map< typename, ref FireConsumableTypem_FireConsumableTypes
 
ref map< ItemBase, ref FireConsumablem_FireConsumables
 
const string MESSAGE_IGNITE_IGNIT_ITEM_DAMAGED = "You cannot start fire. Fireplace is ruined."
 
const string MESSAGE_IGNITE_NO_KINDLING = "There needs to be some kindling to start a fire."
 
const string MESSAGE_IGNITE_TOO_WET = "The fireplace is too wet to be ignited."
 
const string MESSAGE_IGNITE_RAIN = "The fire went out because of the rain."
 
const string MESSAGE_IGNITE_WIND = "The fire went out because of the wind."
 
const string MESSAGE_IGNITE_IN_WATER = "I cannot ignite the fireplace in the water."
 
const string MESSAGE_IGNITE_UNDER_LOW_ROOF = "I cannot ignite the fireplace here, the is not enough room."
 
const string MESSAGE_REIGNITE_NO_KINDLING = "There needs to be some kindling to start a fire."
 
const string MESSAGE_REIGNITE_RAIN = "Cannot reignite fireplace in rain."
 
const string MESSAGE_REIGNITE_TOO_WET = "The fireplace is too wet to be reignited."
 
const string MESSAGE_BURY_ASHES_FAILED_NOT_EMPTY = "Cannot bury ashes. There are sill items in it."
 
const string MESSAGE_BURY_ASHES_FAILED_SURFACE = "Cannot bury ashes on hard surface."
 
const string MESSAGE_BURY_ASHES_FAILED_BURNING = "Cannot bury ashes, the fireplace is still burning."
 
const string MESSAGE_BURY_ASHES_FAILED_TOO_HOT = "Cannot bury ashes, the fireplace is too hot."
 
const string MESSAGE_CANNOT_BUILD_OVEN = "Cannot build oven."
 
const string MESSAGE_CANNOT_DISMANTLE_OVEN = "Cannot dismantle oven."
 
const string ANIMATION_ASHES = "Ashes"
 
const string ANIMATION_KINDLING = "Kindling"
 
const string ANIMATION_STICKS = "Sticks"
 
const string ANIMATION_WOOD = "Wood"
 
const string ANIMATION_BURNT_WOOD = "BurntWood"
 
const string ANIMATION_STONE = "Stone"
 
const string ANIMATION_STONES = "StonesCircle"
 
const string ANIMATION_TRIPOD = "Tripod"
 
const string ANIMATION_OVEN = "Oven"
 
const string ANIMATION_INVENTORY = "Inventory"
 
const string ANIMATION_COOKWARE_HANDLE = "handleRotate"
 
const string ANIMATION_CAULDRON_HANDLE = "handle1Rotate"
 
const string MATERIAL_FIREPLACE_GLOW = "dz\\gear\\cooking\\data\\stoneground.rvmat"
 
const string MATERIAL_FIREPLACE_NOGLOW = "dz\\gear\\cooking\\data\\stonegroundnoemit.rvmat"
 
 ATTACHMENT_STICKS = WoodenStick
 
 ATTACHMENT_FIREWOOD = Firewood
 
 ATTACHMENT_RAGS = Rag
 
 ATTACHMENT_BANDAGE = BandageDressing
 
 ATTACHMENT_BOOK = ItemBook
 
 ATTACHMENT_BARK_OAK = Bark_Oak
 
 ATTACHMENT_BARK_BIRCH = Bark_Birch
 
 ATTACHMENT_PAPER = Paper
 
 ATTACHMENT_GIFTWRAP = GiftWrapPaper
 
 ATTACHMENT_PUNCHEDCARD = PunchedCard
 
 ATTACHMENT_EYEMASK_COLORBASE = EyeMask_ColorBase
 
 ATTACHMENT_TRIPOD = Tripod
 
 ATTACHMENT_COOKINGSTAND = CookingStand
 
 ATTACHMENT_STONES = Stone
 
 ATTACHMENT_COOKING_POT = Pot
 
 ATTACHMENT_FRYING_PAN = FryingPan
 
 ATTACHMENT_CAULDRON = Cauldron
 
const float PLACEMENT_HEIGHT_LIMIT = 0.1
 
const string OBJECT_CLUTTER_CUTTER = "ClutterCutterFireplace"
 
Object m_ClutterCutter
 
ref AreaDamageManager m_AreaDamage
 
float m_TotalEnergy
 
ref NoiseParams m_NoisePar
 
bool m_CanNoise = true
 
ref UniversalTemperatureSource m_UTSource
 
ref UniversalTemperatureSourceSettings m_UTSSettings
 
ref UniversalTemperatureSourceLambdaFireplace m_UTSLFireplace
 
const float WET_SURFACE_INCREMENT = 0.06
 
bool m_ThawnSurfaceUnderSupport
 size of wetness increment (per FP heating tick) added to overall FP wetness when ignited on wet surface
 
ref UnderObjectDecalSpawnSettings m_UnderObjectDecalSpawnSettings
 
ref UnderObjectDecalSpawnComponent m_UnderObjectDecalSpawnComponent
 
const float PARAM_ITEM_HEAT_MIN_TEMP = 40
 
const float PARAM_ITEM_HEAT_TEMP_INCREASE_COEF = 10
 DEPRECATED.
 
const float PARAM_ITEM_HEAT_TEMP_HEATING_COEF = 1.0
 value for calculating temperature increase on each heat update interval (degree Celsius)
 
const float PARAM_MAX_ITEM_HEAT_TEMP_INCREASE = 200
 multiplies temperature change on heating
 
const float PARAM_HEAT_THROUGH_AIR_COEF = 0.1
 maximum value of temperature of items in fireplace when heating (degree Celsius)
 
const float TEMPERATURE_LOSS_MP_DEFAULT = 1.0
 DEPRECATED value for calculation of heat transfered from fireplace through air to player (environment)
 
const float TEMPERATURE_LOSS_MP_STONES = 0.90
 
const float TEMPERATURE_LOSS_MP_OVEN = 0.75
 
const float PARAM_COOKING_EQUIP_MAX_TEMP = 250
 
const float PARAM_COOKING_EQUIP_TEMP_INCREASE = 10
 maximum temperature of attached cooking equipment (degree Celsius)
 
const float DIRECT_COOKING_SPEED = 1.5
 how much will temperature increase when attached on burning fireplace (degree Celsius)
 
const float PARAM_WET_INCREASE_COEF = 0.02
 
float m_TemperatureLossMP = 1.0
 value for calculating of wetness that fireplace gain when raining