DayZ 1.26
DayZ 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 ()
 
override void EEInit ()
 
bool IsMounted ()
 
bool GetSlotLockedState ()
 
void SetMountedState (bool is_mounted)
 
void UpdateAttachmentSlot ()
 
void LockAttachmentSlot (bool lock_state)
 
void Synchronize ()
 
override void OnVariablesSynchronized ()
 
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 PlayDeployLoopSound ()
 
void StopDeployLoopSound ()
 DEPRECATED.
 
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 OnCreatePhysics ()
 
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 IsTakeable ()
 
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 ()
 
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 AssembleKit ()
 
void DisassembleKit (ItemBase item)
 
void CreateRope (Rope rope)
 
override void SetActions ()
 
void PlayDeployLoopSound ()
 
void StopDeployLoopSound ()
 DEPRECATED.
 
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 IsSelfAdjustingTemperature ()
 
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 ()
 
vector GetSmokeParticlePosition ()
 
vector GetSmokeParticleOrientation ()
 
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 GetDebugActions (out TSelectableActionInfoArrayEx outputList)
 
override bool OnAction (int action_id, Man player, ParamsReadContext ctx)
 
override void OnWorkStart ()
 
void StartPeriodicMeasurement ()
 
void PrepareMeasurement ()
 
void DoMeasurement ()
 
void StopPeriodicMeasurement ()
 
override void OnWorkStop ()
 
override void SetActions ()
 
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 ()
 
override int GetViewIndex ()
 
override void SetActions ()
 
void PlayDeployLoopSound ()
 
void StopDeployLoopSound ()
 DEPRECATED.
 
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")
 
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 PlayDeployLoopSound ()
 
void StopDeployLoopSound ()
 DEPRECATED.
 
void ToolBase ()
 
int GetDisarmRate ()
 
override void OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx)
 
void TrapSpawnBase ()
 
void ~TrapSpawnBase ()
 
void InitTrapValues ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void OnVariablesSynchronized ()
 this event is called all variables are synchronized on client
 
bool IsActive ()
 
bool IsDeployed ()
 
void SetDeployed (bool newState)
 
override bool IsTakeable ()
 
bool IsPlaceableAtPosition (vector position)
 
void SetupTrap ()
 
void SetupTrapPlayer (PlayerBase player, bool set_position=true)
 
void UpdatePreyPos ()
 
void Fold ()
 
void AddDefect ()
 
void StartActivate (PlayerBase player)
 
bool CanBeTaken ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI parent)
 
void ResetActiveProgress ()
 
void ResetRunningTimerProgress ()
 
void RunTrappingTimer (float duration, string fnName)
 generic trapping launcher for traps, use this to store delta info
 
void SetActive ()
 
void SetInactive ()
 
void SetUsed ()
 
void IncreaseElapsedTime ()
 
void AdjustDetectionRange ()
 
void EvaluateCatch ()
 
bool IsPlayerInVicinity ()
 
void TrySpawnCatch ()
 
void SpawnCatch ()
 
void SetCatchSuccessful (bool successful)
 
void OnCatchSpawnServer ()
 
void OnCatchSpawnClient ()
 
void PlayCatchEffectsServer ()
 
void PlayCatchEffectsClient ()
 
void PlayCatchSound (YieldItemBase yItem)
 
void PlayCatchNoise (YieldItemBase yItem)
 
void PlayCatchParticleSynced (YieldItemBase yItem)
 
bool SetCanCatch (out EntityAI bait)
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
bool IsSurfaceWater (vector position)
 
override bool CanDisplayAttachmentSlot (int slot_id)
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override void EEItemAttached (EntityAI item, string slot_name)
 
override void EEItemDetached (EntityAI item, string slot_name)
 
void InitCatchingComponent ()
 
void ClearCatchingComponent ()
 
void UpdateTrapEnviroMask ()
 
void SetTrapEnviroMask (int value)
 
void HandleBaitLoss ()
 
void DetachAllAttachments ()
 detaches everything on catching end (some slots may not be accessible when folded)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
bool IsPlaceable ()
 
override bool CanBePlaced (Man player, vector position)
 
override void SetActions ()
 
bool CanPutInInventory (EntityAI player)
 DEPRECATED.
 
void AlignCatch (ItemBase obj, string catch_name)
 DEPRECATED.
 
void CatchSetQuant (ItemBase catch)
 !DEPRECATED
 
void PlayDeployLoopSound ()
 
void StopDeployLoopSound ()
 DEPRECATED.
 

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

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
 
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
 
ref EffectSound m_DeployLoopSound
 DEPRECATED.
 
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_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
 
const float PARAM_COOKING_EQUIP_TEMP_INCREASE = 10
 
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
 
bool m_IsActive
 
bool m_IsPastWaitingTime
 
bool m_IsDeployed
 
string m_AnimationPhaseSet
 
string m_AnimationPhaseTriggered
 
string m_AnimationPhaseUsed
 
ref array< stringm_PlaceableWaterSurfaceList
 
ref CatchingContextTrapsBase m_CatchingContext
 
const string m_PlaceableWaterType ref Timer m_PrevTimer
 DEPRECATED.
 
bool m_BaitNeeded
 DEPRECATED.
 
bool m_IsUsable
 DEPRECATED.
 
bool m_IsInProgress
 DEPRECATED.
 
EntityAI m_Bait
 DEPRECATED.
 
float m_BaitCatchProb
 
float m_NoBaitCatchProb
 DEPRECATED.
 
float m_FinalCatchProb
 DEPRECATED.
 
bool m_WaterSurfaceForSetup
 DEPRECATED.
 
ref multiMap< string, floatm_CatchesPond
 DEPRECATED.
 
ref multiMap< string, floatm_CatchesSea
 DEPRECATED.
 
ref multiMap< string, floatm_CatchesGroundAnimal
 DEPRECATED.
 

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

- Закрытые статические данные унаследованные от 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
855 {
856 result.SetQuantity(1);
857 }
Definition EntityAI.c:95

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

◆ CalculateQuantity()

void CalculateQuantity ( )
inlineprotected
418 {
419 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
420 {
421 SetQuantityNormalized(GetCompEM().GetEnergy0To1());
422 }
423 }
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:8053
proto native CGame GetGame()

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

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

◆ CanBeIgnitedBy()

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

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

◆ CanBeTakenAsCargo()

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

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

◆ CanIgniteItem()

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

◆ CanPutAsAttachment()

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

◆ CanPutInCargo()

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

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

◆ CanReceiveAttachment()

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

◆ CanReceiveUpgrade()

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

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

◆ CanReleaseAttachment()

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

◆ CanRemoveFromCargo()

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

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

◆ CanTransformIntoStick()

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

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

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

◆ ConsumeFuelFromBottle()

void ConsumeFuelFromBottle ( ItemBase vessel)
inlineprotected
327 {
328 if (vessel)
329 {
330 float vessel_quant = vessel.GetQuantity();
331
333
336
338
340 float add_energy_coef = 1;
341
342 float energy_limit = GetCompEM().GetEnergyMax() - GetCompEM().GetEnergy();
343
345 {
349 }
350
351 GetCompEM().AddEnergy( add_energy );
352 vessel.AddQuantity(-available_vessel_quant);
353
355
357 }
358 }
void UpdateCheckForReceivingUpgrade()
Definition Torch.c:190
void CalculateQuantity()
Definition Torch.c:417
float m_BurnTimePerFullFuelDoseEx
Definition Torch.c:15
float m_MaxConsumableFuelQuantityEx
Definition Torch.c:17

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

◆ ConsumeFuelFromGasStation()

void ConsumeFuelFromGasStation ( )
inlineprotected
361 {
363 float add_energy_coef = 1;
364
365 float energy_limit = GetCompEM().GetEnergyMax() - GetCompEM().GetEnergy();
366
368 {
371 }
372
373 GetCompEM().AddEnergy( add_energy );
376 }

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

◆ ConsumeLard()

void ConsumeLard ( Lard lard)
inlineprotected
256 {
257 if (lard)
258 {
259 float lard_quant = lard.GetQuantity();
260
262
265
267
269 float add_energy_coef = 1;
270
271 float energy_limit = GetCompEM().GetEnergyMax() - GetCompEM().GetEnergy();
272
274 {
278 }
279
280 GetCompEM().AddEnergy( add_energy );
281 lard.AddQuantity(-available_lard_quant);
282
284
286 }
287 }
float m_MaxConsumableLardQuantityEx
Definition Torch.c:16
float m_BurnTimePerFullLardEx
Definition Torch.c:14

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

◆ ConsumeRag()

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

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

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

◆ CraftingInit()

void CraftingInit ( float quantity)
inlineprotected
431 {
432 GetCompEM().SetEnergy(m_BurnTimePerRagEx * quantity);
433 m_CanReceiveUpgrade = true;
434 SetSynchDirty();
435 }
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
778 {
779 return true;
780 }

◆ EEDelete()

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

Перекрестные ссылки 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;
67 m_UTSSettings.m_TemperatureCap = 5;
68 m_UTSSettings.m_RangeFull = 0.5;
69 m_UTSSettings.m_RangeMax = 1;
70
73 }
74
75 }
ref UniversalTemperatureSourceSettings m_UTSSettings
Definition Torch.c:30
ref UniversalTemperatureSource m_UTSource
Definition Torch.c:29
ref UniversalTemperatureSourceLambdaConstant m_UTSLConstant
Definition Torch.c:31
Definition constants.c:638
original Timer deletes m_params which is unwanted
Definition UniversalTemperatureSource.c:28
Definition UniversalTemperatureSource.c:2
static const float ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE
Definition constants.c:777

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

◆ EEItemAttached()

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

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

◆ EEItemDetached()

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected
447 {
448 super.EEItemDetached( item, slot_name );
449
451 {
452 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
453 {
454 EntityAI rags = EntityAI.Cast(GetGame().CreateObjectEx(item.GetType(), GetPosition(), ECE_PLACE_ON_SURFACE));
455 if( rags )
456 MiscGameplayFunctions.TransferItemProperties(item, rags);
457 }
458 return;
459 }
460
463 GetGame().GetCallQueue( CALL_CATEGORY_SYSTEM ).CallLater( TryTransformIntoStick, 100);
464 }
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:474
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
799 {
800 return "";
801 }

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

◆ GetBurntMaterial()

string GetBurntMaterial ( )
inlineprotected
804 {
805 return "";
806 }

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

◆ GetMeleeHeavyMode()

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

◆ GetMeleeMode()

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

◆ GetMeleeSprintMode()

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

◆ GetRag()

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

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

◆ GetRagQuantity()

int GetRagQuantity ( )
inlineprotected
790 {
791 if (GetRag())
792 {
793 return Math.Round(GetRag().GetQuantity());
794 }
795 return 0;
796 }
override float GetQuantity()
Definition ItemBase.c:8129
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
658 {
659 return "torchLoop";
660 }

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

◆ GetUniversalTemperatureSourcePosition()

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

◆ HasFlammableMaterial()

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

◆ 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
137 {
138 return GetCompEM().IsWorking();
139 }

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

◆ IsRagDryEnough()

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

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

◆ LockRags()

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

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

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

◆ OnAttachmentQuantityChangedEx()

override void OnAttachmentQuantityChangedEx ( ItemBase item,
float delta )
inlineprotected
764 {
765 super.OnAttachmentQuantityChangedEx(item, delta);
766 if (delta != 0)
767 {
768 if (delta > 0 || !GetCompEM().IsWorking()) // dont adjust energy when rag burns out
769 GetCompEM().AddEnergy(m_BurnTimePerRagEx * delta);
770
773 }
774 }

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

◆ OnDebugSpawn()

override void OnDebugSpawn ( )
inlineprotected
783 {
784 GetInventory().CreateAttachment("Rag");
787 }
int GetRagQuantity()
Definition Torch.c:789
void CraftingInit(float quantity)
Definition Torch.c:430

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

◆ OnIgnitedThis()

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

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

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

◆ OnInventoryExit()

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

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

◆ OnItemInHandsPlayerSwimStart()

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

◆ OnStoreLoad()

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

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

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected
831 {
832 super.OnStoreSave(ctx);
833 ctx.Write(m_WasLit);
834 }

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

◆ OnSwitchOff()

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

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

◆ OnSwitchOn()

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

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

◆ OnWork()

override void OnWork ( float consumed_energy)
inlineprotected
602 {
604 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
605 {
606 if (GetCompEM().GetEnergy() < ((GetRagQuantity() + m_RagsUpgradedCount) - 1) * m_BurnTimePerRagEx)
607 {
608 if (m_RagsUpgradedCount==0)//always burn rag
609 {
610 ConsumeRag();
611 }
612 else if (m_ConsumeRagFlipFlop)//burn rag
613 {
614 ConsumeRag();
616 }
617 else//burn lard/fuel
618 {
621 }
622 }
623 if (GetRag() && GetCompEM().GetEnergy() == 0 && GetRagQuantity() > 0)
624 {
625 GetRag().SetQuantity(0);
626 }
627 RuinRags();
628
630
632
633 AddWet( -m_WaterEvaporationByFireIntensityEx * GetCompEM().GetUpdateInterval() );
634
635 Rag rag = GetRag();
636
637 if ( rag )
638 {
639 rag.AddWet( -m_WaterEvaporationByFireIntensityEx * GetCompEM().GetUpdateInterval() );
640 }
641 }
642
643 if ( !m_LoopSoundEntity && GetGame() && ( !GetGame().IsDedicatedServer() ) )
644 {
645 m_LoopSoundEntity = PlaySoundLoop(GetSoundName(), 50);
646 }
647
648 // Effect scaling by fuel
649 if ( !GetGame().IsDedicatedServer() )
650 {
651 UpdateLight();
653 }
654 }
override void AddWet(float value)
Definition ItemBase.c:8339
void UpdateLight()
Definition Torch.c:554
string GetSoundName()
Definition Torch.c:657
void RuinRags()
Definition Torch.c:378
void UpdateParticle()
Definition Torch.c:662
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
519 {
520 m_WasLit = true;
521 LockRags(true);
523 }

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

◆ OnWorkStop()

override void OnWorkStop ( )
inlineprotected
697 {
699 if (m_Light)
700 m_Light.FadeOut();
701
702 if ( m_LoopSoundEntity && GetGame() && ( !GetGame().IsDedicatedServer() ) )
703 {
704 GetGame().ObjectDelete( m_LoopSoundEntity );
706 }
707
708 if ( m_FireParticle)
709 {
712 }
713
716
717 LockRags(false);
718
719 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
720 {
721 if (GetRag() && GetCompEM().GetEnergy() == 0 && GetRagQuantity() > 0)
722 {
723 GetRag().SetQuantity(0);
724 }
725 }
726
728 }
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
379 {
380 ItemBase rag = GetRag();
381
382 if (rag)
383 {
384 rag.SetHealth(1); //does not actually ruin rags, combining would be impossible
385 }
386 }

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

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

◆ SetActions()

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

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

◆ SetTorchDecraftResult()

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

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

◆ StandUp()

bool StandUp ( )
inlineprotected
398 {
399 string surface_type;
401 GetGame().SurfaceGetType ( position[0], position[2], surface_type );
402 bool is_surface_soft = GetGame().IsSurfaceDigable(surface_type);
403
404 if ( is_surface_soft && !IsRuined() )
405 {
406 vector ori_rotate = "0 0 0";
407 ori_rotate[0] = Math.RandomFloat(0, 360);
408 ori_rotate[1] = Math.RandomFloat(0, 10);
409 SetOrientation(ori_rotate);
410
411 return true; // I am standing up
412 }
413
414 return false; // I am NOT standing up
415 }
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
526 {
527 if (m_FireParticle)
528 {
530 }
531 }

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

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

◆ TryTransformIntoStick()

void TryTransformIntoStick ( )
inlineprotected
475 {
476 PlayerBase player = PlayerBase.Cast(GetHierarchyRootPlayer());
477 if ( m_IsBeingDestructed || (player && player.IsPlayerDisconnected()) )
478 return;
479
480 if ( CanTransformIntoStick() )
481 {
482 m_IsBeingDestructed = true;
483 if (player)
484 {
485 // Transform object into wooden stick
487
489 player.ServerReplaceItemInHandsWithNew(lambda);
490 }
491 else
492 {
493 // Create wooden stick and delete Torch
494 vector pos = GetPosition();
496
497 if ( GetType() == "WoodenStick" )
498 ori = ori + Vector(0,90,0);
499
500 ItemBase stick = ItemBase.Cast( GetGame().CreateObjectEx(m_DecraftResult, pos, ECE_PLACE_ON_SURFACE) );
502 stick.SetPosition(pos);
503 stick.PlaceOnSurface();
504
505 if ( stick.GetType() == "LongWoodenStick" )
506 {
507 pos = stick.GetPosition() + Vector(0,-0.3,0);
508 stick.SetPosition(pos);
509 }
510
511 stick.SetOrientation(ori);
512 GetGame().ObjectDelete(this);
513 }
514 }
515 }
vector GetOrientation()
Definition AreaDamageManager.c:306
bool CanTransformIntoStick()
Definition Torch.c:466
void ApplyResultModifications(ItemBase result)
Definition Torch.c:854
Definition Torch.c:997
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
191 {
192 if ( GetGame().IsServer() || !GetGame().IsMultiplayer() )
193 {
195 SetSynchDirty();
196 }
197 }

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

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

◆ UpdateLight()

void UpdateLight ( )
inlineprotected
555 {
556 if (!m_Light)
557 {
558 m_Light = TorchLight.Cast( ScriptedLightBase.CreateLight( TorchLight, Vector(0,0,0), 1 ) );
559 m_Light.AttachOnObject(this, m_ParticleLocalPos + Vector (0,0.2,0));
560 }
561
562 if (m_FireParticle)
563 {
565
566 if (direct_particle && direct_particle != m_Light.GetAttachmentParent())
567 {
568 m_Light.AttachOnObject(direct_particle, Vector(0,0.2,0));
569 }
570 }
571
572 float update_interval = GetCompEM().GetUpdateInterval();
573
575 {
578
581
584
585 m_Light.FadeBrightnessTo(m_Light.m_TorchBrightness * brightness_coef, update_interval);
586 m_Light.FadeRadiusTo(m_Light.m_TorchRadius * radius_coef, update_interval);
587 }
588 else
589 {
590 m_Light.FadeBrightnessTo(m_Light.m_TorchBrightness, update_interval);
591 m_Light.FadeRadiusTo(m_Light.m_TorchRadius, update_interval);
592 }
593 }
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
809 {
810 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
811 {
812 if (GetCompEM().IsWorking())
813 {
814 if (GetBurningMaterial())
815 {
816 SetObjectMaterial(0, GetBurningMaterial());
817 }
818 }
819 else if (m_WasLit)
820 {
821 if (GetBurntMaterial())
822 {
823 SetObjectMaterial(0, GetBurntMaterial());
824 }
825 }
826 }
827 }
string GetBurningMaterial()
Definition Torch.c:798
string GetBurntMaterial()
Definition Torch.c:803

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

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

◆ UpdateParticle()

void UpdateParticle ( )
inlineprotected
663 {
664 if ( GetQuantity() < 40 )
665 {
666 if (!m_FireParticle)
667 m_FireParticle = ParticleManager.GetInstance().PlayOnObject(ParticleList.TORCH_T1, this, m_ParticleLocalPos);
668
669 float scale = GetQuantity() / 40;
670
671 if (scale > 1)
672 scale = 1;
673
674 if (scale < 0.25)
675 scale = 0.25;
676
680 }
681 else
682 {
684 {
685 // Executes once when fire particle starts or changes
686
687 if (m_FireParticle)
689
690 m_FireParticle = ParticleManager.GetInstance().PlayOnObject(ParticleList.TORCH_T2, this, m_ParticleLocalPos);
691 }
692 }
693
694 }
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:678
Definition ParticleList.c:12
static const int TORCH_T1
Definition ParticleList.c:74
static const int TORCH_T2
Definition ParticleList.c:75
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
290 {
291 if (!GetRag())
292 {
293 return;
294 }
295 RuinRags();
296 LockRags(true);
297 float torchCurrentEnergy = GetCompEM().GetEnergy();
298 float sourceQuantity = 100000;//for upgrade from environment(gas pump)
299
300 if (source)
301 {
302 sourceQuantity = source.GetQuantity();
303 }
304
306 //float maxUpgradeCapacity = GetRagQuantity() * m_BurnTimePerRagEx;
308 //float freeUpgradeCapacity = maxUpgradeCapacity - currentlyUpgraded;
314 GetCompEM().AddEnergy(upgradeQuantity);
315 m_ConsumeRagFlipFlop = 0;//consume fuel first
316 if (source)
317 {
318 source.AddQuantity(-upgradeQuantity);
319 }
322 }
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().


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