Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс FlammableBase
+ Граф наследования:FlammableBase:

Защищенные члены

override void DeferredInit ()
 
void Init ()
 
override void EEInit ()
 
override vector GetUniversalTemperatureSourcePosition ()
 
override void EEDelete (EntityAI parent)
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanReleaseAttachment (EntityAI attachment)
 
override bool CanRemoveFromCargo (EntityAI parent)
 
override bool CanPutAsAttachment (EntityAI parent)
 
bool CanBeTakenAsCargo ()
 
override bool IsIgnited ()
 
override bool CanIgniteItem (EntityAI ignite_target=NULL)
 
override bool HasFlammableMaterial ()
 
override bool CanBeIgnitedBy (EntityAI igniter=NULL)
 
bool IsRagDryEnough (ItemBase rag)
 
void UpdateCheckForReceivingUpgrade ()
 
override void OnIgnitedThis (EntityAI fire_source)
 
override void OnSwitchOn ()
 
override void OnSwitchOff ()
 
void SetTorchDecraftResult (string type)
 
bool ConsumeRag ()
 
void ConsumeLard (Lard lard)
 
void Upgrade (ItemBase source)
 
void ConsumeFuelFromBottle (ItemBase vessel)
 
void ConsumeFuelFromGasStation ()
 
void RuinRags ()
 
override void OnInventoryExit (Man player)
 
bool StandUp ()
 
void CalculateQuantity ()
 
bool CanReceiveUpgrade ()
 
void CraftingInit (float quantity)
 
override void EEItemAttached (EntityAI item, string slot_name)
 
override void EEItemDetached (EntityAI item, string slot_name)
 
bool CanTransformIntoStick ()
 
void TryTransformIntoStick ()
 
override void OnWorkStart ()
 
void StopAllParticles ()
 
Rag GetRag ()
 
void LockRags (bool do_lock)
 
void UpdateLight ()
 
override void OnItemInHandsPlayerSwimStart (PlayerBase player)
 
override void OnWork (float consumed_energy)
 
string GetSoundName ()
 
void UpdateParticle ()
 
override void OnWorkStop ()
 
override int GetMeleeMode ()
 
override int GetMeleeHeavyMode ()
 
override int GetMeleeSprintMode ()
 
override void SetActions ()
 
override void OnAttachmentQuantityChangedEx (ItemBase item, float delta)
 
override bool DisassembleOnLastDetach ()
 
override void OnDebugSpawn ()
 
int GetRagQuantity ()
 
string GetBurningMaterial ()
 
string GetBurntMaterial ()
 
void UpdateMaterial ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
void ApplyResultModifications (ItemBase result)
 

Защищенные данные

ref UniversalTemperatureSource m_UTSource
 
ref UniversalTemperatureSourceSettings m_UTSSettings
 
ref UniversalTemperatureSourceLambdaConstant m_UTSLConstant
 

Закрытые члены

void FlammableBase ()
 
- Закрытые члены унаследованные от ItemBase
void BarbedWire ()
 
void ~BarbedWire ()
 
override void EEInit ()
 
bool IsMounted ()
 
bool GetSlotLockedState ()
 
void SetMountedState (bool is_mounted)
 
void UpdateAttachmentSlot ()
 
void LockAttachmentSlot (bool lock_state)
 
void Synchronize ()
 
override void OnVariablesSynchronized ()
 
void PlayDeployLoopSound ()
 
void StopDeployLoopSound ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void AfterStoreLoad ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
override void OnWork (float consumed_energy)
 
override void OnIsPlugged (EntityAI source_device)
 
override void OnIsUnplugged (EntityAI last_energy_source)
 
override void OnInventoryEnter (Man player)
 
void CreateElectrifiedDamageTrigger ()
 
void CreateDamageTrigger ()
 
void DestroyDamageTrigger ()
 
void Spark ()
 
void SoundCut ()
 
void SoundSpark ()
 
void SoundBuzzLoopStart ()
 
void SoundBuzzLoopStop ()
 
void SoundElectricShock ()
 
void SoundCollision ()
 
override void PreAreaDamageActions ()
 
override void PostAreaDamageActions ()
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override string GetDeploySoundset ()
 
override string GetLoopDeploySoundset ()
 
override void SetActions ()
 
void BaseBuildingBase ()
 
override void EEDelete (EntityAI parent)
 
override string GetInvulnerabilityTypeString ()
 
override bool CanObstruct ()
 
override int GetHideIconMask ()
 
void SynchronizeBaseState ()
 
override void OnVariablesSynchronized ()
 
void OnSynchronizedClient ()
 
void RegisterPartForSync (int part_id)
 
void UnregisterPartForSync (int part_id)
 
bool IsPartBuildInSyncData (int part_id)
 
void RegisterActionForSync (int part_id, int action_id)
 
void ResetActionSyncData ()
 
void SetActionFromSyncData ()
 
void SetPartFromSyncData (ConstructionPart part)
 
void SetPartsFromSyncData ()
 
ConstructionPart GetConstructionPartById (int id)
 
bool HasBase ()
 
void SetBaseState (bool has_base)
 
override bool IsDeployable ()
 
bool IsOpened ()
 
ItemBase CreateConstructionKit ()
 
void CreateConstructionKitInHands (notnull PlayerBase player)
 
vector GetKitSpawnPosition ()
 
string GetConstructionKitType ()
 
void DestroyConstructionKit (ItemBase construction_kit)
 
void DestroyConstruction ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void AfterStoreLoad ()
 
void SetPartsAfterStoreLoad ()
 
override void EEHealthLevelChanged (int oldLevel, int newLevel, string zone)
 
override void EEOnAfterLoad ()
 
override void EEInit ()
 
override void EEItemAttached (EntityAI item, string slot_name)
 
override void EEItemDetached (EntityAI item, string slot_name)
 
void OnSetSlotLock (int slotId, bool locked, bool was_locked)
 
override bool IgnoreOutOfReachCondition ()
 
void OnPartBuiltServer (notnull Man player, string part_name, int action_id)
 
void OnPartBuiltClient (string part_name, int action_id)
 
void OnPartDismantledServer (notnull Man player, string part_name, int action_id)
 
void OnPartDismantledClient (string part_name, int action_id)
 
void OnPartDestroyedServer (Man player, string part_name, int action_id, bool destroyed_by_connected_part=false)
 
void OnPartDestroyedClient (string part_name, int action_id)
 
void InitBaseState ()
 
void InitVisuals ()
 
void UpdateVisuals ()
 
void UpdateAttachmentVisuals (string slot_name, bool is_locked)
 
void UpdatePhysics ()
 
void UpdateAttachmentPhysics (string slot_name, bool is_locked)
 
void UpdateNavmesh ()
 
override bool CanUseConstruction ()
 
override bool CanUseConstructionBuild ()
 
bool IsAttachmentSlotLocked (EntityAI attachment)
 
bool IsAttachmentSlotLocked (string slot_name)
 
void GetAttachmentSlots (EntityAI entity, out array< string > attachment_slots)
 
bool CheckSlotVerticalDistance (int slot_id, PlayerBase player)
 
bool CheckMemoryPointVerticalDistance (float max_dist, string selection, PlayerBase player)
 
bool CheckLevelVerticalDistance (float max_dist, string selection, PlayerBase player)
 
void ConstructionInit ()
 
Construction GetConstruction ()
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
bool HasAttachmentsBesidesBase ()
 
override bool ShowZonesHealth ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanRemoveFromCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI parent)
 
override bool IsFacingPlayer (PlayerBase player, string selection)
 
override bool IsPlayerInside (PlayerBase player, string selection)
 
bool MustBeBuiltFromOutside ()
 Some buildings can only be built from outside.
 
bool IsFacingCamera (string selection)
 
bool PerformRoofCheckForBase (string partName, PlayerBase player, out bool result)
 
bool HasProperDistance (string selection, PlayerBase player)
 
bool CanFoldBaseBuildingObject ()
 
ItemBase FoldBaseBuildingObject ()
 
void CreateAreaDamage (string slot_name, float rotation_angle=0)
 
void CalcDamageAreaRotation (float angle_deg, out vector center, out vector orientation)
 
void DestroyAreaDamage (string slot_name)
 
override bool IsIgnoredByConstruction ()
 
void SoundBuildStart (string part_name)
 
void SoundDismantleStart (string part_name)
 
void SoundDestroyStart (string part_name)
 
string GetBuildSoundByMaterial (string part_name)
 
string GetDismantleSoundByMaterial (string part_name)
 
void CheckForHybridAttachments (EntityAI item, string slot_name)
 
override int GetDamageSystemVersionChange ()
 
override void SetActions ()
 
void DebugCustomState ()
 
array< stringOnDebugSpawnBuildExcludes ()
 Excludes certain parts from being built by OnDebugSpawn, uses Contains to compare.
 
override void OnDebugSpawn ()
 
void FullyBuild ()
 
void BatteryCharger ()
 
override bool IsElectricAppliance ()
 
override void OnWork (float consumed_energy)
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
void UpdateStatusLights ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI player)
 
override void OnOwnSocketTaken (EntityAI device)
 
override void OnOwnSocketReleased (EntityAI device)
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override bool CanLoadAttachment (EntityAI attachment)
 
void HideAttachedClipsStates ()
 
void RedLightOn ()
 
void GreenLightOn ()
 
void YellowLightOn ()
 
void SwitchLightOn ()
 
void RedLightOff ()
 
void GreenLightOff ()
 
void YellowLightOff ()
 
void SwitchLightOff ()
 
override void OnSwitchOn ()
 
override void OnSwitchOff ()
 
override void OnInventoryExit (Man player)
 
override void OnInventoryEnter (Man player)
 
override void OnVariablesSynchronized ()
 
override void RefreshPhysics ()
 
override void OnPlacementStarted (Man player)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override bool IsDeployable ()
 
override string GetPlaceSoundset ()
 
override void SetActions ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
void RefreshFlameVisual (bool working=false)
 
void SoundBurningStart ()
 
void SoundBurningStop ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanRemoveFromCargo (EntityAI parent)
 
override bool IsIgnited ()
 
override void OnIgnitedTarget (EntityAI ignited_item)
 
override bool CanIgniteItem (EntityAI ignite_target=NULL)
 
override void SetActions ()
 
EntityAI GetGasCanister ()
 
bool HasEnoughEnergyForRepair (float pTime)
 
override void OnDebugSpawn ()
 
void KitBase ()
 
void ~KitBase ()
 
override bool IsBasebuildingKit ()
 
override bool HasProxyParts ()
 
override bool CanProxyObstruct ()
 
override void OnVariablesSynchronized ()
 
override void EEInit ()
 
override bool DisassembleOnLastDetach ()
 
override void EEItemDetached (EntityAI item, string slot_name)
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
override void OnEndPlacement ()
 
override void OnPlacementCancelled (Man player)
 
override bool IsDeployable ()
 
override bool CanAssignAttachmentsToQuickbar ()
 
override string GetDeploySoundset ()
 
override string GetLoopDeploySoundset ()
 
override string GetDeployFinishSoundset ()
 
override void RefreshPhysics ()
 
void UpdateVisuals ()
 
void UpdatePhysics ()
 
void PlayDeployLoopSound ()
 
void StopDeployLoopSound ()
 
void AssembleKit ()
 
void DisassembleKit (ItemBase item)
 
void CreateRope (Rope rope)
 
override void SetActions ()
 
void Paper ()
 
void ~Paper ()
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override WrittenNoteData GetWrittenNoteData ()
 
override bool HasFlammableMaterial ()
 
override bool CanBeIgnitedBy (EntityAI igniter=null)
 
override bool CanIgniteItem (EntityAI ignite_target=null)
 
override void OnIgnitedTarget (EntityAI ignited_item)
 
override void OnIgnitedThis (EntityAI fire_source)
 
override bool IsThisIgnitionSuccessful (EntityAI item_source=null)
 
override void SetActions ()
 
void ParticleTest ()
 
override void EEDelete (EntityAI parent)
 
override void OnSwitchOn ()
 
override void OnSwitchOff ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
void SoundBurningStart ()
 
void SoundBurningStop ()
 
void SoundTurnOn ()
 
void SoundTurnOff ()
 
override void SetActions ()
 
ItemBase GetCookingEquipment ()
 
void SetCookingEquipment (ItemBase equipment)
 
void ClearCookingEquipment (ItemBase pItem)
 
void DestroyFireplace ()
 
override void EEInit ()
 
override void EEItemAttached (EntityAI item, string slot_name)
 
override void EEItemDetached (EntityAI item, string slot_name)
 
override void OnSwitchOn ()
 
override void OnSwitchOff ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
override void OnWork (float consumed_energy)
 
void CookWithEquipment ()
 
void RefreshFlameVisual (bool working=false, bool hasAttachment=false)
 
void RemoveCookingAudioVisuals ()
 
void SoundBurningStart ()
 
void SoundBurningStop ()
 
void SoundTurnOn ()
 
void SoundTurnOff ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanRemoveFromCargo (EntityAI parent)
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override bool CanLoadAttachment (EntityAI attachment)
 
override bool CanPutIntoHands (EntityAI parent)
 
override bool IsIgnited ()
 
override bool CanIgniteItem (EntityAI ignite_target=NULL)
 
override void SetActions ()
 
override void OnDebugSpawn ()
 
void PowerGeneratorBase ()
 
void ~PowerGeneratorBase ()
 
override void EEInit ()
 
override void EOnInit (IEntity other, int extra)
 
override float GetLiquidThroughputCoef ()
 
void StartLoopSound ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI player)
 
bool CanManipulate ()
 
override void OnInitEnergy ()
 
override void OnWorkStart ()
 
override void OnWork (float consumed_energy)
 
override void OnWorkStop ()
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
override void EEItemAttached (EntityAI item, string slot_name)
 
override void EEItemDetached (EntityAI item, string slot_name)
 
void UpdateFuelMeter ()
 
void SetFuel (float fuel_amount)
 
float AddFuel (float available_fuel)
 
bool CanAddFuel (ItemBase container)
 
float GetFuel ()
 
float GetMaxFuel ()
 
bool HasSparkplug ()
 
override void OnVariablesSynchronized ()
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override string GetPlaceSoundset ()
 
override void SetActions ()
 
override void OnDebugSpawn ()
 
override void OnWorkStart ()
 
void StartPeriodicMeasurement ()
 
void PrepareMeasurement ()
 
void DoMeasurement ()
 
void StopPeriodicMeasurement ()
 
override void OnWorkStop ()
 
override void SetActions ()
 
void Spotlight ()
 
void ~Spotlight ()
 
override bool IsElectricAppliance ()
 
override void OnInitEnergy ()
 
override void EOnInit (IEntity other, int extra)
 
override void OnSwitchOn ()
 
override void OnSwitchOff ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
override void OnIsPlugged (EntityAI source_device)
 
void UpdateAllSelections ()
 
override void OnIsUnplugged (EntityAI last_energy_source)
 
override void OnVariablesSynchronized ()
 
void Fold (bool keep_connected=false)
 
void Unfold ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI player)
 
bool IsFolded ()
 
void SoundTurnOn ()
 
void SoundTurnOff ()
 
override void OnPlacementStarted (Man player)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override void OnPlacementCancelled (Man player)
 
override bool IsDeployable ()
 
override string GetDeploySoundset ()
 
override string GetLoopDeploySoundset ()
 
void PlayDeployLoopSound ()
 
void StopDeployLoopSound ()
 
override int GetViewIndex ()
 
override void SetActions ()
 
void TentBase ()
 
void ~TentBase ()
 
override string GetInvulnerabilityTypeString ()
 
override bool HasProxyParts ()
 
override bool CanProxyObstructSelf ()
 prevents showing cargo when outside the tent geometry
 
override bool IsItemTent ()
 
override bool CanBeRepairedByCrafting ()
 
override int GetMeleeTargetType ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void RefreshPhysics ()
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
override void OnVariablesSynchronized ()
 
override void EEHealthLevelChanged (int oldLevel, int newLevel, string zone)
 
void HideAllAnimationsAndProxyPhysics (bool hide_animations=true, bool hide_physics=true)
 
bool ConditionIntoInventory (EntityAI player)
 
override bool CanPutIntoHands (EntityAI parent)
 
override bool CanPutInCargo (EntityAI parent)
 
bool ConditionOutOfHands (EntityAI player)
 
override bool CanBeRepairedToPristine ()
 
void RefreshAttachements ()
 
override void EEItemAttached (EntityAI item, string slot_name)
 
override void EEItemDetached (EntityAI item, string slot_name)
 
override int GetViewIndex ()
 
int GetState ()
 
int GetStateLocal ()
 
bool CanBePacked ()
 
bool CanBeManipulated ()
 
bool CanAttach (ItemBase item)
 
override bool IsIgnoredByConstruction ()
 
void Pack (bool update_navmesh, bool init=false)
 
void Pitch (bool update_navmesh, bool init=false)
 
void TryPitch (bool update_navmesh, bool init=false)
 
void UpdateVisuals ()
 
void UpdatePhysics ()
 
void Refresh ()
 
bool CanToggleAnimations (string selection)
 
void ResetToggle ()
 
void ManipulateEntrance ()
 
void ManipulateWindow ()
 
bool IsManipulatedEntrance ()
 
bool IsManipulatedWindow ()
 
void ToggleAnimation (string selection)
 
void HandleCamoNetAttachment (bool hide)
 
void AnimateCamonetToggle (ToggleAnimations toggle)
 
void AnimateCamonetByOpeningSelection (string opening_selection)
 
string GetSoundOpen ()
 
string GetSoundClose ()
 
string GetSoundOpenWindow ()
 
string GetSoundCloseWindow ()
 
void SoundTentOpenPlay ()
 
void SoundTentClosePlay ()
 
void SoundTentOpenWindowPlay ()
 
void SoundTentCloseWindowPlay ()
 
void RegenerateNavmesh ()
 
bool HasClutterCutter ()
 
string GetClutterCutter ()
 
void DestroyClutterCutter ()
 
override bool IsDeployable ()
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
void PlayDeployLoopSound ()
 
void StopDeployLoopSound ()
 
override void SetActions ()
 
void HandleOpeningsVisuals ()
 
void HandleOpeningsPhysics ()
 
override int GetDamageSystemVersionChange ()
 
override bool CanReceiveItemIntoCargo (EntityAI item)
 
override bool CanLoadItemIntoCargo (EntityAI item)
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override bool CanLoadAttachment (EntityAI attachment)
 
override bool CanBePlaced (Man player, vector position)
 
void SetIsBeingPacked (bool isBeingPacked)
 
void ToolBase ()
 
int GetDisarmRate ()
 
override void OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx)
 

Закрытые данные

SoundOnVehicle m_LoopSoundEntity
 
Particle m_FireParticle
 
bool m_CanReceiveUpgrade
 
bool m_IsBeingDestructed = false
 
float m_BurnTimePerRagEx
 
float m_BurnTimePerFullLardEx
 
float m_BurnTimePerFullFuelDoseEx
 
float m_MaxConsumableLardQuantityEx
 
float m_MaxConsumableFuelQuantityEx
 
float m_WaterEvaporationByFireIntensityEx = 0.001
 
int m_StartFadeOutOfLightAtQuantityEx = 3
 
int m_RagsUpgradedCount
 
bool m_ConsumeRagFlipFlop
 
vector m_ParticleLocalPos = Vector(0, 0.50, 0)
 
string m_DecraftResult = "WoodenStick"
 
TorchLight m_Light
 
bool m_WasLit
 
- Закрытые данные унаследованные от ItemBase
ref array< ref Slotm_Slots
 
int m_SlotFertilityState = 0
 
int m_SlotWateredState = 0
 
int m_MaxWateredStateVal = 0
 
float m_DefaultFertility = 1
 
ref Timer m_CheckRainTimer
 
EffectSound m_DeployLoopSound
 
SoundOnVehicle m_BuzzSoundLoop
 
ref Timer m_SparkEvent
 
ref AreaDamageManager m_AreaDamage
 
bool m_TriggerActive
 
bool m_IsPlaced
 
bool m_IsMounted
 
bool m_LastMountedState
 
const string SOUND_MOUNT = "putDown_BarbedWire_SoundSet"
 
EffectSound m_MountSound
 
EffectSound m_Sound
 
ref map< string, ref AreaDamageManagerm_DamageTriggers
 
ref array< stringm_HybridAttachments
 
ref array< stringm_Mountables
 
const string ATTACHED_CLIPS_STATES [] = {SEL_CLIPS_CAR, SEL_CLIPS_TRUCK}
 
const int ATTACHED_CLIPS_STATES_COUNT = 2
 
int m_BatteryEnergy0To100
 
float m_ChargeEnergyPerSecond
 
ref Timer m_UpdateStatusLightsTimer
 
bool m_BlinkingStatusLightIsOn = false
 
BlowtorchLight m_Light
 
EffectSound m_SoundBurningLoop
 
bool m_DeployedRegularly
 
ref WrittenNoteData m_NoteContents
 
int PARTICLE_PATH
 
Particle m_Particle
 
EffectSound m_SoundTurnOn
 
EffectSound m_SoundTurnOff
 
const string FLAME_BUTANE_ON = "dz\\gear\\cooking\\data\\flame_butane_ca.paa"
 
const string FLAME_BUTANE_OFF = ""
 
 ATTACHMENT_COOKING_POT = Pot
 
 ATTACHMENT_FRYING_PAN = FryingPan
 
 ATTACHMENT_CAULDRON = Cauldron
 
const float PARAM_COOKING_TEMP_THRESHOLD = 100
 
const float PARAM_COOKING_EQUIP_TEMP_INCREASE = 10
 
const float PARAM_COOKING_EQUIP_MAX_TEMP = 250
 
const float PARAM_COOKING_TIME_INC_COEF = 0.5
 
ref UniversalTemperatureSource m_UTSource
 DEPRECATED Attached spark plug item.
 
ref UniversalTemperatureSourceSettings m_UTSSettings
 
ref UniversalTemperatureSourceLambdaConstant m_UTSLConst
 
EffectSound m_EngineLoop
 
EffectSound m_EngineStart
 
EffectSound m_EngineStop
 
ref Timer m_SoundLoopStartTimer
 
Effect m_Smoke
 
ItemBase m_SparkPlug
 
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
 
ref Timer m_Timer
 
int m_State
 
int m_StateLocal = -1
 
bool m_IsEntrance
 
bool m_IsWindow
 
bool m_IsToggle
 
bool m_IsBeingPacked = false
 
int m_OpeningMask = 0
 
int m_OpeningMaskLocal = -1
 
ref map< ref ToggleAnimations, boolm_ToggleAnimations
 
ref array< stringm_ShowAnimationsWhenPitched
 
ref array< stringm_ShowAnimationsWhenPacked
 
Object m_ClutterCutter
 
CamoNet m_CamoNet
 
vector m_HalfExtents
 
int m_MineDisarmRate = 60
 
EntityAI m_Bait
 
bool m_IsActive
 
bool m_IsDeployed
 
bool m_IsInProgress
 
string m_AnimationPhaseSet
 
string m_AnimationPhaseTriggered
 
string m_AnimationPhaseUsed
 
ref array< stringm_PlaceableWaterSurfaceList
 DEPRECATED.
 
bool m_WaterSurfaceForSetup
 
ref multiMap< string, floatm_CatchesPond
 
ref multiMap< string, floatm_CatchesSea
 
ref multiMap< string, floatm_CatchesGroundAnimal
 
ref EffectSound m_DeployLoopSound
 
ref Timer m_PrevTimer
 
bool m_NeedInstalation
 
bool m_BaitNeeded
 
bool m_IsUsable
 

Дополнительные унаследованные члены

- Закрытые статические данные унаследованные от ItemBase
const string SEL_CLIPS_CAR = "clips_car_battery"
 
const string SEL_CLIPS_TRUCK = "clips_truck_battery"
 
const string SEL_CLIPS_DETACHED = "clips_detached"
 
const string SEL_CLIPS_FOLDED = "clips_folded"
 
const string SEL_SWITCH_ON = "switch_on"
 
const string SEL_SWITCH_OFF = "switch_off"
 
const string SEL_CORD_PLUGGED = "cord_plugged"
 
const string SEL_CORD_FOLDED = "cord_folded"
 
const string SEL_LIGHT_STATE_1 = "light_stand_by"
 
const string SEL_LIGHT_STATE_2 = "light_charging"
 
const string SEL_LIGHT_STATE_3 = "light_charged"
 
const string RED_LIGHT_GLOW = "dz\\gear\\camping\\data\\battery_charger_light_r.rvmat"
 
const string GREEN_LIGHT_GLOW = "dz\\gear\\camping\\data\\battery_charger_light_g.rvmat"
 
const string YELLOW_LIGHT_GLOW = "dz\\gear\\camping\\data\\battery_charger_light_y.rvmat"
 
const string SWITCH_LIGHT_GLOW = "dz\\gear\\camping\\data\\battery_charger_light_switch_on.rvmat"
 
const string DEFAULT_MATERIAL = "dz\\gear\\camping\\data\\battery_charger.rvmat"
 
float m_BlinkingStatusLightInterval = 0.4
 

Подробное описание

Конструктор(ы)

◆ FlammableBase()

void FlammableBase ( )
inlineprivate
4 {
5 Init();
6 }
void Init()
Definition Torch.c:41

Перекрестные ссылки Init().

Методы

◆ ApplyResultModifications()

void ApplyResultModifications ( ItemBase result)
inlineprotected
852 {
853 result.SetQuantity(1);
854 }
Definition EntityAI.c:95

Используется в TryTransformIntoStick().

◆ CalculateQuantity()

void CalculateQuantity ( )
inlineprotected
417 {
418 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
419 {
420 SetQuantityNormalized(GetCompEM().GetEnergy0To1());
421 }
422 }
void SetQuantityNormalized(float value, bool destroy_config=true, bool destroy_forced=false)
Sets quantity in normalized 0..1 form between the item's Min a Max values as defined by item's config...
Definition ItemBase.c:7965
proto native CGame GetGame()

Перекрестные ссылки GetGame() и SetQuantityNormalized().

Используется в ConsumeFuelFromBottle(), ConsumeFuelFromGasStation(), ConsumeLard(), EEItemAttached(), EEItemDetached(), OnAttachmentQuantityChangedEx(), OnDebugSpawn(), OnWork(), OnWorkStop() и Upgrade().

◆ CanBeIgnitedBy()

override bool CanBeIgnitedBy ( EntityAI igniter = NULL)
inlineprotected
152 {
153 if ( !GetCompEM().CheckWetness() )
154 return false;
155
156 ItemBase rag = GetRag();
157
158 if (rag && GetCompEM().GetEnergy() < GetCompEM().GetEnergyUsage() * GetCompEM().GetUpdateInterval() )
159 {
160 if (IsRagDryEnough(rag))
161 return false;
162 }
163
164 if ( !GetCompEM().CanWork() )
165 return false;
166
167 if ( GetCompEM().GetEnergy() < 3 )
168 return false;
169
170 PlayerBase player = PlayerBase.Cast(GetHierarchyRootPlayer());
171 if (player)
172 {
173 if (this != player.GetItemInHands())//we are in player's inventory, but not in his hands
174 {
175 return false;
176 }
177 }
178
179 return true;
180 }
float GetEnergy()
Definition ItemBase.c:8187
Rag GetRag()
Definition Torch.c:532
bool IsRagDryEnough(ItemBase rag)
Definition Torch.c:182
Definition InventoryItem.c:731
Definition PlayerBaseClient.c:2

Перекрестные ссылки GetEnergy(), GetRag() и IsRagDryEnough().

◆ CanBeTakenAsCargo()

bool CanBeTakenAsCargo ( )
inlineprotected
130 {
131 // Don't let players burn their pockets!
132 return !GetCompEM().IsWorking();
133 }

Используется в CanPutInCargo() и CanRemoveFromCargo().

◆ CanIgniteItem()

override bool CanIgniteItem ( EntityAI ignite_target = NULL)
inlineprotected
141 {
142 return GetCompEM().IsWorking();
143 }

◆ CanPutAsAttachment()

override bool CanPutAsAttachment ( EntityAI parent)
inlineprotected
125 {
126 return !GetCompEM().IsWorking();
127 }

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI parent)
inlineprotected
107 {
108 if( !super.CanPutInCargo(parent) ) {return false;}
109 return CanBeTakenAsCargo();
110 }
bool CanBeTakenAsCargo()
Definition Torch.c:129

Перекрестные ссылки CanBeTakenAsCargo().

◆ CanReceiveAttachment()

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected
98 {
99 ItemBase att = ItemBase.Cast(GetInventory().FindAttachment(slotId));
100 if (att && att.IsFullQuantity())
101 return false;
102
103 return super.CanReceiveAttachment(attachment, slotId);
104 }

◆ CanReceiveUpgrade()

bool CanReceiveUpgrade ( )
inlineprotected
425 {
426 return m_CanReceiveUpgrade;
427 }
bool m_CanReceiveUpgrade
Definition Torch.c:10

Перекрестные ссылки m_CanReceiveUpgrade.

◆ CanReleaseAttachment()

override bool CanReleaseAttachment ( EntityAI attachment)
inlineprotected
113 {
114 if( !super.CanReleaseAttachment( attachment ) )
115 return false;
116 return !GetCompEM().IsWorking();
117 }

◆ CanRemoveFromCargo()

override bool CanRemoveFromCargo ( EntityAI parent)
inlineprotected
120 {
121 return CanBeTakenAsCargo();
122 }

Перекрестные ссылки CanBeTakenAsCargo().

◆ CanTransformIntoStick()

bool CanTransformIntoStick ( )
inlineprotected
466 {
467 if ((GetGame().IsServer() || !GetGame().IsMultiplayer()) && !IsIgnited() && !GetRag() && !IsSetForDeletion() )
468 return true;
469 else
470 return false;
471 }
override bool IsIgnited()
Definition Torch.c:135

Перекрестные ссылки GetGame(), GetRag() и IsIgnited().

Используется в TryTransformIntoStick().

◆ ConsumeFuelFromBottle()

void ConsumeFuelFromBottle ( ItemBase vessel)
inlineprotected
326 {
327 if (vessel)
328 {
329 float vessel_quant = vessel.GetQuantity();
330
332
335
337
339 float add_energy_coef = 1;
340
341 float energy_limit = GetCompEM().GetEnergyMax() - GetCompEM().GetEnergy();
342
344 {
348 }
349
350 GetCompEM().AddEnergy( add_energy );
351 vessel.AddQuantity(-available_vessel_quant);
352
354
356 }
357 }
void UpdateCheckForReceivingUpgrade()
Definition Torch.c:189
void CalculateQuantity()
Definition Torch.c:416
float m_BurnTimePerFullFuelDoseEx
Definition Torch.c:15
float m_MaxConsumableFuelQuantityEx
Definition Torch.c:17

Перекрестные ссылки CalculateQuantity(), m_BurnTimePerFullFuelDoseEx, m_MaxConsumableFuelQuantityEx и UpdateCheckForReceivingUpgrade().

◆ ConsumeFuelFromGasStation()

void ConsumeFuelFromGasStation ( )
inlineprotected
360 {
362 float add_energy_coef = 1;
363
364 float energy_limit = GetCompEM().GetEnergyMax() - GetCompEM().GetEnergy();
365
367 {
370 }
371
372 GetCompEM().AddEnergy( add_energy );
375 }

Перекрестные ссылки CalculateQuantity(), m_BurnTimePerFullFuelDoseEx и UpdateCheckForReceivingUpgrade().

◆ ConsumeLard()

void ConsumeLard ( Lard lard)
inlineprotected
255 {
256 if (lard)
257 {
258 float lard_quant = lard.GetQuantity();
259
261
264
266
268 float add_energy_coef = 1;
269
270 float energy_limit = GetCompEM().GetEnergyMax() - GetCompEM().GetEnergy();
271
273 {
277 }
278
279 GetCompEM().AddEnergy( add_energy );
280 lard.AddQuantity(-available_lard_quant);
281
283
285 }
286 }
float m_MaxConsumableLardQuantityEx
Definition Torch.c:16
float m_BurnTimePerFullLardEx
Definition Torch.c:14

Перекрестные ссылки CalculateQuantity(), m_BurnTimePerFullLardEx, m_MaxConsumableLardQuantityEx и UpdateCheckForReceivingUpgrade().

◆ ConsumeRag()

bool ConsumeRag ( )
inlineprotected
235 {
236 ItemBase rag = GetRag();
237
238 if (rag)
239 {
240 if (rag.GetQuantity() <= 1)
241 {
242 LockRags(false); // Unlock attachment slot before deletion. Otherwise it will get stuck locked and unusable.
243 }
244
245 rag.AddQuantity(-1);
246 rag.SetHealth(0);
247 //GetCompEM().AddEnergy( m_BurnTimePerRagEx );
248 return true;
249 }
250
251 return false;
252 }
void LockRags(bool do_lock)
Definition Torch.c:537

Перекрестные ссылки GetRag() и LockRags().

Используется в OnIgnitedThis() и OnWork().

◆ CraftingInit()

void CraftingInit ( float quantity)
inlineprotected
430 {
431 GetCompEM().SetEnergy(m_BurnTimePerRagEx * quantity);
432 m_CanReceiveUpgrade = true;
433 SetSynchDirty();
434 }
float m_BurnTimePerRagEx
Definition Torch.c:13

Перекрестные ссылки m_BurnTimePerRagEx и m_CanReceiveUpgrade.

Используется в OnDebugSpawn().

◆ DeferredInit()

override void DeferredInit ( )
inlineprotected
34 {
36 {
37 LockRags(true);
38 }
39 }
int m_RagsUpgradedCount
Definition Torch.c:21

Перекрестные ссылки LockRags() и m_RagsUpgradedCount.

◆ DisassembleOnLastDetach()

override bool DisassembleOnLastDetach ( )
inlineprotected
775 {
776 return true;
777 }

◆ EEDelete()

override void EEDelete ( EntityAI parent)
inlineprotected
87 {
88 super.EEDelete(parent);
89 if ( m_LoopSoundEntity != NULL && GetGame() != NULL )
90 {
91 GetGame().ObjectDelete( m_LoopSoundEntity );
92 }
93
95 }
SoundOnVehicle m_LoopSoundEntity
Definition Torch.c:8
void StopAllParticles()
Definition Torch.c:524

Перекрестные ссылки GetGame(), m_LoopSoundEntity и StopAllParticles().

◆ EEInit()

override void EEInit ( )
inlineprotected
56 {
57 super.EEInit();
58
59 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
60 {
62 m_UTSSettings.m_Updateable = true;
63 m_UTSSettings.m_UpdateInterval = 1;
64 m_UTSSettings.m_TemperatureMin = 0;
65 m_UTSSettings.m_TemperatureMax = 300;
66 m_UTSSettings.m_RangeFull = 0.5;
67 m_UTSSettings.m_RangeMax = 1;
68 m_UTSSettings.m_TemperatureCap = 5;
69
72 }
73
74 }
ref UniversalTemperatureSourceSettings m_UTSSettings
Definition Torch.c:30
ref UniversalTemperatureSource m_UTSource
Definition Torch.c:29
ref UniversalTemperatureSourceLambdaConstant m_UTSLConstant
Definition Torch.c:31
original Timer deletes m_params which is unwanted
Definition UniversalTemperatureSource.c:26
Definition UniversalTemperatureSource.c:2

Перекрестные ссылки GetGame(), m_UTSLConstant, m_UTSource и m_UTSSettings.

◆ EEItemAttached()

override void EEItemAttached ( EntityAI item,
string slot_name )
inlineprotected
438 {
439 super.EEItemAttached( item, slot_name );
442 }

Перекрестные ссылки CalculateQuantity() и UpdateCheckForReceivingUpgrade().

◆ EEItemDetached()

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected
446 {
447 super.EEItemDetached( item, slot_name );
448
450 {
451 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
452 {
453 EntityAI rags = EntityAI.Cast(GetGame().CreateObjectEx(item.GetType(), GetPosition(), ECE_PLACE_ON_SURFACE));
454 if( rags )
455 MiscGameplayFunctions.TransferItemProperties(item, rags);
456 }
457 return;
458 }
459
462 GetGame().GetCallQueue( CALL_CATEGORY_SYSTEM ).CallLater( TryTransformIntoStick, 100);
463 }
const int ECE_PLACE_ON_SURFACE
Definition CentralEconomy.c:37
class JsonUndergroundAreaTriggerData GetPosition
Definition UndergroundAreaLoader.c:9
Definition Building.c:6
void TryTransformIntoStick()
Definition Torch.c:473
bool m_IsBeingDestructed
Definition Torch.c:11
const int CALL_CATEGORY_SYSTEM
Definition tools.c:8

Перекрестные ссылки CalculateQuantity(), CALL_CATEGORY_SYSTEM, ECE_PLACE_ON_SURFACE, GetGame(), GetPosition, m_IsBeingDestructed, TryTransformIntoStick() и UpdateCheckForReceivingUpgrade().

◆ GetBurningMaterial()

string GetBurningMaterial ( )
inlineprotected
796 {
797 return "";
798 }

Используется в UpdateMaterial().

◆ GetBurntMaterial()

string GetBurntMaterial ( )
inlineprotected
801 {
802 return "";
803 }

Используется в UpdateMaterial().

◆ GetMeleeHeavyMode()

override int GetMeleeHeavyMode ( )
inlineprotected
740 {
741 if ( GetCompEM().IsWorking() )
742 return 4; // ???
743 else
744 return 1; // ???
745 }

◆ GetMeleeMode()

override int GetMeleeMode ( )
inlineprotected
732 {
733 if ( GetCompEM().IsWorking() )
734 return 3; // ???
735 else
736 return 0; // ???
737 }

◆ GetMeleeSprintMode()

override int GetMeleeSprintMode ( )
inlineprotected
748 {
749 if ( GetCompEM().IsWorking() )
750 return 5; // ???
751 else
752 return 2; // ???
753 }

◆ GetRag()

Rag GetRag ( )
inlineprotected
533 {
534 return Rag.Cast( GetAttachmentByType(Rag) );
535 }

Используется в CanBeIgnitedBy(), CanTransformIntoStick(), ConsumeRag(), GetRagQuantity(), LockRags(), OnWork(), OnWorkStop(), RuinRags() и Upgrade().

◆ GetRagQuantity()

int GetRagQuantity ( )
inlineprotected
787 {
788 if (GetRag())
789 {
790 return Math.Round(GetRag().GetQuantity());
791 }
792 return 0;
793 }
override float GetQuantity()
Definition ItemBase.c:8042
Definition EnMath.c:7
static proto float Round(float f)
Returns mathematical round of value.

Перекрестные ссылки GetQuantity(), GetRag() и Math::Round().

Используется в OnDebugSpawn(), OnWork(), OnWorkStop(), UpdateCheckForReceivingUpgrade() и Upgrade().

◆ GetSoundName()

string GetSoundName ( )
inlineprotected
657 {
658 return "torchLoop";
659 }

Используется в OnWork().

◆ GetUniversalTemperatureSourcePosition()

override vector GetUniversalTemperatureSourcePosition ( )
inlineprotected
77 {
78 if (GetHierarchyRoot())
79 {
80 return GetHierarchyRoot().GetPosition();
81 }
82
83 return super.GetPosition();
84 }

◆ HasFlammableMaterial()

override bool HasFlammableMaterial ( )
inlineprotected
146 {
147 return true;
148 }

◆ Init()

void Init ( )
inlineprotected
42 {
44 {
45 string cfg_path = "CfgVehicles " + GetType();
46 m_BurnTimePerRagEx = GetGame().ConfigGetFloat( cfg_path + " burnTimePerRag" );
47 m_BurnTimePerFullLardEx = GetGame().ConfigGetFloat( cfg_path + " burnTimePerFullLardDose" );
48 m_BurnTimePerFullFuelDoseEx = GetGame().ConfigGetFloat( cfg_path + " burnTimePerFullFuelDose" );
49 m_MaxConsumableLardQuantityEx = GetGame().ConfigGetFloat( cfg_path + " maxConsumableLardDose" );
50 m_MaxConsumableFuelQuantityEx = GetGame().ConfigGetFloat( cfg_path + " maxConsumableFuelDose" );
51 }
52 RegisterNetSyncVariableBool("m_CanReceiveUpgrade");
53 }
eBleedingSourceType GetType()
Definition BleedingSource.c:63

Перекрестные ссылки GetGame(), GetType(), m_BurnTimePerFullFuelDoseEx, m_BurnTimePerFullLardEx, m_BurnTimePerRagEx, m_MaxConsumableFuelQuantityEx и m_MaxConsumableLardQuantityEx.

Используется в FlammableBase().

◆ IsIgnited()

override bool IsIgnited ( )
inlineprotected
136 {
137 return GetCompEM().IsWorking();
138 }

Используется в BroomBase::CanTransformIntoStick() и CanTransformIntoStick().

◆ IsRagDryEnough()

bool IsRagDryEnough ( ItemBase rag)
inlineprotected
183 {
184 float wetness = rag.GetWet();
185 bool is_dry_enough = wetness <= 1-GetCompEM().GetWetnessExposure();
186 return is_dry_enough;
187 }

Используется в CanBeIgnitedBy().

◆ LockRags()

void LockRags ( bool do_lock)
inlineprotected
538 {
539 ItemBase rag = GetRag();
540 if (rag)
541 {
542 if (do_lock)
543 {
544 rag.LockToParent();
545 }
546 else if (!m_RagsUpgradedCount)
547 {
548 rag.UnlockFromParent();
549 }
550 }
551 }

Перекрестные ссылки GetRag() и m_RagsUpgradedCount.

Используется в ConsumeRag(), DeferredInit(), OnWorkStart(), OnWorkStop() и Upgrade().

◆ OnAttachmentQuantityChangedEx()

override void OnAttachmentQuantityChangedEx ( ItemBase item,
float delta )
inlineprotected
763 {
764 super.OnAttachmentQuantityChangedEx(item, delta);
765 if (delta > 0)
766 {
767 GetCompEM().AddEnergy(m_BurnTimePerRagEx * delta);
770 }
771 }

Перекрестные ссылки CalculateQuantity(), m_BurnTimePerRagEx и UpdateCheckForReceivingUpgrade().

◆ OnDebugSpawn()

override void OnDebugSpawn ( )
inlineprotected
780 {
781 GetInventory().CreateAttachment("Rag");
784 }
int GetRagQuantity()
Definition Torch.c:786
void CraftingInit(float quantity)
Definition Torch.c:429

Перекрестные ссылки CalculateQuantity(), CraftingInit() и GetRagQuantity().

◆ OnIgnitedThis()

override void OnIgnitedThis ( EntityAI fire_source)
inlineprotected
199 {
200 if ( !GetCompEM().HasEnoughStoredEnergy() )
201 {
202 ConsumeRag();
203 }
204
205 GetCompEM().SwitchOn();
206 }
bool ConsumeRag()
Definition Torch.c:234

Перекрестные ссылки ConsumeRag().

Используется в BroomBase::OnAction().

◆ OnInventoryExit()

override void OnInventoryExit ( Man player)
inlineprotected
389 {
390 super.OnInventoryExit(player);
391
392 StandUp();
393 }
bool StandUp()
Definition Torch.c:396

Перекрестные ссылки StandUp().

◆ OnItemInHandsPlayerSwimStart()

override void OnItemInHandsPlayerSwimStart ( PlayerBase player)
inlineprotected
595 {
596 GetCompEM().SwitchOff();
597 }

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected
835 {
836 if (!super.OnStoreLoad(ctx, version))
837 {
838 return false;
839 }
840 if (version >= 130)
841 {
842 if (!ctx.Read( m_WasLit ))
843 {
844 return false;
845 }
846 }
848 return true;
849 }
void UpdateMaterial()
Definition Torch.c:805
bool m_WasLit
Definition Torch.c:27

Перекрестные ссылки m_WasLit и UpdateMaterial().

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected
828 {
829 super.OnStoreSave(ctx);
830 ctx.Write(m_WasLit);
831 }

Перекрестные ссылки m_WasLit.

◆ OnSwitchOff()

override void OnSwitchOff ( )
inlineprotected
222 {
223 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
224 {
225 m_UTSource.SetActive(false);
226 }
227 }

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnSwitchOn()

override void OnSwitchOn ( )
inlineprotected
209 {
210 if (!GetCompEM().HasEnoughStoredEnergy())
211 {
212 GetCompEM().SwitchOff();
213 }
214
215 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
216 {
217 m_UTSource.SetActive(true);
218 }
219 }

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnWork()

override void OnWork ( float consumed_energy)
inlineprotected
601 {
603 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
604 {
605 if (GetCompEM().GetEnergy() < ((GetRagQuantity() + m_RagsUpgradedCount) - 1) * m_BurnTimePerRagEx)
606 {
607 if (m_RagsUpgradedCount==0)//always burn rag
608 {
609 ConsumeRag();
610 }
611 else if (m_ConsumeRagFlipFlop)//burn rag
612 {
613 ConsumeRag();
615 }
616 else//burn lard/fuel
617 {
620 }
621 }
622 if (GetRag() && GetCompEM().GetEnergy() == 0 && GetRagQuantity() > 0)
623 {
624 GetRag().SetQuantity(0);
625 }
626 RuinRags();
627
629
631
632 AddWet( -m_WaterEvaporationByFireIntensityEx * GetCompEM().GetUpdateInterval() );
633
634 Rag rag = GetRag();
635
636 if ( rag )
637 {
638 rag.AddWet( -m_WaterEvaporationByFireIntensityEx * GetCompEM().GetUpdateInterval() );
639 }
640 }
641
642 if ( !m_LoopSoundEntity && GetGame() && ( !GetGame().IsDedicatedServer() ) )
643 {
644 m_LoopSoundEntity = PlaySoundLoop(GetSoundName(), 50);
645 }
646
647 // Effect scaling by fuel
648 if ( !GetGame().IsDedicatedServer() )
649 {
650 UpdateLight();
652 }
653 }
override void AddWet(float value)
Definition ItemBase.c:8318
void UpdateLight()
Definition Torch.c:553
string GetSoundName()
Definition Torch.c:656
void RuinRags()
Definition Torch.c:377
void UpdateParticle()
Definition Torch.c:661
float m_WaterEvaporationByFireIntensityEx
Definition Torch.c:18
bool m_ConsumeRagFlipFlop
Definition Torch.c:22

Перекрестные ссылки AddWet(), CalculateQuantity(), ConsumeRag(), GetEnergy(), GetGame(), GetRag(), GetRagQuantity(), GetSoundName(), m_BurnTimePerRagEx, m_ConsumeRagFlipFlop, m_LoopSoundEntity, m_RagsUpgradedCount, m_WaterEvaporationByFireIntensityEx, RuinRags(), UpdateCheckForReceivingUpgrade(), UpdateLight(), UpdateMaterial() и UpdateParticle().

◆ OnWorkStart()

override void OnWorkStart ( )
inlineprotected
518 {
519 m_WasLit = true;
520 LockRags(true);
522 }

Перекрестные ссылки LockRags(), m_WasLit и UpdateMaterial().

◆ OnWorkStop()

override void OnWorkStop ( )
inlineprotected
696 {
698 if (m_Light)
699 m_Light.FadeOut();
700
701 if ( m_LoopSoundEntity && GetGame() && ( !GetGame().IsDedicatedServer() ) )
702 {
703 GetGame().ObjectDelete( m_LoopSoundEntity );
705 }
706
707 if ( m_FireParticle)
708 {
711 }
712
715
716 LockRags(false);
717
718 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
719 {
720 if (GetRag() && GetCompEM().GetEnergy() == 0 && GetRagQuantity() > 0)
721 {
722 GetRag().SetQuantity(0);
723 }
724 }
725
727 }
TorchLight m_Light
Definition Torch.c:26
Particle m_FireParticle
Definition Torch.c:9
void Stop()
Legacy function for backwards compatibility with 1.14 and below.
Definition Particle.c:266

Перекрестные ссылки CalculateQuantity(), GetEnergy(), GetGame(), GetRag(), GetRagQuantity(), LockRags(), m_FireParticle, m_Light, m_LoopSoundEntity, Particle::Stop(), TryTransformIntoStick(), UpdateCheckForReceivingUpgrade() и UpdateMaterial().

◆ RuinRags()

void RuinRags ( )
inlineprotected
378 {
379 ItemBase rag = GetRag();
380
381 if (rag)
382 {
383 rag.SetHealth(1); //does not actually ruin rags, combining would be impossible
384 }
385 }

Перекрестные ссылки GetRag().

Используется в OnWork() и Upgrade().

◆ SetActions()

override void SetActions ( )
inlineprotected
756 {
757 super.SetActions();
758
760 }
ActionLightItemOnFireCB ActionContinuousBaseCB ActionLightItemOnFire()
Definition ActionLightItemOnFire.c:11
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220

Перекрестные ссылки ActionLightItemOnFire() и AddAction().

◆ SetTorchDecraftResult()

void SetTorchDecraftResult ( string type)
inlineprotected
230 {
231 m_DecraftResult = type; //not persistent for the moment
232 }
string m_DecraftResult
Definition Torch.c:25

Перекрестные ссылки m_DecraftResult.

◆ StandUp()

bool StandUp ( )
inlineprotected
397 {
398 string surface_type;
400 GetGame().SurfaceGetType ( position[0], position[2], surface_type );
401 bool is_surface_soft = GetGame().IsSurfaceDigable(surface_type);
402
403 if ( is_surface_soft && !IsRuined() )
404 {
405 vector ori_rotate = "0 0 0";
406 ori_rotate[0] = Math.RandomFloat(0, 360);
407 ori_rotate[1] = Math.RandomFloat(0, 10);
408 SetOrientation(ori_rotate);
409
410 return true; // I am standing up
411 }
412
413 return false; // I am NOT standing up
414 }
Definition EnConvert.c:106
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].

Перекрестные ссылки GetGame(), GetPosition и Math::RandomFloat().

Используется в OnInventoryExit().

◆ StopAllParticles()

void StopAllParticles ( )
inlineprotected
525 {
526 if (m_FireParticle)
527 {
529 }
530 }

Перекрестные ссылки m_FireParticle и Particle::Stop().

Используется в EEDelete() и TryTransformIntoStick().

◆ TryTransformIntoStick()

void TryTransformIntoStick ( )
inlineprotected
474 {
475 PlayerBase player = PlayerBase.Cast(GetHierarchyRootPlayer());
476 if ( m_IsBeingDestructed || (player && player.IsPlayerDisconnected()) )
477 return;
478
479 if ( CanTransformIntoStick() )
480 {
481 m_IsBeingDestructed = true;
482 if (player)
483 {
484 // Transform object into wooden stick
486
488 player.ServerReplaceItemInHandsWithNew(lambda);
489 }
490 else
491 {
492 // Create wooden stick and delete Torch
493 vector pos = GetPosition();
495
496 if ( GetType() == "WoodenStick" )
497 ori = ori + Vector(0,90,0);
498
499 ItemBase stick = ItemBase.Cast( GetGame().CreateObjectEx(m_DecraftResult, pos, ECE_PLACE_ON_SURFACE) );
501 stick.SetPosition(pos);
502 stick.PlaceOnSurface();
503
504 if ( stick.GetType() == "LongWoodenStick" )
505 {
506 pos = stick.GetPosition() + Vector(0,-0.3,0);
507 stick.SetPosition(pos);
508 }
509
510 stick.SetOrientation(ori);
511 GetGame().ObjectDelete(this);
512 }
513 }
514 }
vector GetOrientation()
Definition AreaDamageManager.c:306
bool CanTransformIntoStick()
Definition Torch.c:465
void ApplyResultModifications(ItemBase result)
Definition Torch.c:851
Definition Torch.c:994
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

Перекрестные ссылки ApplyResultModifications(), CanTransformIntoStick(), ECE_PLACE_ON_SURFACE, GetGame(), GetOrientation(), GetPosition, GetType(), m_DecraftResult, m_IsBeingDestructed, StopAllParticles() и Vector().

Используется в EEItemDetached() и OnWorkStop().

◆ UpdateCheckForReceivingUpgrade()

void UpdateCheckForReceivingUpgrade ( )
inlineprotected
190 {
191 if ( GetGame().IsServer() || !GetGame().IsMultiplayer() )
192 {
194 SetSynchDirty();
195 }
196 }

Перекрестные ссылки GetGame(), GetRagQuantity(), m_BurnTimePerRagEx, m_CanReceiveUpgrade и m_RagsUpgradedCount.

Используется в ConsumeFuelFromBottle(), ConsumeFuelFromGasStation(), ConsumeLard(), EEItemAttached(), EEItemDetached(), OnAttachmentQuantityChangedEx(), OnWork(), OnWorkStop() и Upgrade().

◆ UpdateLight()

void UpdateLight ( )
inlineprotected
554 {
555 if (!m_Light)
556 {
557 m_Light = TorchLight.Cast( ScriptedLightBase.CreateLight( TorchLight, Vector(0,0,0), 1 ) );
558 m_Light.AttachOnObject(this, m_ParticleLocalPos + Vector (0,0.2,0));
559 }
560
561 if (m_FireParticle)
562 {
564
565 if (direct_particle && direct_particle != m_Light.GetAttachmentParent())
566 {
567 m_Light.AttachOnObject(direct_particle, Vector(0,0.2,0));
568 }
569 }
570
571 float update_interval = GetCompEM().GetUpdateInterval();
572
574 {
577
580
583
584 m_Light.FadeBrightnessTo(m_Light.m_TorchBrightness * brightness_coef, update_interval);
585 m_Light.FadeRadiusTo(m_Light.m_TorchRadius * radius_coef, update_interval);
586 }
587 else
588 {
589 m_Light.FadeBrightnessTo(m_Light.m_TorchBrightness, update_interval);
590 m_Light.FadeRadiusTo(m_Light.m_TorchRadius, update_interval);
591 }
592 }
vector m_ParticleLocalPos
Definition Torch.c:23
int m_StartFadeOutOfLightAtQuantityEx
Definition Torch.c:19
Definition ObjectTyped.c:2
Object GetDirectParticleEffect()
Returns direct particle effect entity which is usually handled by this class 'Particle' if there is o...
Definition Particle.c:307
Definition PointLightBase.c:2

Перекрестные ссылки Particle::GetDirectParticleEffect(), GetQuantity(), m_FireParticle, m_Light, m_ParticleLocalPos, m_StartFadeOutOfLightAtQuantityEx и Vector().

Используется в OnWork().

◆ UpdateMaterial()

void UpdateMaterial ( )
inlineprotected
806 {
807 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
808 {
809 if (GetCompEM().IsWorking())
810 {
811 if (GetBurningMaterial())
812 {
813 SetObjectMaterial(0, GetBurningMaterial());
814 }
815 }
816 else if (m_WasLit)
817 {
818 if (GetBurntMaterial())
819 {
820 SetObjectMaterial(0, GetBurntMaterial());
821 }
822 }
823 }
824 }
string GetBurningMaterial()
Definition Torch.c:795
string GetBurntMaterial()
Definition Torch.c:800

Перекрестные ссылки GetBurningMaterial(), GetBurntMaterial(), GetGame() и m_WasLit.

Используется в OnStoreLoad(), OnWork(), OnWorkStart() и OnWorkStop().

◆ UpdateParticle()

void UpdateParticle ( )
inlineprotected
662 {
663 if ( GetQuantity() < 40 )
664 {
665 if (!m_FireParticle)
666 m_FireParticle = ParticleManager.GetInstance().PlayOnObject(ParticleList.TORCH_T1, this, m_ParticleLocalPos);
667
668 float scale = GetQuantity() / 40;
669
670 if (scale > 1)
671 scale = 1;
672
673 if (scale < 0.25)
674 scale = 0.25;
675
679 }
680 else
681 {
683 {
684 // Executes once when fire particle starts or changes
685
686 if (m_FireParticle)
688
689 m_FireParticle = ParticleManager.GetInstance().PlayOnObject(ParticleList.TORCH_T2, this, m_ParticleLocalPos);
690 }
691 }
692
693 }
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Definition ParticleManager.c:84
int GetParticleID()
Gets particle id.
Definition Particle.c:297
void ScaleParticleParamFromOriginal(int parameter_id, float coef)
Scales the given parameter on all emitors relatively to their ORIGINAL value.
Definition Particle.c:668
Definition ParticleList.c:12
static const int TORCH_T1
Definition ParticleList.c:73
static const int TORCH_T2
Definition ParticleList.c:74
EmitorParam
Definition EnVisual.c:114

Перекрестные ссылки Particle::GetParticleID(), GetQuantity(), m_FireParticle, m_ParticleLocalPos, ParticleManager(), Particle::ScaleParticleParamFromOriginal(), Particle::Stop(), ParticleList::TORCH_T1 и ParticleList::TORCH_T2.

Используется в OnWork().

◆ Upgrade()

void Upgrade ( ItemBase source)
inlineprotected
289 {
290 if (!GetRag())
291 {
292 return;
293 }
294 RuinRags();
295 LockRags(true);
296 float torchCurrentEnergy = GetCompEM().GetEnergy();
297 float sourceQuantity = 100000;//for upgrade from environment(gas pump)
298
299 if (source)
300 {
301 sourceQuantity = source.GetQuantity();
302 }
303
305 //float maxUpgradeCapacity = GetRagQuantity() * m_BurnTimePerRagEx;
307 //float freeUpgradeCapacity = maxUpgradeCapacity - currentlyUpgraded;
313 GetCompEM().AddEnergy(upgradeQuantity);
314 m_ConsumeRagFlipFlop = 0;//consume fuel first
315 if (source)
316 {
317 source.AddQuantity(-upgradeQuantity);
318 }
321 }
static proto float Max(float x, float y)
Returns bigger of two given values.
static proto float Min(float x, float y)
Returns smaller of two given values.
static proto float Ceil(float f)
Returns ceil of value.

Перекрестные ссылки CalculateQuantity(), Math::Ceil(), GetRag(), GetRagQuantity(), LockRags(), m_BurnTimePerRagEx, m_ConsumeRagFlipFlop, m_RagsUpgradedCount, Math::Max(), Math::Min(), RuinRags() и UpdateCheckForReceivingUpgrade().

Поля

◆ m_BurnTimePerFullFuelDoseEx

float m_BurnTimePerFullFuelDoseEx
private

◆ m_BurnTimePerFullLardEx

float m_BurnTimePerFullLardEx
private

Используется в ConsumeLard() и Init().

◆ m_BurnTimePerRagEx

float m_BurnTimePerRagEx
private

◆ m_CanReceiveUpgrade

bool m_CanReceiveUpgrade
private

◆ m_ConsumeRagFlipFlop

bool m_ConsumeRagFlipFlop
private

Используется в OnWork() и Upgrade().

◆ m_DecraftResult

string m_DecraftResult = "WoodenStick"
private

◆ m_FireParticle

Particle m_FireParticle
private

◆ m_IsBeingDestructed

bool m_IsBeingDestructed = false
private

Используется в EEItemDetached() и TryTransformIntoStick().

◆ m_Light

TorchLight m_Light
private

Используется в OnWorkStop() и UpdateLight().

◆ m_LoopSoundEntity

SoundOnVehicle m_LoopSoundEntity
private

Используется в EEDelete(), OnWork() и OnWorkStop().

◆ m_MaxConsumableFuelQuantityEx

float m_MaxConsumableFuelQuantityEx
private

Используется в ConsumeFuelFromBottle() и Init().

◆ m_MaxConsumableLardQuantityEx

float m_MaxConsumableLardQuantityEx
private

Используется в ConsumeLard() и Init().

◆ m_ParticleLocalPos

vector m_ParticleLocalPos = Vector(0, 0.50, 0)
private

◆ m_RagsUpgradedCount

int m_RagsUpgradedCount
private

◆ m_StartFadeOutOfLightAtQuantityEx

int m_StartFadeOutOfLightAtQuantityEx = 3
private

Используется в UpdateLight().

◆ m_UTSLConstant

Используется в EEInit().

◆ m_UTSource

ref UniversalTemperatureSource m_UTSource
protected

Используется в EEInit(), OnSwitchOff() и OnSwitchOn().

◆ m_UTSSettings

ref UniversalTemperatureSourceSettings m_UTSSettings
protected

Используется в EEInit().

◆ m_WasLit

bool m_WasLit
private

Используется в OnStoreLoad(), OnStoreSave(), OnWorkStart() и UpdateMaterial().

◆ m_WaterEvaporationByFireIntensityEx

float m_WaterEvaporationByFireIntensityEx = 0.001
private

Используется в OnWork().


Объявления и описания членов класса находятся в файле: