DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ItemBase
+ Граф наследования: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.
 

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

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.
 

Статические защищенные данные

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
 

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

override void SetActions ()
 
override void SetActions ()
 
override void SetActions ()
 
override void SetActions ()
 
override bool DisplayNameRuinAttach ()
 
override void SetActions ()
 
override void SetActions ()
 
override bool DisplayNameRuinAttach ()
 
override bool ShowZonesHealth ()
 
override void SetActions ()
 
void Clothing_Base ()
 
void ~Clothing_Base ()
 
override bool IsClothing ()
 
float GetItemVisibility ()
 
void UpdateNVGStatus (PlayerBase player, bool attaching=false, bool force_disable=false)
 
override void OnWasAttached (EntityAI parent, int slot_id)
 
override void OnWasDetached (EntityAI parent, int slot_id)
 
bool IsObstructingVoice ()
 Returns if this entity obsructs player's voice.
 
void MutePlayer (PlayerBase player, bool state)
 This items has effect on player's voice.
 
void HandleVoiceEffect (bool enable, PlayerBase player)
 
int GetVoiceEffect ()
 The voice effect this item uses, default is 0 (none)
 
bool IsGasMask ()
 
void GardenBase ()
 
override void OnVariablesSynchronized ()
 
override bool HasProxyParts ()
 
override int GetHideIconMask ()
 
void SetBaseFertility (float value)
 
float GetBaseFertility ()
 
override void EOnInit (IEntity other, int extra)
 
void InitializeSlots ()
 
void SetMaxWaterStateVal ()
 
int GetMaxWaterStateVal ()
 
void UpdateTexturesOnAllSlots ()
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void AfterStoreLoad ()
 
override void EEOnAfterLoad ()
 
void SyncSlots ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
void PrintSlots ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI player)
 
override bool CanRemoveFromHands (EntityAI player)
 
int GetGardenSlotsCount ()
 
bool CanPlantSeed (string selection_component)
 
string ConvertAttSlotToPlantSlot (string attach_slot)
 
override void EEItemAttached (EntityAI item, string slot_name)
 
override void EEItemDetached (EntityAI item, string slot_name)
 
void PlantSeed (ItemBase seed, string selection_component)
 
void CreatePlant (Slot slot)
 
void Fertilize (PlayerBase player, ItemBase item, float consumed_quantity, string selection_component)
 
bool IsCorrectFertilizer (ItemBase item, string selection_component)
 
bool NeedsFertilization (string selection_component)
 
void SlotWaterStateUpdate (Slot slot)
 
void UpdateSlotTexture (int slot_index)
 
void SetSlotTextureDigged (int slot_index)
 
void SetSlotTextureFertilized (int slot_index, string item_type)
 
void RemoveSlot (int index)
 
void RemoveSlotPlant (Object plant)
 
Slot GetSlotBySelection (string selection_component)
 
int GetSlotIndexBySelection (string selection_component)
 
int GetSlotIndexByAttachmentSlot (string att_slot)
 
int GetSlotIndexByPlant (Object plant)
 
int GetNearestSlotIDByState (vector position, int slot_state)
 
vector GetSlotPosition (int index)
 
void CheckRainStart ()
 
void CheckRainTick ()
 
void WaterAllSlots ()
 
array< ref SlotGetSlots ()
 
Slot GetSlotByIndex (int index)
 
int GetSlotWateredState ()
 
void SetSlotWateredState (int newState)
 
override void SetActions ()
 
void PlantBase ()
 
void ~PlantBase ()
 
void Init (GardenBase garden_base, float fertility, float harvesting_efficiency, float water)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void OnStoreSave (ParamsWriteContext ctx)
 
string GetCropsType ()
 
bool OnStoreLoadCustom (ParamsReadContext ctx, int version)
 
void OnStoreSaveCustom (ParamsWriteContext ctx)
 
void PrintValues ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI player)
 
override bool CanRemoveFromHands (EntityAI player)
 
void ChangeInfestation (bool is_infested)
 
void UpdatePlant ()
 
void GrowthTimerTick ()
 
void InfestationTimerTick ()
 
void SpoiledRemoveTimerTick ()
 
void DeleteDryPlantTick ()
 
void SetSpoiled ()
 
void CheckWater ()
 
void SprayPlant (float consumed_quantity)
 
string StopInfestation (float consumed_quantity)
 
void RemovePlant ()
 
void RemovePlantEx (vector pos)
 
void DestroyPlant ()
 
void Harvest (PlayerBase player)
 
void SetPlantState (int state)
 
int GetPlantState ()
 
int GetPlantStateIndex ()
 
float GetWater ()
 
float GetWaterMax ()
 
bool NeedsWater ()
 
bool NeedsSpraying ()
 
float GetSprayQuantity ()
 
float GetSprayUsage ()
 
void RemoveSlot ()
 
void SetSlot (Slot slot)
 
Slot GetSlot ()
 
GardenBase GetGarden ()
 
bool IsDry ()
 
bool IsGrowing ()
 
bool IsMature ()
 
bool IsSpoiled ()
 
bool HasCrops ()
 
override void SetActions ()
 
override bool CanPutAsAttachment (EntityAI parent)
 
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 ()
 
override float GetBandagingEffectivity ()
 
override bool CanBeDisinfected ()
 
override float GetInfectionChance (int system=0, Param param=null)
 
override void OnCombine (ItemBase other_item)
 
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 BloodContainerBase ()
 
override bool IsBloodContainer ()
 
void SetBloodTypeVisible (bool visible)
 
bool GetBloodTypeVisible ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
void CableReel ()
 
override bool IsElectricAppliance ()
 
void ForceIntoHandsNow (PlayerBase player)
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI player)
 
override void OnInventoryEnter (Man player)
 
override bool CanRemoveFromHands (EntityAI player)
 
override void OnVariablesSynchronized ()
 
override void OnPlacementStarted (Man player)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override string GetPlaceSoundset ()
 
override void SetActions ()
 
override void SetActions ()
 
void Defibrillator ()
 
void ~Defibrillator ()
 
float GetTimeNeededToCharge ()
 
float GetEnergyNeededToCharge ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
void OnIsCharged ()
 
void StopChargedAlarm ()
 
void StopChargingSound ()
 
void StopChargingTimer ()
 
bool IsCharged ()
 
void DischargeServer (PlayerBase victim)
 
void DischargeClient (PlayerBase victim)
 
override void SetActions ()
 
override bool CanMakeGardenplot ()
 
override void SetActions ()
 
override int GetOnDigWormsAmount ()
 
override void SetActions ()
 
void Flag_Base ()
 
void ~Flag_Base ()
 
void Synchronize ()
 
override void OnVariablesSynchronized ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void AfterStoreLoad ()
 
override void OnWasAttached (EntityAI parent, int slot_id)
 
override void OnWasDetached (EntityAI parent, int slot_id)
 
override int GetViewIndex ()
 
override void SetActions ()
 
override void OnWorkStart ()
 
override void OnWork (float consumed_energy)
 
override void OnWorkStop ()
 
override void OnInventoryExit (Man player)
 
override void SetActions ()
 
override void OnDebugSpawn ()
 
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 ~RestrainingToolLocked ()
 
override void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
 
override void EEKilled (Object killer)
 
override void SetActions ()
 
override bool CanIgniteItem (EntityAI ignite_target=NULL)
 Override this method and and check if the given item can be ignited. It is not necesarry to check here if the item is not in cargo of something.
 
override void OnIgnitedTarget (EntityAI ignited_item)
 
override void OnIgnitedTargetFailed (EntityAI target_item)
 
override void SetActions ()
 
override bool CanPutAsAttachment (EntityAI parent)
 
override bool CanDetachAttachment (EntityAI parent)
 
override void SetActions ()
 
override bool CanPutAsAttachment (EntityAI parent)
 
override bool CanExplodeInFire ()
 
override void InitItemVariables ()
 
override bool CanIgniteItem (EntityAI ignite_target=NULL)
 
override void OnIgnitedTarget (EntityAI ignited_item)
 
override void OnIgnitedTargetFailed (EntityAI target_item)
 
override void SetActions ()
 
override bool CanExplodeInFire ()
 
override void SetActions ()
 
void MetalWire ()
 
override bool CanPutAsAttachment (EntityAI parent)
 
void UpdateAllSelections ()
 
override void OnInventoryEnter (Man player)
 
override void OnIsPlugged (EntityAI source_device)
 
override void OnIsUnplugged (EntityAI last_energy_source)
 
override void OnOwnSocketTaken (EntityAI device)
 
override void OnOwnSocketReleased (EntityAI device)
 
override void SetActions ()
 
override void SetActions ()
 
override bool IsPeltBase ()
 
override void SetActions ()
 
override bool CanIgniteItem (EntityAI ignite_target=NULL)
 
override void OnIgnitedTarget (EntityAI ignited_item)
 
override void OnIgnitedTargetFailed (EntityAI target_item)
 
override void SetActions ()
 
override bool CanMakeGardenplot ()
 
override void SetActions ()
 
override void SetActionAnimOverrides ()
 
override int GetOnDigWormsAmount ()
 
void PileOfWoodenPlanks ()
 
void UpdateSelections ()
 
override void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
 
int RemovePlanks (int needed_planks)
 
override bool CanPutIntoHands (EntityAI parent)
 
override bool CanPutInCargo (EntityAI parent)
 
void Pitchfork ()
 
override void SetActions ()
 
override bool CanSwapEntities (EntityAI otherItem, InventoryLocation otherDestination, InventoryLocation destination)
 
override bool CanPutAsAttachment (EntityAI parent)
 
override bool CanBeSplit ()
 
override bool HasFlammableMaterial ()
 
override bool CanBeIgnitedBy (EntityAI igniter=null)
 
override bool CanIgniteItem (EntityAI ignite_target=null)
 
override bool CanBeCombined (EntityAI other_item, bool reservation_check=true, bool stack_max_limit=false)
 
override void OnIgnitedThis (EntityAI fire_source)
 
override bool IsThisIgnitionSuccessful (EntityAI item_source=null)
 
override bool CanAssignToQuickbar ()
 
override bool CanBeDisinfected ()
 
override void SetActions ()
 
override float GetBandagingEffectivity ()
 
override float GetInfectionChance (int system=0, Param param=null)
 
override void OnCombine (ItemBase other_item)
 
override bool IsElectricAppliance ()
 
override void OnInitEnergy ()
 
override void OnWorkStart ()
 
override void OnWork (float consumed_energy)
 
override void OnWorkStop ()
 
override void OnSwitchOn ()
 
override void OnSwitchOff ()
 
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 bool CanMakeGardenplot ()
 
override void SetActions ()
 
override void SetActionAnimOverrides ()
 
override int GetOnDigWormsAmount ()
 
override bool CanExplodeInFire ()
 
override void SetActions ()
 
override void OnWasAttached (EntityAI parent, int slot_id)
 
override void OnWasDetached (EntityAI parent, int slot_id)
 
override void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
 
float GetTemperatureValue (PlayerBase player)
 
override void SetActions ()
 
override void SetActions ()
 
override void SetActions ()
 
void UndergroundStash ()
 
void PlaceOnGround ()
 
ItemBase GetStashedItem ()
 
override bool CanDisplayCargo ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanReleaseCargo (EntityAI cargo)
 
override bool CanReceiveItemIntoHands (EntityAI item_to_hands)
 
override bool CanSaveItemInHands (EntityAI item_in_hands)
 
override bool CanPutIntoHands (EntityAI parent)
 
override bool IsInventoryVisible ()
 

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

float m_ItemVisibilityModifier
 
float m_SprayUsage
 
float m_InfestationChance
 
int m_GrowthStagesCount
 
int m_CropsCount
 
bool m_HasCrops
 
string m_CropsType
 
float m_PlantMaterialMultiplier
 
int m_PlantState
 
int m_PlantStateIndex
 
float m_CurrentPlantMaterialQuantity
 
bool m_IsInfested
 
float m_SprayQuantity
 
bool m_MarkForDeletion = false
 
int m_DeleteDryPlantTime
 
int m_SpoiledRemoveTime
 
int m_FullMaturityTime
 
int m_SpoilAfterFullMaturityTime
 
int m_StateChangeTime
 
ref Timer m_GrowthTimer = NULL
 
ref Timer m_InfestationTimer = NULL
 
ref Timer m_SpoilAfterFullMaturityTimer = NULL
 
ref Timer m_SpoiledRemoveTimer = NULL
 
ref Timer m_DeleteDryPlantTimer = NULL
 
GardenBase m_GardenBase = NULL
 
ref Slot m_Slot = NULL
 
PluginHorticulture m_ModuleHorticulture
 
const float SPOIL_AFTER_MATURITY_TIME = 14400
 
SoundOnVehicle m_BuzzSoundLoop
 
ref Timer m_SparkEvent
 
const string ANIMATION_DEPLOYED = "Deployed"
 
float m_ConstructionKitHealth
 
ref Construction m_Construction
 
bool m_HasBase
 
int m_SyncParts01
 
int m_SyncParts02
 
int m_SyncParts03
 
int m_InteractedPartId
 
int m_PerformedActionId
 
const string SOUND_BUILD_WOOD_LOG = "putDown_WoodLog_SoundSet"
 
const string SOUND_BUILD_WOOD_PLANK = "putDown_WoodPlank_SoundSet"
 
const string SOUND_BUILD_WOOD_STAIRS = "putDown_WoodStairs_SoundSet"
 
const string SOUND_BUILD_METAL = "putDown_MetalPlank_SoundSet"
 
const string SOUND_BUILD_WIRE = "putDown_BarbedWire_SoundSet"
 
const string SOUND_DISMANTLE_WOOD_LOG = "Crash_WoodPlank_SoundSet"
 
const string SOUND_DISMANTLE_WOOD_PLANK = "Crash_WoodPlank_SoundSet"
 
const string SOUND_DISMANTLE_WOOD_STAIRS = "Crash_WoodPlank_SoundSet"
 
const string SOUND_DISMANTLE_METAL = "Crash_MetalPlank_SoundSet"
 
const string SOUND_DISMANTLE_WIRE = "putDown_BarbedWire_SoundSet"
 
bool m_IsBloodTypeVisible = false
 
const string TEXTURE_FLAME = "dz\\gear\\cooking\\data\\flame_butane_ca.paa"
 
const string ANIM_PHASE_FLAME = "FlameHide"
 
const string SOUND_BURNING = "Blowtorch_Loop_SoundSet"
 
bool m_ForceIntoHands
 
bool m_IsCharged = false
 
ref Timer m_ChargingTimer
 
EffectSound m_ChargedAlarm
 
EffectSound m_ChargingSound
 
FlashlightLight m_Light
 
PortableGasLampLight m_Light
 
const string GAS_LIGHT_MATERIAL_ON = "dz\\gear\\cooking\\data\\GasLightOn.rvmat"
 
const string GAS_LIGHT_MATERIAL_OFF = "dz\\data\\data\\default.rvmat"
 
const string SOUND_TURN_ON = "portablegaslamp_turn_on_SoundSet"
 
const string SOUND_TURN_OFF = "portablegaslamp_turn_off_SoundSet"
 
StoveLight m_Light
 
float m_TimeFactor
 
ref Cooking m_CookingProcess
 
ItemBase m_CookingEquipment
 
float m_Fuel
 
int m_FuelPercentage
 
SoundOnVehicle m_SoundLoopEntity
 
bool m_IsFolded
 
bool m_EvaluateDeployment
 
SpotlightLight m_Light
 
const int OPENING_0 = 1
 
const int OPENING_1 = 2
 
const int OPENING_2 = 4
 
const int OPENING_3 = 8
 
const int OPENING_4 = 16
 
const int OPENING_5 = 32
 
const int OPENING_6 = 64
 
const int OPENING_7 = 128
 
const int OPENING_8 = 256
 
const int OPENING_9 = 512
 
const int OPENING_10 = 1024
 
const int OPENING_11 = 2048
 
const int OPENING_12 = 4096
 
const int OPENING_13 = 8192
 
const int OPENING_14 = 16384
 
const int OPENING_15 = 32768
 
const float MAX_PLACEMENT_HEIGHT_DIFF = 1.5
 
bool m_IsFoldable
 
bool m_CanCatch = false
 
bool m_NeedInstalation
 
int m_InitWaitTimeMin
 
int m_InitWaitTimeMax
 
int m_UpdateWaitTime
 
int m_SpawnUpdateWaitTime
 Catch evaluation interval.
 
int m_MaxActiveTime
 Catch spawn and player check interval (expensive-ish)
 
float m_BaitLossFraction
 Max time of trap activity (seconds)
 
float m_DefectRate
 Normalized bait qty reduction on unsuccessful catch.
 
float m_MinimalDistanceFromPlayersToCatch
 Absolute damage dealt to trap when used.
 
int m_InitWaitTime
 duh
 
int m_AdjustedMaxActiveTime
 After this time after deployment, the trap is activated.
 
int m_ElapsedTime
 Adjusted by init wait time, when appropriate.
 
int m_ActivationTime
 
int m_RollSuccessTime
 
float m_CurrentMinimalDistance
 
float m_CurrentlyUsedDelta
 
bool m_IsCatchSuccessful
 
int m_CatchEnviroMask = 0
 
int m_YieldItemIdxLocal = -1
 
int m_YieldItemIdx = -1
 
int m_CatchParticleEffecterId = -1
 
vector m_PreyPos
 
ItemBase m_Catch
 DEPRECATED.
 
ref Timer m_AlignCatchTimer
 DEPRECATED, no reason to keep the information as member.
 
string m_InfoSetup
 DEPRECATED.
 

Закрытые статические данные

static const string SLOT_TEXTURE_DIGGED_WET_LIME = "dz\\gear\\cultivation\\data\\soil_digged_wet_lime_CO.paa"
 
static const string SLOT_TEXTURE_DIGGED_WET_PLANT = "dz\\gear\\cultivation\\data\\soil_digged_wet_plant_CO.paa"
 
static const string SLOT_MATERIAL_WET = "dz\\gear\\cultivation\\data\\soil_cultivated_wet.rvmat"
 
static const string SLOT_MATERIAL_DRY = "dz\\gear\\cultivation\\data\\soil_cultivated.rvmat"
 
static const string SLOT_MATERIAL_LIMED_WET = "dz\\gear\\cultivation\\data\\soil_cultivated_limed_wet.rvmat"
 
static const string SLOT_MATERIAL_LIMED_DRY = "dz\\gear\\cultivation\\data\\soil_cultivated_limed.rvmat"
 
static const string SLOT_MATERIAL_COMPOST_WET = "dz\\gear\\cultivation\\data\\soil_cultivated_compost_wet.rvmat"
 
static const string SLOT_MATERIAL_COMPOST_DRY = "dz\\gear\\cultivation\\data\\soil_cultivated_compost.rvmat"
 
static const string SLOT_SELECTION_DIGGED_PREFIX = "seedbase_"
 
static const string SLOT_SELECTION_COVERED_PREFIX = "slotCovered_"
 
static const string SLOT_MEMORY_POINT_PREFIX = "slot_"
 
static const string SLOT_SEEDBASE_PREFIX = "seedbase_"
 
static const int CHECK_RAIN_INTERVAL = 15
 
static ref map< string, stringm_map_slots
 
static const int STATE_DRY = 0
 
static const int STATE_GROWING = 1
 
static const int STATE_MATURE = 2
 
static const int STATE_SPOILED = 3
 
static const int SOUNDS_SPARK_COUNT = 4
 
static const int SOUNDS_CUT_COUNT = 3
 
static const int SOUNDS_COLLISION_COUNT = 4
 
static const int SOUNDS_SHOCK_COUNT = 4
 
static const float RANDOM_SPARK_INTERVAL = 5.0
 
static const string m_SoundsSpark [SOUNDS_SPARK_COUNT] = {"electricFenceSpark1", "electricFenceSpark2", "electricFenceSpark3", "electricFenceSpark4"}
 
static const string m_SoundsCut [SOUNDS_CUT_COUNT] = {"barbedFenceCut1", "barbedFenceCut2", "barbedFenceCut3"}
 
static const string m_SoundsCollision [SOUNDS_COLLISION_COUNT] = {"barbedFenceCollision1", "barbedFenceCollision2", "barbedFenceCollision3", "barbedFenceCollision4"}
 
static const string m_SoundsShock [SOUNDS_SHOCK_COUNT] = {"electricFenceShock1", "electricFenceShock2", "electricFenceShock3", "electricFenceShock4"}
 
static const string m_SoundBuzzLoop = "electricFenceBuzzLoop1"
 
static const string SEL_CORD_FOLDED = "cord_folded"
 
static const string SEL_CORD_PLUGGED = "cord_plugged"
 
static const string CHARGING_SOUND = "defibrillator_charge_SoundSet"
 
static const string CHARGED_AND_READY_SOUND = "defibrillator_ready_SoundSet"
 
static const string SHOCK_SOUND = "defibrillator_shock_SoundSet"
 
static float m_ChargeTime = 5
 
static float m_EnergyNeededToCharge = 20
 
static int REFLECTOR_ID = 1
 
static int GLASS_ID = 2
 
static string LIGHT_OFF_GLASS = "dz\\gear\\tools\\data\\flashlight_glass.rvmat"
 
static string LIGHT_OFF_REFLECTOR = "dz\\gear\\tools\\data\\flashlight.rvmat"
 
static string LIGHT_ON_GLASS = "dz\\gear\\tools\\data\\flashlight_glass_on.rvmat"
 
static string LIGHT_ON_REFLECTOR = "dz\\gear\\tools\\data\\flashlight_glass_on.rvmat"
 
static string SEL_WIRE_ROLLED = "rolled"
 
static string SEL_WIRE_PREFIX = "Att_"
 
static string SEL_WIRE_SUFIX = "_plugged"
 
static string SEL_PLUG_SUFIX = "_plug"
 
static float m_FuelTankCapacity
 
static float m_FuelToEnergyRatio
 
static const string START_SOUND = "powerGeneratorTurnOn_SoundSet"
 
static const string LOOP_SOUND = "powerGeneratorLoop_SoundSet"
 
static const string STOP_SOUND = "powerGeneratorTurnOff_SoundSet"
 
static const string SPARKPLUG_ATTACH_SOUND = "sparkplug_attach_SoundSet"
 
static const string SPARKPLUG_DETACH_SOUND = "sparkplug_detach_SoundSet"
 
static vector m_LightLocalPosition
 
static vector m_LightLocalOrientation = "0 0 0"
 
static const string SEL_REFLECTOR_COMP_U = "reflector"
 
static const string SEL_CORD_FOLDED_U = "cord_folded"
 
static const string SEL_CORD_PLUGGED_U = "cord_plugged"
 
static const string SEL_CORD_PLUGGED_F = "spotlight_folded_cord_plugged"
 
static const string SEL_CORD_FOLDED_F = "spotlight_folded_cord_folded"
 
static const string SEL_INVENTORY = "inventory"
 
static const string SEL_PLACING = "placing"
 
static const string SEL_GLASS_F = "glass_folded"
 
static const string SEL_GLASS_U = "glass_unfolded"
 
static const string SEL_REFLECTOR_F = "reflector_folded"
 
static const string SEL_REFLECTOR_U = "reflector_unfolded"
 
static const int ID_GLASS_UNFOLDED = 3
 
static const int ID_REFLECTOR_UNFOLDED = 4
 
static const int ID_GLASS_FOLDED = 5
 
static const int ID_REFLECTOR_FOLDED = 6
 
static const int PACKED = 0
 
static const int PITCHED = 1
 

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

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

◆ ~Clothing_Base()

void ~Clothing_Base ( )
inlineprivate
836 {
837 HandleVoiceEffect(false, PlayerBase.Cast(GetHierarchyRootPlayer()));
838 }
void HandleVoiceEffect(bool enable, PlayerBase player)
Definition InventoryItem.c:946
Definition PlayerBaseClient.c:2

◆ ~PlantBase()

void ~PlantBase ( )
inlineprivate
77 {
79 {
81 }
82 }
void DestroyPlant()
Definition PlantBase.c:723
bool m_MarkForDeletion
Definition PlantBase.c:25

◆ ~Defibrillator()

void ~Defibrillator ( )
inlineprivate
24 {
27 }
EffectSound m_ChargedAlarm
Definition Defibrillator.c:13
EffectSound m_ChargingSound
Definition Defibrillator.c:14
Manager class for managing Effect (EffectParticle, EffectSound)
Definition EffectManager.c:6
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
Definition EffectManager.c:271

Перекрестные ссылки SEffectManager::DestroyEffect().

◆ ~Flag_Base()

void ~Flag_Base ( )
inlineprivate
12 {
13 }

◆ ~RestrainingToolLocked()

void ~RestrainingToolLocked ( )
inlineprivate
4 {
5 PlayerBase player = PlayerBase.Cast(GetHierarchyRootPlayer());
6 if ( player && player.IsRestrained() )
7 {
8 player.SetRestrained(false);
9 }
10 }
Definition EntityAI.c:95

◆ ~Paper()

void ~Paper ( )
inlineprotected
10{}

◆ ~PowerGeneratorBase()

void ~PowerGeneratorBase ( )
inlineprotected
38 {
40 }
Effect m_Smoke
Definition PowerGenerator.c:18

Перекрестные ссылки SEffectManager::DestroyEffect().

◆ ~TentBase()

void ~TentBase ( )
inlineprotected
60 {
61 if (GetGame())
62 {
64 }
65 }
void DestroyClutterCutter()
Definition TentBase.c:808
proto native CGame GetGame()

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

◆ ~TrapSpawnBase()

void ~TrapSpawnBase ( )
inlineprotected
68 {
69 if (m_Timer)
70 {
71 m_Timer.Stop();
72 delete m_Timer;
73 }
74
76 }
void ClearCatchingComponent()
Definition TrapSpawnBase.c:733
ref Timer m_Timer
Definition Raycaster.c:5

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

Методы

◆ AddDefect()

void AddDefect ( )
inlineprotected
264 {
265 if ( GetGame().IsServer() )
266 {
267 DecreaseHealth( "", "", m_DefectRate );
268 }
269 }
float m_DefectRate
Normalized bait qty reduction on unsuccessful catch.
Definition TrapSpawnBase.c:14

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

◆ AddFuel()

float AddFuel ( float available_fuel)
inlineprotected
292 {
293 if (available_fuel == 0.0)
294 return 0.0;
295
296 GetCompEM().InteractBranch(this);
297 float needed_fuel = GetMaxFuel() - GetFuel();
298
300 {
302 return available_fuel; // Return used fuel amount
303 }
304 else
305 {
307 return needed_fuel;
308 }
309 }
float GetMaxFuel()
Definition PowerGenerator.c:336
void SetFuel(float fuel_amount)
Definition PowerGenerator.c:268
float GetFuel()
Definition PowerGenerator.c:330

◆ AdjustDetectionRange()

void AdjustDetectionRange ( )
inlineprotected
451 {
453 {
460
461 #ifdef DEVELOPER
462 if (IsCLIParam("catchingLogs"))
463 {
464 Print("dbgTrapz | adjusted distance: " + m_CurrentMinimalDistance + "/" + m_MinimalDistanceFromPlayersToCatch + " | LERP progress: " + time);
465 }
466 #endif
467 }
468 }
Input value between 0 and 1, returns value adjusted by easing, no automatic clamping of input(do your...
Definition Easing.c:3
static float EaseInQuad(float t)
Definition Easing.c:19
int m_AdjustedMaxActiveTime
After this time after deployment, the trap is activated.
Definition TrapSpawnBase.c:19
int m_ElapsedTime
Adjusted by init wait time, when appropriate.
Definition TrapSpawnBase.c:20
float m_MinimalDistanceFromPlayersToCatch
Absolute damage dealt to trap when used.
Definition TrapSpawnBase.c:15
int m_RollSuccessTime
Definition TrapSpawnBase.c:22
float m_CurrentMinimalDistance
Definition TrapSpawnBase.c:23
Definition EnMath.c:7
proto void Print(void var)
Prints content of variable to console/log.
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
proto native bool IsCLIParam(string param)
Returns if command line argument is present.

Перекрестные ссылки Math::Clamp(), Easing::EaseInQuad(), Math::InverseLerp(), IsCLIParam(), Math::Lerp() и Print().

◆ AfterStoreLoad() [1/4]

override void AfterStoreLoad ( )
inlineprivate
184 {
185 super.AfterStoreLoad();
186 }

◆ AfterStoreLoad() [2/4]

override void AfterStoreLoad ( )
inlineprotected
163 {
164 super.AfterStoreLoad();
165
166 //set mounted state based on locked slot after everything is loaded
168 }
void SetMountedState(bool is_mounted)
Definition BarbedWire.c:68
bool GetSlotLockedState()
Definition BarbedWire.c:55

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

◆ AfterStoreLoad() [3/4]

override void AfterStoreLoad ( )
inlineprotected
443 {
444 super.AfterStoreLoad();
445
447 {
449 }
450 }
bool m_FixDamageSystemInit
Definition ItemBase.c:4829
void SetPartsAfterStoreLoad()
Definition BaseBuildingBase.c:452

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

◆ AfterStoreLoad() [4/4]

override void AfterStoreLoad ( )
inlineprivate
46 {
47 super.AfterStoreLoad();
48
49 //set mounted state based on locked slot after everything is loaded
50 //SetMountedState( GetSlotLockedState() );
51 }

◆ AlignCatch()

void AlignCatch ( ItemBase obj,
string catch_name )
protected

DEPRECATED.

◆ AnimateCamonetByOpeningSelection()

void AnimateCamonetByOpeningSelection ( string opening_selection)
inlineprotected
764{};

◆ AnimateCamonetToggle()

void AnimateCamonetToggle ( ToggleAnimations toggle)
inlineprotected
762{};

◆ AssembleKit()

void AssembleKit ( )
inlineprotected
145 {
146 if (!IsHologram())
147 {
148 Rope rope = Rope.Cast(GetInventory().CreateAttachment("Rope"));
149 }
150 }
override bool IsHologram()
Definition ItemBase.c:5760

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

◆ BarbedWire()

void BarbedWire ( )
inlineprotected
32 {
34 m_TriggerActive = false;
35 m_IsPlaced = false;
36
37 //synchronized variables
38 RegisterNetSyncVariableBool( "m_IsSoundSynchRemote" );
39 RegisterNetSyncVariableBool( "m_IsDeploySound" );
40 RegisterNetSyncVariableBool( "m_IsMounted" );
41 }
bool m_IsPlaced
Definition BarbedWire.c:22
bool m_TriggerActive
Definition BarbedWire.c:21
ref Timer m_SparkEvent
Definition BarbedWire.c:18
Definition DayZPlayerImplement.c:63
const int CALL_CATEGORY_SYSTEM
Definition tools.c:8

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

◆ BaseBuildingBase()

void BaseBuildingBase ( )
inlineprotected
40 {
42
43 //synchronized variables
44 RegisterNetSyncVariableInt( "m_SyncParts01" );
45 RegisterNetSyncVariableInt( "m_SyncParts02" );
46 RegisterNetSyncVariableInt( "m_SyncParts03" );
47 RegisterNetSyncVariableInt( "m_InteractedPartId" );
48 RegisterNetSyncVariableInt( "m_PerformedActionId" );
49 RegisterNetSyncVariableBool( "m_HasBase" );
50
51 //Construction init
53
54 if (ConfigIsExisting("hybridAttachments"))
55 {
57 ConfigGetTextArray("hybridAttachments", m_HybridAttachments);
58 }
59 if (ConfigIsExisting("mountables"))
60 {
62 ConfigGetTextArray("mountables", m_Mountables);
63 }
64
65 ProcessInvulnerabilityCheck(GetInvulnerabilityTypeString());
66 }
void ConstructionInit()
Definition BaseBuildingBase.c:887
ref array< string > m_HybridAttachments
Definition BaseBuildingBase.c:35
ref array< string > m_Mountables
Definition BaseBuildingBase.c:36
ref map< string, ref AreaDamageManager > m_DamageTriggers
Definition BaseBuildingBase.c:34
override string GetInvulnerabilityTypeString()
Definition BaseBuildingBase.c:79

Перекрестные ссылки ConstructionInit(), GetInvulnerabilityTypeString(), m_DamageTriggers, m_HybridAttachments и m_Mountables.

◆ BatteryCharger()

void BatteryCharger ( )
inlineprotected
36 {
37 m_ChargeEnergyPerSecond = GetGame().ConfigGetFloat ("CfgVehicles " + GetType() + " ChargeEnergyPerSecond");
40 RegisterNetSyncVariableInt("m_BatteryEnergy0To100");
41 RegisterNetSyncVariableBool("m_IsSoundSynchRemote");
42 RegisterNetSyncVariableBool("m_IsPlaceSound");
43 }
eBleedingSourceType GetType()
Definition BleedingSource.c:63
void SwitchLightOff()
Definition BatteryCharger.c:324
float m_ChargeEnergyPerSecond
Definition BatteryCharger.c:29
ref Timer m_UpdateStatusLightsTimer
Definition BatteryCharger.c:32

Перекрестные ссылки CALL_CATEGORY_SYSTEM, GetGame(), GetType() и SwitchLightOff().

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

◆ BloodContainerBase()

void BloodContainerBase ( )
inlineprivate
6 {
7 RegisterNetSyncVariableBool("m_IsBloodTypeVisible");
8 }

◆ CableReel()

void CableReel ( )
inlineprivate
9 {
10 m_ForceIntoHands = false;
11 RegisterNetSyncVariableBool("m_IsSoundSynchRemote");
12 RegisterNetSyncVariableBool("m_IsPlaceSound");
13 }
bool m_ForceIntoHands
Definition CableReel.c:3

◆ CalcDamageAreaRotation()

void CalcDamageAreaRotation ( float angle_deg,
out vector center,
out vector orientation )
inlineprotected
1056 {
1057 if ( angle_deg != 0 )
1058 {
1059 //orientation
1061
1062 //center
1064 if ( MemoryPointExists( "rotate_axis" ) )
1065 {
1066 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
1067 }
1068 float r_center_x = ( Math.Cos( angle_deg * Math.DEG2RAD ) * ( center[0] - rotate_axis[0] ) ) - ( Math.Sin( angle_deg * Math.DEG2RAD ) * ( center[2] - rotate_axis[2] ) ) + rotate_axis[0];
1069 float r_center_z = ( Math.Sin( angle_deg * Math.DEG2RAD ) * ( center[0] - rotate_axis[0] ) ) + ( Math.Cos( angle_deg * Math.DEG2RAD ) * ( center[2] - rotate_axis[2] ) ) + rotate_axis[2];
1070 center[0] = r_center_x;
1071 center[2] = r_center_z;
1072 }
1073 }
Definition EnConvert.c:106
static proto float Cos(float angle)
Returns cosinus of angle in radians.
static const float DEG2RAD
Definition EnMath.c:17
static proto float Sin(float angle)
Returns sinus of angle in radians.

Перекрестные ссылки Math::Cos(), Math::DEG2RAD и Math::Sin().

◆ CanAddFuel()

bool CanAddFuel ( ItemBase container)
inlineprotected
313 {
314 if (container)
315 {
316 // Get the liquid
317 int liquid_type = container.GetLiquidType();
318
319 // Do all checks
320 if ( container.GetQuantity() > 0 && GetCompEM().GetEnergy() < GetCompEM().GetEnergyMax() && (liquid_type & LIQUID_GASOLINE))
321 {
322 return true;
323 }
324 }
325
326 return false;
327 }
float GetEnergy()
Definition ItemBase.c:8253
const int LIQUID_GASOLINE
Definition constants.c:522

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

◆ CanAssignAttachmentsToQuickbar()

override bool CanAssignAttachmentsToQuickbar ( )
inlineprotected
104 {
105 return false;
106 }

◆ CanAssignToQuickbar()

override bool CanAssignToQuickbar ( )
inlineprivate
82 {
83 return (!GetInventory().IsAttachment());
84 }

◆ CanAttach()

bool CanAttach ( ItemBase item)
inlineprotected
485 {
486 if (item.IsKindOf ("CamoNet") && GetState() == PITCHED)
487 {
488 return true;
489 }
490
491 return false;
492 }
int GetState()
Definition TentBase.c:449
static const int PITCHED
Definition TentBase.c:21

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

◆ CanBeCombined()

override bool CanBeCombined ( EntityAI other_item,
bool reservation_check = true,
bool stack_max_limit = false )
inlineprivate
62 {
64 {
65 return false;
66 }
67
68 return Torch.Cast(other_item.GetHierarchyParent()) == null;//when the other rag is attached to the torch, disallow this action
69 }

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

◆ CanBeDisinfected() [1/2]

override bool CanBeDisinfected ( )
inlineprivate
55 {
56 return true;
57 }

◆ CanBeDisinfected() [2/2]

override bool CanBeDisinfected ( )
inlineprivate
87 {
88 return true;
89 }

◆ CanBeIgnitedBy() [1/5]

override bool CanBeIgnitedBy ( EntityAI igniter = NULL)
inlineprivate
12 {
13 if ( GetHierarchyParent() ) return false;
14
15 return true;
16 }

◆ CanBeIgnitedBy() [2/5]

override bool CanBeIgnitedBy ( EntityAI igniter = NULL)
inlineprivate
12 {
13 if ( GetHierarchyParent() ) return false;
14
15 return true;
16 }

◆ CanBeIgnitedBy() [3/5]

override bool CanBeIgnitedBy ( EntityAI igniter = NULL)
inlineprivate
12 {
13 if ( GetHierarchyParent() ) return false;
14
15 return true;
16 }

◆ CanBeIgnitedBy() [4/5]

override bool CanBeIgnitedBy ( EntityAI igniter = null)
inlineprotected
44 {
45 return !GetHierarchyParent();
46 }

◆ CanBeIgnitedBy() [5/5]

override bool CanBeIgnitedBy ( EntityAI igniter = null)
inlineprivate
52 {
53 return GetHierarchyParent() == null;
54 }

◆ CanBeManipulated()

bool CanBeManipulated ( )
inlineprotected
473 {
474 if (GetState() == PACKED)
475 {
476 return true;
477 }
478 else
479 {
480 return false;
481 }
482 }
static const int PACKED
Definition TentBase.c:20

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

◆ CanBePacked()

bool CanBePacked ( )
inlineprotected
460 {
461 if (GetState() == PITCHED)
462 {
463 if (GetInventory().GetCargo().GetItemCount() == 0 && GetInventory().AttachmentCount() == 0)
464 {
465 return true;
466 }
467 }
468
469 return false;
470 }

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

◆ CanBePlaced() [1/2]

override bool CanBePlaced ( Man player,
vector position )
inlineprotected
959 {
960 vector playerpos = player.GetPosition();
961 float delta1 = playerpos[1] - position[1];
962
964 return false;
965 return true;
966 }
const float MAX_PLACEMENT_HEIGHT_DIFF
Definition TentBase.c:22

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

◆ CanBePlaced() [2/2]

override bool CanBePlaced ( Man player,
vector position )
inlineprotected
839 {
841 }
bool IsPlaceableAtPosition(vector position)
Definition TrapSpawnBase.c:212

Перекрестные ссылки TrapSpawnBase::IsPlaceableAtPosition().

◆ CanBeRepairedByCrafting()

override bool CanBeRepairedByCrafting ( )
inlineprotected
89 {
90 return false;
91 }

◆ CanBeRepairedToPristine()

override bool CanBeRepairedToPristine ( )
inlineprotected
320 {
321 return true;
322 }

◆ CanBeSplit()

override bool CanBeSplit ( )
inlineprivate
35 {
36 Torch torchParent = Torch.Cast(GetHierarchyParent());
37 if (torchParent && torchParent.GetCompEM() && torchParent.GetCompEM().IsWorking())
38 return false;
39
40 return super.CanBeSplit();
41 }

Используется в InventoryItem::OnRightClick(), CatchingContextTrapsBase::ReduceBaitQty(), InventoryItem::SplitItem() и InventoryItem::SplitItemToInventoryLocation().

◆ CanBeTaken()

bool CanBeTaken ( )
inlineprotected
276 {
277 if ( !IsDeployed() || ( GetInventory().AttachmentCount() == 0 && IsDeployed() ) )
278 {
279 return true;
280 }
281
282 return false;
283 }
bool IsDeployed()
Definition TrapSpawnBase.c:176

◆ CanDetachAttachment()

override bool CanDetachAttachment ( EntityAI parent)
inlineprivate
43 {
44
45 bool is_barrel = false;
46 bool is_opened_barrel = false;
47
48 // is barrel
49 if ( parent.IsKindOf("Barrel_ColorBase") )
50 {
51 is_barrel = true;
52 }
53
54 // is opened barrel
55 if ( is_barrel && parent.GetAnimationPhase("Lid") == 1 )
56 {
57 is_opened_barrel = true;
58 }
59
61 {
62 return true;
63 }
64 return false;
65 }

◆ CanDisplayAttachmentSlot()

override bool CanDisplayAttachmentSlot ( int slot_id)
inlineprotected
694 {
695 super.CanDisplayAttachmentSlot( slot_id );
696 return IsDeployed();
697 }

◆ CanDisplayCargo()

override bool CanDisplayCargo ( )
inlineprivate
25 {
26 return false;
27 }

◆ CanExplodeInFire() [1/3]

override bool CanExplodeInFire ( )
inlineprivate
4 {
5 return true;
6 }

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

◆ CanExplodeInFire() [2/3]

override bool CanExplodeInFire ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanExplodeInFire() [3/3]

override bool CanExplodeInFire ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanFoldBaseBuildingObject()

bool CanFoldBaseBuildingObject ( )
inlineprotected
990 {
991 if ( HasBase() || GetInventory().AttachmentCount() > 0 )
992 {
993 return false;
994 }
995
996 return true;
997 }
bool HasBase()
Definition BaseBuildingBase.c:331

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

◆ CanIgniteItem() [1/10]

override bool CanIgniteItem ( EntityAI ignite_target = NULL)
inlineprivate
19 {
20 return false;
21 }

◆ CanIgniteItem() [2/10]

override bool CanIgniteItem ( EntityAI ignite_target = NULL)
inlineprivate
19 {
20 return false;
21 }

◆ CanIgniteItem() [3/10]

override bool CanIgniteItem ( EntityAI ignite_target = NULL)
inlineprotected
95 {
96 return ignite_target.CanBeIgnitedBy(this);
97 }

◆ CanIgniteItem() [4/10]

override bool CanIgniteItem ( EntityAI ignite_target = NULL)
inlineprivate
19 {
20 return false;
21 }

◆ CanIgniteItem() [5/10]

override bool CanIgniteItem ( EntityAI ignite_target = NULL)
inlineprivate

Override this method and and check if the given item can be ignited. It is not necesarry to check here if the item is not in cargo of something.

5 {
6 return true;
7 }

◆ CanIgniteItem() [6/10]

override bool CanIgniteItem ( EntityAI ignite_target = NULL)
inlineprivate
10 {
11 if ( GetQuantity() > 0 && GetWet() < GameConstants.STATE_DAMP )
12 return true;
13 else
14 return false;
15 }
override float GetQuantity()
Definition ItemBase.c:8129
override float GetWet()
Definition ItemBase.c:8349
Definition constants.c:638
const float STATE_DAMP
Definition constants.c:834

Перекрестные ссылки GetQuantity(), GetWet() и GameConstants::STATE_DAMP.

◆ CanIgniteItem() [7/10]

override bool CanIgniteItem ( EntityAI ignite_target = null)
inlineprotected
49 {
50 return false;
51 }

◆ CanIgniteItem() [8/10]

override bool CanIgniteItem ( EntityAI ignite_target = NULL)
inlineprivate
4 {
5 if ( GetQuantity() > 0 )
6 return true;
7 else
8 return false;
9 }

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

◆ CanIgniteItem() [9/10]

override bool CanIgniteItem ( EntityAI ignite_target = NULL)
inlineprotected
418 {
419 return GetCompEM().IsWorking();
420 }

◆ CanIgniteItem() [10/10]

override bool CanIgniteItem ( EntityAI ignite_target = null)
inlineprivate
57 {
58 return false;
59 }

◆ CanLoadAttachment() [1/3]

override bool CanLoadAttachment ( EntityAI attachment)
inlineprotected
265 {
266 if ( !super.CanLoadAttachment(attachment) )
267 return false;
268
271
272 // Only one attachment allowed
273 if ( GetCompEM().GetPluggedDevice() )
274 return false;
275
276 if ( ibase.HasEnergyManager() && ibase.GetCompEM().GetPluggedDevicesCount() >= 1 ) // Make sure nothing is plugged into the battery
277 return false;
278
279 return true;
280 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition InventoryItem.c:731
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo().

◆ CanLoadAttachment() [2/3]

override bool CanLoadAttachment ( EntityAI attachment)
inlineprotected
364 {
365 int slotId;
366 for (int i = 0; i < attachment.GetInventory().GetSlotIdCount(); i++)
367 {
368 slotId = attachment.GetInventory().GetSlotId(i);
369 if (GetInventory().HasAttachmentSlot(slotId))
370 {
372 EntityAI ent = this;
373 EntityAI parent;
374 while (ent)
375 {
376 if (ent.GetInventory().GetCurrentInventoryLocation(loc) && loc.IsValid())
377 {
378 if (loc.GetType() == InventoryLocationType.CARGO)
379 {
380 parent = ent.GetHierarchyParent();
381 if (parent.GetInventory().HasInventorySlot(slotId))
382 {
383 //Print("CanLoadAttachment | parent " + parent + " matches in slot name: " + InventorySlots.GetSlotName(slotId) + " of " + this);
384 return false;
385 }
386 }
387 }
388
389 ent = ent.GetHierarchyParent();
390 }
391 }
392 }
393
394 return super.CanLoadAttachment(attachment);
395 }
InventoryLocationType
types of Inventory Location
Definition InventoryLocation.c:4
Definition Building.c:6
InventoryLocation.
Definition InventoryLocation.c:29

◆ CanLoadAttachment() [3/3]

override bool CanLoadAttachment ( EntityAI attachment)
inlineprotected
951 {
952 if (GetHealthLevel() == GameConstants.STATE_RUINED)
953 return false;
954
955 return super.CanLoadAttachment(attachment);
956 }
const int STATE_RUINED
Definition constants.c:807

Перекрестные ссылки GameConstants::STATE_RUINED.

◆ CanLoadItemIntoCargo()

override bool CanLoadItemIntoCargo ( EntityAI item)
inlineprotected
933 {
934 if (!super.CanLoadItemIntoCargo(item))
935 return false;
936 if (GetHealthLevel() == GameConstants.STATE_RUINED)
937 return false;
938
939 return true;
940 }

Перекрестные ссылки GameConstants::STATE_RUINED.

◆ CanMakeGardenplot() [1/3]

override bool CanMakeGardenplot ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanMakeGardenplot() [2/3]

override bool CanMakeGardenplot ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanMakeGardenplot() [3/3]

override bool CanMakeGardenplot ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanManipulate()

bool CanManipulate ( )
inlineprotected
127 {
128 return GetCompEM().GetPluggedDevicesCount() == 0 && !GetCompEM().IsWorking();
129 }

◆ CanObstruct()

override bool CanObstruct ( )
inlineprotected
85 {
86 return true;
87 }

◆ CanPlantSeed()

bool CanPlantSeed ( string selection_component)
inlineprivate
314 {
316
317 if ( slot != NULL && slot.m_State == Slot.STATE_DIGGED )
318 {
319 return true;
320 }
321 else
322 {
323 return false;
324 }
325 }
Slot GetSlotBySelection(string selection_component)
Definition GardenBase.c:661

◆ CanProxyObstruct()

override bool CanProxyObstruct ( )
inlineprotected
22 {
23 return false;
24 }

◆ CanProxyObstructSelf()

override bool CanProxyObstructSelf ( )
inlineprotected

prevents showing cargo when outside the tent geometry

79 {
80 return true;
81 }

◆ CanPutAsAttachment() [1/5]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
7 {
8 return true;
9 }

◆ CanPutAsAttachment() [2/5]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
4 {
5 if(!super.CanPutAsAttachment(parent)) {return false;}
6 const int SLOTS_ARRAY = 8;
7 bool is_barrel = false;
8 bool is_opened_barrel = false;
9 bool slot_test = true;
10 string slot_names[SLOTS_ARRAY] = { "BerryR", "BerryB", "Plant", "OakBark", "BirchBark", "Nails", "Disinfectant", "Guts" };
11
12
13 // is barrel
14 if ( parent.IsKindOf("Barrel_ColorBase") )
15 {
16 is_barrel = true;
17 }
18
19 // is opened barrel
20 if ( is_barrel && parent.GetAnimationPhase("Lid") == 1 )
21 {
22 is_opened_barrel = true;
23 }
24
25 // all of the barrel slots are empty
26 for ( int i = 0; i < SLOTS_ARRAY ; i++ )
27 {
28 if ( parent.FindAttachmentBySlotName(slot_names[i]) != NULL )
29 {
30 slot_test = false;
31 break;
32 }
33 }
34
35 if ( ( is_opened_barrel && slot_test ) || !is_barrel )
36 {
37 return true;
38 }
39 return false;
40 }

◆ CanPutAsAttachment() [3/5]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
4 {
5 if(!super.CanPutAsAttachment(parent)) {return false;}
6 if ( parent.FindAttachmentBySlotName("weaponMuzzleAK") == NULL )
7 {
8 return true;
9 }
10 return true;
11 }

◆ CanPutAsAttachment() [4/5]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
14 {
15 if (!super.CanPutAsAttachment(parent))
16 return false;
17
18 if ( parent.IsInherited(VehicleBattery) )
19 {
20 EntityAI battery_owner = EntityAI.Cast( parent.GetHierarchyParent() );
21
22 // Check for Not player as if parent is not player, battery is already attached and should not receive new attachment
23 if ( battery_owner && !battery_owner.IsInherited(PlayerBase) )
24 {
25 return false;
26 }
27 }
28
29 return true;
30 }
Definition VehicleBattery.c:2

◆ CanPutAsAttachment() [5/5]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
20 {
21 if (!super.CanPutAsAttachment(parent))
22 {
23 return false;
24 }
25
26 if (GetQuantity() > 1 && PlayerBase.Cast(parent))
27 {
28 return false;
29 }
30
31 return true;
32 }

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

◆ CanPutInCargo() [1/13]

override bool CanPutInCargo ( EntityAI parent)
inlineprivate
289 {
290 if ( !super.CanPutInCargo(parent) ) {return false;}
291 return false;
292 }

◆ CanPutInCargo() [2/13]

override bool CanPutInCargo ( EntityAI parent)
inlineprivate
444 {
445 return super.CanPutInCargo(parent);
446 }

◆ CanPutInCargo() [3/13]

override bool CanPutInCargo ( EntityAI parent)
inlineprotected
937 {
938 return false;
939 }

◆ CanPutInCargo() [4/13]

override bool CanPutInCargo ( EntityAI parent)
inlineprotected
189 {
190 if( !super.CanPutInCargo(parent) ) {return false;}
191 // No "Take" action if the item is connected
192 if ( !GetCompEM().IsPlugged() && !GetCompEM().GetPluggedDevice() )
193 {
194 return true;
195 }
196
197 return false;
198 }

◆ CanPutInCargo() [5/13]

override bool CanPutInCargo ( EntityAI parent)
inlineprotected
62 {
63 if (!super.CanPutInCargo(parent))
64 {
65 return false;
66 }
67
68 return !GetCompEM().IsSwitchedOn();
69 }

◆ CanPutInCargo() [6/13]

override bool CanPutInCargo ( EntityAI parent)
inlineprivate
28 {
29 if (!super.CanPutInCargo(parent))
30 return false;
31
32 EntityAI owner = GetHierarchyParent();
33 if (owner && owner.IsKindOf("Fence"))
34 return true;
35
36 bool allowIntoInventory = !GetCompEM().IsPlugged();
37 return allowIntoInventory;
38 }

◆ CanPutInCargo() [7/13]

override bool CanPutInCargo ( EntityAI parent)
inlineprivate
97 {
98 // Uncomment this if you want to make it possible to put the pile into V3S Cargo
99 /*
100 if ( parent.IsKindOf("V3S_Cargo") )
101 return true;
102 else
103 return false;
104 */
105
106 return false;
107 }

◆ CanPutInCargo() [8/13]

override bool CanPutInCargo ( EntityAI parent)
inlineprotected
307 {
308 if (!super.CanPutInCargo(parent))
309 return false;
310
311 if (GetCompEM().IsSwitchedOn())
312 return false;
313
314 //can 'parent' be attached to 'this' (->assumed smaller size than 'this')?
315 if (parent)
316 {
317 int slotId;
318 for (int i = 0; i < GetInventory().GetAttachmentSlotsCount(); i++)
319 {
320 slotId = GetInventory().GetAttachmentSlotId(i);
321 if (parent.GetInventory().HasInventorySlot(slotId))
322 {
323 //Print("CanPutInCargo | parent " + parent + " matches in slot name: " + InventorySlots.GetSlotName(slotId) + " of " + this);
324 return false;
325 }
326 }
327 }
328
329 return true;
330 }

◆ CanPutInCargo() [9/13]

override bool CanPutInCargo ( EntityAI parent)
inlineprotected
106 {
107 if (!super.CanPutInCargo(parent))
108 {
109 return false;
110 }
111
112 return CanManipulate();
113 }
bool CanManipulate()
Definition PowerGenerator.c:126

◆ CanPutInCargo() [10/13]

override bool CanPutInCargo ( EntityAI parent)
inlineprotected
301 {
302 if (!super.CanPutInCargo(parent))
303 return false;
304
305 return !GetCompEM().IsPlugged();
306 }

◆ CanPutInCargo() [11/13]

override bool CanPutInCargo ( EntityAI parent)
inlineprotected
305 {
306 if (!super.CanPutInCargo(parent))
307 {
308 return false;
309 }
310
311 return CanBeManipulated();
312 }
bool CanBeManipulated()
Definition TentBase.c:472

◆ CanPutInCargo() [12/13]

override bool CanPutInCargo ( EntityAI parent)
inlineprotected
286 {
287 super.CanPutInCargo( parent );
288 return CanBeTaken();
289 }
bool CanBeTaken()
Definition TrapSpawnBase.c:275

◆ CanPutInCargo() [13/13]

override bool CanPutInCargo ( EntityAI parent)
inlineprivate
30 {
31 return false;
32 }

◆ CanPutInInventory()

bool CanPutInInventory ( EntityAI player)
protected

DEPRECATED.

DEPRECATED

◆ CanPutIntoHands() [1/12]

override bool CanPutIntoHands ( EntityAI parent)
inlineprotected
948 {
949 return false;
950 }

◆ CanPutIntoHands() [2/12]

override bool CanPutIntoHands ( EntityAI parent)
inlineprivate
92 {
93 return false;
94 }

◆ CanPutIntoHands() [3/12]

override bool CanPutIntoHands ( EntityAI parent)
inlineprotected
399 {
400 if (!super.CanPutIntoHands(parent))
401 {
402 return false;
403 }
404
405 return !GetCompEM().IsSwitchedOn();
406 }

◆ CanPutIntoHands() [4/12]

override bool CanPutIntoHands ( EntityAI parent)
inlineprotected
295 {
296 if (!super.CanPutIntoHands(parent))
297 {
298 return false;
299 }
300
301 return CanBeManipulated();
302 }

◆ CanPutIntoHands() [5/12]

override bool CanPutIntoHands ( EntityAI parent)
inlineprotected
292 {
293 super.CanPutIntoHands( parent );
294 return CanBeTaken();
295 }

◆ CanPutIntoHands() [6/12]

override bool CanPutIntoHands ( EntityAI parent)
inlineprivate
50 {
51 return false;
52 }

◆ CanPutIntoHands() [7/12]

override bool CanPutIntoHands ( EntityAI player)
inlineprivate
295 {
296 if ( !super.CanPutIntoHands( parent ) )
297 {
298 return false;
299 }
300 return false;
301 }

◆ CanPutIntoHands() [8/12]

override bool CanPutIntoHands ( EntityAI player)
inlineprivate
449 {
450 return super.CanPutIntoHands(parent);
451 }

◆ CanPutIntoHands() [9/12]

override bool CanPutIntoHands ( EntityAI player)
inlineprotected
201 {
202 if( !super.CanPutIntoHands( parent ) )
203 {
204 return false;
205 }
206 // No "Take into hands" action if the item is connected
207 if ( !GetCompEM().IsPlugged() && !GetCompEM().GetPluggedDevice() )
208 {
209 return true;
210 }
211
212 return false;
213 }

◆ CanPutIntoHands() [10/12]

override bool CanPutIntoHands ( EntityAI player)
inlineprivate
41 {
42 if (!super.CanPutIntoHands(parent))
43 return false;
44
46 {
47 return true;
48 }
49 else
50 {
51 EntityAI owner = GetHierarchyParent();
52 if (owner && owner.IsKindOf("Fence"))
53 return true;
54 }
55
56 return true;
57 }

◆ CanPutIntoHands() [11/12]

override bool CanPutIntoHands ( EntityAI player)
inlineprotected
117 {
118 if(!super.CanPutIntoHands(parent))
119 {
120 return false;
121 }
122 return CanManipulate();
123 }

◆ CanPutIntoHands() [12/12]

override bool CanPutIntoHands ( EntityAI player)
inlineprotected
309 {
310 if (!super.CanPutIntoHands(parent))
311 {
312 return false;
313 }
314 // Commented out so Reposition action is possible to execute
315 return true;
316 }

◆ CanReceiveAttachment() [1/5]

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected
905 {
906 return super.CanReceiveAttachment(attachment, slotId);
907 }

◆ CanReceiveAttachment() [2/5]

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected
242 {
243 if ( !super.CanReceiveAttachment(attachment, slotId) )
244 return false;
245
248
249 // No attaching if the charger is in inventory!
250 PlayerBase charger_owner = PlayerBase.Cast( GetHierarchyRootPlayer() );
251 if ( charger_owner )
252 return false;
253
254 // Only one attachment allowed
255 if ( GetCompEM().GetPluggedDevice() )
256 return false;
257
258 if ( ibase.HasEnergyManager() && ibase.GetCompEM().GetPluggedDevicesCount() >= 1 ) // Make sure nothing is plugged into the battery
259 return false;
260
261 return true;
262 }

Перекрестные ссылки Class::CastTo().

◆ CanReceiveAttachment() [3/5]

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected
338 {
340 EntityAI ent = this;
341 EntityAI parent;
342 while (ent)
343 {
344 if (ent.GetInventory().GetCurrentInventoryLocation(loc) && loc.IsValid())
345 {
346 if (loc.GetType() == InventoryLocationType.CARGO)
347 {
348 parent = ent.GetHierarchyParent();
349 if (parent && parent.GetInventory().HasInventorySlot(slotId))
350 {
351 //Print("CanReceiveAttachment | parent " + parent + " matches in slot name: " + InventorySlots.GetSlotName(slotId) + " of " + this);
352 return false;
353 }
354 }
355 }
356
357 ent = ent.GetHierarchyParent();
358 }
359
360 return super.CanReceiveAttachment(attachment, slotId);
361 }

◆ CanReceiveAttachment() [4/5]

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected
943 {
944 if (GetHealthLevel() == GameConstants.STATE_RUINED)
945 return false;
946
947 return super.CanReceiveAttachment(attachment, slotId);
948 }

Перекрестные ссылки GameConstants::STATE_RUINED.

◆ CanReceiveAttachment() [5/5]

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected
700 {
701 super.CanReceiveAttachment( attachment, slotId );
702 return IsDeployed();
703 }

◆ CanReceiveItemIntoCargo()

override bool CanReceiveItemIntoCargo ( EntityAI item)
inlineprotected
925 {
926 if (GetHealthLevel() == GameConstants.STATE_RUINED || m_IsBeingPacked)
927 return false;
928
929 return super.CanReceiveItemIntoCargo(item);
930 }
bool m_IsBeingPacked
Definition TentBase.c:29

Перекрестные ссылки GameConstants::STATE_RUINED.

◆ CanReceiveItemIntoHands()

override bool CanReceiveItemIntoHands ( EntityAI item_to_hands)
inlineprivate
40 {
41 return false;
42 }

◆ CanReleaseCargo()

override bool CanReleaseCargo ( EntityAI cargo)
inlineprivate
35 {
36 return false;
37 }

◆ CanRemoveFromCargo() [1/3]

override bool CanRemoveFromCargo ( EntityAI parent)
inlineprotected
942 {
943 return false;
944 }

◆ CanRemoveFromCargo() [2/3]

override bool CanRemoveFromCargo ( EntityAI parent)
inlineprotected
72 {
73 return true;
74 }

◆ CanRemoveFromCargo() [3/3]

override bool CanRemoveFromCargo ( EntityAI parent)
inlineprotected
333 {
334 return true;
335 }

◆ CanRemoveFromHands() [1/3]

override bool CanRemoveFromHands ( EntityAI player)
inlineprivate
304 {
305 return false;
306 }

◆ CanRemoveFromHands() [2/3]

override bool CanRemoveFromHands ( EntityAI player)
inlineprivate
454 {
455 return false;
456 }

◆ CanRemoveFromHands() [3/3]

override bool CanRemoveFromHands ( EntityAI player)
inlineprivate
75 {
76 return true;
77 }

◆ CanSaveItemInHands()

override bool CanSaveItemInHands ( EntityAI item_in_hands)
inlineprivate
45 {
46 return false;
47 }

◆ CanSwapEntities()

override bool CanSwapEntities ( EntityAI otherItem,
InventoryLocation otherDestination,
InventoryLocation destination )
inlineprivate
4 {
5 if (!super.CanSwapEntities(otherItem, otherDestination, destination))
6 {
7 return false;
8 }
9
10 if (Torch.Cast(GetHierarchyParent()) && otherItem.IsInherited(Rag))
11 {
12 return false;
13 }
14
15 return true;
16 }

◆ CanToggleAnimations()

bool CanToggleAnimations ( string selection)
inlineprotected
637 {
638 for (int i = 0; i < m_ToggleAnimations.Count(); i++)
639 {
641 string toggle_off = toggle.GetToggleOff();
642 toggle_off.ToLower();
643 string toggle_on = toggle.GetToggleOn();
644 toggle_on.ToLower();
645
646 if (toggle_off == selection || toggle_on == selection)
647 {
648 string zone;
649 DamageSystem.GetDamageZoneFromComponentName(this,selection,zone);
650 return GetHealthLevel(zone) < GameConstants.STATE_RUINED;
651 }
652 }
653
654 return false;
655 }
ref map< ref ToggleAnimations, bool > m_ToggleAnimations
Definition TentBase.c:33
Definition ToggleSelections.c:2

Перекрестные ссылки GameConstants::STATE_RUINED.

◆ CanUseConstruction()

override bool CanUseConstruction ( )
inlineprotected
834 {
835 return true;
836 }

◆ CanUseConstructionBuild()

override bool CanUseConstructionBuild ( )
inlineprotected
839 {
840 return true;
841 }

◆ CatchSetQuant()

void CatchSetQuant ( ItemBase catch)
protected

!DEPRECATED

◆ ChangeInfestation()

void ChangeInfestation ( bool is_infested)
inlineprivate
459 {
461
462 string plant_type = GetType();
464
465 if ( m_IsInfested )
466 {
467 if ( material.m_InfestedTex != "" )
468 {
469 SetObjectTexture( 0, material.m_InfestedTex );
470 }
471 if ( material.m_InfestedMat != "" )
472 {
473 SetObjectMaterial( 0, material.m_InfestedMat );
474 }
475 }
476 else
477 {
478 if ( material.m_HealthyTex != "" )
479 {
480 SetObjectTexture( 0, material.m_HealthyTex );
481 }
482 if ( material.m_HealthyMat != "" )
483 {
484 SetObjectMaterial( 0, material.m_HealthyMat );
485 }
486 }
487 }
PluginHorticulture m_ModuleHorticulture
Definition PlantBase.c:42
bool m_IsInfested
Definition PlantBase.c:23
Definition PlantMaterial.c:2

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

◆ CheckForHybridAttachments()

void CheckForHybridAttachments ( EntityAI item,
string slot_name )
inlineprotected
1149 {
1150 if (!GetGame().IsMultiplayer() || GetGame().IsServer())
1151 {
1152 //if this is a hybrid attachment, set damage of appropriate damage zone. Zone name must match slot name...WIP
1154 {
1155 SetHealth(slot_name,"Health",item.GetHealth());
1156 }
1157 }
1158 }

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

◆ CheckLevelVerticalDistance()

bool CheckLevelVerticalDistance ( float max_dist,
string selection,
PlayerBase player )
inlineprotected
882 {
883 return true;
884 }

◆ CheckMemoryPointVerticalDistance()

bool CheckMemoryPointVerticalDistance ( float max_dist,
string selection,
PlayerBase player )
inlineprotected
877 {
878 return true;
879 }

◆ CheckRainStart()

void CheckRainStart ( )
inlineprivate
774 {
775 if ( !m_CheckRainTimer )
777
778 m_CheckRainTimer.Run( CHECK_RAIN_INTERVAL, this, "CheckRainTick", NULL, true );
779 }
ref Timer m_CheckRainTimer
Definition GardenBase.c:30
static const int CHECK_RAIN_INTERVAL
Definition GardenBase.c:23

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

◆ CheckRainTick()

void CheckRainTick ( )
inlineprivate
782 {
783 float rain_intensity = GetGame().GetWeather().GetRain().GetActual();
784
786
787 if (rain_intensity > 1 || rain_intensity < 0)
788 wetness = 0; // hackfix for weird values returned by weather system
789
790 if (wetness == 0)
792
794
795 if ( rain_intensity > 0 )
796 {
798 SetSynchDirty();
799 }
800
801 for ( int i = 0; i < slots_count; i++ )
802 {
803 if ( m_Slots )
804 {
805 Slot slot = m_Slots.Get( i );
806
807 if ( slot )
808 {
809 slot.GiveWater( wetness * Math.RandomFloat01() );
810 }
811 }
812 }
813 }
int GetGardenSlotsCount()
Definition GardenBase.c:308
void WaterAllSlots()
Definition GardenBase.c:816
ref array< ref Slot > m_Slots
Definition GardenBase.c:25
static float RandomFloat01()
Returns a random float number between and min [inclusive] and max [inclusive].
Definition EnMath.c:126

Перекрестные ссылки GetGame(), GardenBase::GetGardenSlotsCount() и Math::RandomFloat01().

◆ CheckSlotVerticalDistance()

bool CheckSlotVerticalDistance ( int slot_id,
PlayerBase player )
inlineprotected
872 {
873 return true;
874 }

◆ CheckWater()

void CheckWater ( )
inlineprivate
624 {
625 if ( !IsMature() && !NeedsWater() )
626 {
628 {
630 }
631
633
634 if (GetGame().IsServer())
635 {
637 m_GrowthTimer.Run( m_StateChangeTime, this, "GrowthTimerTick", NULL, true );
638 }
639 }
640 }
ref Timer m_GrowthTimer
Definition PlantBase.c:33
bool NeedsWater()
Definition PlantBase.c:788
int m_StateChangeTime
Definition PlantBase.c:31
static const int STATE_GROWING
Definition PlantBase.c:5
bool IsMature()
Definition PlantBase.c:883
ref Timer m_DeleteDryPlantTimer
Definition PlantBase.c:37
void SetPlantState(int state)
Definition PlantBase.c:756

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

◆ ClearCatchingComponent()

void ClearCatchingComponent ( )
inlineprotected
734 {
736 delete m_CatchingContext;
737 }
ref CatchingContextTrapsBase m_CatchingContext
Definition TrapSpawnBase.c:45

◆ ClearCookingEquipment()

void ClearCookingEquipment ( ItemBase pItem)
inlineprotected
46 {
48 {
49 m_CookingProcess.TerminateCookingSounds(pItem);
50 }
51
53 }
ref Cooking m_CookingProcess
Definition PortableGasStove.c:18
void SetCookingEquipment(ItemBase equipment)
Definition PortableGasStove.c:40

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

◆ Clothing_Base()

void Clothing_Base ( )
inlineprivate
831 {
832 m_ItemVisibilityModifier = ConfigGetFloat("visibilityModifier");
833 }
float m_ItemVisibilityModifier
Definition InventoryItem.c:828

◆ ConditionIntoInventory()

bool ConditionIntoInventory ( EntityAI player)
inlineprotected
290 {
291 return CanBeManipulated();
292 }

◆ ConditionOutOfHands()

bool ConditionOutOfHands ( EntityAI player)
inlineprotected
315 {
316 return CanBeManipulated();
317 }

◆ ConstructionInit()

void ConstructionInit ( )
inlineprotected
888 {
889 if ( !m_Construction )
890 {
891 m_Construction = new Construction( this );
892 }
893
894 GetConstruction().Init();
895 }
void Construction(BaseBuildingBase parent)
Definition Construction.c:26
Construction GetConstruction()
Definition BaseBuildingBase.c:897
ref Construction m_Construction
Definition BaseBuildingBase.c:8

Перекрестные ссылки Construction(), GetConstruction() и m_Construction.

◆ ConvertAttSlotToPlantSlot()

string ConvertAttSlotToPlantSlot ( string attach_slot)
inlineprivate
329 {
330 // Give result
331 if ( m_map_slots.Contains(attach_slot) )
332 {
334 return return_value;
335 }
336
337 return "";
338 }
static ref map< string, string > m_map_slots
Definition GardenBase.c:32

◆ CookWithEquipment()

void CookWithEquipment ( )
inlineprotected
219 {
220 if (m_CookingProcess == null)
222
224 }
ItemBase GetCookingEquipment()
Definition PortableGasStove.c:35
const float PARAM_COOKING_TIME_INC_COEF
Definition PortableGasStove.c:14
float m_TimeFactor
Definition PortableGasStove.c:16

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

◆ CreateAreaDamage()

void CreateAreaDamage ( string slot_name,
float rotation_angle = 0 )
inlineprotected
1009 {
1010 if ( GetGame() && GetGame().IsServer() )
1011 {
1012 //destroy area damage if some already exists
1014
1015 //create new area damage
1017 areaDamage.SetDamageComponentType(AreaDamageComponentTypes.HITZONE);
1018
1019 vector min_max[2];
1020 if ( MemoryPointExists( slot_name + "_min" ) )
1021 {
1022 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
1023 }
1024 if ( MemoryPointExists( slot_name + "_max" ) )
1025 {
1026 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
1027 }
1028
1029 //get proper trigger extents (min<max)
1030 vector extents[2];
1031 GetConstruction().GetTriggerExtents( min_max, extents );
1032
1033 //get box center
1034 vector center;
1035 center = GetConstruction().GetBoxCenter( min_max );
1036 center = ModelToWorld( center );
1037
1038 //rotate center if needed
1041
1042 areaDamage.SetExtents( extents[0], extents[1] );
1043 areaDamage.SetAreaPosition( center );
1044 areaDamage.SetAreaOrientation( orientation );
1045 areaDamage.SetLoopInterval( 1.0 );
1046 areaDamage.SetDeferDuration( 0.2 );
1047 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
1048 areaDamage.SetAmmoName( "BarbedWireHit" );
1049 areaDamage.Spawn();
1050
1052 }
1053 }
vector GetOrientation()
Definition AreaDamageManager.c:306
void DestroyAreaDamage()
Definition FireplaceBase.c:2306
Definition AreaDamageManager.c:2
const int HITZONE
Definition AreaDamageManager.c:4
A particular version of the deferred loop used to not damage players inside vehicles.
Definition AreaDamageLoopedDeferred_NoVehicle.c:3
void CalcDamageAreaRotation(float angle_deg, out vector center, out vector orientation)
Definition BaseBuildingBase.c:1055

Перекрестные ссылки CalcDamageAreaRotation(), DestroyAreaDamage(), GetConstruction(), GetGame(), GetOrientation(), AreaDamageComponentTypes::HITZONE и m_DamageTriggers.

◆ CreateConstructionKit()

ItemBase CreateConstructionKit ( )
inlineprotected
353 {
355 if ( m_ConstructionKitHealth > 0 )
356 {
358 }
359
360 return construction_kit;
361 }
const int ECE_PLACE_ON_SURFACE
Definition CentralEconomy.c:37
string GetConstructionKitType()
Definition BaseBuildingBase.c:377
float m_ConstructionKitHealth
Definition BaseBuildingBase.c:6
vector GetKitSpawnPosition()
Definition BaseBuildingBase.c:372

Перекрестные ссылки ECE_PLACE_ON_SURFACE, BaseBuildingBase::GetConstructionKitType(), GetGame(), BaseBuildingBase::GetKitSpawnPosition() и m_ConstructionKitHealth.

◆ CreateConstructionKitInHands()

void CreateConstructionKitInHands ( notnull PlayerBase player)
inlineprotected
364 {
365 ItemBase construction_kit = ItemBase.Cast(player.GetHumanInventory().CreateInHands(GetConstructionKitType()));
366 if ( m_ConstructionKitHealth > 0 )
367 {
369 }
370 }

Перекрестные ссылки BaseBuildingBase::GetConstructionKitType() и m_ConstructionKitHealth.

◆ CreateDamageTrigger()

void CreateDamageTrigger ( )
inlineprotected
235 {
236 m_AreaDamage = new AreaDamageOneTime(this);
237 m_AreaDamage.SetExtents("-1 0 -0.4", "1 0.7 0.4");
238 m_AreaDamage.SetHitZones({"RightLeg", "LeftLeg", "RightFoot", "LeftFoot"});
239 m_AreaDamage.SetAmmoName("BarbedWireHit");
240 m_AreaDamage.Spawn();
241 m_TriggerActive = true;
242 }
ref AreaDamageManager m_AreaDamage
Definition BarbedWire.c:19

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

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

◆ CreateElectrifiedDamageTrigger()

void CreateElectrifiedDamageTrigger ( )
inlineprotected
224 {
226 m_AreaDamage.SetExtents("-1 0 -0.4", "1 0.7 0.4");
227 m_AreaDamage.SetLoopInterval(0.3);
228 m_AreaDamage.SetHitZones({"RightLeg", "LeftLeg", "RightFoot", "LeftFoot"});
229 m_AreaDamage.SetAmmoName("BarbedWireHit");
230 m_AreaDamage.Spawn();
231 m_TriggerActive = true;
232 }
Definition AreaDamageRegularDeferred.c:3

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

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

◆ CreatePlant()

void CreatePlant ( Slot slot)
inlineprivate
430 {
431 if (g_Game.IsServer())
432 {
433 ItemBase seed = slot.GetSeed();
434 seed.UnlockFromParent();
435 GetGame().ObjectDelete(seed);
436
437 PlantBase plant = PlantBase.Cast( GetInventory().CreateAttachmentEx( slot.m_PlantType, slot.GetSlotId()) );
438
439 int slot_index = slot.GetSlotIndex();
440 slot.SetPlant(plant);
441 plant.Init( this, slot.GetFertility(), slot.m_HarvestingEfficiency, slot.GetWater() );
442 //ShowSelection(SLOT_SELECTION_COVERED_PREFIX + (slot_index + 1).ToStringLen(2));
443
444 plant.LockToParent();
445 }
446 }
DayZGame g_Game
Definition DayZGame.c:3815

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

◆ CreateRope()

void CreateRope ( Rope rope)
inlineprotected
155 {
156 if (!rope)
157 return;
158
159 InventoryLocation targetLoc = rope.GetTargetLocation();
160 if (targetLoc && targetLoc.GetType() != InventoryLocationType.GROUND)
161 {
162 MiscGameplayFunctions.TransferItemProperties(this, rope);
163 return;
164 }
165
166 EntityAI newRope = EntityAI.Cast(GetGame().CreateObjectEx(rope.GetType(), GetPosition(), ECE_PLACE_ON_SURFACE));
167
168 if (newRope)
169 MiscGameplayFunctions.TransferItemProperties(this, newRope);
170
171 rope.Delete();
172 }
class JsonUndergroundAreaTriggerData GetPosition
Definition UndergroundAreaLoader.c:9

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

◆ DebugCustomState()

void DebugCustomState ( )
inlineprotected
1178 {
1179 }

◆ Defibrillator()

void Defibrillator ( )
inlineprivate
17 {
18 // Read all config parameters
19 //m_ChargeTime = GetTimeNeededToCharge();
21 }
static float m_EnergyNeededToCharge
Definition Defibrillator.c:10
float GetEnergyNeededToCharge()
Definition Defibrillator.c:35

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

◆ DeleteDryPlantTick()

void DeleteDryPlantTick ( )
inlineprivate
596 {
597 /*if ( IsDry() )
598 {
599 RemoveSlot();
600 }*/
601 }

◆ DestroyAreaDamage()

void DestroyAreaDamage ( string slot_name)
inlineprotected
1076 {
1077 if (GetGame() && GetGame().IsServer())
1078 {
1081 {
1082 if (areaDamage)
1083 {
1084 areaDamage.Destroy();
1085 }
1086
1087 m_DamageTriggers.Remove( slot_name );
1088 }
1089 }
1090 }

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

◆ DestroyClutterCutter()

void DestroyClutterCutter ( )
inlineprotected
809 {
810 if (GetGame().IsMultiplayer() || GetGame().IsServer())
811 {
812 if (m_ClutterCutter)
813 {
814 GetGame().ObjectDelete(m_ClutterCutter);
815 }
816 }
817 }
Object m_ClutterCutter
Definition TentBase.c:36

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

◆ DestroyConstruction()

void DestroyConstruction ( )
inlineprotected
390 {
391 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " DestroyConstruction");
392 GetGame().ObjectDelete( this );
393 }
class BaseBuildingBase extends ItemBase bsbDebugPrint(string s)
Definition BaseBuildingBase.c:1234
Definition Debug.c:600
static bool IsBaseBuildingLogEnable()
Definition Debug.c:704
override string GetDebugName()
Definition dayzplayer.c:1170

Перекрестные ссылки bsbDebugPrint(), GetDebugName(), GetGame() и LogManager::IsBaseBuildingLogEnable().

◆ DestroyConstructionKit()

void DestroyConstructionKit ( ItemBase construction_kit)
inlineprotected
383 {
385 GetGame().ObjectDelete( construction_kit );
386 }

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

◆ DestroyDamageTrigger()

void DestroyDamageTrigger ( )
inlineprotected
245 {
246 m_AreaDamage.Destroy();
247 m_TriggerActive = false;
248 }

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

Используется в OnInventoryEnter(), OnIsUnplugged(), OnItemLocationChanged(), OnWorkStart() и OnWorkStop().

◆ DestroyFireplace()

void DestroyFireplace ( )
inlineprotected
57 {
58 //delete object
59 GetGame().ObjectDelete(this);
60 }

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

◆ DestroyPlant()

void DestroyPlant ( )
inlineprivate
724 {
725 if ( GetGame() && GetGame().IsServer() )
726 {
728
729 RemoveSlot();
730 }
731 }
void UnlockFromParent()
Unlocks this item from its attachment slot of its parent.
Definition ItemBase.c:5630
void RemoveSlot()
Definition PlantBase.c:824

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

◆ DetachAllAttachments()

void DetachAllAttachments ( )
inlineprotected

detaches everything on catching end (some slots may not be accessible when folded)

762 {
763 int count = GetInventory().AttachmentCount();
764 if (count > 0)
765 {
767 for (int i = 0; i < count; i++)
768 {
769 att = GetInventory().GetAttachmentFromIndex(i);
770 GetInventory().DropEntity(InventoryMode.SERVER,this,att);
771 }
772 }
773 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
Definition Inventory.c:22

◆ DisassembleKit()

void DisassembleKit ( ItemBase item)
inlineprotected
152{}

◆ DisassembleOnLastDetach()

override bool DisassembleOnLastDetach ( )
inlineprotected
56 {
57 return true;
58 }

◆ DischargeClient()

void DischargeClient ( PlayerBase victim)
inlineprivate
143 {
145 }
static const string SHOCK_SOUND
Definition Defibrillator.c:5
static EffectSound PlaySoundOnObject(string sound_set, Object parent_object, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.
Definition EffectManager.c:247

Перекрестные ссылки SEffectManager::PlaySoundOnObject().

◆ DischargeServer()

void DischargeServer ( PlayerBase victim)
inlineprivate
117 {
118 /*
119 bool has_heart_attack = victim.m_ModifiersManager.IsModifierActive(eModifiers.MDF_HEART_ATTACK);
120
121 if ( has_heart_attack )
122 {
123 victim.m_ModifiersManager.DeactivateModifier ( eModifiers.MDF_HEART_ATTACK );
124 }
125 else
126 {
127 victim.m_ModifiersManager.ActivateModifier ( eModifiers.MDF_HEART_ATTACK );
128 }
129 */
130 /*
131 if (!GetGame().IsMultiplayer() || GetGame().IsClient())
132 {
133 SEffectManager.PlaySoundOnObject(SHOCK_SOUND, this);
134 }*/
135
136 victim.SetPulseType(!victim.GetPulseType());
137 victim.SetHealth("","Shock",0);
138
139 GetCompEM().SwitchOff();
140 }

◆ DisplayNameRuinAttach() [1/2]

override bool DisplayNameRuinAttach ( )
inlineprivate
775 {
776 return true;
777 }

◆ DisplayNameRuinAttach() [2/2]

override bool DisplayNameRuinAttach ( )
inlineprivate
806 {
807 return true;
808 }

◆ DoMeasurement()

void DoMeasurement ( )
inlineprotected
32 {
33 float dispersion = 80;
34
35 vector from = GetPosition() + ( GetMemoryPointPos("beamStart") + ((GetOrientation()+Vector(90,0,0)).AnglesToVector()*0.3) );
37 vector to = from + (ori.AnglesToVector() )* 30;
41
42 bool is_collision = DayZPhysics.RaycastRV( from, to, contact_pos, contact_dir, contactComponent, NULL , NULL, GetHierarchyRootPlayer(), false, false, ObjIntersectIFire);
43
44 if (is_collision)
45 {
46 vector hit_normal = contact_dir.VectorToAngles();
47 hit_normal[1] = hit_normal[1] + 90;
48
49 // Generate result
50 Particle p = ParticleManager.GetInstance().PlayInWorld(ParticleList.DEBUG_DOT, contact_pos);
51 p.SetOrientation(hit_normal);
52 }
53 }
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Definition ParticleManager.c:84
Definition DayZPhysics.c:124
static proto bool RaycastRV(vector begPos, vector endPos, out vector contactPos, out vector contactDir, out int contactComponent, set< Object > results=NULL, Object with=NULL, Object ignore=NULL, bool sorted=false, bool ground_only=false, int iType=ObjIntersectView, float radius=0.0, CollisionFlags flags=CollisionFlags.NEARESTCONTACT)
Raycasts world by given parameters.
Legacy way of using particles in the game.
Definition Particle.c:7
Definition ParticleList.c:12
static const int DEBUG_DOT
Definition ParticleList.c:23
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].

Перекрестные ссылки ParticleList::DEBUG_DOT, GetOrientation(), GetPosition, ParticleManager(), Math::RandomFloat(), DayZPhysics::RaycastRV() и Vector().

◆ EEDelete() [1/2]

override void EEDelete ( EntityAI parent)
inlineprotected
69 {
70 super.EEDelete(parent);
71
72 foreach (AreaDamageManager areaDamage : m_DamageTriggers)
73 {
74 areaDamage.Destroy();
75 }
76
77 }

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

◆ EEDelete() [2/2]

override void EEDelete ( EntityAI parent)
inlineprotected
36 {
37 super.EEDelete(parent);
38
39 if (m_Particle && GetGame()) // GetGame() is null when the game is being shut down
40 {
42 GetGame().ObjectDelete(m_Particle);
43 }
44 }
Particle m_Particle
Definition ParticleTest.c:6
void Stop()
Legacy function for backwards compatibility with 1.14 and below.
Definition Particle.c:266

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

◆ EEHealthLevelChanged() [1/2]

override void EEHealthLevelChanged ( int oldLevel,
int newLevel,
string zone )
inlineprotected
473 {
475 return;
476
477 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
478
479 if (GetGame().IsMultiplayer() && !GetGame().IsServer())
480 return;
481
483 string part_name = zone;
484 part_name.ToLower();
485
487 {
489
490 if ( construction_part && construction.IsPartConstructed( part_name ) )
491 {
492 construction.DestroyPartServer( null, part_name, AT_DESTROY_PART );
493 construction.DestroyConnectedParts(part_name);
494 }
495
496 //barbed wire handling (hack-ish)
497 if ( part_name.Contains("barbed") )
498 {
499 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
500 if (barbed_wire)
501 barbed_wire.SetMountedState( false );
502 }
503 }
504 }
const int AT_DESTROY_PART
Definition _constants.c:8
Definition ConstructionPart.c:2
void BarbedWire()
Definition BarbedWire.c:31

Перекрестные ссылки AT_DESTROY_PART, Construction(), GetConstruction(), GetGame(), m_FixDamageSystemInit и GameConstants::STATE_RUINED.

◆ EEHealthLevelChanged() [2/2]

override void EEHealthLevelChanged ( int oldLevel,
int newLevel,
string zone )
inlineprotected
226 {
227 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
228
230 return;
231
232 if (zone == "" && GetState() == PITCHED && newLevel == GameConstants.STATE_RUINED && GetGame().IsServer())
233 MiscGameplayFunctions.DropAllItemsInInventoryInBounds(this, m_HalfExtents);
234
235 if (zone != "Body" && zone != "Inventory" && zone != "")
236 {
238 {
240 DamageSystem.GetComponentNamesFromDamageZone(this,zone,selections);
241 for (int j = 0; j < selections.Count(); j++)
242 {
243 if (selections.Get(j) != "")
244 {
245 RemoveProxyPhysics(selections.Get(j)); //To keep
246 //HideSelection(selections.Get(j)); //To change
248 }
249 }
250 }
252 {
253 if (GetState() == PITCHED)
254 {
255 TryPitch(true);
256 }
257 }
258 }
259 }
void AnimateCamonetByOpeningSelection(string opening_selection)
Definition TentBase.c:764
void TryPitch(bool update_navmesh, bool init=false)
Definition TentBase.c:556
vector m_HalfExtents
Definition TentBase.c:38

Перекрестные ссылки TentBase::AnimateCamonetByOpeningSelection(), GetGame(), GetState(), m_FixDamageSystemInit, m_HalfExtents и GameConstants::STATE_RUINED.

◆ EEInit() [1/5]

override void EEInit ( )
inlineprotected
44 {
45 super.EEInit();
46
47 GetGame().GetCallQueue( CALL_CATEGORY_GAMEPLAY ).CallLater( UpdateAttachmentSlot, 100, false );
48 }
void UpdateAttachmentSlot()
Definition BarbedWire.c:81
const int CALL_CATEGORY_GAMEPLAY
Definition tools.c:10

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

◆ EEInit() [2/5]

override void EEInit ( )
inlineprotected
517 {
518 super.EEInit();
519
520 // init visuals and physics
522
523 //debug
524 #ifdef DEVELOPER
526 #endif
527 }
void DebugCustomState()
Definition BaseBuildingBase.c:1177
void InitBaseState()
Definition BaseBuildingBase.c:683

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

◆ EEInit() [3/5]

override void EEInit ( )
inlineprotected
42 {
43 super.EEInit();
44
45 //set visual on init
48
49 if (GetGame().IsServer())
50 {
51 GetGame().GetCallQueue( CALL_CATEGORY_GAMEPLAY ).Call( AssembleKit );
52 }
53 }
void AssembleKit()
Definition KitBase.c:144
void UpdateVisuals()
Definition BaseBuildingBase.c:708
void UpdatePhysics()
Definition BaseBuildingBase.c:761

Перекрестные ссылки CALL_CATEGORY_GAMEPLAY, GetGame(), UpdatePhysics() и UpdateVisuals().

◆ EEInit() [4/5]

override void EEInit ( )
inlineprotected
63 {
64 super.EEInit();
65
68 m_CookingProcess.SetCookingUpdateTime(GetCompEM().GetUpdateInterval());
69
70 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
71 {
73 m_UTSSettings.m_ManualUpdate = true;
74 m_UTSSettings.m_TemperatureMin = 0;
75 m_UTSSettings.m_TemperatureMax = 400;
77 m_UTSSettings.m_TemperatureCap = 0;
78 m_UTSSettings.m_RangeFull = 0;
79 m_UTSSettings.m_RangeMax = 0;
80 m_UTSSettings.m_IsWorldOverriden = false;
81
84 }
85 }
ref UniversalTemperatureSourceSettings m_UTSSettings
Definition PortableGasStove.c:31
ref UniversalTemperatureSourceLambdaConstant m_UTSLConst
Definition PortableGasStove.c:32
ref UniversalTemperatureSource m_UTSource
DEPRECATED Attached spark plug item.
Definition PortableGasStove.c:30
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_CookingProcess, m_UTSource и m_UTSSettings.

◆ EEInit() [5/5]

override void EEInit ( )
inlineprotected
43 {
44 super.EEInit();
45
46 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
47 {
49 m_UTSSettings.m_ManualUpdate = true;
50 m_UTSSettings.m_TemperatureMin = 0;
51 m_UTSSettings.m_TemperatureMax = 80;
53 m_UTSSettings.m_TemperatureCap = 8;
54 m_UTSSettings.m_RangeFull = 1;
55 m_UTSSettings.m_RangeMax = 2.5;
56
59 }
60 }
UniversalTemperatureSourceLambdaBaseImpl UniversalTemperatureSourceLambdaBase UniversalTemperatureSourceLambdaEngine()
Definition UniversalTemperatureSourceLambdaBaseImpl.c:175
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
Definition PowerGenerator.c:24

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

◆ EEItemAttached() [1/6]

override void EEItemAttached ( EntityAI item,
string slot_name )
inlineprivate
341 {
342 super.EEItemAttached(item, slot_name);
343
344 string path = string.Format("CfgVehicles %1 Horticulture PlantType", item.GetType());
345 bool IsItemSeed = GetGame().ConfigIsExisting(path); // Is this item a seed?
346
348
349 if ( IsItemSeed )
350 {
351 string converted_slot_name;
352
353 vector pos = GetPosition();
355
356 if (index < 10)
357 {
359 }
360 else
361 {
363 }
364
366 }
367 else if (g_Game.IsClient())
368 {
370 if (slot)
371 {
372 slot.SetPlant(PlantBase.Cast( item ));
373 slot.m_State = Slot.STATE_PLANTED;
374 }
375 }
376 }
string path
Definition OptionSelectorMultistate.c:142
provides access to slot configuration
Definition InventorySlots.c:6
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
static const string SLOT_MEMORY_POINT_PREFIX
Definition GardenBase.c:19
int GetSlotIndexByAttachmentSlot(string att_slot)
Definition GardenBase.c:708
Slot GetSlotByIndex(int index)
Definition GardenBase.c:833
void PlantSeed(ItemBase seed, string selection_component)
Definition GardenBase.c:402
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.

Перекрестные ссылки string::Format(), g_Game, GetGame(), GetPosition, InventorySlots::GetSlotIdFromString() и path.

◆ EEItemAttached() [2/6]

override void EEItemAttached ( EntityAI item,
string slot_name )
inlineprotected
530 {
531 super.EEItemAttached( item, slot_name );
532
536 }
void UpdateAttachmentPhysics(string slot_name, bool is_locked)
Definition BaseBuildingBase.c:797
void CheckForHybridAttachments(EntityAI item, string slot_name)
Definition BaseBuildingBase.c:1148

Перекрестные ссылки CheckForHybridAttachments(), UpdateAttachmentPhysics() и BaseBuildingBase::UpdateVisuals().

◆ EEItemAttached() [3/6]

override void EEItemAttached ( EntityAI item,
string slot_name )
inlineprotected
89 {
90 super.EEItemAttached(item, slot_name);
91
92 //cookware
93 switch (item.Type())
94 {
99 RefreshFlameVisual(m_EM.IsSwitchedOn(), true);
100 break;
101 }
102 }
ATTACHMENT_FRYING_PAN
Definition PortableGasStove.c:8
ATTACHMENT_CAULDRON
Definition PortableGasStove.c:9
void RefreshFlameVisual(bool working=false)
Definition Blowtorch.c:37
ATTACHMENT_COOKING_POT
Definition PortableGasStove.c:7

Перекрестные ссылки ATTACHMENT_CAULDRON, ATTACHMENT_COOKING_POT, ATTACHMENT_FRYING_PAN и SetCookingEquipment().

◆ EEItemAttached() [4/6]

override void EEItemAttached ( EntityAI item,
string slot_name )
inlineprotected
218 {
219 super.EEItemAttached(item, slot_name);
220 GetCompEM().InteractBranch(this);
221
223
224 if (item_IB.IsKindOf("Sparkplug") && IsInitialized())
225 {
226 ShowSelection("sparkplug_installed");
227
228 #ifndef SERVER
230 sound.SetAutodestroy( true );
231 #endif
232 }
233 }
override bool IsInitialized()
Definition CombinationLock.c:70
Wrapper class for managing sound through SEffectManager.
Definition EffectSound.c:5
static const string SPARKPLUG_ATTACH_SOUND
Definition PowerGenerator.c:11
static EffectSound PlaySound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.
Definition EffectManager.c:169

Перекрестные ссылки GetPosition, IsInitialized() и SEffectManager::PlaySound().

◆ EEItemAttached() [5/6]

override void EEItemAttached ( EntityAI item,
string slot_name )
inlineprotected
358 {
359 super.EEItemAttached(item, slot_name);
360
361 if (item.IsKindOf ("CamoNet"))
362 {
363 m_CamoNet = CamoNet.Cast(item);
365 //SetAnimationPhase("Camonet", 0);
366
367 if (!IsKindOf ("MediumTent"))
368 {
369 AddProxyPhysics("camonet");
370 }
371 }
372
373 if (item.IsKindOf ("XmasLights"))
374 {
375 SetAnimationPhase("Xlights", 0);
376 SetAnimationPhase("Xlights_glass_r", 0);
377 SetAnimationPhase("Xlights_glass_g", 0);
378 SetAnimationPhase("Xlights_glass_b", 0);
379 SetAnimationPhase("Xlights_glass_y", 0);
380
381 XmasLights xlights = XmasLights.Cast(item);
382 xlights.AttachToObject(this);
383 }
384 }
void HandleCamoNetAttachment(bool hide)
Definition TentBase.c:757
CamoNet m_CamoNet
Definition TentBase.c:37

Перекрестные ссылки TentBase::HandleCamoNetAttachment().

◆ EEItemAttached() [6/6]

override void EEItemAttached ( EntityAI item,
string slot_name )
inlineprotected
706 {
707 super.EEItemAttached( item, slot_name );
708
709 if (IsActive() && GetGame().IsServer())
710 {
712 m_CatchingContext.UpdateDataAndMasks();
713 m_CatchingContext.GenerateResult();
715 }
716 }
void ResetActiveProgress()
Definition TrapSpawnBase.c:297
bool IsActive()
Definition TrapSpawnBase.c:171
void ResetRunningTimerProgress()
Definition TrapSpawnBase.c:308

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

◆ EEItemDetached() [1/7]

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprivate
379 {
380 super.EEItemDetached(item, slot_name);
381
382 slot_name.ToLower();
383
384 string path = string.Format("CfgVehicles %1 Horticulture PlantType", item.GetType());
385 bool IsItemSeed = GetGame().ConfigIsExisting(path); // Is this item a seed?
386
389
390 if (slot)
391 {
392 if (IsItemSeed)
393 {
394 slot.SetSeed(NULL);
395 }
396
397 slot.SetState(Slot.STATE_DIGGED);
398 }
399 }
string ConvertAttSlotToPlantSlot(string attach_slot)
Definition GardenBase.c:328

Перекрестные ссылки string::Format(), GetGame() и path.

◆ EEItemDetached() [2/7]

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected
539 {
540 super.EEItemDetached( item, slot_name );
541
544 }

Перекрестные ссылки UpdateAttachmentPhysics() и BaseBuildingBase::UpdateVisuals().

◆ EEItemDetached() [3/7]

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected
61 {
62 super.EEItemDetached( item, slot_name );
63
64 PlayerBase player = PlayerBase.Cast(GetHierarchyRootPlayer());
65 if ( player && player.IsPlayerDisconnected() )
66 return;
67
68 if (item && slot_name == "Rope")
69 {
70 if (GetGame().IsServer() && !m_DeployedRegularly)
71 {
73 Delete();
74 }
75 }
76 }
bool m_DeployedRegularly
Definition KitBase.c:3
void DisassembleKit(ItemBase item)
Definition KitBase.c:152

Перекрестные ссылки KitBase::DisassembleKit() и GetGame().

◆ EEItemDetached() [4/7]

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected
105 {
106 super.EEItemDetached(item, slot_name);
107
108 //cookware
109 switch (item.Type())
110 {
115 //remove cooking equipment reference
117 RefreshFlameVisual(m_EM.IsSwitchedOn(), false);
118 break;
119 }
120 }
void ClearCookingEquipment()
DEPRECATED.
Definition FireplaceBase.c:616
void RemoveCookingAudioVisuals()
Definition PortableGasStove.c:254

Перекрестные ссылки ATTACHMENT_CAULDRON, ATTACHMENT_COOKING_POT, ATTACHMENT_FRYING_PAN и ClearCookingEquipment().

◆ EEItemDetached() [5/7]

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected
236 {
237 super.EEItemDetached(item, slot_name);
238
239 GetCompEM().InteractBranch(this);
240
242
243 if (item_IB.IsKindOf("Sparkplug"))
244 {
245 HideSelection("sparkplug_installed");
246 GetCompEM().SwitchOff();
247
248 #ifndef SERVER
250 sound.SetAutodestroy(true);
251 #endif
252 }
253 }
static const string SPARKPLUG_DETACH_SOUND
Definition PowerGenerator.c:12

Перекрестные ссылки GetPosition и SEffectManager::PlaySound().

◆ EEItemDetached() [6/7]

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected
387 {
388 super.EEItemDetached(item, slot_name);
389
390 if (item.IsKindOf ("CamoNet"))
391 {
392 m_CamoNet = null;
394 //SetAnimationPhase("Camonet", 1);
395
396 if (!IsKindOf ("MediumTent"))
397 {
398 RemoveProxyPhysics("camonet");
399 }
400 }
401
402 if (item.IsKindOf ("XmasLights"))
403 {
404 SetAnimationPhase("Xlights", 1);
405 SetAnimationPhase("Xlights_glass_r", 1);
406 SetAnimationPhase("Xlights_glass_g", 1);
407 SetAnimationPhase("Xlights_glass_b", 1);
408 SetAnimationPhase("Xlights_glass_y", 1);
409
410 XmasLights xlights = XmasLights.Cast(item);
411 xlights.DetachFromObject(this);
412 }
413 }

Перекрестные ссылки TentBase::HandleCamoNetAttachment().

◆ EEItemDetached() [7/7]

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected
719 {
720 super.EEItemDetached( item, slot_name );
721
722 if (IsActive() && GetGame().IsServer())
723 {
725 m_CatchingContext.UpdateDataAndMasks();
726 m_CatchingContext.GenerateResult();
728 }
729 }

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

◆ EEItemLocationChanged() [1/3]

override void EEItemLocationChanged ( notnull InventoryLocation oldLoc,
notnull InventoryLocation newLoc )
inlineprivate
13 {
14 super.EEItemLocationChanged(oldLoc, newLoc);
15
16 if ( GetGame().IsServer() )
17 {
18 if ( oldLoc.IsValid() && oldLoc.GetParent() )
19 {
20 PlayerBase old_player = PlayerBase.Cast(oldLoc.GetParent().GetHierarchyRootPlayer());
21 if (old_player && old_player.IsRestrained())
22 {
23 old_player.SetRestrained(false);
24 }
25 }
26 }
27
28 if ( newLoc.IsValid() )
29 {
30 if (newLoc.GetParent())
31 {
32 PlayerBase player = PlayerBase.Cast(newLoc.GetParent().GetHierarchyRootPlayer());
33
34 if ( player )
35 {
36 if ( newLoc.GetType() == InventoryLocationType.HANDS )
37 {
38 if ( !player.IsRestrained() )
39 {
40 player.SetRestrained(true);
41 player.OnItemInHandsChanged();
42 }
43
44 if (player.IsControlledPlayer())
45 player.OnRestrainStart();
46 }
47 }
48 }
49 }
50
51 if ( GetGame().IsServer() )
52 {
53 if ( newLoc.GetType() != InventoryLocationType.HANDS )
54 {
55 if (oldLoc.GetParent())
56 {
57 PlayerBase old_p = PlayerBase.Cast(oldLoc.GetParent().GetHierarchyRootPlayer());
58 if (old_p)
59 {
60 MiscGameplayFunctions.TransformRestrainItem(this, null, old_p, old_p);
61 return;
62 }
63 }
64
65 Delete();
66 }
67 }
68 }

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

◆ EEItemLocationChanged() [2/3]

override void EEItemLocationChanged ( notnull InventoryLocation oldLoc,
notnull InventoryLocation newLoc )
inlineprivate
65 {
66 super.EEItemLocationChanged(oldLoc, newLoc);
68 }
void UpdateSelections()
Definition PileOfWoodenPlanks.c:12

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

◆ EEItemLocationChanged() [3/3]

override void EEItemLocationChanged ( notnull InventoryLocation oldLoc,
notnull InventoryLocation newLoc )
inlineprivate
26 {
27 super.EEItemLocationChanged(oldLoc, newLoc);
28
29 if (GetLight())
30 {
31 GetLight().UpdateMode();
32 }
33 }
ScriptedLightBase GetLight()

Перекрестные ссылки Switchable_Base::GetLight().

◆ EEKilled()

override void EEKilled ( Object killer)
inlineprivate
71 {
72 super.EEKilled(killer);
73
75 GetInventory().GetCurrentInventoryLocation(inventoryLocation);
76 if (!inventoryLocation || !inventoryLocation.IsValid())
77 return;
78
79 if (inventoryLocation.GetType() == InventoryLocationType.HANDS)
80 {
82 if (player && player.IsRestrained())
83 {
84 player.SetRestrained(false);
85 MiscGameplayFunctions.TransformRestrainItem(this, null, player, player);
86 }
87 }
88 }

◆ EEOnAfterLoad() [1/2]

override void EEOnAfterLoad ( )
inlineprivate
189 {
190 GetGame().GetCallQueue( CALL_CATEGORY_GAMEPLAY ).CallLater( SyncSlots, 500, false, this );
191 super.EEOnAfterLoad();
192 }
void SyncSlots()
Definition GardenBase.c:194

Перекрестные ссылки CALL_CATEGORY_GAMEPLAY, GetGame() и SyncSlots().

◆ EEOnAfterLoad() [2/2]

override void EEOnAfterLoad ( )
inlineprotected
507 {
509 {
510 GetGame().GetCallQueue( CALL_CATEGORY_GAMEPLAY ).CallLater( SetPartsAfterStoreLoad, 500, false, this );
511 }
512
513 super.EEOnAfterLoad();
514 }

Перекрестные ссылки CALL_CATEGORY_GAMEPLAY, GetGame(), m_FixDamageSystemInit и SetPartsAfterStoreLoad().

◆ EOnInit() [1/3]

override void EOnInit ( IEntity other,
int extra )
inlineprivate
96 {
99 }
void CheckRainTick()
Definition GardenBase.c:781
void UpdateTexturesOnAllSlots()
Definition GardenBase.c:137

◆ EOnInit() [2/3]

override void EOnInit ( IEntity other,
int extra )
inlineprotected
63 {
64 if (GetGame().IsServer())
65 {
66 m_FuelPercentage = GetCompEM().GetEnergy0To100();
67 SetSynchDirty();
68 }
69
71 }
int m_FuelPercentage
Definition PowerGenerator.c:6
void UpdateFuelMeter()
Definition PowerGenerator.c:259

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

◆ EOnInit() [3/3]

override void EOnInit ( IEntity other,
int extra )
inlineprotected
72 {
73 if (!IsHologram())
74 {
76 HideSelection(SEL_CORD_FOLDED_F);
77 }
78 else
79 {
80 Unfold();
81 }
82 }
static const string SEL_CORD_FOLDED_F
Definition Spotlight.c:15
void Unfold()
Definition Spotlight.c:263
void UpdateAllSelections()
Definition MetalWire.c:32

Перекрестные ссылки IsHologram(), Unfold() и UpdateAllSelections().

◆ EvaluateCatch()

void EvaluateCatch ( )
inlineprotected
471 {
472 #ifdef DEVELOPER
474 #endif
475
476 m_IsPastWaitingTime = true;
478
479 #ifdef DEVELOPER
480 if (IsCLIParam("catchingLogs"))
481 {
482 Print("dbgTrapz | m_dbgAttemptCount: " + m_dbgAttemptCount + "/" + (m_MaxActiveTime/m_UpdateWaitTime));
483 }
484 #endif
485
486 bool success = false;
488 if (m_CanCatch)
489 {
490 if (m_CatchingContext.RollCatch())
491 {
492 success = true;
493
494 #ifdef DEVELOPER
495 if (IsCLIParam("catchingLogs"))
496 {
497 Print("dbgTrapz | success!!!");
498 Print("---------------------");
499 }
500 #endif
501 }
502 }
503
504 m_Timer.Stop();
505
507 {
508 SetUsed();
509 return;
510 }
511
512 if (success)
513 {
517 }
518 else
519 {
520 RunTrappingTimer(m_UpdateWaitTime,"EvaluateCatch");
521 }
522 }
bool m_CanCatch
Definition TrapSpawnBase.c:4
float m_CurrentlyUsedDelta
Definition TrapSpawnBase.c:24
bool SetCanCatch(out EntityAI bait)
Definition TrapSpawnBase.c:647
int m_UpdateWaitTime
Definition TrapSpawnBase.c:10
EntityAI m_Bait
DEPRECATED.
Definition TrapSpawnBase.c:866
void RunTrappingTimer(float duration, string fnName)
generic trapping launcher for traps, use this to store delta info
Definition TrapSpawnBase.c:323
int m_MaxActiveTime
Catch spawn and player check interval (expensive-ish)
Definition TrapSpawnBase.c:12
void IncreaseElapsedTime()
Definition TrapSpawnBase.c:436
void SetUsed()
Definition TrapSpawnBase.c:401
void TrySpawnCatch()
Definition TrapSpawnBase.c:535
bool m_IsPastWaitingTime
Definition TrapSpawnBase.c:34

Перекрестные ссылки IsCLIParam(), m_Bait, m_Timer и Print().

◆ Fertilize()

void Fertilize ( PlayerBase player,
ItemBase item,
float consumed_quantity,
string selection_component )
inlineprivate
449 {
451
452 if ( slot != NULL )
453 {
454 string item_type = item.GetType();
455
456 if ( slot.GetFertilityType() == "" || slot.GetFertilityType() == item_type )
457 {
458 slot.SetFertilityType(item_type);
459
460 float add_energy_to_slot = GetGame().ConfigGetFloat( string.Format("cfgVehicles %1 Horticulture AddEnergyToSlot", item_type) );
461 slot.m_FertilizerUsage = GetGame().ConfigGetFloat( string.Format("cfgVehicles %1 Horticulture ConsumedQuantity", item_type) );
462
463 float coef = Math.Clamp( consumed_quantity / slot.m_FertilizerUsage, 0.0, 1.0 );
465
466 slot.m_FertilizerQuantity += consumed_quantity;
467 slot.m_Fertility += add_energy_to_slot;
468
469 if ( slot.GetFertilizerQuantity() >= slot.GetFertilizerQuantityMax() )
470 {
471 int slot_index = slot.GetSlotIndex();
472
473 if (slot_index > -1)
474 {
476 slot.SetFertilityState(eFertlityState.FERTILIZED);
477 // Set relevant bit
478 m_SlotFertilityState |= slot.GetFertilityState() << slot.GetSlotIndex();
479 }
480 }
481 }
482 else
483 {
484 slot.SetFertilizerQuantity(0);
485 slot.SetFertilityType("");
486 slot.SetFertilityState(eFertlityState.NONE);
487 }
488 SetSynchDirty();
489 }
490 }
eFertlityState
Definition Slot.c:2
int m_SlotFertilityState
Definition GardenBase.c:26
void UpdateSlotTexture(int slot_index)
Definition GardenBase.c:531

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

◆ Flag_Base()

void Flag_Base ( )
inlineprivate
4 {
5 //synchronized variables
6 //RegisterNetSyncVariableBool( "m_IsMounted" );
7 ShowSelection("folded");
8 HideSelection("unfolded");
9 }

◆ Fold() [1/2]

void Fold ( )
inlineprotected
255 {
256 if ( GetGame().IsServer() && m_IsFoldable == true )
257 {
258 SetInactive();
259 }
260 }
void SetInactive()
Definition TrapSpawnBase.c:379
bool m_IsFoldable
Definition TrapSpawnBase.c:3

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

Используется в OnInitEnergy(), OnIsUnplugged(), OnItemLocationChanged(), OnPlacementCancelled() и OnStoreLoad().

◆ Fold() [2/2]

void Fold ( bool keep_connected = false)
inlineprotected
251 {
252 m_IsFolded = true;
253 if (!keep_connected)
254 {
255 GetCompEM().SwitchOff();
256 GetCompEM().UnplugThis();
257 }
258
260 SetSynchDirty();
261 }
bool m_IsFolded
Definition Spotlight.c:3

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

◆ FoldBaseBuildingObject()

ItemBase FoldBaseBuildingObject ( )
inlineprotected
1000 {
1003
1004 return item;
1005 }
ItemBase CreateConstructionKit()
Definition BaseBuildingBase.c:352
void DestroyConstruction()
Definition BaseBuildingBase.c:389

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

◆ ForceIntoHandsNow()

void ForceIntoHandsNow ( PlayerBase player)
inlineprivate
21 {
22 m_ForceIntoHands = true;
23 player.LocalTakeEntityToHands(this); // Local, because ForceIntoHandsNow is executed on both, Client and Server
24 m_ForceIntoHands = false;
25 }

◆ FullyBuild()

void FullyBuild ( )
inlineprotected
1193 {
1195 array<ConstructionPart> parts = GetConstruction().GetConstructionParts().GetValueArray();
1196
1197 Man p;
1198
1199 #ifdef SERVER
1201 GetGame().GetWorld().GetPlayerList(players);
1202 if (players.Count())
1203 p = players[0];
1204 #else
1205 p = GetGame().GetPlayer();
1206 #endif
1207
1208 foreach (ConstructionPart part : parts)
1209 {
1210 bool excluded = false;
1211 string partName = part.GetPartName();
1212 if (excludes)
1213 {
1214 foreach (string exclude : excludes)
1215 {
1216 if (partName.Contains(exclude))
1217 {
1218 excluded = true;
1219 break;
1220 }
1221 }
1222 }
1223
1224 if (!excluded)
1225 {
1227 }
1228 }
1229
1230 GetConstruction().UpdateVisuals();
1231 }
const int AT_BUILD_PART
Definition _constants.c:6
void OnPartBuiltServer(notnull Man player, string part_name, int action_id)
Definition BaseBuildingBase.c:563
array< string > OnDebugSpawnBuildExcludes()
Excludes certain parts from being built by OnDebugSpawn, uses Contains to compare.
Definition BaseBuildingBase.c:1182

Перекрестные ссылки AT_BUILD_PART, GetConstruction(), GetGame(), BaseBuildingBase::OnDebugSpawnBuildExcludes() и BaseBuildingBase::OnPartBuiltServer().

◆ GardenBase()

void GardenBase ( )
inlineprivate
35 {
36 RegisterNetSyncVariableInt("m_SlotFertilityState");
37 RegisterNetSyncVariableInt("m_SlotWateredState");
38
40
41 SetEventMask(EntityEvent.INIT); // Enable EOnInit event
42
43 // Prepare m_map_slots
44 for (int i = 1; i <= GetGardenSlotsCount() ; ++i)
45 {
46 // m_map_slots is supposed to be: <input, output>
47 string input = SLOT_SEEDBASE_PREFIX + i.ToString();
49
50 if (i < 10)
51 output = output + "0"; // Example: '1' changes to '01'
52
53 output = output + i.ToString();
54
56 }
57
58 if ( GetGame().IsServer() )
59 {
61 }
62
64
66 }
void SetMaxWaterStateVal()
Definition GardenBase.c:120
void CheckRainStart()
Definition GardenBase.c:773
static const string SLOT_SEEDBASE_PREFIX
Definition GardenBase.c:20
void InitializeSlots()
Definition GardenBase.c:101
EntityEvent
Entity events for event-mask, or throwing event from code.
Definition EnEntity.c:45

Перекрестные ссылки GetGame() и GardenBase::GetGardenSlotsCount().

◆ GetAttachmentSlots()

void GetAttachmentSlots ( EntityAI entity,
out array< string > attachment_slots )
inlineprotected
863 {
864 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
865 if ( GetGame().ConfigIsExisting( config_path ) )
866 {
867 GetGame().ConfigGetTextArray( config_path, attachment_slots );
868 }
869 }

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

◆ GetBandagingEffectivity() [1/2]

override float GetBandagingEffectivity ( )
inlineprivate
50 {
51 return 2.0;
52 };

◆ GetBandagingEffectivity() [2/2]

override float GetBandagingEffectivity ( )
inlineprivate
118 {
119 return 0.5;
120 }

◆ GetBaseFertility()

float GetBaseFertility ( )
inlineprivate
91 {
92 return m_DefaultFertility;
93 }
float m_DefaultFertility
Definition GardenBase.c:29

◆ GetBloodTypeVisible()

bool GetBloodTypeVisible ( )
inlineprivate
22 {
24 }
bool m_IsBloodTypeVisible
Definition BloodContainerBase.c:3

◆ GetBuildSoundByMaterial()

string GetBuildSoundByMaterial ( string part_name)
inlineprotected
1116 {
1118
1119 switch ( material_type )
1120 {
1121 case ConstructionMaterialType.MATERIAL_LOG: return SOUND_BUILD_WOOD_LOG;
1122 case ConstructionMaterialType.MATERIAL_WOOD: return SOUND_BUILD_WOOD_PLANK;
1123 case ConstructionMaterialType.MATERIAL_STAIRS: return SOUND_BUILD_WOOD_STAIRS;
1124 case ConstructionMaterialType.MATERIAL_METAL: return SOUND_BUILD_METAL;
1125 case ConstructionMaterialType.MATERIAL_WIRE: return SOUND_BUILD_WIRE;
1126 }
1127
1128 return "";
1129 }
ConstructionMaterialType
Definition Construction.c:2
const string SOUND_BUILD_WOOD_LOG
Definition BaseBuildingBase.c:20
const string SOUND_BUILD_WOOD_PLANK
Definition BaseBuildingBase.c:21
const string SOUND_BUILD_WIRE
Definition BaseBuildingBase.c:24
const string SOUND_BUILD_WOOD_STAIRS
Definition BaseBuildingBase.c:22
const string SOUND_BUILD_METAL
Definition BaseBuildingBase.c:23

Перекрестные ссылки GetConstruction(), SOUND_BUILD_METAL, SOUND_BUILD_WIRE, SOUND_BUILD_WOOD_LOG, SOUND_BUILD_WOOD_PLANK и SOUND_BUILD_WOOD_STAIRS.

◆ GetClutterCutter()

string GetClutterCutter ( )
inlineprotected
806{};

◆ GetConstruction()

Construction GetConstruction ( )
inlineprotected
898 {
899 return m_Construction;
900 }

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

◆ GetConstructionKitType()

string GetConstructionKitType ( )
inlineprotected
378 {
379 return "";
380 }

◆ GetConstructionPartById()

ConstructionPart GetConstructionPartById ( int id)
inlineprotected
311 {
314
315 for ( int i = 0; i < construction_parts.Count(); ++i )
316 {
317 string key = construction_parts.GetKey( i );
319
320 if ( value.GetId() == id )
321 {
322 return value;
323 }
324 }
325
326 return NULL;
327 }

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

◆ GetCookingEquipment()

ItemBase GetCookingEquipment ( )
inlineprotected
36 {
37 return m_CookingEquipment;
38 }
ItemBase m_CookingEquipment
Definition PortableGasStove.c:19

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

◆ GetCropsType()

string GetCropsType ( )
inlineprivate
174 {
175 return m_CropsType;
176 }
string m_CropsType
Definition PlantBase.c:16

◆ GetDamageSystemVersionChange() [1/2]

override int GetDamageSystemVersionChange ( )
inlineprotected
1161 {
1162 return 111;
1163 }

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

◆ GetDamageSystemVersionChange() [2/2]

override int GetDamageSystemVersionChange ( )
inlineprotected
920 {
921 return 110;
922 }

◆ GetDebugActions()

override void GetDebugActions ( out TSelectableActionInfoArrayEx outputList)
inlineprotected
402 {
403 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "PowerGenerator Fuel", FadeColors.RED));
404 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.GENERIC_FUEL_FULL, "Full", FadeColors.LIGHT_GREY));
405 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.GENERIC_FUEL_EMPTY, "Empty", FadeColors.LIGHT_GREY));
406 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.GENERIC_FUEL_INCREASE, "10% increase", FadeColors.LIGHT_GREY));
407 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.GENERIC_FUEL_DECREASE, "10% decrease", FadeColors.LIGHT_GREY));
408 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "___________________________", FadeColors.RED));
409
410 super.GetDebugActions(outputList);
411 }
Param4< int, int, string, int > TSelectableActionInfoWithColor
Definition EntityAI.c:97
EActions
Definition EActions.c:2
const int SAT_DEBUG_ACTION
Definition constants.c:431

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

◆ GetDeployFinishSoundset()

override string GetDeployFinishSoundset ( )
inlineprotected
120 {
121 return "";
122 }

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

◆ GetDeploySoundset() [1/3]

override string GetDeploySoundset ( )
inlineprotected
402 {
403 return "placeBarbedWire_SoundSet";
404 }

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

◆ GetDeploySoundset() [2/3]

override string GetDeploySoundset ( )
inlineprotected
109 {
110 return "putDown_FenceKit_SoundSet";
111 }

◆ GetDeploySoundset() [3/3]

override string GetDeploySoundset ( )
inlineprotected
384 {
385 return "placeSpotlight_SoundSet";
386 }

◆ GetDisarmRate()

int GetDisarmRate ( )
inlineprotected
12 {
13 return m_MineDisarmRate;
14 }
int m_MineDisarmRate
Definition ToolBase.c:4

◆ GetDismantleSoundByMaterial()

string GetDismantleSoundByMaterial ( string part_name)
inlineprotected
1132 {
1134
1135 switch ( material_type )
1136 {
1137 case ConstructionMaterialType.MATERIAL_LOG: return SOUND_DISMANTLE_WOOD_LOG;
1138 case ConstructionMaterialType.MATERIAL_WOOD: return SOUND_DISMANTLE_WOOD_PLANK;
1139 case ConstructionMaterialType.MATERIAL_STAIRS: return SOUND_DISMANTLE_WOOD_STAIRS;
1140 case ConstructionMaterialType.MATERIAL_METAL: return SOUND_DISMANTLE_METAL;
1141 case ConstructionMaterialType.MATERIAL_WIRE: return SOUND_DISMANTLE_WIRE;
1142 }
1143
1144 return "";
1145 }
const string SOUND_DISMANTLE_METAL
Definition BaseBuildingBase.c:29
const string SOUND_DISMANTLE_WOOD_PLANK
Definition BaseBuildingBase.c:27
const string SOUND_DISMANTLE_WOOD_LOG
Definition BaseBuildingBase.c:26
const string SOUND_DISMANTLE_WIRE
Definition BaseBuildingBase.c:30
const string SOUND_DISMANTLE_WOOD_STAIRS
Definition BaseBuildingBase.c:28

Перекрестные ссылки GetConstruction(), SOUND_DISMANTLE_METAL, SOUND_DISMANTLE_WIRE, SOUND_DISMANTLE_WOOD_LOG, SOUND_DISMANTLE_WOOD_PLANK и SOUND_DISMANTLE_WOOD_STAIRS.

◆ GetEnergyNeededToCharge()

float GetEnergyNeededToCharge ( )
inlineprivate
36 {
37 string cfg_path = "CfgVehicles " + GetType() + " ";
38 return GetGame().ConfigGetFloat (cfg_path + "defibEnergyNeededPerCharge");
39 }

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

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

◆ GetFuel()

float GetFuel ( )
inlineprotected
331 {
332 return Math.Clamp(GetCompEM().GetEnergy() / m_FuelToEnergyRatio, 0.0, GetMaxFuel());
333 }
static float m_FuelToEnergyRatio
Definition PowerGenerator.c:5

Перекрестные ссылки Math::Clamp() и GetEnergy().

◆ GetGarden()

GardenBase GetGarden ( )
inlineprivate
854 {
855 return m_GardenBase;
856 }
GardenBase m_GardenBase
Definition PlantBase.c:39

◆ GetGardenSlotsCount()

int GetGardenSlotsCount ( )
inlineprivate
309 {
310 return 0;
311 }

◆ GetGasCanister()

EntityAI GetGasCanister ( )
inlineprotected
112 {
113 if (GetInventory().AttachmentCount() != 0)
114 {
115 return GetInventory().GetAttachmentFromIndex(0);
116 }
117
118 return null;
119 }

◆ GetHideIconMask() [1/2]

override int GetHideIconMask ( )
inlineprivate
81 {
82 return EInventoryIconVisibility.HIDE_VICINITY;
83 }

◆ GetHideIconMask() [2/2]

override int GetHideIconMask ( )
inlineprotected
90 {
91 return EInventoryIconVisibility.HIDE_VICINITY;
92 }

◆ GetInfectionChance() [1/2]

override float GetInfectionChance ( int system = 0,
Param param = null )
inlineprivate
60 {
61 if(m_Cleanness == 1)
62 {
63 return 0;
64 }
65 else
66 {
67 return 0.05;
68 }
69 }
int m_Cleanness
Definition ItemBase.c:4803

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

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

◆ GetInfectionChance() [2/2]

override float GetInfectionChance ( int system = 0,
Param param = null )
inlineprivate
123 {
124 if (m_Cleanness == 1)
125 return 0;
126
127 return 0.15;
128 }

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

◆ GetInvulnerabilityTypeString() [1/2]

override string GetInvulnerabilityTypeString ( )
inlineprotected
80 {
81 return "disableBaseDamage";
82 }

◆ GetInvulnerabilityTypeString() [2/2]

override string GetInvulnerabilityTypeString ( )
inlineprotected
68 {
69 return "disableContainerDamage";
70 }

◆ GetItemVisibility()

float GetItemVisibility ( )
inlineprivate
846 {
848 }

◆ GetKitSpawnPosition()

vector GetKitSpawnPosition ( )
inlineprotected
373 {
374 return GetPosition();
375 }

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

◆ GetLiquidThroughputCoef()

override float GetLiquidThroughputCoef ( )
inlineprotected
74 {
76 }
const float LIQUID_THROUGHPUT_GENERATOR
Definition constants.c:550

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

◆ GetLoopDeploySoundset() [1/3]

override string GetLoopDeploySoundset ( )
inlineprotected
407 {
408 return "barbedwire_deploy_SoundSet";
409 }

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

◆ GetLoopDeploySoundset() [2/3]

override string GetLoopDeploySoundset ( )
inlineprotected
114 {
115 //return "BarbedWire_Deploy_loop_SoundSet";
116 return "Shelter_Site_Build_Loop_SoundSet";
117 }

◆ GetLoopDeploySoundset() [3/3]

override string GetLoopDeploySoundset ( )
inlineprotected
389 {
390 return "spotlight_deploy_SoundSet";
391 }

◆ GetMaxFuel()

float GetMaxFuel ( )
inlineprotected
337 {
338 return m_FuelTankCapacity;
339 }
static float m_FuelTankCapacity
Definition PowerGenerator.c:4

◆ GetMaxWaterStateVal()

int GetMaxWaterStateVal ( )
inlineprivate
133 {
135 }
int m_MaxWateredStateVal
Definition GardenBase.c:28

◆ GetMeleeTargetType()

override int GetMeleeTargetType ( )
inlineprotected
94 {
95 return EMeleeTargetType.NONALIGNABLE;
96 }
EMeleeTargetType
Definition EMeleeTargetType.c:2

◆ GetNearestSlotIDByState()

int GetNearestSlotIDByState ( vector position,
int slot_state )
inlineprivate
741 {
742 float nearest_distance = 1000.0;
743 int nearest_slot_index = -1;
745 for ( int i = 0; i < slots_count; i++ )
746 {
747 Slot slot = m_Slots.Get(i); // Move this line by a scope higher in this function after debugging
748
751
753 {
754 if ( slot != NULL && slot.m_State == slot_state )
755 {
758 }
759 }
760 }
761
762 return nearest_slot_index;
763 }
vector GetSlotPosition(int index)
Definition GardenBase.c:765
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.

Перекрестные ссылки vector::Distance() и GardenBase::GetGardenSlotsCount().

◆ GetOnDigWormsAmount() [1/3]

override int GetOnDigWormsAmount ( )
inlineprivate
28 {
29 return 3;
30 }

◆ GetOnDigWormsAmount() [2/3]

override int GetOnDigWormsAmount ( )
inlineprivate
34 {
35 return 3;
36 }

◆ GetOnDigWormsAmount() [3/3]

override int GetOnDigWormsAmount ( )
inlineprivate
33 {
34 return 3;
35 }

◆ GetPlaceSoundset() [1/4]

override string GetPlaceSoundset ( )
inlineprotected
430 {
431 return "placeBatteryCharger_SoundSet";
432 }

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

◆ GetPlaceSoundset() [2/4]

override string GetPlaceSoundset ( )
inlineprivate
115 {
116 return "placeCableReel_SoundSet";
117 }

◆ GetPlaceSoundset() [3/4]

override string GetPlaceSoundset ( )
inlineprotected
374 {
375 return "placePowerGenerator_SoundSet";
376 }

◆ GetPlaceSoundset() [4/4]

override string GetPlaceSoundset ( )
inlineprivate
69 {
70 return "placeRefridgerator_SoundSet";
71 }

◆ GetPlantState()

int GetPlantState ( )
inlineprivate
763 {
764 return m_PlantState;
765 }
int m_PlantState
Definition PlantBase.c:19

◆ GetPlantStateIndex()

int GetPlantStateIndex ( )
inlineprivate
768 {
769 return m_PlantStateIndex;
770 }
int m_PlantStateIndex
Definition PlantBase.c:20

◆ GetSlot()

Slot GetSlot ( )
inlineprivate
849 {
850 return m_Slot;
851 }
ref Slot m_Slot
Definition PlantBase.c:40

◆ GetSlotByIndex()

Slot GetSlotByIndex ( int index)
inlineprivate
834 {
835 return m_Slots.Get(index);
836 }

◆ GetSlotBySelection()

Slot GetSlotBySelection ( string selection_component)
inlineprivate
662 {
664
665 if ( slot_index > -1 )
666 {
667 return m_Slots.Get( slot_index );
668 }
669 else
670 {
671 return NULL;
672 }
673 }
int GetSlotIndexBySelection(string selection_component)
Definition GardenBase.c:676

◆ GetSlotIndexByAttachmentSlot()

int GetSlotIndexByAttachmentSlot ( string att_slot)
inlineprivate
709 {
710 int slot_index = -1;
711
712 int start = "SeedBase_".Length();
713 int end = att_slot.Length();//start + 2;
714 int len = end - start;
715
716 string num_str = att_slot.Substring( start, len );
717 slot_index = num_str.ToInt();
718
719 return slot_index;
720 }

◆ GetSlotIndexByPlant()

int GetSlotIndexByPlant ( Object plant)
inlineprivate
723 {
724 if ( m_Slots != NULL )
725 {
726 for ( int i = 0; i < m_Slots.Count(); i++ )
727 {
728 PlantBase found_plant = m_Slots.Get(i).GetPlant();
729
730 if ( found_plant == plant )
731 {
732 return i;
733 }
734 }
735 }
736
737 return -1;
738 }

◆ GetSlotIndexBySelection()

int GetSlotIndexBySelection ( string selection_component)
inlineprivate
677 {
678 int slot_index = -1;
679
680 if ( m_Slots != NULL )
681 {
684
686
687 if ( start > -1 )
688 {
690 int end = start + 2;
691 int length = selection_component.Length();
692
693 if ( length >= end )
694 {
695 int length_add = length - end; // Hack-fix for inconsistent component names in p3d
696 int length_from_end = 2 + length_add;
697 string num_str = selection_component.Substring( start, length_from_end );
698 slot_index = num_str.ToInt();
699
701 }
702 }
703 }
704
705 return slot_index;
706 }

Перекрестные ссылки string::Length().

◆ GetSlotLockedState()

bool GetSlotLockedState ( )
inlineprotected
56 {
57 BaseBuildingBase base_building = BaseBuildingBase.Cast( GetHierarchyParent() );
58 if ( base_building )
59 {
61 GetInventory().GetCurrentInventoryLocation( inventory_location );
62 return base_building.GetInventory().GetSlotLock( inventory_location.GetSlot() );
63 }
64
65 return false;
66 }
Definition Fence.c:2

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

◆ GetSlotPosition()

vector GetSlotPosition ( int index)
inlineprivate
766 {
768 vector pos = this.GetSelectionPositionMS( memory_point );
769
770 return this.ModelToWorld( pos );
771 }
string ToStringLen(int len)
Integer to string with fixed length, padded with zeroes.
Definition EnConvert.c:59

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

◆ GetSlots()

array< ref Slot > GetSlots ( )
inlineprivate
829 {
830 return m_Slots;
831 }

◆ GetSlotWateredState()

int GetSlotWateredState ( )
inlineprivate
839 {
840 return m_SlotWateredState;
841 }
int m_SlotWateredState
Definition GardenBase.c:27

◆ GetSmokeParticleOrientation()

vector GetSmokeParticleOrientation ( )
inlineprotected
84 {
85 return "270 0 0";
86 }

◆ GetSmokeParticlePosition()

vector GetSmokeParticlePosition ( )
inlineprotected
79 {
80 return "0.3 0.21 0.4";
81 }

◆ GetSoundClose()

string GetSoundClose ( )
inlineprotected
768{};

◆ GetSoundCloseWindow()

string GetSoundCloseWindow ( )
inlineprotected
772{};

◆ GetSoundOpen()

string GetSoundOpen ( )
inlineprotected
766{};

◆ GetSoundOpenWindow()

string GetSoundOpenWindow ( )
inlineprotected
770{};

◆ GetSprayQuantity()

float GetSprayQuantity ( )
inlineprivate
815 {
816 return m_SprayQuantity;
817 }
float m_SprayQuantity
Definition PlantBase.c:24

◆ GetSprayUsage()

float GetSprayUsage ( )
inlineprivate
820 {
821 return m_SprayUsage;
822 }
float m_SprayUsage
Definition PlantBase.c:9

◆ GetStashedItem()

ItemBase GetStashedItem ( )
inlineprivate
14 {
16 if (GetInventory().GetCargo().GetItemCount() > 0)
17 {
18 item = ItemBase.Cast(GetInventory().GetCargo().GetItem(0));
19 }
20
21 return item;
22 }
EntityAI GetItem()
Definition RadialQuickbarMenu.c:37

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

◆ GetState()

int GetState ( )
inlineprotected
450 {
451 return m_State;
452 }
int m_State
Definition TentBase.c:24

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

◆ GetStateLocal()

int GetStateLocal ( )
inlineprotected
455 {
456 return m_StateLocal;
457 }
int m_StateLocal
Definition TentBase.c:25

◆ GetTemperatureValue()

float GetTemperatureValue ( PlayerBase player)
inlineprivate
4 {
5 float value;
6 if (player && player.IsSyncedModifierActive(eModifierSyncIDs.MODIFIER_SYNC_FEVER))
7 {
9 }
10 else
11 {
13 }
14 value = Math.Round(value * 10) / 10;
15 return value;
16 }
eModifierSyncIDs
Definition ModifiersManager.c:3
Definition PlayerConstants.c:2
static const float HIGH_TEMPERATURE_L
Definition PlayerConstants.c:53
static const float HIGH_TEMPERATURE_H
Definition PlayerConstants.c:54
static const float NORMAL_TEMPERATURE_H
Definition PlayerConstants.c:52
static const float NORMAL_TEMPERATURE_L
Definition PlayerConstants.c:51
static proto float Round(float f)
Returns mathematical round of value.
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
Definition EnMath.c:106

Перекрестные ссылки PlayerConstants::HIGH_TEMPERATURE_H, PlayerConstants::HIGH_TEMPERATURE_L, PlayerConstants::NORMAL_TEMPERATURE_H, PlayerConstants::NORMAL_TEMPERATURE_L, Math::RandomFloatInclusive() и Math::Round().

◆ GetTimeNeededToCharge()

float GetTimeNeededToCharge ( )
inlineprivate
30 {
31 string cfg_path = "CfgVehicles " + GetType() + " ";
32 return GetGame().ConfigGetFloat (cfg_path + "defibChargeTime");
33 }

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

◆ GetViewIndex() [1/3]

override int GetViewIndex ( )
inlineprivate
91 {
92 if ( MemoryPointExists( "invView2" ) )
93 {
95 GetInventory().GetCurrentInventoryLocation( il );
96 InventoryLocationType type = il.GetType();
97 switch ( type )
98 {
99 case InventoryLocationType.ATTACHMENT:
100 {
101 return 1;
102 }
103 default:
104 {
105 return 0;
106 }
107 }
108 }
109 return 0;
110 }

◆ GetViewIndex() [2/3]

override int GetViewIndex ( )
inlineprotected
394 {
395 if (MemoryPointExists("invView2") && !m_IsFolded)
396 {
397 return 1;
398 }
399
400 return 0;
401 }

◆ GetViewIndex() [3/3]

override int GetViewIndex ( )
inlineprotected
416 {
417 if (MemoryPointExists("invView2"))
418 {
420 GetInventory().GetCurrentInventoryLocation(il);
421 InventoryLocationType type = il.GetType();
422
423 if (GetState() == PACKED)
424 {
425 switch (type)
426 {
427 case InventoryLocationType.ATTACHMENT:
428 return 1;
429 default:
430 return 0;
431 }
432 }
433 else
434 {
435 switch (type)
436 {
437 case InventoryLocationType.ATTACHMENT:
438 case InventoryLocationType.GROUND:
439 return 1;
440 default:
441 return 0;
442 }
443 }
444 }
445
446 return 0;
447 }

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

◆ GetVoiceEffect()

int GetVoiceEffect ( )
inlineprivate

The voice effect this item uses, default is 0 (none)

955 {
956 return 0;
957 }

◆ GetWater()

float GetWater ( )
inlineprivate
773 {
774 if ( GetSlot() )
775 return GetSlot().GetWater();
776
777 return 0;
778 }
Slot GetSlot()
Definition PlantBase.c:848

◆ GetWaterMax()

float GetWaterMax ( )
inlineprivate
781 {
782 if ( GetSlot() )
783 return GetSlot().GetWaterUsage();
784
785 return 0;
786 }

◆ GetWrittenNoteData()

override WrittenNoteData GetWrittenNoteData ( )
inlineprotected
31 {
32 return m_NoteContents;
33 }
ref WrittenNoteData m_NoteContents
Definition Paper.c:3

Используется в InventoryItem::OnRPC(), ActionWritePaper::OnStartClient() и ActionWritePaper::OnStartServer().

◆ GreenLightOff()

void GreenLightOff ( )
inlineprotected
317 {
318 SetObjectMaterial( 2, DEFAULT_MATERIAL );
319 }
const string DEFAULT_MATERIAL
Definition BatteryCharger.c:21

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

◆ GreenLightOn()

void GreenLightOn ( )
inlineprotected
300 {
301 SetObjectMaterial( 2, GREEN_LIGHT_GLOW );
302 }
const string GREEN_LIGHT_GLOW
Definition BatteryCharger.c:18

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

◆ GrowthTimerTick()

void GrowthTimerTick ( )
inlineprivate
523 {
524 if ( IsGrowing() )
525 {
527 {
529 UpdatePlant();
530 SetSynchDirty();
531
532 if ( m_PlantStateIndex == 0 )
533 {
536
539
540 if (GetGame().IsServer())
541 {
544
545 m_InfestationTimer.Run( Math.RandomInt(int_infestation_time_min, int_infestation_time_max), this, "InfestationTimerTick", NULL, false );
546 }
547 }
548
550 {
551 if ( m_IsInfested )
552 {
553 SetSpoiled();
554 }
555 else
556 {
558 }
559 }
560 }
561 }
562 else if ( IsMature() )
563 {
564 if (GetGame().IsServer())
565 {
568
569 if ( !m_SpoilAfterFullMaturityTimer.IsRunning() )
570 m_SpoilAfterFullMaturityTimer.Run( m_SpoilAfterFullMaturityTime, this, "SetSpoiled", NULL, false );
571 }
572 }
573 }
Param3 int
bool IsGrowing()
Definition PlantBase.c:870
ref Timer m_InfestationTimer
Definition PlantBase.c:34
int m_GrowthStagesCount
Definition PlantBase.c:13
void SetSpoiled()
Definition PlantBase.c:603
ref Timer m_SpoilAfterFullMaturityTimer
Definition PlantBase.c:35
static const int STATE_MATURE
Definition PlantBase.c:6
void UpdatePlant()
Definition PlantBase.c:489
int m_SpoilAfterFullMaturityTime
Definition PlantBase.c:30
int m_FullMaturityTime
Definition PlantBase.c:29
Definition EnConvert.c:97
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].

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

◆ HandleBaitLoss()

void HandleBaitLoss ( )
inlineprotected
750 {
752 {
754 m_CatchingContext.RemoveBait();
755 else
757 }
758 }
bool m_IsCatchSuccessful
Definition TrapSpawnBase.c:25
float m_BaitLossFraction
Max time of trap activity (seconds)
Definition TrapSpawnBase.c:13

◆ HandleCamoNetAttachment()

void HandleCamoNetAttachment ( bool hide)
inlineprotected
758 {
759 SetAnimationPhase("CamoNet", hide);
760 }

◆ HandleOpeningsPhysics()

void HandleOpeningsPhysics ( )
inlineprotected
884 {
885 bool is_closed;
886 bool is_ruined;
887 int hplevel;
888 string zone;
889 string component;
891
892 for (int i = 0; i < m_ToggleAnimations.Count(); i++)
893 {
894 toggle = m_ToggleAnimations.GetKey(i);
895 is_closed = m_OpeningMask & toggle.GetOpeningBit();
896 component = toggle.GetToggleOff(); //either one works
897 component.ToLower();
898 DamageSystem.GetDamageZoneFromComponentName(this,component,zone);
899 is_ruined = (GetHealthLevel(zone) == GameConstants.STATE_RUINED);
900
901 //re-adding physics to avoid proxy physics stacking
902 RemoveProxyPhysics(toggle.GetToggleOff());
903 RemoveProxyPhysics(toggle.GetToggleOn());
904
905 if (!is_ruined && GetState() == PITCHED)
906 {
907 if (is_closed)
908 {
909 AddProxyPhysics(toggle.GetToggleOn());
910 }
911 else
912 {
913 AddProxyPhysics(toggle.GetToggleOff());
914 }
915 }
916 }
917 }
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.
int m_OpeningMask
Definition TentBase.c:30

Перекрестные ссылки component, GetState() и GameConstants::STATE_RUINED.

◆ HandleOpeningsVisuals()

void HandleOpeningsVisuals ( )
inlineprotected
851 {
852 bool is_closed;
853 bool is_ruined;
854 string zone;
855 string component;
857
858 for (int i = 0; i < m_ToggleAnimations.Count(); i++)
859 {
860 toggle = m_ToggleAnimations.GetKey(i);
861 is_closed = m_OpeningMask & toggle.GetOpeningBit();
862 component = toggle.GetToggleOff(); //either one works
863 component.ToLower();
864 DamageSystem.GetDamageZoneFromComponentName(this,component,zone);
865 //is_ruined = (GetHealthLevel(zone) == GameConstants.STATE_RUINED);
866
867 if (is_closed)
868 {
869 SetAnimationPhase(toggle.GetToggleOff(),1);
870 SetAnimationPhase(toggle.GetToggleOn(),is_ruined);
871 m_ToggleAnimations.Set(toggle, false);
872 }
873 else
874 {
875 SetAnimationPhase(toggle.GetToggleOn(),1);
876 SetAnimationPhase(toggle.GetToggleOff(),is_ruined);
877 m_ToggleAnimations.Set(toggle, true);
878 }
879 //AnimateCamonetToggle(toggle);
880 }
881 }

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

◆ HandleVoiceEffect()

void HandleVoiceEffect ( bool enable,
PlayerBase player )
inlineprivate
947 {
948 if ( IsObstructingVoice() && player )
950 }
void MutePlayer(PlayerBase player, bool state)
This items has effect on player's voice.
Definition InventoryItem.c:935
bool IsObstructingVoice()
Returns if this entity obsructs player's voice.
Definition InventoryItem.c:928

◆ Harvest()

void Harvest ( PlayerBase player)
inlineprivate
734 {
735 //TODO Boris: Add soft skill 2.0
736 //PluginExperience module_exp = GetPlugin(PluginExperience);
737 //float harvesting_efficiency = module_exp.GetExpParamNumber(player, PluginExperience.EXP_FARMER_HARVESTING, "efficiency");
738
739 //m_CropsCount = m_CropsCount * harvesting_efficiency;
740
741 if ( !IsSpoiled() )
742 {
743 for ( int i = 0; i < m_CropsCount; i++ )
744 {
745 vector pos = player.GetPosition();
746 ItemBase item = ItemBase.Cast( GetGame().CreateObjectEx( m_CropsType, pos, ECE_PLACE_ON_SURFACE ) );
747 item.SetQuantity( item.GetQuantityMax() );
748 }
749 }
750
751 m_HasCrops = false;
752 SetSynchDirty();
753 UpdatePlant();
754 }
bool IsSpoiled()
Definition PlantBase.c:895
bool m_HasCrops
Definition PlantBase.c:15
int m_CropsCount
Definition PlantBase.c:14

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

◆ HasAttachmentsBesidesBase()

bool HasAttachmentsBesidesBase ( )
inlineprotected
910 {
911 int attachment_count = GetInventory().AttachmentCount();
912 if ( attachment_count > 0 )
913 {
914 if ( HasBase() && attachment_count == 1 )
915 {
916 return false;
917 }
918
919 return true;
920 }
921
922 return false;
923 }

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

◆ HasBase()

bool HasBase ( )
inlineprotected
332 {
333 return m_HasBase;
334 }
bool m_HasBase
Definition BaseBuildingBase.c:10

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

◆ HasClutterCutter()

bool HasClutterCutter ( )
inlineprotected
805{};

◆ HasCrops()

bool HasCrops ( )
inlineprivate
908 {
909 return m_HasCrops;
910 }

◆ HasEnoughEnergyForRepair()

bool HasEnoughEnergyForRepair ( float pTime)
inlineprotected
122 {
123 if (GetGasCanister())
124 {
126 if (canisterEM)
127 {
128 return canisterEM.GetEnergy() > GetCompEM().GetEnergyUsage() * pTime;
129 }
130 }
131
132 return false;
133 }
Definition ComponentEnergyManager.c:19
EntityAI GetGasCanister()
Definition Blowtorch.c:111

◆ HasFlammableMaterial() [1/5]

override bool HasFlammableMaterial ( )
inlineprivate
7 {
8 return true;
9 }

◆ HasFlammableMaterial() [2/5]

override bool HasFlammableMaterial ( )
inlineprivate
7 {
8 return true;
9 }

◆ HasFlammableMaterial() [3/5]

override bool HasFlammableMaterial ( )
inlineprivate
7 {
8 return true;
9 }

◆ HasFlammableMaterial() [4/5]

override bool HasFlammableMaterial ( )
inlineprotected
39 {
40 return true;
41 }

◆ HasFlammableMaterial() [5/5]

override bool HasFlammableMaterial ( )
inlineprivate
47 {
48 return true;
49 }

◆ HasProperDistance()

bool HasProperDistance ( string selection,
PlayerBase player )
inlineprotected
984 {
985 return true;
986 }

◆ HasProxyParts() [1/3]

override bool HasProxyParts ( )
inlineprivate
76 {
77 return true;
78 }

◆ HasProxyParts() [2/3]

override bool HasProxyParts ( )
inlineprotected
17 {
18 return true;
19 }

◆ HasProxyParts() [3/3]

override bool HasProxyParts ( )
inlineprotected
73 {
74 return true;
75 }

◆ HasSparkplug()

bool HasSparkplug ( )
inlineprotected
343 {
344 int slot = InventorySlots.GetSlotIdFromString("SparkPlug");
345 EntityAI ent = GetInventory().FindAttachment(slot);
346
347 return ent && !ent.IsRuined();
348 }

Перекрестные ссылки InventorySlots::GetSlotIdFromString().

◆ HideAllAnimationsAndProxyPhysics()

void HideAllAnimationsAndProxyPhysics ( bool hide_animations = true,
bool hide_physics = true )
inlineprotected
262 {
263 string cfg_path = "cfgVehicles " + GetType() + " AnimationSources";
264
265 if (GetGame().ConfigIsExisting(cfg_path))
266 {
267 int selections = GetGame().ConfigGetChildrenCount(cfg_path);
269
270 for (int i = 0; i < selections; i++)
271 {
272 string selection_name;
273 GetGame().ConfigGetChildName(cfg_path, i, selection_name);
274 if (hide_animations)
275 {
276 SetAnimationPhase(selection_name, 1);
277 }
278
280 proxy_selection_name.ToLower();
281 if (hide_physics)
282 {
283 RemoveProxyPhysics(proxy_selection_name);
284 }
285 }
286 }
287 }

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

◆ HideAttachedClipsStates()

void HideAttachedClipsStates ( )
inlineprotected
283 {
284 for ( int i = 0; i < ATTACHED_CLIPS_STATES_COUNT; i++ )
285 {
286 string selection = ATTACHED_CLIPS_STATES[i];
287 HideSelection(selection);
288 }
289 }
const int ATTACHED_CLIPS_STATES_COUNT
Definition BatteryCharger.c:24
const string ATTACHED_CLIPS_STATES[]
Definition BatteryCharger.c:23

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

Используется в OnInventoryEnter(), OnInventoryExit(), OnOwnSocketReleased() и OnOwnSocketTaken().

◆ IgnoreOutOfReachCondition()

override bool IgnoreOutOfReachCondition ( )
inlineprotected
557 {
558 return true;
559 }

◆ IncreaseElapsedTime()

void IncreaseElapsedTime ( )
inlineprotected
437 {
439
440 #ifdef DEVELOPER
441 if (IsCLIParam("catchingLogs"))
442 {
443 Print("dbgTrapz | delta: " + m_CurrentlyUsedDelta);
444 Print("dbgTrapz | m_ElapsedTime: " + m_ElapsedTime);
445 Print("dbgTrapz | m_AdjustedMaxActiveTime: " + m_AdjustedMaxActiveTime);
446 }
447 #endif
448 }

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

◆ InfestationTimerTick()

void InfestationTimerTick ( )
inlineprivate
576 {
578
580 {
581 ChangeInfestation( true );
582 }
583 }
float m_InfestationChance
Definition PlantBase.c:11
void ChangeInfestation(bool is_infested)
Definition PlantBase.c:458

Перекрестные ссылки Math::RandomFloat01().

◆ Init()

void Init ( GardenBase garden_base,
float fertility,
float harvesting_efficiency,
float water )
inlineprivate
85 {
87
89 float divided = /*(float) ((60 * 5) + Math.RandomInt(0, 60 * 1)) / fertility;*/ m_FullMaturityTime;
90
91 //divided = (float)((60 * 30) + Math.RandomInt(0, 60 * 30)) * fertility;
93
96
99
101
102 float rain_intensity = GetGame().GetWeather().GetRain().GetActual();
103 if ( rain_intensity > 0.0 )
104 {
105 CheckWater();
106 }
107 else
108 {
109 CheckWater();
110
111 if ( NeedsWater() )
112 {
114
115 if (GetGame().IsServer())
116 {
118 m_DeleteDryPlantTimer.Run( m_DeleteDryPlantTime, this, "DeleteDryPlantTick", NULL, false );
119 }
120 }
121 }
122 }
float m_PlantMaterialMultiplier
Definition PlantBase.c:17
const float SPOIL_AFTER_MATURITY_TIME
Definition PlantBase.c:44
void CheckWater()
Definition PlantBase.c:623
static const int STATE_DRY
Definition PlantBase.c:4
int m_DeleteDryPlantTime
Definition PlantBase.c:27
static proto float Ceil(float f)
Returns ceil of value.

Перекрестные ссылки CALL_CATEGORY_SYSTEM, Math::Ceil(), GetGame() и Math::RandomInt().

◆ InitBaseState()

void InitBaseState ( )
inlineprotected
684 {
685 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " BaseBuildingBase::InitBaseState ");
686
687 InitVisuals();
688 UpdateNavmesh(); //regenerate navmesh
689 GetConstruction().InitBaseState();
690 }
void UpdateNavmesh()
Definition BaseBuildingBase.c:827
void InitVisuals()
Definition BaseBuildingBase.c:692

Перекрестные ссылки bsbDebugPrint(), GetConstruction(), GetDebugName(), InitVisuals(), LogManager::IsBaseBuildingLogEnable() и UpdateNavmesh().

◆ InitCatchingComponent()

void InitCatchingComponent ( )
protected

◆ InitializeSlots()

void InitializeSlots ( )
inlineprivate
102 {
105
106 for ( int i = 0; i < slots_count; i++ )
107 {
108 Slot slot = new Slot(GetBaseFertility());
109 slot.SetSlotIndex(i);
110 int i1 = i + 1;
111 string name = "SeedBase_" + i1;
113 slot.SetSlotId(slot_id);
114 slot.SetGarden(this);
115 slot.m_State = Slot.STATE_DIGGED;
116 m_Slots.Insert( slot );
117 }
118 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
float GetBaseFertility()
Definition GardenBase.c:90

Перекрестные ссылки GardenBase::GetGardenSlotsCount(), InventorySlots::GetSlotIdFromString() и name.

◆ InitItemVariables()

override void InitItemVariables ( )
inlineprivate
4 {
5 super.InitItemVariables();
7 }
bool can_this_be_combined
Definition ItemBase.c:4830

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

◆ InitTrapValues()

void InitTrapValues ( )
inlineprotected
79 {
80 m_DefectRate = 10; //Added damage after trap activation
86 m_MaxActiveTime = 1200;
87 m_NeedInstalation = true;
88 m_IsFoldable = false;
89 m_IsCatchSuccessful = false;
91
95
99 }
string m_AnimationPhaseTriggered
Definition TrapSpawnBase.c:40
ref array< string > m_PlaceableWaterSurfaceList
Definition TrapSpawnBase.c:43
int m_InitWaitTimeMax
Definition TrapSpawnBase.c:9
bool m_NeedInstalation
Definition TrapSpawnBase.c:7
int m_InitWaitTimeMin
Definition TrapSpawnBase.c:8
string m_AnimationPhaseSet
Definition TrapSpawnBase.c:39
int m_SpawnUpdateWaitTime
Catch evaluation interval.
Definition TrapSpawnBase.c:11
string m_AnimationPhaseUsed
Definition TrapSpawnBase.c:41
Definition ActionConstants.c:156
const string SEA
Definition ActionConstants.c:157
const string FRESH
fake
Definition ActionConstants.c:158

Перекрестные ссылки UAWaterType::FRESH, m_AnimationPhaseSet, m_AnimationPhaseTriggered, m_DefectRate и UAWaterType::SEA.

◆ InitVisuals()

void InitVisuals ( )
inlineprotected
693 {
694 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " InitVisuals");
695 //check base
696 if ( !HasBase() )
697 {
698 SetAnimationPhase( ANIMATION_DEPLOYED, 0 );
699 }
700 else
701 {
702 SetAnimationPhase( ANIMATION_DEPLOYED, 1 );
703 }
704
705 GetConstruction().UpdateVisuals();
706 }
const string ANIMATION_DEPLOYED
Definition BaseBuildingBase.c:4

Перекрестные ссылки ANIMATION_DEPLOYED, bsbDebugPrint(), GetConstruction(), GetDebugName(), HasBase() и LogManager::IsBaseBuildingLogEnable().

◆ IsActive()

bool IsActive ( )
inlineprotected
172 {
173 return m_IsActive;
174 }
bool m_IsActive
Definition TrapSpawnBase.c:33

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

◆ IsAttachmentSlotLocked() [1/2]

bool IsAttachmentSlotLocked ( EntityAI attachment)
inlineprotected
844 {
845 if ( attachment )
846 {
848 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
849
850 return GetInventory().GetSlotLock( inventory_location.GetSlot() );
851 }
852
853 return false;
854 }

◆ IsAttachmentSlotLocked() [2/2]

bool IsAttachmentSlotLocked ( string slot_name)
inlineprotected
857 {
858 return GetInventory().GetSlotLock( InventorySlots.GetSlotIdFromString( slot_name ) );
859 }

Перекрестные ссылки InventorySlots::GetSlotIdFromString().

◆ IsBasebuildingKit()

override bool IsBasebuildingKit ( )
inlineprotected
12 {
13 return true;
14 }

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

◆ IsBloodContainer()

override bool IsBloodContainer ( )
inlineprivate
11 {
12 return true;
13 }

◆ IsCharged()

bool IsCharged ( )
inlineprivate
112 {
113 return m_IsCharged;
114 }
bool m_IsCharged
Definition Defibrillator.c:7

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

◆ IsClothing()

override bool IsClothing ( )
inlineprivate
841 {
842 return true;
843 }

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

◆ IsCorrectFertilizer()

bool IsCorrectFertilizer ( ItemBase item,
string selection_component )
inlineprivate
493 {
495
496 if ( slot != NULL )
497 {
498 string item_type = item.GetType();
499
500 if ( slot.GetFertilityType() == "" || slot.GetFertilityType() == item_type )
501 {
502 return true;
503 }
504 }
505
506 return false;
507 }

◆ IsDeployable() [1/5]

override bool IsDeployable ( )
inlineprotected
342 {
343 return true;
344 }

◆ IsDeployable() [2/5]

override bool IsDeployable ( )
inlineprotected
425 {
426 return true;
427 }

◆ IsDeployable() [3/5]

override bool IsDeployable ( )
inlineprotected
99 {
100 return true;
101 }

◆ IsDeployable() [4/5]

override bool IsDeployable ( )
inlineprotected
379 {
380 return true;
381 }

◆ IsDeployable() [5/5]

override bool IsDeployable ( )
inlineprotected
824 {
825 return true;
826 }

◆ IsDeployed()

bool IsDeployed ( )
inlineprotected
177 {
178 return m_IsDeployed;
179 }
bool m_IsDeployed
Definition TrapSpawnBase.c:35

◆ IsDry()

bool IsDry ( )
inlineprivate
859 {
860 if ( GetPlantState() == STATE_DRY )
861 {
862 return true;
863 }
864 else
865 {
866 return false;
867 }
868 }
int GetPlantState()
Definition PlantBase.c:762

◆ IsElectricAppliance() [1/4]

override bool IsElectricAppliance ( )
inlineprotected
46 {
47 return true;
48 }

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

◆ IsElectricAppliance() [2/4]

override bool IsElectricAppliance ( )
inlineprivate
16 {
17 return true;
18 }

◆ IsElectricAppliance() [3/4]

override bool IsElectricAppliance ( )
inlineprivate
6 {
7 return true;
8 }

◆ IsElectricAppliance() [4/4]

override bool IsElectricAppliance ( )
inlineprotected
52 {
53 return true;
54 }

◆ IsFacingCamera()

bool IsFacingCamera ( string selection)
inlineprotected
972 {
973 return true;
974 }

◆ IsFacingPlayer()

override bool IsFacingPlayer ( PlayerBase player,
string selection )
inlineprotected
955 {
956 return true;
957 }

◆ IsFolded()

bool IsFolded ( )
inlineprotected
319 {
320 return m_IsFolded;
321 }

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

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

◆ IsGasMask()

bool IsGasMask ( )
inlineprivate
960 {
961 return false;
962 }

◆ IsGrowing()

bool IsGrowing ( )
inlineprivate
871 {
872 if ( GetPlantState() == STATE_GROWING )
873 {
874 return true;
875 }
876 else
877 {
878 return false;
879 }
880 }

◆ IsIgnited() [1/2]

override bool IsIgnited ( )
inlineprotected
77 {
78 return GetCompEM().IsWorking();
79 }

◆ IsIgnited() [2/2]

override bool IsIgnited ( )
inlineprotected
413 {
414 return GetCompEM().IsWorking();
415 }

◆ IsIgnoredByConstruction() [1/2]

override bool IsIgnoredByConstruction ( )
inlineprotected
1093 {
1094 return true;
1095 }

◆ IsIgnoredByConstruction() [2/2]

override bool IsIgnoredByConstruction ( )
inlineprotected
495 {
496 return false;
497 }

◆ IsInventoryVisible()

override bool IsInventoryVisible ( )
inlineprivate
55 {
56 return false;
57 }

◆ IsItemTent()

override bool IsItemTent ( )
inlineprotected
84 {
85 return true;
86 }

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

◆ IsManipulatedEntrance()

bool IsManipulatedEntrance ( )
inlineprotected
675 {
676 return m_IsEntrance;
677 }
bool m_IsEntrance
Definition TentBase.c:26

◆ IsManipulatedWindow()

bool IsManipulatedWindow ( )
inlineprotected
680 {
681 return m_IsWindow;
682 }
bool m_IsWindow
Definition TentBase.c:27

◆ IsMature()

bool IsMature ( )
inlineprivate
884 {
885 if ( GetPlantState() == STATE_MATURE )
886 {
887 return true;
888 }
889 else
890 {
891 return false;
892 }
893 }

◆ IsMounted()

bool IsMounted ( )
inlineprotected
51 {
52 return GetSlotLockedState();
53 }

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

◆ IsObstructingVoice()

bool IsObstructingVoice ( )
inlineprivate

Returns if this entity obsructs player's voice.

929 {
930 return false;
931 }

◆ IsOpened()

bool IsOpened ( )
inlineprotected
347 {
348 return false;
349 }

◆ IsPartBuildInSyncData()

bool IsPartBuildInSyncData ( int part_id)
inlineprotected
183 {
184 //part_id must starts from index = 1
185 int offset;
186 int mask;
187
188 if ( part_id >= 1 && part_id <= 31 ) //<1,31> (31 parts)
189 {
190 offset = part_id - 1;
191 mask = 1 << offset;
192
193 if ( ( m_SyncParts01 & mask ) > 0 )
194 {
195 return true;
196 }
197 }
198 else if ( part_id >= 32 && part_id <= 62 ) //<32,62> (31 parts)
199 {
200 offset = ( part_id % 32 );
201 mask = 1 << offset;
202
203 if ( ( m_SyncParts02 & mask ) > 0 )
204 {
205 return true;
206 }
207 }
208 else if ( part_id >= 63 && part_id <= 93 ) //<63,93> (31 parts)
209 {
210 offset = ( part_id % 63 );
211 mask = 1 << offset;
212
213 if ( ( m_SyncParts03 & mask ) > 0 )
214 {
215 return true;
216 }
217 }
218
219 return false;
220 }
int m_SyncParts01
Definition BaseBuildingBase.c:12
int m_SyncParts03
Definition BaseBuildingBase.c:14
int m_SyncParts02
Definition BaseBuildingBase.c:13

Перекрестные ссылки m_SyncParts01, m_SyncParts02 и m_SyncParts03.

◆ IsPeltBase()

override bool IsPeltBase ( )
inlineprivate
4 {
5 return true;
6 }

◆ IsPlaceable()

bool IsPlaceable ( )
inlineprotected
816 {
817 if ( GetGame().IsServer() )
818 {
820 GetInventory().GetCurrentInventoryLocation(loc);
821 if (loc.GetType() == InventoryLocationType.HANDS)
822 {
823 PlayerBase player = PlayerBase.Cast(GetHierarchyRootPlayer());
824
825 vector player_pos = player.GetPosition();
826 vector aim_pos = player.GetAimPosition();
827
828 if ( vector.DistanceSq(player_pos, aim_pos) <= ( 1.5 * 1.5 ) )
829 {
831 }
832 }
833 }
834
835 return false;
836 }
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.

Перекрестные ссылки vector::DistanceSq(), GetGame() и TrapSpawnBase::IsPlaceableAtPosition().

◆ IsPlaceableAtPosition()

bool IsPlaceableAtPosition ( vector position)
inlineprotected
213 {
214 string surface_type;
215 GetGame().SurfaceGetType3D( position[0], position[1], position[2], surface_type);
216
217 // check surface
218 return GetGame().IsSurfaceDigable(surface_type);
219 }

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

◆ IsPlayerInside()

override bool IsPlayerInside ( PlayerBase player,
string selection )
inlineprotected
960 {
961 return true;
962 }

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

◆ IsPlayerInVicinity()

bool IsPlayerInVicinity ( )
inlineprotected
525 {
526 if (!GetCEApi())
527 {
528 Debug.Log("CE not enabled, player avoidance not available!");
529 return false;
530 }
531
532 return !GetCEApi().AvoidPlayer(GetPosition(), m_CurrentMinimalDistance);
533 }
proto native CEApi GetCEApi()
Get the CE API.
Definition Debug.c:14
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
Definition Debug.c:136

Перекрестные ссылки GetCEApi(), GetPosition и Debug::Log().

◆ IsSelfAdjustingTemperature()

override bool IsSelfAdjustingTemperature ( )
inlineprotected
301 {
302 return GetCompEM().IsWorking();
303 }

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

◆ IsSpoiled()

bool IsSpoiled ( )
inlineprivate
896 {
897 if ( GetPlantState() == STATE_SPOILED )
898 {
899 return true;
900 }
901 else
902 {
903 return false;
904 }
905 }
static const int STATE_SPOILED
Definition PlantBase.c:7

◆ IsSurfaceWater()

bool IsSurfaceWater ( vector position)
inlineprotected
685 {
686 string surfaceType;
687 GetGame().SurfaceGetType3D(position[0], position[1], position[2], surfaceType);
688
690 }
Definition Surface.c:2
static bool AllowedWaterSurface(float pHeight, string pSurface, array< string > pAllowedSurfaceList)
Definition Surface.c:31

Перекрестные ссылки Surface::AllowedWaterSurface() и GetGame().

◆ IsTakeable() [1/2]

override bool IsTakeable ( )
inlineprotected
931 {
932 return false;
933 }

◆ IsTakeable() [2/2]

override bool IsTakeable ( )
inlineprotected
208 {
209 return true;
210 }

◆ IsThisIgnitionSuccessful() [1/5]

override bool IsThisIgnitionSuccessful ( EntityAI item_source = NULL)
inlineprivate
33 {
34 return Fireplace.CanIgniteEntityAsFireplace( this );
35 }

◆ IsThisIgnitionSuccessful() [2/5]

override bool IsThisIgnitionSuccessful ( EntityAI item_source = NULL)
inlineprivate
33 {
34 return Fireplace.CanIgniteEntityAsFireplace( this );
35 }

◆ IsThisIgnitionSuccessful() [3/5]

override bool IsThisIgnitionSuccessful ( EntityAI item_source = NULL)
inlineprivate
33 {
34 return Fireplace.CanIgniteEntityAsFireplace( this );
35 }

◆ IsThisIgnitionSuccessful() [4/5]

override bool IsThisIgnitionSuccessful ( EntityAI item_source = null)
inlineprotected
61 {
62 return Fireplace.CanIgniteEntityAsFireplace(this);
63 }

◆ IsThisIgnitionSuccessful() [5/5]

override bool IsThisIgnitionSuccessful ( EntityAI item_source = null)
inlineprivate
77 {
78 return Fireplace.CanIgniteEntityAsFireplace(this);
79 }

◆ KitBase()

void KitBase ( )
inlineprotected
6 {
7 RegisterNetSyncVariableBool("m_IsSoundSynchRemote");
8 RegisterNetSyncVariableBool("m_IsDeploySound");
9 }

◆ LockAttachmentSlot()

void LockAttachmentSlot ( bool lock_state)
inlineprotected
97 {
98 BaseBuildingBase base_building = BaseBuildingBase.Cast( GetHierarchyParent() );
99 if ( base_building )
100 {
102 GetInventory().GetCurrentInventoryLocation( inventory_location );
103 base_building.GetInventory().SetSlotLock( inventory_location.GetSlot(), lock_state );
104 //string slot_name = InventorySlots.GetSlotName( inventory_location.GetSlot() );
105 //base_building.UpdateAttachmentVisuals( slot_name, lock_state );
106 //base_building.UpdateAttachmentPhysics( slot_name, lock_state );
107 }
108 }

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

◆ ManipulateEntrance()

void ManipulateEntrance ( )
inlineprotected
665 {
666 m_IsEntrance = true;
667 }

◆ ManipulateWindow()

void ManipulateWindow ( )
inlineprotected
670 {
671 m_IsWindow = true;
672 }

◆ MetalWire()

◆ MustBeBuiltFromOutside()

bool MustBeBuiltFromOutside ( )
inlineprotected

Some buildings can only be built from outside.

966 {
967 return false;
968 }

◆ MutePlayer()

void MutePlayer ( PlayerBase player,
bool state )
inlineprivate

This items has effect on player's voice.

936 {
937 #ifdef SERVER
938 if (GetGame() && player.GetIdentity() != null)
939 {
940 GetGame().SetVoiceEffect(player, GetVoiceEffect(), state);
941 }
942 #endif
943 }
int GetVoiceEffect()
The voice effect this item uses, default is 0 (none)
Definition InventoryItem.c:954

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

◆ NeedsFertilization()

bool NeedsFertilization ( string selection_component)
inlineprivate
510 {
512
513 if ( slot )
514 {
515 if ( slot.GetFertilityState() == eFertlityState.NONE )
516 {
517 return true;
518 }
519 }
520
521 return false;
522 }

◆ NeedsSpraying()

bool NeedsSpraying ( )
inlineprivate
803 {
805 {
806 return true;
807 }
808 else
809 {
810 return false;
811 }
812 }

◆ NeedsWater()

bool NeedsWater ( )
inlineprivate
789 {
791
792 if ( IsDry() && slotPlant && slotPlant.GetWater() < slotPlant.GetWaterUsage() )
793 {
794 return true;
795 }
796 else
797 {
798 return false;
799 }
800 }
bool IsDry()
Definition PlantBase.c:858

◆ OnAction()

override bool OnAction ( int action_id,
Man player,
ParamsReadContext ctx )
inlineprotected
414 {
415 if (super.OnAction(action_id, player, ctx))
416 return true;
417
418 if (!GetGame().IsServer())
419 return false;
420
421 switch (action_id)
422 {
423 case EActions.GENERIC_FUEL_FULL:
425 return true;
426 case EActions.GENERIC_FUEL_EMPTY:
427 SetFuel(0);
428 return true;
429 case EActions.GENERIC_FUEL_INCREASE:
430 AddFuel(Math.Clamp(GetMaxFuel() * 0.1, 0.0, GetMaxFuel()));
431 return true;
432 case EActions.GENERIC_FUEL_DECREASE:
433 float value = GetMaxFuel() * -0.1;
434 if (value <= 0)
435 SetFuel(0.0);
436 return true;
437
438 AddFuel(value);
439 return true;
440 }
441
442 return false;
443 }
float AddFuel(float available_fuel)
Definition PowerGenerator.c:291

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

◆ OnCatchSpawnClient()

void OnCatchSpawnClient ( )
inlineprotected
584 {
585 UpdatePreyPos(); //previously set on server only
586
588 }
void UpdatePreyPos()
Definition TrapSpawnBase.c:247
void PlayCatchEffectsClient()
Definition TrapSpawnBase.c:601

◆ OnCatchSpawnServer()

void OnCatchSpawnServer ( )
inlineprotected
579 {
581 }
void PlayCatchEffectsServer()
Definition TrapSpawnBase.c:590

◆ OnCombine() [1/2]

override void OnCombine ( ItemBase other_item)
inlineprivate
72 {
73 super.OnCombine(other_item);
74 if (m_Cleanness == 1 && other_item.m_Cleanness == 0)
75 SetCleanness(0);
76 }
override void SetCleanness(int value, bool allow_client=false)
Definition ItemBase.c:8431

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

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

◆ OnCombine() [2/2]

override void OnCombine ( ItemBase other_item)
inlineprivate
131 {
132 super.OnCombine(other_item);
133 if (m_Cleanness == 1 && other_item.m_Cleanness == 0)
134 SetCleanness(0);
135 }

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

◆ OnCreatePhysics()

override void OnCreatePhysics ( )
inlineprotected
466 {
467 super.OnCreatePhysics();
470 }

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

◆ OnDebugSpawn() [1/5]

override void OnDebugSpawn ( )
inlineprotected
1188 {
1189 FullyBuild();
1190 }
void FullyBuild()
Definition BaseBuildingBase.c:1192

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

◆ OnDebugSpawn() [2/5]

override void OnDebugSpawn ( )
inlineprotected
136 {
137 GetInventory().CreateInInventory("LargeGasCanister");
138 }

◆ OnDebugSpawn() [3/5]

override void OnDebugSpawn ( )
inlineprivate
86 {
87 Battery9V.Cast(GetInventory().CreateInInventory("Battery9V"));
88 }
Definition Battery9V.c:2

◆ OnDebugSpawn() [4/5]

override void OnDebugSpawn ( )
inlineprotected
433 {
435 if ( Class.CastTo(entity, this) )
436 {
437 GetInventory().CreateInInventory("LargeGasCanister");
438 GetInventory().CreateInInventory("Pot");
439
440 SpawnEntityOnGroundPos("WaterBottle", entity.GetPosition() + Vector(0.2, 0, 0));
441 }
442 }

Перекрестные ссылки Class::CastTo() и Vector().

◆ OnDebugSpawn() [5/5]

override void OnDebugSpawn ( )
inlineprotected
391 {
393 if (Class.CastTo(entity, this))
394 {
395 entity.GetInventory().CreateInInventory("SparkPlug");
396 }
397
399 }

Перекрестные ссылки Class::CastTo().

◆ OnDebugSpawnBuildExcludes()

array< string > OnDebugSpawnBuildExcludes ( )
inlineprotected

Excludes certain parts from being built by OnDebugSpawn, uses Contains to compare.

1183 {
1184 return null;
1185 }

◆ OnEndPlacement()

override void OnEndPlacement ( )
inlineprotected
87 {
90 }
void SoundSynchRemote()
Definition ItemBase.c:9066

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

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

◆ OnIgnitedTarget() [1/8]

override void OnIgnitedTarget ( EntityAI ignited_item)
inlineprivate
24 {
25 }

◆ OnIgnitedTarget() [2/8]

override void OnIgnitedTarget ( EntityAI ignited_item)
inlineprivate
24 {
25 }

◆ OnIgnitedTarget() [3/8]

override void OnIgnitedTarget ( EntityAI ignited_item)
inlineprotected
82 {
83 if (GetGame().IsServer())
84 {
85 if (GetGasCanister())
86 {
88 if (canisterEM)
89 canisterEM.AddEnergy(-1 * (GetCompEM().GetEnergyUsage() * UATimeSpent.FIREPLACE_IGNITE));
90 }
91 }
92 }
Definition ActionConstants.c:28
const float FIREPLACE_IGNITE
Definition ActionConstants.c:92

Перекрестные ссылки UATimeSpent::FIREPLACE_IGNITE и GetGame().

◆ OnIgnitedTarget() [4/8]

override void OnIgnitedTarget ( EntityAI ignited_item)
inlineprivate
24 {
25 }

◆ OnIgnitedTarget() [5/8]

override void OnIgnitedTarget ( EntityAI ignited_item)
inlineprivate
10 {
11 if ( GetGame().IsServer() )
12 {
13 DecreaseHealth( 20 );
14 }
15 }

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

◆ OnIgnitedTarget() [6/8]

override void OnIgnitedTarget ( EntityAI ignited_item)
inlineprivate
18 {
19 if ( GetGame().IsServer() )
20 {
21 AddQuantity( -1 );
22 }
23 }
bool AddQuantity(float value, bool destroy_config=true, bool destroy_forced=false)
add item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity re...
Definition ItemBase.c:8035

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

◆ OnIgnitedTarget() [7/8]

override void OnIgnitedTarget ( EntityAI ignited_item)
inlineprotected
53{}

◆ OnIgnitedTarget() [8/8]

override void OnIgnitedTarget ( EntityAI ignited_item)
inlineprivate
12 {
13 if ( GetGame().IsServer() )
14 {
15 AddQuantity( -0.5 );
16 }
17 }

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

◆ OnIgnitedTargetFailed() [1/3]

override void OnIgnitedTargetFailed ( EntityAI target_item)
inlineprivate
18 {
19 if ( GetGame().IsServer() )
20 {
21 DecreaseHealth( 20 );
22 }
23 }

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

◆ OnIgnitedTargetFailed() [2/3]

override void OnIgnitedTargetFailed ( EntityAI target_item)
inlineprivate
26 {
27 if ( GetGame().IsServer() )
28 {
29 AddQuantity( -1 );
30 }
31 }

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

◆ OnIgnitedTargetFailed() [3/3]

override void OnIgnitedTargetFailed ( EntityAI target_item)
inlineprivate
20 {
21 if ( GetGame().IsServer() )
22 {
23 AddQuantity( -0.5 );
24 }
25 }

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

◆ OnIgnitedThis() [1/5]

override void OnIgnitedThis ( EntityAI fire_source)
inlineprivate
28 {
29 Fireplace.IgniteEntityAsFireplace( this, fire_source );
30 }

◆ OnIgnitedThis() [2/5]

override void OnIgnitedThis ( EntityAI fire_source)
inlineprivate
28 {
29 Fireplace.IgniteEntityAsFireplace( this, fire_source );
30 }

◆ OnIgnitedThis() [3/5]

override void OnIgnitedThis ( EntityAI fire_source)
inlineprivate
28 {
29 Fireplace.IgniteEntityAsFireplace( this, fire_source );
30 }

◆ OnIgnitedThis() [4/5]

override void OnIgnitedThis ( EntityAI fire_source)
inlineprotected
56 {
57 Fireplace.IgniteEntityAsFireplace(this, fire_source);
58 }

◆ OnIgnitedThis() [5/5]

override void OnIgnitedThis ( EntityAI fire_source)
inlineprivate
72 {
73 Fireplace.IgniteEntityAsFireplace(this, fire_source);
74 }

◆ OnInitEnergy() [1/3]

override void OnInitEnergy ( )
inlineprotected
137 {
138 m_FuelTankCapacity = GetGame().ConfigGetFloat ("CfgVehicles " + GetType() + " fuelTankCapacity");
139 m_FuelToEnergyRatio = GetCompEM().GetEnergyMax() / m_FuelTankCapacity; // Conversion ratio of 1 ml of fuel to X Energy
140
142 }

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

◆ OnInitEnergy() [2/3]

override void OnInitEnergy ( )
inlineprivate
11 {
13 }
SoundOnVehicle m_SoundLoopEntity
Definition Refridgerator.c:3

◆ OnInitEnergy() [3/3]

override void OnInitEnergy ( )
inlineprotected
57 {
58 if (GetCompEM().IsPlugged())
59 {
60 if (!GetHierarchyRoot())
61 Unfold();
62 else
63 Fold(true);
64 }
65 else
66 Fold();
67
69 }
void Fold()
Definition TrapSpawnBase.c:254

Перекрестные ссылки Fold(), Unfold() и UpdateAllSelections().

◆ OnInventoryEnter() [1/4]

override void OnInventoryEnter ( Man player)
inlineprotected
211 {
212 super.OnInventoryEnter(player);
213 HideSelection("placing");
214 ShowSelection("zbytek");
215 if (m_TriggerActive)
217 GetCompEM().UnplugThis();
218 GetCompEM().UnplugAllDevices();
219 }
void DestroyDamageTrigger()
Definition BarbedWire.c:244

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

◆ OnInventoryEnter() [2/4]

override void OnInventoryEnter ( Man player)
inlineprotected
353 {
354 super.OnInventoryEnter(player);
355
357 HideSelection(SEL_CLIPS_DETACHED);
358 ShowSelection(SEL_CLIPS_FOLDED);
359 }
const string SEL_CLIPS_FOLDED
Definition BatteryCharger.c:7
const string SEL_CLIPS_DETACHED
Definition BatteryCharger.c:6
void HideAttachedClipsStates()
Definition BatteryCharger.c:282

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

◆ OnInventoryEnter() [3/4]

override void OnInventoryEnter ( Man player)
inlineprivate
61 {
62 super.OnInventoryEnter(player);
63
65 if (playerPB.GetItemInHands() == this && GetCompEM().IsPlugged())
66 return;
67
68 GetCompEM().UnplugAllDevices();
69
70 if (!playerPB.IsPlacingLocal())
71 GetCompEM().UnplugThis();
72 }

◆ OnInventoryEnter() [4/4]

override void OnInventoryEnter ( Man player)
inlineprivate
73 {
74 super.OnInventoryEnter( player );
75
78 if ( player_PB.GetItemInHands() == this && GetCompEM().IsPlugged() )
79 {
80 return;
81 }
82
83 //Only unplug if we are "powering" something
84 ItemBase powered_device = ItemBase.Cast( GetCompEM().GetPluggedDevice() );
85 if ( powered_device )
86 {
87 GetCompEM().UnplugAllDevices();
88
89 if ( !player_PB.IsPlacingLocal() )
90 {
91 GetCompEM().UnplugThis();
92 }
93 }
94 }

Перекрестные ссылки Class::CastTo().

◆ OnInventoryExit() [1/2]

override void OnInventoryExit ( Man player)
inlineprotected
344 {
345 super.OnInventoryExit(player);
346
348 HideSelection(SEL_CLIPS_FOLDED);
349 ShowSelection(SEL_CLIPS_DETACHED);
350 }

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

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

◆ OnInventoryExit() [2/2]

override void OnInventoryExit ( Man player)
inlineprivate
63 {
64 super.OnInventoryExit(player);
65
66 if ( GetCompEM().IsWorking() )
67 {
68 if (player)
69 {
70 vector ori_rotate = player.GetOrientation();
71 ori_rotate = ori_rotate + Vector(270,0,0);
72 SetOrientation(ori_rotate);
73 }
74 }
75 }

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

◆ OnIsCharged()

void OnIsCharged ( )
inlineprivate
70 {
71 if ( GetCompEM().IsWorking() )
72 {
73 if (!GetGame().IsMultiplayer() || GetGame().IsClient())
74 {
75 //m_ChargedAlarm = PlaySoundLoop(CHARGED_AND_READY_SOUND, 40);
78 }
79 GetCompEM().ResetEnergyUsage();
80 m_IsCharged = true;
81 }
82 }
void SoundStop()
Stops sound.
Definition EffectSound.c:217
static const string CHARGED_AND_READY_SOUND
Definition Defibrillator.c:4

Перекрестные ссылки GetGame(), SEffectManager::PlaySoundOnObject() и EffectSound::SoundStop().

◆ OnIsPlugged() [1/3]

override void OnIsPlugged ( EntityAI source_device)
inlineprotected
199 {
200 SoundCut();
201 }
void SoundCut()
Definition BarbedWire.c:274

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

◆ OnIsPlugged() [2/3]

override void OnIsPlugged ( EntityAI source_device)
inlineprivate
98 {
100 }

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

◆ OnIsPlugged() [3/3]

override void OnIsPlugged ( EntityAI source_device)
inlineprotected
153 {
154 Unfold();
156 }

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

◆ OnIsUnplugged() [1/3]

override void OnIsUnplugged ( EntityAI last_energy_source)
inlineprotected
204 {
205 if (m_TriggerActive)
207 SoundCut();
208 }

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

◆ OnIsUnplugged() [2/3]

override void OnIsUnplugged ( EntityAI last_energy_source)
inlineprivate
104 {
106 GetCompEM().UnplugAllDevices();
107 }

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

◆ OnIsUnplugged() [3/3]

override void OnIsUnplugged ( EntityAI last_energy_source)
inlineprotected
235 {
236 Fold();
238 }

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

◆ OnItemLocationChanged() [1/6]

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
inlineprotected
365 {
366 super.OnItemLocationChanged(old_owner, new_owner);
367
368 if (m_TriggerActive)
369 {
371 m_IsPlaced = false;
372 }
373 }

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

◆ OnItemLocationChanged() [2/6]

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
inlineprotected
79 {
80 super.OnItemLocationChanged( old_owner, new_owner );
81
82 //update visuals after location change
84 }

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

◆ OnItemLocationChanged() [3/6]

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
inlineprotected
212 {
213 super.OnItemLocationChanged(old_owner, new_owner);
215 }

◆ OnItemLocationChanged() [4/6]

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
inlineprotected
127 {
128 super.OnItemLocationChanged(old_owner, new_owner);
129
130 //skips folding of currently deployed spotlight
132 {
133 m_EvaluateDeployment = false;
134 if (m_Light)
135 {
137 }
138
139 Unfold();
140
141 return;
142 }
143
144 // When the item is picked up by a player
146 if (player && player.GetItemInHands() == this)
147 {
148 Fold(GetCompEM().IsPlugged());
149 }
150 }
override bool IsBeingPlaced()
Definition ItemBase.c:5744
BlowtorchLight m_Light
Definition Blowtorch.c:7
static vector m_LightLocalPosition
Definition Spotlight.c:7
static vector m_LightLocalOrientation
Definition Spotlight.c:8
bool m_EvaluateDeployment
Definition Spotlight.c:4

Перекрестные ссылки Fold(), IsBeingPlaced(), m_Light и Unfold().

◆ OnItemLocationChanged() [5/6]

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
inlineprotected
156 {
157 super.OnItemLocationChanged(old_owner, new_owner);
158
159 if (new_owner || old_owner)
160 {
161 if (GetInventory().CountInventory() == 1) // refuse to pack tent with anything inside
162 Pack(false);
163 }
164 }
void Pack(bool update_navmesh, bool init=false)
Definition TentBase.c:499

◆ OnItemLocationChanged() [6/6]

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
inlineprotected
653 {
654 super.OnItemLocationChanged( old_owner, new_owner );
655
656 if ( GetGame().IsServer() )
657 {
658 // throw trap from vicinity if the trap does not need installation ( action required )
659 if ( new_owner == NULL && m_NeedInstalation == false )
660 {
661 SetActive();
662 }
663 else if ( old_owner == NULL && new_owner != NULL )
664 {
665 if ( m_IsFoldable )
666 {
667 Fold();
668 }
669 else
670 {
671 SetInactive();
672 }
673 }
674
675 if (m_YieldItemIdx != -1) //resets sound effect idx
676 {
677 m_YieldItemIdx = -1;
678 SetSynchDirty();
679 }
680 }
681 }
int m_YieldItemIdx
Definition TrapSpawnBase.c:28
void SetActive()
Definition TrapSpawnBase.c:335

Перекрестные ссылки GetGame(), SetActive() и SetInactive().

◆ OnOwnSocketReleased() [1/2]

override void OnOwnSocketReleased ( EntityAI device)
inlineprotected
236 {
238 ShowSelection(SEL_CLIPS_DETACHED);
239 }

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

◆ OnOwnSocketReleased() [2/2]

override void OnOwnSocketReleased ( EntityAI device)
inlineprivate
117 {
119 }

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

◆ OnOwnSocketTaken() [1/2]

override void OnOwnSocketTaken ( EntityAI device)
inlineprotected
216 {
217 string att_type = device.GetType();
218
219 if ( att_type == "CarBattery" )
220 {
222 ShowSelection(SEL_CLIPS_CAR);
223 }
224
225 if ( att_type == "TruckBattery" )
226 {
228 ShowSelection(SEL_CLIPS_TRUCK);
229 }
230
231 HideSelection(SEL_CLIPS_DETACHED);
232 HideSelection(SEL_CLIPS_FOLDED);
233 }
const string SEL_CLIPS_TRUCK
Definition BatteryCharger.c:5
const string SEL_CLIPS_CAR
Definition BatteryCharger.c:4

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

◆ OnOwnSocketTaken() [2/2]

override void OnOwnSocketTaken ( EntityAI device)
inlineprivate
111 {
113 }

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

◆ OnPartBuiltClient()

void OnPartBuiltClient ( string part_name,
int action_id )
inlineprotected
597 {
598 //play sound
600 }
void SoundBuildStart(string part_name)
Definition BaseBuildingBase.c:1100

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

◆ OnPartBuiltServer()

void OnPartBuiltServer ( notnull Man player,
string part_name,
int action_id )
inlineprotected
564 {
566
567 //check base state
568 if (construtionPart.IsBase())
569 {
570 SetBaseState(true);
571
572 //spawn kit
574 }
575
576 //register constructed parts for synchronization
578
579 //register action that was performed on part
581
582 //synchronize
584
585 SetPartFromSyncData(construtionPart); // server part of sync, client will be synced from SetPartsFromSyncData
586
588
589 //update visuals
591
592 //reset action sync data
593 GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(ResetActionSyncData, 100, false, this);
594 }
void ResetActionSyncData()
Definition BaseBuildingBase.c:228
void SetBaseState(bool has_base)
Definition BaseBuildingBase.c:336
void RegisterPartForSync(int part_id)
Definition BaseBuildingBase.c:124
void RegisterActionForSync(int part_id, int action_id)
Definition BaseBuildingBase.c:222
void SetPartFromSyncData(ConstructionPart part)
Definition BaseBuildingBase.c:252
void SynchronizeBaseState()
Definition BaseBuildingBase.c:95

Перекрестные ссылки CALL_CATEGORY_GAMEPLAY, CreateConstructionKit(), GetConstruction(), GetGame(), RegisterActionForSync(), RegisterPartForSync(), ResetActionSyncData(), SetBaseState(), SetPartFromSyncData(), SynchronizeBaseState(), UpdateNavmesh() и BaseBuildingBase::UpdateVisuals().

◆ OnPartDestroyedClient()

void OnPartDestroyedClient ( string part_name,
int action_id )
inlineprotected
677 {
678 //play sound
680 }
void SoundDestroyStart(string part_name)
Definition BaseBuildingBase.c:1110

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

◆ OnPartDestroyedServer()

void OnPartDestroyedServer ( Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part = false )
inlineprotected
644 {
645 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " OnPartDestroyedServer " + part_name);
647
648 //register constructed parts for synchronization
650
651 //register action that was performed on part
653
654 //synchronize
656
657 // server part of sync, client will be synced from SetPartsFromSyncData
659
661
662 //update visuals
664
665 //reset action sync data
666 GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(ResetActionSyncData, 100, false, this);
667
668 //check base state
669 if (construtionPart.IsBase())
670 {
671 //Destroy construction
672 GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(DestroyConstruction, 200, false, this);
673 }
674 }
void UnregisterPartForSync(int part_id)
Definition BaseBuildingBase.c:153

Перекрестные ссылки bsbDebugPrint(), CALL_CATEGORY_GAMEPLAY, DestroyConstruction(), GetConstruction(), GetDebugName(), GetGame(), LogManager::IsBaseBuildingLogEnable(), RegisterActionForSync(), ResetActionSyncData(), SetPartFromSyncData(), SynchronizeBaseState(), UnregisterPartForSync(), UpdateNavmesh() и BaseBuildingBase::UpdateVisuals().

◆ OnPartDismantledClient()

void OnPartDismantledClient ( string part_name,
int action_id )
inlineprotected
637 {
638 //play sound
640 }
void SoundDismantleStart(string part_name)
Definition BaseBuildingBase.c:1105

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

◆ OnPartDismantledServer()

void OnPartDismantledServer ( notnull Man player,
string part_name,
int action_id )
inlineprotected
604 {
605 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " OnPartDismantledServer " + part_name);
607
608 //register constructed parts for synchronization
610
611 //register action that was performed on part
613
614 //synchronize
616
617 // server part of sync, client will be synced from SetPartsFromSyncData
619
621
622 //update visuals
624
625 //reset action sync data
626 GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(ResetActionSyncData, 100, false, this);
627
628 //check base state
629 if (construtionPart.IsBase())
630 {
631 //Destroy construction
632 GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(DestroyConstruction, 200, false, this);
633 }
634 }

Перекрестные ссылки bsbDebugPrint(), CALL_CATEGORY_GAMEPLAY, DestroyConstruction(), GetConstruction(), GetDebugName(), GetGame(), LogManager::IsBaseBuildingLogEnable(), RegisterActionForSync(), ResetActionSyncData(), SetPartFromSyncData(), SynchronizeBaseState(), UnregisterPartForSync(), UpdateNavmesh() и BaseBuildingBase::UpdateVisuals().

◆ OnPlacementCancelled() [1/2]

override void OnPlacementCancelled ( Man player)
inlineprotected
93 {
94 super.OnPlacementCancelled(player);
95 m_DeployedRegularly = false;
96 }

◆ OnPlacementCancelled() [2/2]

override void OnPlacementCancelled ( Man player)
inlineprotected
372 {
373 super.OnPlacementCancelled(player);
374
375 Fold(true);
376 }

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

◆ OnPlacementComplete() [1/8]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprotected
380 {
381 super.OnPlacementComplete( player, position, orientation );
382
383 if ( GetGame().IsServer() )
384 {
385 ShowAllSelections();
386 HideSelection("zbytek");
387
388 if (!GetHierarchyParent())
389 {
390 if (GetCompEM().IsPlugged() && GetCompEM().IsWorking() )
392 else
394 m_IsPlaced = true;
395 }
396
397 SetIsDeploySound( true );
398 }
399 }
void SetIsDeploySound(bool is_deploy_sound)
Definition ItemBase.c:9093
void CreateDamageTrigger()
Definition BarbedWire.c:234
void CreateElectrifiedDamageTrigger()
Definition BarbedWire.c:223

Перекрестные ссылки CreateDamageTrigger(), CreateElectrifiedDamageTrigger(), GetGame() и SetIsDeploySound().

◆ OnPlacementComplete() [2/8]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprotected
418 {
419 super.OnPlacementComplete( player, position, orientation );
420
421 SetIsPlaceSound( true );
422 }
void SetIsPlaceSound(bool is_place_sound)
Definition ItemBase.c:9083

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

◆ OnPlacementComplete() [3/8]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprivate
108 {
109 super.OnPlacementComplete(player, position, orientation);
110
111 SetIsPlaceSound(true);
112 }

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

◆ OnPlacementComplete() [4/8]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprotected
367 {
368 super.OnPlacementComplete(player, position, orientation);
369
370 SetIsPlaceSound(true);
371 }

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

◆ OnPlacementComplete() [5/8]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprivate
62 {
63 super.OnPlacementComplete( player, position, orientation );
64
65 SetIsPlaceSound( true );
66 }

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

◆ OnPlacementComplete() [6/8]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprotected
359 {
360 super.OnPlacementComplete(player, position, orientation);
361
362 if (GetGame().IsServer())
363 {
364 SetIsDeploySound(true);
365 }
366
367 Unfold();
369 }

Перекрестные ссылки GetGame(), SetIsDeploySound() и Unfold().

◆ OnPlacementComplete() [7/8]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprotected
829 {
830 super.OnPlacementComplete(player, position, orientation);
831
832 if (GetGame().IsServer())
833 {
834 TryPitch(true);
835
836 SetIsDeploySound(true);
837 }
838 }

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

◆ OnPlacementComplete() [8/8]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprotected
780 {
781 super.OnPlacementComplete(player, position, orientation);
782
783 if (GetGame().IsServer())
784 {
786 float direction[4];
791
792 if (GetInventory().GetCurrentInventoryLocation(source))
793 {
794 destination.SetGroundEx(this, position, direction);
795 if (GetGame().IsMultiplayer())
796 {
797 player.ServerTakeToDst(source, destination);
798 SetupTrapPlayer(PlayerBase.Cast(player), false);
799 }
800 else // singleplayer
801 {
802 PlayerBase.Cast(player).GetDayZPlayerInventory().RedirectToHandEvent(InventoryMode.LOCAL, source, destination);
803 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(SetupTrapPlayer, 100, false, PlayerBase.Cast(player), false);
804 }
805 }
806
807 SetIsDeploySound(true);
808
811 SetActive();
812 }
813 }
void UpdateTrapEnviroMask()
Definition TrapSpawnBase.c:739
void SetupTrapPlayer(PlayerBase player, bool set_position=true)
Definition TrapSpawnBase.c:232
void InitCatchingComponent()
Definition EnMath3D.c:28
static proto void MatrixToQuat(vector mat[3], out float d[4])
Converts rotation matrix to quaternion.
static proto void YawPitchRollMatrix(vector ang, out vector mat[3])
Creates rotation matrix from angles.

Перекрестные ссылки CALL_CATEGORY_SYSTEM, GetGame(), TrapSpawnBase::InitCatchingComponent(), Math3D::MatrixToQuat(), SetActive(), SetIsDeploySound(), SetupTrapPlayer(), UpdateTrapEnviroMask() и Math3D::YawPitchRollMatrix().

◆ OnPlacementStarted() [1/3]

override void OnPlacementStarted ( Man player)
inlineprotected
389 {
390 super.OnPlacementStarted(player);
391
392 SetAnimationPhase(SEL_CLIPS_DETACHED, 0);
393 SetAnimationPhase(SEL_CLIPS_FOLDED, 1);
394 SetAnimationPhase(SEL_SWITCH_ON, 1);
395 SetAnimationPhase(SEL_SWITCH_OFF, 1);
396 SetAnimationPhase(SEL_LIGHT_STATE_1, 1);
397 SetAnimationPhase(SEL_LIGHT_STATE_2, 1);
398 SetAnimationPhase(SEL_LIGHT_STATE_3, 1);
399
405 };
406
408 foreach (string selection : selections)
409 {
410 if (GetGame().IsMultiplayer() && GetGame().IsServer())
411 playerPB.GetHologramServer().SetSelectionToRefresh(selection);
412 else
413 playerPB.GetHologramLocal().SetSelectionToRefresh(selection);
414 }
415 }
const string SEL_SWITCH_ON
Definition BatteryCharger.c:8
const string SEL_LIGHT_STATE_1
Definition BatteryCharger.c:12
const string SEL_CORD_FOLDED
Definition BatteryCharger.c:11
const string SEL_LIGHT_STATE_2
Definition BatteryCharger.c:13
const string SEL_SWITCH_OFF
Definition BatteryCharger.c:9
const string SEL_CORD_PLUGGED
Definition BatteryCharger.c:10
const string SEL_LIGHT_STATE_3
Definition BatteryCharger.c:14

Перекрестные ссылки GetGame(), SEL_CLIPS_DETACHED, SEL_CORD_FOLDED и SEL_CORD_PLUGGED.

◆ OnPlacementStarted() [2/3]

override void OnPlacementStarted ( Man player)
inlineprivate
92 {
93 super.OnPlacementStarted(player);
94
98 };
99
101 if (GetGame().IsMultiplayer() && GetGame().IsServer())
102 playerPB.GetHologramServer().SetSelectionToRefresh(selections);
103 else
104 playerPB.GetHologramLocal().SetSelectionToRefresh(selections);
105 }

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

◆ OnPlacementStarted() [3/3]

override void OnPlacementStarted ( Man player)
inlineprotected
340 {
341 super.OnPlacementStarted(player);
342
346 };
347
349 foreach (string selection : selections)
350 {
351 if (GetGame().IsMultiplayer() && GetGame().IsServer())
352 playerPB.GetHologramServer().SetSelectionToRefresh(selection);
353 else
354 playerPB.GetHologramLocal().SetSelectionToRefresh(selection);
355 }
356 }
static const string SEL_CORD_PLUGGED_F
Definition Spotlight.c:14

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

◆ OnRPC()

override void OnRPC ( PlayerIdentity sender,
int rpc_type,
ParamsReadContext ctx )
inlineprotected
17 {
18 super.OnRPC(sender, rpc_type,ctx);
19
20 switch(rpc_type)
21 {
22 case PlantType.TREE_HARD:
23 SoundHardTreeFallingPlay();
24 break;
25
26 case PlantType.TREE_SOFT:
27 SoundSoftTreeFallingPlay();
28 break;
29
30 case PlantType.BUSH_HARD:
31 SoundHardBushFallingPlay();
32 break;
33
34 case PlantType.BUSH_SOFT:
35 SoundSoftBushFallingPlay();
36 break;
37 }
38 }

◆ OnSetSlotLock()

void OnSetSlotLock ( int slotId,
bool locked,
bool was_locked )
inlineprotected
547 {
549 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint( "inv: OnSetSlotLock " + GetDebugName( this ) + " slot=" + slot_name + " locked=" + locked + " was_locked=" + was_locked );
550
553 }
static proto native owned string GetSlotName(int id)
converts slot_id to string
void UpdateAttachmentVisuals(string slot_name, bool is_locked)
Definition BaseBuildingBase.c:727

Перекрестные ссылки bsbDebugPrint(), GetDebugName(), InventorySlots::GetSlotName(), LogManager::IsBaseBuildingLogEnable(), UpdateAttachmentPhysics() и UpdateAttachmentVisuals().

◆ OnStoreLoad() [1/10]

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprivate
148 {
149 if ( version <= 118 )
150 return true;
151
152 if ( !super.OnStoreLoad( ctx, version ) )
153 return false;
154
155 if ( version < 102 )
156 {
157 float some_value;
158 ctx.Read( some_value ); // compatibility check
159 }
160
162
163 for ( int i = 0; i < slots_count; i++ )
164 {
165 Slot slot = m_Slots.Get( i );
166
167 if ( !slot.OnStoreLoadCustom( ctx, version ) )
168 return false;
169
170 //Slot textures will be updated after store load
171 //UpdateSlotTexture( i );
172 }
173
174 if ( version >= 119 )
176
177 if ( version >= 120 )
178 ctx.Read( m_SlotWateredState );
179
180 return true;
181 }

Перекрестные ссылки GardenBase::GetGardenSlotsCount().

◆ OnStoreLoad() [2/10]

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprivate
126 {
127 if ( !super.OnStoreLoad( ctx, version ) )
128 return false;
129
130 //Print("Plant - OnStoreLoad - ");
131
132 GardenBase garden = GardenBase.Cast( GetHierarchyParent() );
133 //Print(garden);
134
135 int slot_index = -1;
136 ctx.Read( slot_index );
137
138 //Print(slot_index);
139
140 Slot slot = garden.GetSlotByIndex(slot_index);
141 //Print(slot);
142
143 SetSlot(slot);
144
145 if ( !OnStoreLoadCustom( ctx, version ) )
146 return false;
147
148 return true;
149 }
Definition GardenPlot.c:2
void SetSlot(Slot slot)
Definition PlantBase.c:840
bool OnStoreLoadCustom(ParamsReadContext ctx, int version)
Definition PlantBase.c:179

◆ OnStoreLoad() [3/10]

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected
143 {
144 if ( !super.OnStoreLoad( ctx, version ) )
145 return false;
146
147 //--- Barbed wire data ---
148 //is mounted (removed in ver. 105)
149 if ( version < 105 )
150 {
151 float is_mounted;
152 if ( !ctx.Read( is_mounted ) )
153 {
154 return false;
155 }
156 }
157 //---
158
159 return true;
160 }

◆ OnStoreLoad() [4/10]

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected
409 {
410 if ( !super.OnStoreLoad( ctx, version ) )
411 return false;
412
413 //--- Base building data ---
414 //Restore synced parts data
415 if ( !ctx.Read( m_SyncParts01 ) )
416 {
417 m_SyncParts01 = 0; //set default
418 return false;
419 }
420 if ( !ctx.Read( m_SyncParts02 ) )
421 {
422 m_SyncParts02 = 0; //set default
423 return false;
424 }
425 if ( !ctx.Read( m_SyncParts03 ) )
426 {
427 m_SyncParts03 = 0; //set default
428 return false;
429 }
430
431 //has base
432 if ( !ctx.Read( m_HasBase ) )
433 {
434 m_HasBase = false;
435 return false;
436 }
437 //---
438
439 return true;
440 }

Перекрестные ссылки m_HasBase, m_SyncParts01, m_SyncParts02 и m_SyncParts03.

◆ OnStoreLoad() [5/10]

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprivate
34 {
35 if ( !super.OnStoreLoad(ctx, version) )
36 return false;
37
38 bool is_blood_type_visible = false;
41
42 return true;
43 }
void SetBloodTypeVisible(bool visible)
Definition BloodContainerBase.c:15

◆ OnStoreLoad() [6/10]

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprivate
38 {
39 if ( !super.OnStoreLoad( ctx, version ) )
40 return false;
41
42 return true;
43 }

◆ OnStoreLoad() [7/10]

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected
13 {
14 if (!super.OnStoreLoad(ctx, version))
15 return false;
16
17 if (version >= 108 && !ctx.Read(m_NoteContents))
18 return false;
19
20 return true;
21 }

◆ OnStoreLoad() [8/10]

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected
279 {
280 if (!super.OnStoreLoad(ctx, version))
281 return false;
282
283 // Load folded/unfolded state
284 bool b_is_folded = false;
285 if (!ctx.Read(b_is_folded))
286 b_is_folded = true;
287
288 if (b_is_folded)
289 {
290 Fold();
291 }
292 else
293 {
294 Unfold();
295 }
296
297 return true;
298 }

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

◆ OnStoreLoad() [9/10]

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected
107 {
108 if (!super.OnStoreLoad(ctx, version))
109 return false;
110
111 ctx.Read(m_State);
112 if (version >= 110)
113 {
114 if (!ctx.Read(m_OpeningMask))
115 Print("ERROR: no opening mask found! Default openinng settings initialized.");
116 }
117
118 if (m_State == PITCHED)
119 {
120 TryPitch(true);
121
122 if (GetGame().IsServer())
123 {
125 {
127 m_ClutterCutter.SetOrientation(GetOrientation());
128 }
129
131 }
132 }
133 else
134 {
135 Pack(true);
136 }
137
138 return true;
139 }
void RefreshAttachements()
Definition TentBase.c:324
bool HasClutterCutter()
Definition TentBase.c:805
string GetClutterCutter()
Definition TentBase.c:806

Перекрестные ссылки ECE_PLACE_ON_SURFACE, TentBase::GetClutterCutter(), GetGame(), GetOrientation(), GetPosition, TentBase::HasClutterCutter(), m_ClutterCutter, m_State и Print().

◆ OnStoreLoad() [10/10]

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected
113 {
114 if ( !super.OnStoreLoad(ctx, version) )
115 return false;
116
117 m_IsStoreLoad = true;
118
119 bool b_is_active = false;
120 if ( !ctx.Read( b_is_active ) )
121 b_is_active = false;
122
123 bool b_is_in_progress = false;
124 if (version < 139)
125 {
126 if ( !ctx.Read( b_is_in_progress ) )
127 b_is_in_progress = false;
128 }
129
130 bool b_is_deployed = false;
131 if ( !ctx.Read( b_is_deployed ) )
132 b_is_deployed = false;
133
134 if (version >= 139)
135 {
136 int enviroMask;
137 if (ctx.Read(enviroMask))
139 }
140
141 if (b_is_active)
142 {
144 SetActive();
145 }
146
148
149 m_IsStoreLoad = false;
150 return true;
151 }
bool m_IsStoreLoad
Definition ItemBase.c:4832
void SetDeployed(bool newState)
Definition TrapSpawnBase.c:181
int m_CatchEnviroMask
Definition TrapSpawnBase.c:26

Перекрестные ссылки TrapSpawnBase::InitCatchingComponent(), m_IsStoreLoad и SetActive().

◆ OnStoreLoadCustom()

bool OnStoreLoadCustom ( ParamsReadContext ctx,
int version )
inlineprivate
180 {
181 int loadInt;
182 if ( !ctx.Read( loadInt ) )
183 loadInt = 0;
184
186
187 loadInt = 0;
188 if ( !ctx.Read( loadInt ) )
189 loadInt = 5;
190
192
193 loadInt = 0;
194 if ( !ctx.Read( loadInt ) )
195 loadInt = 5;
197
198 loadInt = 0;
199 if ( !ctx.Read( loadInt ) )
200 loadInt = 300;
202
203 loadInt = 0;
204 if ( !ctx.Read( loadInt ) )
205 loadInt = 300;
207
208 loadInt = 0;
209 if ( !ctx.Read( loadInt ) )
210 return false;
212
213 float loadFloat = 0.0;
214 if ( !ctx.Read( loadFloat ) )
215 loadFloat = 0;
217
218 loadInt = 0;
219 if ( !ctx.Read( loadInt ) )
220 return false;
222
223 loadInt = 0;
224 if ( !ctx.Read( loadInt ) )
225 loadInt = 1;
227
228 string loadString = "";
229 if ( !ctx.Read( loadString ) )
230 return false;
232
233 loadFloat = 0.0;
234 if ( !ctx.Read( loadFloat ) )
235 loadFloat = 1;
237
238 loadInt = 0;
239 if ( !ctx.Read( loadInt ) )
240 loadInt = 1;
242
243 loadInt = 0;
244 if ( !ctx.Read( loadInt ) )
245 loadInt = 0;
247
248 loadFloat = 0.0;
249 if ( !ctx.Read( loadFloat ) )
250 loadFloat = 1;
252
253 bool loadBool = false;
254 if ( !ctx.Read( loadBool ) )
255 loadBool = false;
257
258 loadFloat = 0.0;
259 if ( !ctx.Read( loadFloat ) )
260 loadFloat = 0;
262
263
264
265 loadBool = false;
266 if ( ctx.Read( loadBool ) )
267 {
268 if ( loadBool )
269 {
270 if (GetGame().IsServer())
271 {
273 m_GrowthTimer.Run( m_StateChangeTime, this, "GrowthTimerTick", NULL, true );
274 }
275 }
276 }
277 else
278 {
279 return false;
280 }
281
282 loadFloat = 0.0;
283 if ( ctx.Read( loadFloat ) )
284 {
285 if ( loadFloat > 0.0 )
286 {
287 if (GetGame().IsServer())
288 {
290 m_InfestationTimer.Run( loadFloat, this, "InfestationTimerTick", NULL, false );
291 }
292 }
293 }
294 else
295 {
296 return false;
297 }
298
299 loadFloat = 0.0;
300 if ( ctx.Read( loadFloat ) )
301 {
302 if ( loadFloat > 0.0 )
303 {
304 if (GetGame().IsServer())
305 {
307 m_SpoilAfterFullMaturityTimer.Run( loadFloat, this, "SetSpoiled", NULL, false );
308 }
309 }
310 }
311 else
312 {
313 return false;
314 }
315
316 loadFloat = 0.0;
317 if ( ctx.Read( loadFloat ) )
318 {
319 if ( loadFloat > 0.0 )
320 {
321 if (GetGame().IsServer())
322 {
325
326 m_SpoiledRemoveTimer.Run( loadFloat, this, "SpoiledRemoveTimerTick", NULL, false );
327 }
328 }
329 }
330 else
331 {
332 return false;
333 }
334
335 loadFloat = 0.0;
336 if ( ctx.Read( loadFloat ) )
337 {
338 if ( loadFloat > 0.0 )
339 {
340 if (GetGame().IsServer())
341 {
343 m_DeleteDryPlantTimer.Run( loadFloat, this, "DeleteDryPlantTick", NULL, false );
344 }
345 }
346 }
347 else
348 {
349 return false;
350 }
351
352
353 UpdatePlant();
354 return true;
355 }
ref Timer m_SpoiledRemoveTimer
Definition PlantBase.c:36
int m_SpoiledRemoveTime
Definition PlantBase.c:28
float m_CurrentPlantMaterialQuantity
Definition PlantBase.c:21

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

◆ OnStoreSave() [1/10]

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprivate
226 {
227 super.OnStoreSave( ctx );
228
230
231 for ( int i = 0; i < slots_count; i++ )
232 {
233 Slot slot = m_Slots.Get( i );
234
235 slot.OnStoreSaveCustom( ctx );
236 }
237
239
240 ctx.Write( m_SlotWateredState );
241 }

Перекрестные ссылки GardenBase::GetGardenSlotsCount().

◆ OnStoreSave() [2/10]

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprivate
152 {
153 super.OnStoreSave( ctx );
154
155 Slot slot = GetSlot();
156
157 if (slot)
158 {
159 int slot_index = slot.GetSlotIndex();
160 slot.SetPlant(this); // hack
161
162 ctx.Write( slot_index );
163
165 }
166 else
167 {
168 GetGame().ObjectDelete(this); // Plants that exist without a garden must be deleted. Otherwise they might cause problems.
169 Print("Warning! A plant existed without a garden. Therefore it was deleted from the world to prevent issues!");
170 }
171 }
void OnStoreSaveCustom(ParamsWriteContext ctx)
Definition PlantBase.c:357

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

◆ OnStoreSave() [3/10]

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected
138 {
139 super.OnStoreSave( ctx );
140 }

◆ OnStoreSave() [4/10]

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected
397 {
398 super.OnStoreSave( ctx );
399
400 //sync parts 01
401 ctx.Write( m_SyncParts01 );
402 ctx.Write( m_SyncParts02 );
403 ctx.Write( m_SyncParts03 );
404
405 ctx.Write( m_HasBase );
406 }

Перекрестные ссылки m_HasBase, m_SyncParts01, m_SyncParts02 и m_SyncParts03.

◆ OnStoreSave() [5/10]

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprivate
27 {
28 super.OnStoreSave(ctx);
29
31 }

◆ OnStoreSave() [6/10]

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprivate
33 {
34 super.OnStoreSave( ctx );
35 }

◆ OnStoreSave() [7/10]

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected
24 {
25 super.OnStoreSave(ctx);
26
27 ctx.Write(m_NoteContents);
28 }

◆ OnStoreSave() [8/10]

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected
271 {
272 super.OnStoreSave(ctx);
273
274 // Save folded/unfolded state
275 ctx.Write(m_IsFolded);
276 }

◆ OnStoreSave() [9/10]

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected
99 {
100 super.OnStoreSave(ctx);
101
102 ctx.Write(m_State);
103 ctx.Write(m_OpeningMask);
104 }

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

◆ OnStoreSave() [10/10]

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected
102 {
103 super.OnStoreSave( ctx );
104
105 ctx.Write( m_IsActive );
106
107 ctx.Write( m_IsDeployed );
108
109 ctx.Write(m_CatchEnviroMask);
110 }

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

◆ OnStoreSaveCustom()

void OnStoreSaveCustom ( ParamsWriteContext ctx)
inlineprivate
358 {
359 ctx.Write( m_SprayUsage );
360
361 ctx.Write( m_DeleteDryPlantTime );
362
363 ctx.Write( m_SpoiledRemoveTime );
364
365 ctx.Write( m_FullMaturityTime );
366
368
369 ctx.Write( m_StateChangeTime );
370
371 ctx.Write( m_InfestationChance );
372
373 ctx.Write( m_GrowthStagesCount );
374
375 ctx.Write( m_CropsCount );
376
377 ctx.Write( m_CropsType );
378
380
381 ctx.Write( m_PlantState );
382
383 ctx.Write( m_PlantStateIndex );
384
386
387 ctx.Write( m_IsInfested );
388
389 ctx.Write( m_SprayQuantity );
390
391 bool saveBool = false;
392 if ( m_GrowthTimer != NULL )
393 {
394 saveBool = true;
395 }
396 ctx.Write( saveBool );
397
398 float saveFloat = 0.0;
399 if ( m_InfestationTimer != NULL )
400 {
401 saveFloat = m_InfestationTimer.GetRemaining();
402 }
403 ctx.Write( saveFloat );
404
405 saveFloat = 0.0;
407 {
409 }
410 ctx.Write( saveFloat );
411
412 saveFloat = 0.0;
413 if ( m_SpoiledRemoveTimer != NULL )
414 {
415 saveFloat = m_SpoiledRemoveTimer.GetRemaining();
416 }
417 ctx.Write( saveFloat );
418
419 saveFloat = 0.0;
421 {
422 saveFloat = m_DeleteDryPlantTimer.GetRemaining();
423 }
424 ctx.Write( saveFloat );
425 }

◆ OnSwitchOff() [1/5]

override void OnSwitchOff ( )
inlineprotected
337 {
338 HideSelection(SEL_SWITCH_ON);
339 ShowSelection(SEL_SWITCH_OFF);
340 }

◆ OnSwitchOff() [2/5]

override void OnSwitchOff ( )
inlineprotected
27 {
28 super.OnSwitchOff();
29
30 //sound (client only)
32 }
void SoundTurnOff()
Definition PortableGasLamp.c:79

◆ OnSwitchOff() [3/5]

override void OnSwitchOff ( )
inlineprotected
137 {
138 super.OnSwitchOff();
139
140 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
141 {
142 m_UTSource.SetDefferedActive(false, 5.0);
143 }
144
145 //sound (client only)
146 SoundTurnOff();
148 {
149 m_CookingProcess.TerminateCookingSounds(GetCookingEquipment());
150 }
151 }

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

◆ OnSwitchOff() [4/5]

override void OnSwitchOff ( )
inlineprivate
43 {
44
45 }

◆ OnSwitchOff() [5/5]

override void OnSwitchOff ( )
inlineprotected
93 {
94 super.OnSwitchOff();
95
97
98 if (m_Light)
99 {
100 m_Light.FadeOut(0.05);
101 m_Light = null;
102 }
103 }

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

◆ OnSwitchOn() [1/5]

override void OnSwitchOn ( )
inlineprotected
331 {
332 HideSelection(SEL_SWITCH_OFF);
333 ShowSelection(SEL_SWITCH_ON);
334 }

◆ OnSwitchOn() [2/5]

override void OnSwitchOn ( )
inlineprotected
19 {
20 super.OnSwitchOn();
21
22 //sound (client only)
24 }
void SoundTurnOn()
Definition PortableGasLamp.c:74

◆ OnSwitchOn() [3/5]

override void OnSwitchOn ( )
inlineprotected
124 {
125 super.OnSwitchOn();
126
127 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
128 {
129 m_UTSource.SetDefferedActive(true, 3.0);
130 }
131
132 //sound (client only)
133 SoundTurnOn();
134 }

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

◆ OnSwitchOn() [4/5]

override void OnSwitchOn ( )
inlineprivate
38 {
39
40 }

◆ OnSwitchOn() [5/5]

override void OnSwitchOn ( )
inlineprotected
86 {
87 super.OnSwitchOn();
88
90 }

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

◆ OnSynchronizedClient()

void OnSynchronizedClient ( )
inlineprotected
112 {
113 //update parts
115
116 //update action on part
118
119 //update visuals (client)
121 }
void SetActionFromSyncData()
Definition BaseBuildingBase.c:235
void SetPartsFromSyncData()
Definition BaseBuildingBase.c:294

Перекрестные ссылки SetActionFromSyncData(), SetPartsFromSyncData() и BaseBuildingBase::UpdateVisuals().

◆ OnVariablesSynchronized() [1/12]

override void OnVariablesSynchronized ( )
inlineprivate
69 {
70 super.OnVariablesSynchronized();
71
72 SyncSlots();
73 }

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

◆ OnVariablesSynchronized() [2/12]

override void OnVariablesSynchronized ( )
inlineprotected
120 {
121 super.OnVariablesSynchronized();
122
124 {
125 //Play sound
126 PlaySoundSet( m_MountSound, SOUND_MOUNT, 0.1, 0.1 );
127 }
129
130 if ( IsDeploySound() )
131 {
133 }
134 }
void PlayDeploySound()
Definition ItemBase.c:9124
bool IsDeploySound()
Definition ItemBase.c:9098
EffectSound m_MountSound
Definition BarbedWire.c:28
const string SOUND_MOUNT
Definition BarbedWire.c:27
bool m_LastMountedState
Definition BarbedWire.c:26
bool m_IsMounted
Definition BarbedWire.c:25

Перекрестные ссылки IsDeploySound(), m_IsMounted и PlayDeploySound().

◆ OnVariablesSynchronized() [3/12]

override void OnVariablesSynchronized ( )
inlineprotected
104 {
105 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " OnVariablesSynchronized");
106 super.OnVariablesSynchronized();
107
108 GetGame().GetCallQueue( CALL_CATEGORY_GAMEPLAY ).CallLater( OnSynchronizedClient, 100, false );
109 }
void OnSynchronizedClient()
Definition BaseBuildingBase.c:111

Перекрестные ссылки bsbDebugPrint(), CALL_CATEGORY_GAMEPLAY, GetDebugName(), GetGame(), LogManager::IsBaseBuildingLogEnable() и OnSynchronizedClient().

◆ OnVariablesSynchronized() [4/12]

override void OnVariablesSynchronized ( )
inlineprotected
362 {
363 super.OnVariablesSynchronized();
364
365 if ( IsPlaceSound() )
366 {
368 }
369 }
void PlayPlaceSound()
Definition ItemBase.c:9148
bool IsPlaceSound()
Definition ItemBase.c:9088

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

◆ OnVariablesSynchronized() [5/12]

override void OnVariablesSynchronized ( )
inlineprivate
80 {
81 super.OnVariablesSynchronized();
82
83 if (IsPlaceSound())
85 }

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

◆ OnVariablesSynchronized() [6/12]

override void OnVariablesSynchronized ( )
inlineprivate
25 {
26 super.OnVariablesSynchronized();
27
28
29 }

◆ OnVariablesSynchronized() [7/12]

override void OnVariablesSynchronized ( )
inlineprotected
27 {
28 super.OnVariablesSynchronized();
29
30 if ( IsDeploySound() )
31 {
33 }
34
36 {
38 }
39 }
void PlayDeployFinishSound()
Definition ItemBase.c:9136
bool IsSoundSynchRemote()
Definition ItemBase.c:9073

Перекрестные ссылки IsDeploySound(), IsSoundSynchRemote(), PlayDeployFinishSound() и PlayDeploySound().

◆ OnVariablesSynchronized() [8/12]

override void OnVariablesSynchronized ( )
inlineprotected
351 {
352 super.OnVariablesSynchronized();
353
355
356 if (IsPlaceSound())
357 {
359 }
360 }

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

◆ OnVariablesSynchronized() [9/12]

override void OnVariablesSynchronized ( )
inlineprivate
48 {
49 super.OnVariablesSynchronized();
50
51 if ( IsPlaceSound() )
52 {
54 }
55 }

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

◆ OnVariablesSynchronized() [10/12]

override void OnVariablesSynchronized ( )
inlineprotected
241 {
242 super.OnVariablesSynchronized();
243
244 if (IsDeploySound())
245 {
247 }
248 }

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

◆ OnVariablesSynchronized() [11/12]

override void OnVariablesSynchronized ( )
inlineprotected
167 {
168 super.OnVariablesSynchronized();
169
170 if (IsDeploySound())
171 {
173 }
174 else
175 {
176 if (m_State == PITCHED)
177 {
179 {
180 if (m_IsToggle)
181 {
183 }
184 else
185 {
187 }
188 }
190 {
191 if (m_IsToggle)
192 {
194 }
195 else
196 {
198 }
199 }
200 }
201 }
202
203 if (m_State != m_StateLocal)
204 {
205 if (m_State == PACKED)
206 Pack(false);
207 else
208 TryPitch(false);
209
211 }
212
213 if ((m_OpeningMaskLocal != m_OpeningMask)) //opening synchronization for physics recalculation
214 {
217
218 if (m_State == PACKED)
219 {
220 Pack(false); //intentional
221 }
222 }
223 }
void SoundTentClosePlay()
Definition TentBase.c:780
void HandleOpeningsPhysics()
Definition TentBase.c:883
int m_OpeningMaskLocal
Definition TentBase.c:31
void SoundTentOpenPlay()
Definition TentBase.c:774
bool IsManipulatedWindow()
Definition TentBase.c:679
void SoundTentCloseWindowPlay()
Definition TentBase.c:792
void SoundTentOpenWindowPlay()
Definition TentBase.c:786
bool IsManipulatedEntrance()
Definition TentBase.c:674
bool m_IsToggle
Definition TentBase.c:28

Перекрестные ссылки IsDeploySound(), IsSoundSynchRemote(), m_State и PlayDeploySound().

◆ OnVariablesSynchronized() [12/12]

override void OnVariablesSynchronized ( )
inlineprotected

this event is called all variables are synchronized on client

155 {
156 super.OnVariablesSynchronized();
157
158 if (IsDeploySound() && IsDeployed())
159 {
161 }
162
164 {
166 if (m_YieldItemIdxLocal != -1)
168 }
169 }
void OnCatchSpawnClient()
Definition TrapSpawnBase.c:583
int m_YieldItemIdxLocal
Definition TrapSpawnBase.c:27

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

◆ OnWasAttached() [1/3]

override void OnWasAttached ( EntityAI parent,
int slot_id )
inlineprivate
913 {
914 super.OnWasAttached(parent, slot_id);
915
916 if ( slot_id == InventorySlots.HEADGEAR || slot_id == InventorySlots.MASK )
917 HandleVoiceEffect(true, PlayerBase.Cast(GetHierarchyRootPlayer()));
918 }

◆ OnWasAttached() [2/3]

override void OnWasAttached ( EntityAI parent,
int slot_id )
inlineprivate
70 {
71 super.OnWasAttached(parent,slot_id);
72
73 HideSelection("folded");
74 ShowSelection("unfolded");
75 }

◆ OnWasAttached() [3/3]

override void OnWasAttached ( EntityAI parent,
int slot_id )
inlineprivate
4 {
5 super.OnWasAttached( parent, slot_id );
6
8 if ( Class.CastTo(parent_item,parent) )
9 {
10 parent_item.AddLightSourceItem(this);
11 }
12 }

Перекрестные ссылки Class::CastTo().

◆ OnWasDetached() [1/3]

override void OnWasDetached ( EntityAI parent,
int slot_id )
inlineprivate
921 {
922 super.OnWasDetached(parent, slot_id);
923
924 HandleVoiceEffect(false, PlayerBase.Cast(parent));
925 }

◆ OnWasDetached() [2/3]

override void OnWasDetached ( EntityAI parent,
int slot_id )
inlineprivate
78 {
79 super.OnWasDetached(parent,slot_id);
80
81 ShowSelection("folded");
82 HideSelection("unfolded");
83 }

◆ OnWasDetached() [3/3]

override void OnWasDetached ( EntityAI parent,
int slot_id )
inlineprivate
15 {
16 super.OnWasDetached( parent, slot_id );
17
19 if ( Class.CastTo(parent_item,parent) )
20 {
21 parent_item.RemoveLightSourceItem();
22 }
23 }

Перекрестные ссылки Class::CastTo().

◆ OnWork() [1/6]

override void OnWork ( float consumed_energy)
inlineprotected
196{}

◆ OnWork() [2/6]

override void OnWork ( float consumed_energy)
inlineprotected
51 {
52 // Charging functionality
53 ItemBase battery = ItemBase.Cast( GetCompEM().GetPluggedDevice() );
54
55 if ( battery )
56 {
57 if ( GetGame().IsServer() )
58 {
59 float battery_capacity = battery.GetCompEM().GetEnergyMax();
60
61 if ( battery.GetCompEM().GetEnergy() < battery_capacity )
62 {
63 float charger_health = GetHealth("", "");
64 float energy_add = m_ChargeEnergyPerSecond * ( consumed_energy / GetCompEM().GetEnergyUsage() );
65
66 #ifdef DIAG_DEVELOPER
67 if (FeatureTimeAccel.GetFeatureTimeAccelEnabled(ETimeAccelCategories.ENERGY_RECHARGE))
68 {
69 float timeAccel = FeatureTimeAccel.GetFeatureTimeAccelValue();
71 }
72 #endif
73
74 if ( GetCompEM().ConsumeEnergy(energy_add) ) // consumes energy from the power source
75 {
76 // There is enough of energy to use
77 energy_add = energy_add * ( 0.5 + charger_health*0.005 ); // Damaged charger works less efficiently - 50% damage causes 75% efficiency
78 }
79 else
80 {
81 // There is NOT enough of energy to use
82 energy_add = 0;
83 }
84
85 battery.GetCompEM().AddEnergy( energy_add );
86 }
87 else
88 {
89 battery.GetCompEM().SetEnergy( battery_capacity );
90 }
91 m_BatteryEnergy0To100 = battery.GetCompEM().GetEnergy0To100();
92 SetSynchDirty();
93 }
94 }
95 }
int m_BatteryEnergy0To100
Definition BatteryCharger.c:28

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

◆ OnWork() [3/6]

override void OnWork ( float consumed_energy)
inlineprivate
26 {
27 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // Client side
28 {
29 Battery9V battery = Battery9V.Cast( GetCompEM().GetEnergySource() );
30
31 if (battery && m_Light)
32 {
33 float efficiency = battery.GetEfficiency0To1();
34
35 if ( efficiency < 1 )
36 {
37 m_Light.SetIntensity( efficiency, GetCompEM().GetUpdateInterval() );
38 }
39 else
40 {
41 m_Light.SetIntensity( 1, 0 );
42 }
43 }
44 }
45 }
void SetIntensity(float coef, float time)
Definition ChemlightLight.c:16

Перекрестные ссылки GetGame(), m_Light и PointLightBase::SetIntensity().

◆ OnWork() [4/6]

override void OnWork ( float consumed_energy)
inlineprotected

damaging of cookware

188 {
189 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
190 {
192 }
193
194 //manage cooking equipment
196 if (item && item.CanHaveTemperature())
197 {
198 if (GetGame() && GetGame().IsServer())
199 {
200 float cook_equip_temp = item.GetTemperature();
201 float target = PARAM_COOKING_EQUIP_MAX_TEMP; //makes sense here, since gas stove does not heat itself, and we need some target
202 float diff = target - cook_equip_temp;
203 float heatPermCoef = item.GetHeatPermeabilityCoef();
204
205 //heat only, no self-coolig like FireplaceBase
206 if (diff > 0)
207 item.SetTemperatureEx(new TemperatureDataInterpolated(target,ETemperatureAccessTypes.ACCESS_FIREPLACE,GetCompEM().GetUpdateInterval(),GameConstants.TEMP_COEF_GAS_STOVE,heatPermCoef));
208
210 CookWithEquipment(); //heat children
211
213 GetCookingEquipment().DecreaseHealth(GameConstants.FIRE_ATTACHMENT_DAMAGE_PER_SECOND * GetCompEM().GetUpdateInterval(), false);
214 }
215 }
216 }
ETemperatureAccessTypes
Definition TemperatureAccessConstants.c:2
void CookWithEquipment()
Definition PortableGasStove.c:218
const float PARAM_COOKING_EQUIP_MAX_TEMP
Definition PortableGasStove.c:13
const float TEMP_COEF_GAS_STOVE
Definition constants.c:904
const float FIRE_ATTACHMENT_DAMAGE_PER_SECOND
various damage per second constants
Definition constants.c:770

Перекрестные ссылки CookWithEquipment(), GameConstants::FIRE_ATTACHMENT_DAMAGE_PER_SECOND, GetCookingEquipment(), GetGame(), m_UTSource, m_UTSSettings, PARAM_COOKING_EQUIP_MAX_TEMP и GameConstants::TEMP_COEF_GAS_STOVE.

◆ OnWork() [5/6]

override void OnWork ( float consumed_energy)
inlineprotected
173 {
174 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
175 {
177 }
178
179 if (GetGame().IsServer())
180 {
181 m_FuelPercentage = GetCompEM().GetEnergy0To100();
182 SetSynchDirty();
183 }
184
186 }

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

◆ OnWork() [6/6]

override void OnWork ( float consumed_energy)
inlineprivate
24 {
25
26 }

◆ OnWorkStart() [1/11]

override void OnWorkStart ( )
inlineprotected
172 {
174 if (m_TriggerActive)
176
177 if (m_IsPlaced)
178 {
179 //TimerRandomSpark();
181 }
182 }
void SoundBuzzLoopStart()
Definition BarbedWire.c:296

Перекрестные ссылки CreateElectrifiedDamageTrigger(), DestroyDamageTrigger() и SoundBuzzLoopStart().

◆ OnWorkStart() [2/11]

override void OnWorkStart ( )
inlineprotected
98 {
99 if ( GetGame().IsClient() || !GetGame().IsMultiplayer() )
100 {
102 m_UpdateStatusLightsTimer.Run( m_BlinkingStatusLightInterval/2 , this, "UpdateStatusLights", NULL, true);
103 }
104 }
float m_BlinkingStatusLightInterval
Definition BatteryCharger.c:31
void UpdateStatusLights()
Definition BatteryCharger.c:115

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

◆ OnWorkStart() [3/11]

override void OnWorkStart ( )
inlineprotected
12 {
13 super.OnWorkStart();
14
15 #ifndef SERVER
16 m_Light = BlowtorchLight.Cast(ScriptedLightBase.CreateLight(BlowtorchLight, "0 0 0"));
17 m_Light.AttachOnMemoryPoint(this, "light");
18 #endif
19
22 }
Definition BlowtorchLight.c:2
void SoundBurningStart()
Definition Blowtorch.c:51
Definition PointLightBase.c:2

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

◆ OnWorkStart() [4/11]

override void OnWorkStart ( )
inlineprivate
42 {
43 if ( !GetGame().IsDedicatedServer() )
45
47 GetCompEM().SetEnergyUsage(energy_needed);
48
49 if (!m_ChargingTimer)
51
52 if ( !m_ChargingTimer.IsRunning() )
53 {
54 m_ChargingTimer.Run(m_ChargeTime, this, "OnIsCharged", NULL, false);
55 }
56 }
ref Timer m_ChargingTimer
Definition Defibrillator.c:12
static const string CHARGING_SOUND
Definition Defibrillator.c:3
static float m_ChargeTime
Definition Defibrillator.c:9

Перекрестные ссылки CALL_CATEGORY_GAMEPLAY, GetGame(), m_ChargeTime и SEffectManager::PlaySoundOnObject().

◆ OnWorkStart() [5/11]

override void OnWorkStart ( )
inlineprivate
14 {
15 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // Client side
16 {
17 m_Light = FlashlightLight.Cast( ScriptedLightBase.CreateLight(FlashlightLight, "0 0 0", 0.08) ); // Position is zero because light is attached on parent immediately.
18 m_Light.AttachOnMemoryPoint(this, "beamStart", "beamEnd");
19 }
20
21 SetObjectMaterial(GLASS_ID, LIGHT_ON_GLASS);
22 SetObjectMaterial(REFLECTOR_ID, LIGHT_ON_REFLECTOR);
23 }
static string LIGHT_ON_GLASS
Definition Flashlight.c:10
static string LIGHT_ON_REFLECTOR
Definition Flashlight.c:11
static int REFLECTOR_ID
Definition Flashlight.c:5
static int GLASS_ID
Definition Flashlight.c:6

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

◆ OnWorkStart() [6/11]

override void OnWorkStart ( )
inlineprotected
35 {
36 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // client side
37 {
38 m_Light = PortableGasLampLight.Cast( ScriptedLightBase.CreateLight( PortableGasLampLight, "0 0 0") );
39 m_Light.AttachOnMemoryPoint(this, "light");
40 }
41
42 //refresh visual
43 SetObjectMaterial( 0, GAS_LIGHT_MATERIAL_ON );
44
45 //sound (client only)
47 }
const string GAS_LIGHT_MATERIAL_ON
Definition PortableGasLamp.c:5

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

◆ OnWorkStart() [7/11]

override void OnWorkStart ( )
inlineprotected
154 {
155 super.OnWorkStart();
156
157 #ifndef SERVER
158 m_Light = StoveLight.Cast(ScriptedLightBase.CreateLight(StoveLight, "0 0 0"));
159 m_Light.AttachOnMemoryPoint(this, "light");
160 #endif
161
162 //refresh visual
164
165 //sound (client only)
167 }

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

◆ OnWorkStart() [8/11]

override void OnWorkStart ( )
inlineprotected
146 {
147 if (GetGame().IsClient() || !GetGame().IsMultiplayer())
148 {
149 if (IsInitialized())
150 {
151 PlaySoundSet(m_EngineStart, START_SOUND, 0, 0);
152 }
153
155 {
157 }
158
159 if (!m_SoundLoopStartTimer.IsRunning()) // Makes sure the timer is NOT running already
160 {
161 m_SoundLoopStartTimer.Run(1.5, this, "StartLoopSound", NULL, false);
162 }
163 }
164
165 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
166 {
167 m_UTSource.SetDefferedActive(true, 20.0);
168 }
169 }
EffectSound m_EngineStart
Definition PowerGenerator.c:15
ref Timer m_SoundLoopStartTimer
Definition PowerGenerator.c:17
static const string START_SOUND
Definition PowerGenerator.c:8

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

◆ OnWorkStart() [9/11]

override void OnWorkStart ( )
inlineprotected
8 {
9 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // Client side
10 {
12 }
13 }
void StartPeriodicMeasurement()
Definition Raycaster.c:15

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

◆ OnWorkStart() [10/11]

override void OnWorkStart ( )
inlineprivate
17 {
18 // TO DO: Slow down or stop the aging of food inside of the fridge when such functionality is created.
19
20 m_SoundLoopEntity = PlaySoundLoop("powerGeneratorLoop", 50); // using placeholder sound
21 }

◆ OnWorkStart() [11/11]

override void OnWorkStart ( )
inlineprotected
106 {
107 #ifndef SERVER
108 m_Light = SpotlightLight.Cast(ScriptedLightBase.CreateLight(SpotlightLight, "0 0 0"));
110 #endif
111
113 }

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

◆ OnWorkStop() [1/11]

override void OnWorkStop ( )
inlineprotected
185 {
187 if (m_TriggerActive)
189
190 if (m_IsPlaced)
192
193 m_SparkEvent.Stop();
194 }
void SoundBuzzLoopStop()
Definition BarbedWire.c:308

Перекрестные ссылки CreateDamageTrigger(), DestroyDamageTrigger() и SoundBuzzLoopStop().

◆ OnWorkStop() [2/11]

override void OnWorkStop ( )
inlineprotected
107 {
108 if ( GetGame().IsClient() || !GetGame().IsMultiplayer() )
109 {
112 }
113 }

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

◆ OnWorkStop() [3/11]

override void OnWorkStop ( )
inlineprotected
25 {
26 #ifndef SERVER
27 if (m_Light)
28 {
29 m_Light.FadeOut();
30 }
31 #endif
32
33 RefreshFlameVisual(false);
35 }
void SoundBurningStop()
Definition Blowtorch.c:56

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

◆ OnWorkStop() [4/11]

override void OnWorkStop ( )
inlineprivate
59 {
60 GetCompEM().SwitchOff();
61 GetCompEM().ResetEnergyUsage();
65
66 m_IsCharged = false;
67 }
void StopChargingSound()
Definition Defibrillator.c:94
void StopChargedAlarm()
Definition Defibrillator.c:84
void StopChargingTimer()
Definition Defibrillator.c:102

Перекрестные ссылки StopChargedAlarm(), StopChargingSound() и StopChargingTimer().

◆ OnWorkStop() [5/11]

override void OnWorkStop ( )
inlineprivate
48 {
49 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // Client side
50 {
51 if (m_Light)
52 m_Light.FadeOut();
53
54 m_Light = NULL;
55 }
56
57 SetObjectMaterial(GLASS_ID, LIGHT_OFF_GLASS);
58 SetObjectMaterial(REFLECTOR_ID, LIGHT_OFF_REFLECTOR);
59 }
static string LIGHT_OFF_REFLECTOR
Definition Flashlight.c:9
static string LIGHT_OFF_GLASS
Definition Flashlight.c:8

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

◆ OnWorkStop() [6/11]

override void OnWorkStop ( )
inlineprotected
50 {
51 if (m_Light)
52 m_Light.FadeOut();
53
54 //refresh visual
55 SetObjectMaterial( 0, GAS_LIGHT_MATERIAL_OFF );
56
57 //sound (client only)
59 }
const string GAS_LIGHT_MATERIAL_OFF
Definition PortableGasLamp.c:6

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

◆ OnWorkStop() [7/11]

override void OnWorkStop ( )
inlineprotected
170 {
171 #ifndef SERVER
172 if (m_Light)
173 {
174 m_Light.FadeOut();
175 }
176 #endif
177
178 //refresh visual
179 RefreshFlameVisual(false, false);
180 //stop steam particle
182 //sound (client only)
184 }

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

◆ OnWorkStop() [8/11]

override void OnWorkStop ( )
inlineprotected
190 {
191 if (GetGame().IsClient() || !GetGame().IsMultiplayer())
192 {
193 // Sound
194 PlaySoundSet(m_EngineStop, STOP_SOUND, 0, 0);
195 StopSoundSet(m_EngineLoop);
196
197 // particle
199
200 // Fuel meter
202 }
203
204 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
205 {
206 m_UTSource.SetDefferedActive(false, 20.0);
207 }
208 }
static const string STOP_SOUND
Definition PowerGenerator.c:10
EffectSound m_EngineStop
Definition PowerGenerator.c:16
EffectSound m_EngineLoop
Definition PowerGenerator.c:14

Перекрестные ссылки SEffectManager::DestroyEffect(), GetGame() и m_UTSource.

◆ OnWorkStop() [9/11]

override void OnWorkStop ( )
inlineprotected
64 {
65 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // Client side
66 {
68 }
69 }
void StopPeriodicMeasurement()
Definition Raycaster.c:55

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

◆ OnWorkStop() [10/11]

override void OnWorkStop ( )
inlineprivate
29 {
30 // TO DO: Allow food inside the fridge to start aging again.
31
32 GetGame().ObjectDelete(m_SoundLoopEntity);
34 }

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

◆ OnWorkStop() [11/11]

override void OnWorkStop ( )
inlineprotected
116 {
117 #ifndef SERVER
118 if (m_Light)
119 m_Light.FadeOut();
120 #endif
121
123 }

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

◆ Pack()

void Pack ( bool update_navmesh,
bool init = false )
inlineprotected
500 {
502
503 m_State = PACKED;
507
508 Refresh();
509
510 GetInventory().LockInventory(HIDE_INV_FROM_SCRIPT);
511
512 if (update_navmesh)
513 {
515 }
516
518
519 if (GetGame().IsServer() && !IsHologram())
520 MiscGameplayFunctions.DropAllItemsInInventoryInBounds(this, m_HalfExtents);
521
522 SetSynchDirty();
523
524 if ((!GetGame().IsDedicatedServer()) && !init)
525 {
526 GetOnViewIndexChanged().Invoke();
527 }
528 }
enum MagnumStableStateID init
void HideAllAnimationsAndProxyPhysics(bool hide_animations=true, bool hide_physics=true)
Definition TentBase.c:261
void Refresh()
Definition TentBase.c:630
void RegenerateNavmesh()
Definition TentBase.c:798

Перекрестные ссылки GetGame(), init, IsHologram(), m_HalfExtents, m_State и Refresh().

◆ Paper()

void Paper ( )
inlineprotected
6 {
8 }
Definition WrittenNoteData.c:2

◆ ParticleTest()

void ParticleTest ( )
inlineprotected
10 {
11 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // Client side
12 {
14
15
16
17
18
19 // Enter particle ID to play when ParticleTest spawns
21
22 // Alternatively, uncomment the second line and enter particle filename without *.ptc suffix instead. Example: "menu_engine_fire"
23 string particle_filename = "menu_engine_fire";
24 //PARTICLE_PATH = ParticleList.GetParticleID( path + particle_filename );
25
26
27
28
29
30 m_Particle = ParticleManager.GetInstance().PlayOnObject( PARTICLE_PATH, this, GetPosition());
31 }
32 }
int PARTICLE_PATH
Definition ParticleTest.c:5
static string GetPathToParticles()
Returns base path to all particles.
Definition ParticleList.c:492

Перекрестные ссылки ParticleList::DEBUG_DOT, GetGame(), ParticleList::GetPathToParticles(), GetPosition, ParticleManager() и path.

◆ PerformRoofCheckForBase()

bool PerformRoofCheckForBase ( string partName,
PlayerBase player,
out bool result )
inlineprotected
978 {
979 return false;
980 }

◆ PileOfWoodenPlanks()

void PileOfWoodenPlanks ( )
inlineprivate
4 {
5 if ( GetGame().IsServer() )
6 {
7 SetAllowDamage(false);
8 }
9 }

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

◆ Pitch()

void Pitch ( bool update_navmesh,
bool init = false )
inlineprotected
531 {
533
538
539 Refresh();
540
541 GetInventory().UnlockInventory(HIDE_INV_FROM_SCRIPT);
542
543 if (update_navmesh)
544 {
546 }
547
548 SetSynchDirty();
549
550 if ((!GetGame().IsDedicatedServer()) && !init)
551 {
552 GetOnViewIndexChanged().Invoke();
553 }
554 }

Перекрестные ссылки GetGame(), init, m_State и Refresh().

◆ Pitchfork()

void Pitchfork ( )
inlineprivate
4 {
5 }

◆ PlaceOnGround()

void PlaceOnGround ( )
inlineprivate
6 {
7 vector pos = GetPosition();
8 pos[1] = GetGame().SurfaceRoadY(pos[0], pos[2]);
9 pos[1] = pos[1] + 0.22;
10 SetPosition(pos);
11 }
proto native void SetPosition(vector position)
Set the world position of the Effect.
Definition Effect.c:438

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

◆ PlantBase()

void PlantBase ( )
inlineprivate
47 {
48 m_ModuleHorticulture = PluginHorticulture.Cast( GetPlugin( PluginHorticulture ) );
49
50 m_SprayUsage = 5;
51 m_DeleteDryPlantTime = (60 * 10) + Math.RandomInt(0, 60 * 2);
52 m_SpoiledRemoveTime = (60 * 20) + Math.RandomInt(0, 60 * 5);
53
54 //Must be between 0 and 1
55 m_InfestationChance = 0.2; // Temporarily disabled until its fixed. Infestation is not visualy persistent over server restarts and m_SpoiledRemoveTimer crashes when it's meant to delete the plant.
56
57 string plant_type = this.GetType();
58 m_GrowthStagesCount = GetGame().ConfigGetInt( "cfgVehicles " + plant_type + " Horticulture GrowthStagesCount" );
59 m_CropsCount = GetGame().ConfigGetInt( "cfgVehicles " + plant_type + " Horticulture CropsCount" );
60 GetGame().ConfigGetText( "cfgVehicles " + plant_type + " Horticulture CropsType", m_CropsType );
61
64 m_IsInfested = false;
65 m_SprayQuantity = 0.0;
66 m_HasCrops = true;
67
68 SetTakeable( false );
69
70
71 RegisterNetSyncVariableBool("m_HasCrops");
72 RegisterNetSyncVariableInt("m_PlantState");
73 RegisterNetSyncVariableInt("m_PlantStateIndex");
74 }
override void SetTakeable(bool pState)
Definition ItemBase.c:9020
PluginBase GetPlugin(typename plugin_type)
Definition PluginManager.c:316

Перекрестные ссылки GetGame(), GetPlugin(), GetType(), Math::RandomInt() и SetTakeable().

◆ PlantSeed()

void PlantSeed ( ItemBase seed,
string selection_component )
inlineprivate
403 {
405
406 if ( slot_index != -1 )
407 {
408 PluginHorticulture module_horticulture = PluginHorticulture.Cast( GetPlugin( PluginHorticulture ) );
409 string plant_type = module_horticulture.GetPlantType( seed );
410
411 Slot slot = m_Slots.Get( slot_index );
412 slot.SetState(Slot.STATE_PLANTED);
413 slot.m_PlantType = plant_type;
414 slot.SetSeed(seed);
415
416 if ( !slot.NeedsWater() )
417 {
418 seed.LockToParent();
419 //Take some small amount of time before making a plant out of seeds
423 growthTimer.Run( 0.1, this, "CreatePlant", createPlantParam, false ); //Use a const for timer delay
424 }
425 }
426 }
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition param.c:12

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

◆ PlayCatchEffectsClient()

void PlayCatchEffectsClient ( )
inlineprotected
602 {
603 if (m_YieldItemIdx == -1)
604 return
605
606 YieldItemBase yItem = GetGame().GetMission().GetWorldData().GetCatchYieldBank().GetYieldItemByIdx(m_YieldItemIdx);
608 }
void PlayCatchSound(YieldItemBase yItem)
Definition TrapSpawnBase.c:610
Definition CatchYieldItemBase.c:2

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

◆ PlayCatchEffectsServer()

void PlayCatchEffectsServer ( )
inlineprotected
591 {
592 if (m_YieldItemIdx == -1)
593 return
594
595 YieldItemBase yItem = GetGame().GetMission().GetWorldData().GetCatchYieldBank().GetYieldItemByIdx(m_YieldItemIdx);
596
599 }
void PlayCatchParticleSynced(YieldItemBase yItem)
Definition TrapSpawnBase.c:629
void PlayCatchNoise(YieldItemBase yItem)
Definition TrapSpawnBase.c:616

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

◆ PlayCatchNoise()

void PlayCatchNoise ( YieldItemBase yItem)
inlineprotected
617 {
619 string noiseType = yItem.GetCatchAINoise();
620 if (noiseType == "")
621 return;
622
623 m_NoisePar.Load(noiseType);
624 float noiseMultiplier = yItem.GetCatchAINoiseBaseStrength();
626 GetGame().GetNoiseSystem().AddNoiseTarget(m_PreyPos, 5, m_NoisePar, noiseMultiplier);
627 }
ref NoiseParams m_NoisePar
Definition ActionOpenDoors.c:94
class NoiseSystem NoiseParams()
Definition Noise.c:15
vector m_PreyPos
Definition TrapSpawnBase.c:31
Definition SensesAIEvaluate.c:2
static float GetNoiseReduction(Weather weather)
Definition SensesAIEvaluate.c:18

Перекрестные ссылки GetGame(), NoiseAIEvaluate::GetNoiseReduction(), m_NoisePar и NoiseParams().

◆ PlayCatchParticleSynced()

void PlayCatchParticleSynced ( YieldItemBase yItem)
inlineprotected
630 {
631 int particleId = yItem.GetCatchParticleID();
633 return;
634
636 {
638 }
639 else
640 {
641 SEffectManager.ReinitParticleServer(m_CatchParticleEffecterId, new ParticleEffecterParameters("ParticleEffecter", 5, particleId)); //reinit here, since particleId might differ
643 }
644 }
int m_CatchParticleEffecterId
Definition TrapSpawnBase.c:29
Definition EffectManager.c:673
static const int INVALID
Definition ParticleList.c:20
static void ReinitParticleServer(int effecterID, EffecterParameters parameters)
allows re-initializing existing effecter with new parameters (extept m_EffecterType,...
Definition EffectManager.c:593
static void ReactivateParticleServer(int effecterID)
Definition EffectManager.c:602
static int CreateParticleServer(vector pos, EffecterParameters parameters)
returns unique effecter ID
Definition EffectManager.c:577

Перекрестные ссылки SEffectManager::CreateParticleServer(), ParticleList::INVALID, SEffectManager::ReactivateParticleServer() и SEffectManager::ReinitParticleServer().

◆ PlayCatchSound()

void PlayCatchSound ( YieldItemBase yItem)
inlineprotected
611 {
612 if (yItem.GetCatchDeathSoundset() != "")
613 SEffectManager.PlaySoundEnviroment(yItem.GetCatchDeathSoundset(),m_PreyPos);
614 }
static EffectSound PlaySoundEnviroment(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound, updating environment variables.
Definition EffectManager.c:228

Перекрестные ссылки SEffectManager::PlaySoundEnviroment().

◆ PlayDeployLoopSound() [1/5]

void PlayDeployLoopSound ( )
protected

◆ PlayDeployLoopSound() [2/5]

void PlayDeployLoopSound ( )
protected

◆ PlayDeployLoopSound() [3/5]

void PlayDeployLoopSound ( )
protected

◆ PlayDeployLoopSound() [4/5]

void PlayDeployLoopSound ( )
protected

◆ PlayDeployLoopSound() [5/5]

void PlayDeployLoopSound ( )
protected

◆ PostAreaDamageActions()

override void PostAreaDamageActions ( )
inlineprotected
356 {
357 //dmg to barbed wire here
358 MiscGameplayFunctions.DealAbsoluteDmg(this, 1000);
359 }

◆ PowerGeneratorBase()

void PowerGeneratorBase ( )
inlineprotected
28 {
29 SetEventMask(EntityEvent.INIT); // Enable EOnInit event
30
32 RegisterNetSyncVariableInt("m_FuelPercentage");
33 RegisterNetSyncVariableBool("m_IsSoundSynchRemote");
34 RegisterNetSyncVariableBool("m_IsPlaceSound");
35 }

◆ PreAreaDamageActions()

override void PreAreaDamageActions ( )
inlineprotected
346 {
347 if ( GetCompEM().IsPlugged() && GetCompEM().IsSwitchedOn() )
348 {
349 Spark();
351 }
353 }
void SoundCollision()
Definition BarbedWire.c:332
void Spark()
Definition BarbedWire.c:265
void SoundElectricShock()
Definition BarbedWire.c:321

Перекрестные ссылки SoundCollision(), SoundElectricShock() и Spark().

◆ PrepareMeasurement()

void PrepareMeasurement ( )
inlineprotected
26 {
29 }
void DoMeasurement()
Definition Raycaster.c:31

◆ PrintSlots()

void PrintSlots ( )
inlineprivate
244 {
245 Debug.Log("PRINT ALL SLOTS FROM...");
246 Debug.Log("" + this);
247 int slots = GetInventory().GetAttachmentSlotsCount();
248 Debug.Log("Nb Slots : " + slots);
249
250 for ( int i = 0; i < slots ; i++ )
251 {
252 Slot slot = m_Slots.Get(i);
253 Debug.Log("i : " + i);
254 Debug.Log("Slot : " + slot);
255
256 float slot_fertility = slot.GetFertility();
257 float slot_fertility_usage = slot.GetFertilityMax();
258 string slot_fertility_type = slot.GetFertilityType();
259 float slot_water = slot.GetWater();
260 float slot_water_usage = slot.GetWaterUsage();
261 ItemBase slot_seed = slot.GetSeed();
262 ItemBase slot_plant = slot.GetPlant();
263 float slot_state= slot.GetState();
264 float slot_slot_Index = slot.GetSlotIndex();
265 float slot_slot_ID = slot.GetSlotId();
266 int slot_wateredState = slot.GetWateredState();
267 int slot_FertilityState = slot.GetFertilityState();
268
269 Debug.Log("Fertility : " + slot_fertility);
270 Debug.Log("Fertility Usage : " + slot_fertility_usage);
271 Debug.Log("Fertility Type : " + slot_fertility_type);
272 Debug.Log("Fertility State : " + slot_FertilityState);
273 Debug.Log("Water : " + slot_water);
274 Debug.Log("Water Usage : " + slot_water_usage);
275 Debug.Log("Watered State : " + slot_wateredState);
276 Debug.Log("Seed : " + slot_seed);
277 Debug.Log("Plant : " + slot_plant);
278 Debug.Log("State : " + slot_state);
279 Debug.Log("Slot Index : " + slot_slot_Index);
280 Debug.Log("Slot ID : " + slot_slot_ID);
281 Debug.Log("///////////////////////////");
282 }
283
284 Debug.Log("END OF ALL SLOTS FOR...");
285 Debug.Log("" + this);
286 }

Перекрестные ссылки Debug::Log().

◆ PrintValues()

void PrintValues ( )
inlineprivate
428 {
429 Print("PRINT ALL VALUES OF PLANT...");
430 Print(this);
431
438 Print(m_Slot);
440 Print("----------------------------------------------------------");
441 }

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

◆ RedLightOff()

void RedLightOff ( )
inlineprotected
313 {
314 SetObjectMaterial( 0, DEFAULT_MATERIAL );
315 }

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

◆ RedLightOn()

void RedLightOn ( )
inlineprotected
296 {
297 SetObjectMaterial( 0, RED_LIGHT_GLOW );
298 }
const string RED_LIGHT_GLOW
Definition BatteryCharger.c:17

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

◆ Refresh()

void Refresh ( )
inlineprotected
631 {
632 GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).Call(UpdateVisuals);
634 }

Перекрестные ссылки CALL_CATEGORY_GAMEPLAY, GetGame(), UpdatePhysics() и UpdateVisuals().

◆ RefreshAttachements()

void RefreshAttachements ( )
inlineprotected
325 {
326 int slot_id_camo;
327 int slot_id_xlights;
329
331 m_CamoNet = CamoNet.Cast(GetInventory().FindAttachment(slot_id_camo));
332
334 eai_xlights = GetInventory().FindAttachment(slot_id_xlights);
335
336 if (m_CamoNet)
337 {
339 //SetAnimationPhase("Camonet", 0);
340
341 if (!IsKindOf("MediumTent"))
342 {
343 AddProxyPhysics("camonet");
344 }
345 }
346
347 if (eai_xlights)
348 {
349 SetAnimationPhase("Xlights", 0);
350 SetAnimationPhase("Xlights_glass_r", 0);
351 SetAnimationPhase("Xlights_glass_g", 0);
352 SetAnimationPhase("Xlights_glass_b", 0);
353 SetAnimationPhase("Xlights_glass_y", 0);
354 }
355 }

Перекрестные ссылки InventorySlots::GetSlotIdFromString() и TentBase::HandleCamoNetAttachment().

◆ RefreshFlameVisual() [1/2]

void RefreshFlameVisual ( bool working = false)
inlineprotected
38 {
39 if (working)
40 {
41 SetObjectTexture(0, TEXTURE_FLAME);
42 SetAnimationPhase(ANIM_PHASE_FLAME, 0.0);
43 }
44 else
45 {
46 SetObjectTexture(0, "");
47 SetAnimationPhase(ANIM_PHASE_FLAME, 1.0);
48 }
49 }
const string ANIM_PHASE_FLAME
Definition Blowtorch.c:4
const string TEXTURE_FLAME
Definition Blowtorch.c:3

◆ RefreshFlameVisual() [2/2]

void RefreshFlameVisual ( bool working = false,
bool hasAttachment = false )
inlineprotected

full size flame selection

shrinked flame selection

227 {
228 if (!working)
229 {
230 SetObjectTexture(0, FLAME_BUTANE_OFF);
231 SetObjectTexture(1, FLAME_BUTANE_OFF);
232
233 return;
234 }
235
236 if (!hasAttachment)
237 {
239 SetObjectTexture(0, FLAME_BUTANE_ON);
240 SetObjectTexture(1, FLAME_BUTANE_OFF);
241 }
242 else
243 {
245 SetObjectTexture(0, FLAME_BUTANE_OFF);
246 SetObjectTexture(1, FLAME_BUTANE_ON);
247 }
248 }
const string FLAME_BUTANE_OFF
Definition PortableGasStove.c:6
const string FLAME_BUTANE_ON
Definition PortableGasStove.c:5

◆ RefreshPhysics() [1/3]

override void RefreshPhysics ( )
inlineprotected
372 {
373 super.RefreshPhysics();
374
375 if ( GetAttachmentByType(CarBattery) )
376 {
377 RemoveProxyPhysics( "battery" );
378 AddProxyPhysics( "battery" );
379 }
380 else
381 RemoveProxyPhysics( "battery" );
382 }
Definition CarBattery.c:1

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

◆ RefreshPhysics() [2/3]

override void RefreshPhysics ( )
inlineprotected
125 {
126 super.RefreshPhysics();
127
129 }

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

◆ RefreshPhysics() [3/3]

override void RefreshPhysics ( )
inlineprotected
142 {
143 super.RefreshPhysics();
144
145 if (m_State == PITCHED)
146 {
147 TryPitch(false, true);
148 }
149 else
150 {
151 Pack(false, true);
152 }
153 }

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

◆ RegenerateNavmesh()

void RegenerateNavmesh ( )
inlineprotected
799 {
800 SetAffectPathgraph(true, false);
801
802 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(GetGame().UpdatePathgraphRegionByObject, 100, false, this);
803 }

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

◆ RegisterActionForSync()

void RegisterActionForSync ( int part_id,
int action_id )
inlineprotected
223 {
226 }
int m_InteractedPartId
Definition BaseBuildingBase.c:15
int m_PerformedActionId
Definition BaseBuildingBase.c:16

Перекрестные ссылки m_InteractedPartId и m_PerformedActionId.

◆ RegisterPartForSync()

void RegisterPartForSync ( int part_id)
inlineprotected
125 {
126 //part_id must starts from index = 1
127 int offset;
128 int mask;
129
130 if ( part_id >= 1 && part_id <= 31 ) //<1,31> (31 parts)
131 {
132 offset = part_id - 1;
133 mask = 1 << offset;
134
136 }
137 else if ( part_id >= 32 && part_id <= 62 ) //<32,62> (31 parts)
138 {
139 offset = ( part_id % 32 );
140 mask = 1 << offset;
141
143 }
144 else if ( part_id >= 63 && part_id <= 93 ) //<63,93> (31 parts)
145 {
146 offset = ( part_id % 63 );
147 mask = 1 << offset;
148
150 }
151 }

Перекрестные ссылки m_SyncParts01, m_SyncParts02 и m_SyncParts03.

◆ RemoveCookingAudioVisuals()

void RemoveCookingAudioVisuals ( )
inlineprotected
255 {
257 if (cookEquipment)
258 {
259 switch (cookEquipment.Type())
260 {
264 cookingPot.RemoveAudioVisualsOnClient();
265 break;
268 fryingPan.RemoveAudioVisualsOnClient();
269 break;
270 }
271 }
272 }
Definition Canteen.c:2
Definition FryingPan.c:2

Перекрестные ссылки ATTACHMENT_CAULDRON, ATTACHMENT_COOKING_POT, ATTACHMENT_FRYING_PAN и GetCookingEquipment().

◆ RemovePlanks()

int RemovePlanks ( int needed_planks)
inlineprivate
73 {
74 // Make sure to not give more long planks than we have available
77 {
79 }
80
81 // Remove long planks from this object
82 AddQuantity( -available_planks, true ); // Autodelete enabled
83
84 // Visual feedback
86
87 // Return the number of removed long planks
88 return available_planks;
89 }

Перекрестные ссылки AddQuantity(), GetQuantity() и UpdateSelections().

◆ RemovePlant()

void RemovePlant ( )
inlineprivate
691 {
692 if ( GetGame() && GetGame().IsServer() )
693 {
695
697 {
698 vector pos = GetPosition();
699 ItemBase item = ItemBase.Cast( GetGame().CreateObjectEx( "PlantMaterial", pos, ECE_PLACE_ON_SURFACE ) );
700 item.SetQuantity( m_CurrentPlantMaterialQuantity * 1000.0 );
701 }
702
703 RemoveSlot();
704 }
705 }

Перекрестные ссылки ECE_PLACE_ON_SURFACE, GetGame(), GetPosition и UnlockFromParent().

◆ RemovePlantEx()

void RemovePlantEx ( vector pos)
inlineprivate
708 {
709 if ( GetGame() && GetGame().IsServer() )
710 {
712
714 {
715 ItemBase item = ItemBase.Cast( GetGame().CreateObjectEx( "PlantMaterial", pos, ECE_PLACE_ON_SURFACE ) );
716 item.SetQuantity( m_CurrentPlantMaterialQuantity * 1000.0 );
717 }
718
719 RemoveSlot();
720 }
721 }

Перекрестные ссылки ECE_PLACE_ON_SURFACE, GetGame() и UnlockFromParent().

◆ RemoveSlot() [1/2]

void RemoveSlot ( )
inlineprivate
825 {
826 GardenBase garden = GardenBase.Cast( GetHierarchyParent() );
827
828 if ( garden )
829 {
831 {
834 }
835
836 garden.RemoveSlotPlant( this );
837 }
838 }

◆ RemoveSlot() [2/2]

void RemoveSlot ( int index)
inlineprivate
623 {
624 if ( m_Slots != NULL )
625 {
626 Slot slot = m_Slots.Get( index );
627 PlantBase plant = slot.GetPlant();
628
629 if ( plant )
630 {
631 plant.UnlockFromParent();
632 plant.m_MarkForDeletion = true;
633 GetGame().ObjectDelete( plant );
634 }
635
636 slot.Init( GetBaseFertility() );
637
638 // Clear relevant bit
639 slot.SetFertilityState(eFertlityState.NONE);
640 m_SlotFertilityState &= ~(1 << slot.GetSlotIndex());
641
642 slot.SetWateredState( eWateredState.DRY );
643 m_SlotWateredState &= ~(1 << slot.GetSlotIndex());
644
645 SetSynchDirty();
646
647 HideSelection( SLOT_SELECTION_COVERED_PREFIX + (index + 1).ToStringLen(2) );
649 }
650 }
static const string SLOT_SELECTION_COVERED_PREFIX
Definition GardenBase.c:18

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

◆ RemoveSlotPlant()

void RemoveSlotPlant ( Object plant)
inlineprivate
653 {
655 if ( index >= 0 )
656 {
657 RemoveSlot( index );
658 }
659 }
int GetSlotIndexByPlant(Object plant)
Definition GardenBase.c:722

◆ ResetActionSyncData()

void ResetActionSyncData ( )
inlineprotected
229 {
230 //reset data
233 }

Перекрестные ссылки m_InteractedPartId и m_PerformedActionId.

◆ ResetActiveProgress()

void ResetActiveProgress ( )
inlineprotected
298 {
299 m_ActivationTime = GetGame().GetTickTime();
300 m_ElapsedTime = 0;
302
303 #ifdef DEVELOPER
305 #endif
306 }
int m_ActivationTime
Definition TrapSpawnBase.c:21

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

◆ ResetRunningTimerProgress()

void ResetRunningTimerProgress ( )
inlineprotected
309 {
311 {
313 RunTrappingTimer(m_UpdateWaitTime,"EvaluateCatch");
314 }
315 else
316 {
319 }
320 }
int m_InitWaitTime
duh
Definition TrapSpawnBase.c:18

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

◆ ResetToggle()

void ResetToggle ( )
inlineprotected
658 {
659 m_IsEntrance = false;
660 m_IsWindow = false;
661 m_IsToggle = false;
662 }

◆ RunTrappingTimer()

void RunTrappingTimer ( float duration,
string fnName )
inlineprotected

generic trapping launcher for traps, use this to store delta info

324 {
325 if (!m_Timer)
327 else
328 m_Timer.Stop();
329
331 m_Timer.Run(duration, this, fnName);
332 }

Перекрестные ссылки CALL_CATEGORY_SYSTEM и m_Timer.

◆ SetActionAnimOverrides() [1/2]

override void SetActionAnimOverrides ( )
inlineprivate
29 {
30 OverrideActionAnimation(ActionDigWorms, DayZPlayerConstants.CMD_ACTIONFB_DIGGIN_WORMS, DayZPlayerConstants.STANCEMASK_ERECT);
31 }
void OverrideActionAnimation(typename action, int commandUID, int stanceMask=-1, int commandUIDProne=-1)
Definition ItemBase.c:5141
Definition ActionDigWorms.c:18
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

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

◆ SetActionAnimOverrides() [2/2]

override void SetActionAnimOverrides ( )
inlineprivate
28 {
29 OverrideActionAnimation(ActionDigWorms, DayZPlayerConstants.CMD_ACTIONFB_DIGGIN_WORMS, DayZPlayerConstants.STANCEMASK_ERECT);
30 }

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

◆ SetActionFromSyncData()

void SetActionFromSyncData ( )
inlineprotected
236 {
237 if ( m_InteractedPartId > -1 && m_PerformedActionId > -1 )
238 {
241
242 switch( build_action_id )
243 {
244 case AT_BUILD_PART : OnPartBuiltClient( constrution_part.GetPartName(), build_action_id ); break;
247 }
248 }
249 }
const int AT_DISMANTLE_PART
Definition _constants.c:7
void OnPartDismantledClient(string part_name, int action_id)
Definition BaseBuildingBase.c:636
void OnPartDestroyedClient(string part_name, int action_id)
Definition BaseBuildingBase.c:676
void OnPartBuiltClient(string part_name, int action_id)
Definition BaseBuildingBase.c:596
ConstructionPart GetConstructionPartById(int id)
Definition BaseBuildingBase.c:310

Перекрестные ссылки AT_BUILD_PART, AT_DESTROY_PART, AT_DISMANTLE_PART, GetConstructionPartById(), m_InteractedPartId, m_PerformedActionId, OnPartBuiltClient(), OnPartDestroyedClient() и OnPartDismantledClient().

◆ SetActions() [1/50]

override void SetActions ( )
inlineprivate
733 {
734 super.SetActions();
735
736 AddAction(ActionAttach);
737 }
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220

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

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

◆ SetActions() [2/50]

override void SetActions ( )
inlineprivate
743 {
744 super.SetActions();
745
746 AddAction(ActionAttach);
747 }

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

◆ SetActions() [3/50]

override void SetActions ( )
inlineprivate
755 {
756 super.SetActions();
757
759 }
Definition ActionFillOil.c:12

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

◆ SetActions() [4/50]

override void SetActions ( )
inlineprivate
765 {
766 super.SetActions();
767
769 }
Definition ActionRepairBoatChassis.c:2

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

◆ SetActions() [5/50]

override void SetActions ( )
inlineprivate
780 {
781 super.SetActions();
782
785 }
void ActionDetach()
Definition ActionDetach.c:10
Definition ActionAttachOnSelection.c:2

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

◆ SetActions() [6/50]

override void SetActions ( )
inlineprivate
795 {
796 super.SetActions();
797
799 AddAction(ActionAttach);
800 }

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

◆ SetActions() [7/50]

override void SetActions ( )
inlineprivate
816 {
817 super.SetActions();
818
821 }

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

◆ SetActions() [8/50]

override void SetActions ( )
inlineprivate
849 {
853 }
Definition ActionHarvestCrops.c:2
Definition ActionRemovePlant.c:2
Definition ActionRemoveSeed.c:2

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

◆ SetActions() [9/50]

override void SetActions ( )
inlineprivate
913 {
914 super.SetActions();
915
918 }

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

◆ SetActions() [10/50]

override void SetActions ( )
inlineprivate
38 {
39 super.SetActions();
40
45 AddAction(ActionAttach);
47 }
ActionBandageSelfCB ActionContinuousBaseCB ActionBandageSelf()
Definition ActionBandageSelf.c:17
ActionBandageTargetCB ActionContinuousBaseCB ActionBandageTarget()
Definition ActionBandageTarget.c:17
Definition ActionCreateIndoorFireplace.c:2
Definition ActionCreateIndoorOven.c:2

Перекрестные ссылки ActionBandageSelf(), ActionBandageTarget(), ActionDetach() и AddAction().

◆ SetActions() [11/50]

override void SetActions ( )
inlineprotected
412 {
413 super.SetActions();
414
418
419 }
Definition ActionAttachToConstruction.c:2
Definition ActionRestrainSelf.c:24
Definition ActionRestrainTarget.c:24

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

◆ SetActions() [12/50]

override void SetActions ( )
inlineprivate
38 {
39 super.SetActions();
40
43 AddAction(ActionAttach);
45 }

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

◆ SetActions() [13/50]

override void SetActions ( )
inlineprotected
1166 {
1167 super.SetActions();
1168
1172 }
void RemoveAction(typename actionName)
Definition AdvancedCommunication.c:252
Definition ActionDetachFromTarget.c:2
Definition ActionTakeItem.c:7
Definition ActionTakeItemToHands.c:2

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

◆ SetActions() [14/50]

override void SetActions ( )
inlineprotected
435 {
436 super.SetActions();
437
444 }
ActionPlaceObjectCB ActiondeployObjectCB ActionPlaceObject()
Definition ActionPlaceObject.c:11
Definition ActionPlugIn.c:2
Definition ActionTogglePlaceObject.c:2
Definition ActionTurnOffWhileOnGround.c:2
Definition ActionTurnOnWhileOnGround.c:2
Definition ActionUnplugThisByCord.c:2

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

◆ SetActions() [15/50]

override void SetActions ( )
inlineprotected
100 {
101 super.SetActions();
102
109 }
ActionLightItemOnFireWithBlowtorchCB ActionLightItemOnFireCB ActionLightItemOnFireWithBlowtorch()
Definition ActionLightItemOnFireWithBlowtorch.c:11
ActionRepairBoatEngineCB ActionRepairVehiclePartCB ActionRepairBoatEngine()
Definition ActionRepairBoatEngine.c:11
ActionRepairCarChassisWithBlowtorchCB ActionRepairCarChassisCB ActionRepairCarChassisWithBlowtorch()
Definition ActionRepairCarChassisWithBlowtorch.c:11
ActionRepairCarEngineWithBlowtorchCB ActionRepairCarEngineCB ActionRepairCarEngineWithBlowtorch()
Definition ActionRepairCarEngineWithBlowtorch.c:11
ActionRepairCarPartWithBlowtorchCB ActionRepairCarPartCB ActionRepairCarPartWithBlowtorch()
Definition ActionRepairCarPartWithBlowTorch.c:11
ActionRepairItemWithBlowtorchCB ActionContinuousBaseCB ActionRepairItemWithBlowtorch()
Definition ActionRepairItemWithBlowtorch.c:11

Перекрестные ссылки ActionLightItemOnFireWithBlowtorch(), ActionRepairBoatEngine(), ActionRepairCarChassisWithBlowtorch(), ActionRepairCarEngineWithBlowtorch(), ActionRepairCarPartWithBlowtorch(), ActionRepairItemWithBlowtorch() и AddAction().

◆ SetActions() [16/50]

override void SetActions ( )
inlineprivate
120 {
121 super.SetActions();
122
124
133 }
Definition ActionPlugTargetIntoThis.c:2
Definition ActionPullOutPlug.c:2
Definition ActionRepositionPluggedItem.c:2

Перекрестные ссылки ActionPlaceObject(), AddAction() и RemoveAction().

◆ SetActions() [17/50]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
6
10 }
Definition ActionAttachOnTentProxy.c:2

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

◆ SetActions() [18/50]

override void SetActions ( )
inlineprivate
148 {
149 super.SetActions();
150
155 }
Definition ActionDefibrilateSelf.c:10
Definition ActionDefibrilateTarget.c:10
Definition ActionTurnOffWhileInHands.c:2
Definition ActionTurnOnWhileInHands.c:2

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

◆ SetActions() [19/50]

override void SetActions ( )
inlineprivate
9 {
10 super.SetActions();
11
25 }
ActionBuryAshesCB ActionContinuousBaseCB ActionBuryAshes()
Definition ActionBuryAshes.c:11
ActionDigOutStashCB ActionContinuousBaseCB ActionDigOutStash()
Definition ActionDigOutStash.c:11
Definition ActionBuildPart.c:26
Definition ActionBuryBody.c:10
Definition ActionClapBearTrapWithThisItem.c:2
Definition ActionCreateGreenhouseGardenPlot.c:10
Definition ActionDigGardenPlot.c:10
Definition ActionDigInStash.c:10
Definition ActionDismantleGardenPlot.c:10
Definition ActionDismantlePart.c:27
Definition ActionFillObject.c:10
Definition ActionTogglePlaceObjectDigging.c:3

Перекрестные ссылки ActionBuryAshes(), ActionDigOutStash() и AddAction().

◆ SetActions() [20/50]

override void SetActions ( )
inlineprivate

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

◆ SetActions() [21/50]

override void SetActions ( )
inlineprivate
113 {
114 super.SetActions();
115
116 AddAction(ActionAttach);
117 }

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

◆ SetActions() [22/50]

override void SetActions ( )
inlineprivate

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

◆ SetActions() [23/50]

override void SetActions ( )
inlineprivate
38 {
40 super.SetActions();
41
44 AddAction(ActionAttach);
46 }
Definition ActionPackGift.c:10

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

◆ SetActions() [24/50]

override void SetActions ( )
inlineprivate
91 {
92 super.SetActions();
93
95 }
Definition ActionUnrestrainSelf.c:49

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

◆ SetActions() [25/50]

override void SetActions ( )
inlineprivate
26 {
27 super.SetActions();
28
30 }
ActionLightItemOnFireCB ActionContinuousBaseCB ActionLightItemOnFire()
Definition ActionLightItemOnFire.c:11

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

◆ SetActions() [26/50]

override void SetActions ( )
inlineprivate
68 {
69 super.SetActions();
70
71 //AddAction(ActionClapBearTrapWithThisItem);
73 }
Definition ActionFertilizeSlot.c:12

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

◆ SetActions() [27/50]

override void SetActions ( )
inlineprotected
175 {
176 super.SetActions();
177
179 AddAction(ActionDeployObject);
180 }

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

◆ SetActions() [28/50]

override void SetActions ( )
inlineprivate
34 {
35 super.SetActions();
36
38 }

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

◆ SetActions() [29/50]

override void SetActions ( )
inlineprivate

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

◆ SetActions() [30/50]

override void SetActions ( )
inlineprivate
122 {
123 super.SetActions();
124
128 AddAction(ActionAttach);
129 }

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

◆ SetActions() [31/50]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
6
8 }

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

◆ SetActions() [32/50]

override void SetActions ( )
inlineprotected
66 {
67 super.SetActions();
68
71 AddAction(ActionAttach);
73 }

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

◆ SetActions() [33/50]

override void SetActions ( )
inlineprivate
9 {
10 super.SetActions();
11
12 AddAction(ActionAttach);
14 }

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

◆ SetActions() [34/50]

override void SetActions ( )
inlineprivate
34 {
35 super.SetActions();
36
38 }

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

◆ SetActions() [35/50]

override void SetActions ( )
inlineprivate

◆ SetActions() [36/50]

override void SetActions ( )
inlineprivate
8 {
9 super.SetActions();
11 }

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

◆ SetActions() [37/50]

override void SetActions ( )
inlineprotected

◆ SetActions() [38/50]

override void SetActions ( )
inlineprotected

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

◆ SetActions() [39/50]

override void SetActions ( )
inlineprotected
379 {
380 super.SetActions();
381
387 }
Definition ActionTurnOffPowerGenerator.c:2
Definition ActionTurnOnPowerGenerator.c:2

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

◆ SetActions() [40/50]

override void SetActions ( )
inlineprivate
93 {
94 super.SetActions();
95
100
103 AddAction(ActionAttach);
106
115 }
ActionCraftArmbandCB ActionContinuousBaseCB ActionCraftArmband()
Definition ActionCraftArmband.c:11
Definition ActionCraftImprovisedEyePatch.c:10
Definition ActionCraftImprovisedFaceCover.c:12
Definition ActionCraftImprovisedFeetCover.c:12
Definition ActionCraftImprovisedHandsCover.c:12
Definition ActionCraftImprovisedHeadCover.c:13
Definition ActionCraftImprovisedLegsCover.c:12
Definition ActionCraftImprovisedTorsoCover.c:12
Definition ActionGagSelf.c:2
Definition ActionGagTarget.c:2
Definition ActionRefuelTorch.c:2

Перекрестные ссылки ActionBandageSelf(), ActionBandageTarget(), ActionCraftArmband(), ActionDetach() и AddAction().

◆ SetActions() [41/50]

override void SetActions ( )
inlineprotected

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

◆ SetActions() [42/50]

◆ SetActions() [43/50]

◆ SetActions() [44/50]

override void SetActions ( )
inlineprotected

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

◆ SetActions() [45/50]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
6
7 AddAction(ActionAttach);
10 }

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

◆ SetActions() [46/50]

override void SetActions ( )
inlineprotected
841 {
842 super.SetActions();
843
847 AddAction(ActionDeployObject);
848 }
ActionPackTentCB ActionContinuousBaseCB ActionPackTent()
Definition ActionPackTent.c:11
Definition ActionToggleTentOpen.c:2

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

◆ SetActions() [47/50]

override void SetActions ( )
inlineprivate
19 {
20 super.SetActions();
21
24 }
Definition ActionMeasureTemperatureSelf.c:10
Definition ActionMeasureTemperatureTarget.c:10

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

◆ SetActions() [48/50]

override void SetActions ( )
inlineprotected
845 {
846 super.SetActions();
847
850 }
ActionActivateTrapCB ActionContinuousBaseCB ActionActivateTrap()
Definition ActionActivateTrap.c:18
Definition ActionDeployHuntingTrap.c:2

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

◆ SetActions() [49/50]

override void SetActions ( )
inlineprivate

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

◆ SetActions() [50/50]

override void SetActions ( )
inlineprivate

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

◆ SetActive()

void SetActive ( )
inlineprotected
336 {
338
339 if ( GetGame().IsServer() && !IsActive() )
340 {
341 SetCatchSuccessful(false);
342 m_IsActive = true;
343 m_IsPastWaitingTime = false;
344 m_YieldItemIdx = -1;
345
349
350 SetSynchDirty();
351
353 {
354 SetAnimationPhase( m_AnimationPhaseSet, 1 );
355 SetAnimationPhase( m_AnimationPhaseTriggered, 0 );
356 SetAnimationPhase( m_AnimationPhaseUsed, 1 );
357 }
358
361 if (!m_IsStoreLoad) //presumably activated by the player, store load initializes component separately
362 {
365
368 }
369 else //presumed store load
370 {
372
373 RunTrappingTimer(m_UpdateWaitTime,"EvaluateCatch");
375 }
376 }
377 }
void SetCatchSuccessful(bool successful)
Definition TrapSpawnBase.c:573
void SetTrapEnviroMask(int value)
Definition TrapSpawnBase.c:744
static void DestroyEffecterParticleServer(int effecterID)
Definition EffectManager.c:630

Перекрестные ссылки SEffectManager::DestroyEffecterParticleServer(), GetGame(), TrapSpawnBase::InitCatchingComponent(), IsActive(), m_AnimationPhaseSet, m_AnimationPhaseTriggered, m_InitWaitTime, m_IsActive, m_IsStoreLoad, Math::RandomFloatInclusive(), SetTrapEnviroMask() и UpdateTrapEnviroMask().

◆ SetBaseFertility()

void SetBaseFertility ( float value)
inlineprivate
86 {
88 }

◆ SetBaseState()

void SetBaseState ( bool has_base)
inlineprotected
337 {
339 }

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

◆ SetBloodTypeVisible()

void SetBloodTypeVisible ( bool visible)
inlineprivate
16 {
18 SetSynchDirty();
19 }

◆ SetCanCatch()

bool SetCanCatch ( out EntityAI bait)
inlineprotected
648 {
649 return m_CatchingContext.IsValid();
650 }

◆ SetCatchSuccessful()

void SetCatchSuccessful ( bool successful)
inlineprotected
574 {
576 }

◆ SetCookingEquipment()

void SetCookingEquipment ( ItemBase equipment)
inlineprotected
41 {
43 }

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

◆ SetDeployed()

void SetDeployed ( bool newState)
inlineprotected
182 {
184
185 if ( newState == true )
186 {
188 {
189 SetAnimationPhase( m_AnimationPhaseSet, 1 );
190 SetAnimationPhase( m_AnimationPhaseTriggered, 0 );
191 SetAnimationPhase( m_AnimationPhaseUsed, 1 );
192 }
193 }
194 else
195 {
197 {
198 SetAnimationPhase( m_AnimationPhaseSet, 0 );
199 SetAnimationPhase( m_AnimationPhaseTriggered, 1 );
200 SetAnimationPhase( m_AnimationPhaseUsed, 1 );
201 }
202 }
203
204 SetSynchDirty();
205 }

Перекрестные ссылки m_AnimationPhaseSet и m_AnimationPhaseTriggered.

◆ SetFuel()

void SetFuel ( float fuel_amount)
inlineprotected
269 {
270 // clamp
271 if (GetFuel() == 0.0 && fuel_amount <= 0.0)
272 return;
273
274 if (m_FuelTankCapacity > 0)
275 {
276 m_FuelToEnergyRatio = GetCompEM().GetEnergyMax() / m_FuelTankCapacity;
277 GetCompEM().SetEnergy(fuel_amount * m_FuelToEnergyRatio);
278 m_FuelPercentage = GetCompEM().GetEnergy0To100();
279 SetSynchDirty();
281 }
282 else
283 {
284 string error = string.Format("ERROR! Item %1 has fuel tank with 0 capacity! Add parameter 'fuelTankCapacity' to its config and set it to more than 0!", this.GetType());
285 DPrint(error);
286 }
287 }
proto void DPrint(string var)
Prints content of variable to console/log. Should be used for critical messages so it will appear in ...

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

◆ SetInactive()

void SetInactive ( )
inlineprotected
380 {
381 if ( GetGame().IsServer() )
382 {
383 // We stop timers as the trap is no longer active, then update visuals
384 m_IsActive = false;
385
387
388 if ( m_Timer )
389 {
390 m_Timer.Stop();
391 }
392
393 m_IsPastWaitingTime = false;
394
395 SetDeployed( false );
396
397 SetSynchDirty();
398 }
399 }

Перекрестные ссылки GetGame(), m_IsActive и m_Timer.

◆ SetIsBeingPacked()

void SetIsBeingPacked ( bool isBeingPacked)
inlineprotected
969 {
971 SetSynchDirty();
972 }

◆ SetMaxWaterStateVal()

void SetMaxWaterStateVal ( )
inlineprivate
121 {
122 int state = 0;
123
124 for ( int i = 0; i < m_Slots.Count(); i++ )
125 {
126 state += 1 * Math.Pow( 2, i );
127 }
128
130 }
static proto float Pow(float v, float power)
Return power of v ^ power.

Перекрестные ссылки Math::Pow().

◆ SetMountedState()

void SetMountedState ( bool is_mounted)
inlineprotected
69 {
70 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " SetMountedState mounted=" + is_mounted);
71
72 //lock slot
76
77 //synchronize
79 }
void LockAttachmentSlot(bool lock_state)
Definition BarbedWire.c:96
void Synchronize()
Definition BarbedWire.c:111

Перекрестные ссылки bsbDebugPrint(), GetDebugName(), LogManager::IsBaseBuildingLogEnable(), LockAttachmentSlot(), SetTakeable() и Synchronize().

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

◆ SetPartFromSyncData()

void SetPartFromSyncData ( ConstructionPart part)
inlineprotected
253 {
254 string key = part.m_PartName;
255 bool is_base = part.IsBase();
257 bsbDebugSpam("[bsb] " + GetDebugName(this) + " SetPartFromSyncData try to sync: built=" + is_part_built_sync + " key=" + key + " part=" + part.GetPartName() + " part_built=" + part.IsBuilt());
258 if ( is_part_built_sync )
259 {
260 if ( !part.IsBuilt() )
261 {
262 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " SetPartsFromSyncData +++ " + key);
263 GetConstruction().AddToConstructedParts( key );
264 GetConstruction().ShowConstructionPartPhysics(part.GetPartName());
265
266 if (is_base)
267 {
269 RemoveProxyPhysics( ANIMATION_DEPLOYED );
270 }
271 }
272 }
273 else
274 {
275 if ( part.IsBuilt() )
276 {
277 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " SetPartsFromSyncData --- " + key);
278 GetConstruction().RemoveFromConstructedParts( key );
279 GetConstruction().HideConstructionPartPhysics(part.GetPartName());
280
281 if (is_base)
282 {
284 AddProxyPhysics( ANIMATION_DEPLOYED );
285 }
286 }
287 }
288
289 //check slot lock for material attachments
290 GetConstruction().SetLockOnAttachedMaterials( part.GetPartName(), part.IsBuilt() ); //failsafe for corrupted sync/storage data
291 }
void bsbDebugSpam(string s)
Definition BaseBuildingBase.c:1242
bool IsPartBuildInSyncData(int part_id)
Definition BaseBuildingBase.c:182

Перекрестные ссылки ANIMATION_DEPLOYED, bsbDebugPrint(), bsbDebugSpam(), GetConstruction(), GetDebugName(), LogManager::IsBaseBuildingLogEnable() и IsPartBuildInSyncData().

◆ SetPartsAfterStoreLoad()

void SetPartsAfterStoreLoad ( )
inlineprotected
453 {
454 //update server data
456
457 //set base state
458 ConstructionPart construction_part = GetConstruction().GetBaseConstructionPart();
459 SetBaseState( construction_part.IsBuilt() ) ;
460
461 //synchronize after load
463 }

Перекрестные ссылки GetConstruction(), SetBaseState(), SetPartsFromSyncData() и SynchronizeBaseState().

◆ SetPartsFromSyncData()

void SetPartsFromSyncData ( )
inlineprotected
295 {
298
299 for ( int i = 0; i < construction_parts.Count(); ++i )
300 {
301 string key = construction_parts.GetKey( i );
304 }
305
306 //regenerate navmesh
307 UpdateNavmesh();
308 }

Перекрестные ссылки Construction(), GetConstruction(), SetPartFromSyncData() и UpdateNavmesh().

◆ SetPlantState()

void SetPlantState ( int state)
inlineprivate
757 {
759 SetSynchDirty();
760 }

◆ SetSlot()

void SetSlot ( Slot slot)
inlineprivate
841 {
842 if ( slot )
843 {
844 m_Slot = slot;
845 }
846 }

◆ SetSlotTextureDigged()

void SetSlotTextureDigged ( int slot_index)
inlineprivate
557 {
558 TStringArray textures = GetHiddenSelectionsTextures();
559
561
562 ShowSelection( str_digged );
563 string texture = textures.Get(0);
564 SetObjectTexture( slot_index, texture );
565
566 Slot slot = m_Slots.Get( slot_index );
567
568 if ( slot.GetWateredState() == 0 )
569 {
570 // Set dry material
571 SetObjectMaterial( slot_index, SLOT_MATERIAL_DRY );
572 }
573 else
574 {
575 // Set wet material
576 SetObjectMaterial( slot_index, SLOT_MATERIAL_WET );
577 }
578 }
static const string SLOT_MATERIAL_DRY
Definition GardenBase.c:9
static const string SLOT_SELECTION_DIGGED_PREFIX
Definition GardenBase.c:17
static const string SLOT_MATERIAL_WET
Definition GardenBase.c:8
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Definition IsBoxCollidingGeometryProxyClasses.c:28

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

◆ SetSlotTextureFertilized()

void SetSlotTextureFertilized ( int slot_index,
string item_type )
inlineprivate
581 {
582 TStringArray textures = GetHiddenSelectionsTextures();
583
584 int tex_id = GetGame().ConfigGetInt( string.Format("cfgVehicles %1 Horticulture TexId", item_type) );
585
587
588 ShowSelection( str_show );
589 SetObjectTexture( slot_index, textures.Get(tex_id) );
590
591 Slot slot = m_Slots.Get( slot_index );
592
593 int slot_index_offset = 0;
594
595 // Set material according to dry / wet states
596 if ( slot.GetWateredState() == 0 )
597 {
598 // Set dry material for garden lime
599 if ( slot.GetFertilityType() == "GardenLime" )
600 {
602 }
603 else if ( slot.GetFertilityType() == "PlantMaterial" )
604 {
606 }
607 }
608 else
609 {
610 // Set dry material for compost
611 if ( slot.GetFertilityType() == "GardenLime" )
612 {
614 }
615 else if ( slot.GetFertilityType() == "PlantMaterial" )
616 {
618 }
619 }
620 }
static const string SLOT_MATERIAL_COMPOST_DRY
Definition GardenBase.c:14
static const string SLOT_MATERIAL_LIMED_WET
Definition GardenBase.c:11
static const string SLOT_MATERIAL_LIMED_DRY
Definition GardenBase.c:12
static const string SLOT_MATERIAL_COMPOST_WET
Definition GardenBase.c:13

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

◆ SetSlotWateredState()

void SetSlotWateredState ( int newState)
inlineprivate
844 {
846 }

◆ SetSpoiled()

void SetSpoiled ( )
inlineprivate
604 {
605 if ( IsSpoiled() == false )
606 {
609 UpdatePlant();
610 SetSynchDirty();
611
612 if (GetGame().IsServer())
613 {
616
617 if (!m_SpoiledRemoveTimer.IsRunning())
618 m_SpoiledRemoveTimer.Run( m_SpoiledRemoveTime, this, "SpoiledRemoveTimerTick", NULL, false );
619 }
620 }
621 }

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

◆ SetTrapEnviroMask()

void SetTrapEnviroMask ( int value)
inlineprotected
745 {
746 m_CatchingContext.SetTrapEnviroMask(value);
747 }

◆ SetupTrap()

void SetupTrap ( )
inlineprotected
222 {
223 if ( GetGame().IsServer() )
224 {
225 if ( GetHierarchyRootPlayer() && GetHierarchyRootPlayer().CanDropEntity( this ) )
226 {
227 SetupTrapPlayer( PlayerBase.Cast( GetHierarchyRootPlayer() ) );
228 }
229 }
230 }

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

◆ SetupTrapPlayer()

void SetupTrapPlayer ( PlayerBase player,
bool set_position = true )
inlineprotected
233 {
234 if ( GetGame().IsServer() )
235 {
236 if ( set_position )
237 {
238 vector trapPos = player.GetPosition() + ( player.GetDirection() * 0.5 );
239 trapPos[1] = GetGame().SurfaceRoadY( trapPos[0], trapPos[2] );
241 }
242
243 SetDeployed( true );
244 }
245 }

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

◆ SetUsed()

void SetUsed ( )
inlineprotected
402 {
403 if ( GetGame().IsServer() )
404 {
405 // We updated state, visuals and stop timers
406 m_IsActive = false;
407 m_IsDeployed = false;
408
409 // Deal damage to trap
410 AddDefect();
413
415
416 if ( m_Timer )
417 {
418 m_Timer.Stop();
419 }
420
421 m_IsPastWaitingTime = false;
422
424 {
425 SetAnimationPhase( m_AnimationPhaseSet, 1 );
426 SetAnimationPhase( m_AnimationPhaseTriggered, 1 );
427 SetAnimationPhase( m_AnimationPhaseUsed, 0 );
428 }
429
431
432 SetSynchDirty();
433 }
434 }
void HandleBaitLoss()
Definition TrapSpawnBase.c:749
void AddDefect()
Definition TrapSpawnBase.c:263
void DetachAllAttachments()
detaches everything on catching end (some slots may not be accessible when folded)
Definition TrapSpawnBase.c:761

Перекрестные ссылки AddDefect(), GetGame(), m_AnimationPhaseSet, m_AnimationPhaseTriggered, m_IsActive и m_Timer.

◆ ShowZonesHealth() [1/2]

override bool ShowZonesHealth ( )
inlineprivate
811 {
812 return true;
813 }

◆ ShowZonesHealth() [2/2]

override bool ShowZonesHealth ( )
inlineprotected
926 {
927 return true;
928 }

◆ SlotWaterStateUpdate()

void SlotWaterStateUpdate ( Slot slot)
inlineprivate
525 {
526 // Set relevant bit
527 m_SlotWateredState |= slot.GetWateredState() << slot.GetSlotIndex();
528 SetSynchDirty();
529 }

◆ SoundBuildStart()

void SoundBuildStart ( string part_name)
inlineprotected
1101 {
1102 PlaySoundSet( m_Sound, GetBuildSoundByMaterial( part_name ), 0.1, 0.1 );
1103 }
string GetBuildSoundByMaterial(string part_name)
Definition BaseBuildingBase.c:1115
EffectSound m_Sound
Definition BaseBuildingBase.c:32

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

◆ SoundBurningStart() [1/3]

void SoundBurningStart ( )
inlineprotected
52 {
53 PlaySoundSetLoop(m_SoundBurningLoop, SOUND_BURNING, 0.1, 0.0);
54 }
EffectSound m_SoundBurningLoop
Definition Blowtorch.c:9
const string SOUND_BURNING
Definition Blowtorch.c:5

◆ SoundBurningStart() [2/3]

void SoundBurningStart ( )
inlineprotected
65 {
66 PlaySoundSetLoop( m_SoundBurningLoop, SOUND_BURNING, 0.1, 0.3 );
67 }

◆ SoundBurningStart() [3/3]

void SoundBurningStart ( )
inlineprotected
278 {
279 PlaySoundSetLoop(m_SoundBurningLoop, SOUND_BURNING, 0.1, 0.3);
280 }

◆ SoundBurningStop() [1/3]

void SoundBurningStop ( )
inlineprotected
57 {
58 StopSoundSet(m_SoundBurningLoop);
59 }

◆ SoundBurningStop() [2/3]

void SoundBurningStop ( )
inlineprotected
70 {
71 StopSoundSet( m_SoundBurningLoop );
72 }

◆ SoundBurningStop() [3/3]

void SoundBurningStop ( )
inlineprotected
283 {
284 StopSoundSet(m_SoundBurningLoop);
285 }

◆ SoundBuzzLoopStart()

void SoundBuzzLoopStart ( )
inlineprotected
297 {
298 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // client side
299 {
300 if (!m_BuzzSoundLoop)
301 {
302 m_BuzzSoundLoop = PlaySoundLoop(m_SoundBuzzLoop, 50);
303 }
304 }
305 }
SoundOnVehicle m_BuzzSoundLoop
Definition BarbedWire.c:16
static const string m_SoundBuzzLoop
Definition BarbedWire.c:14

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

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

◆ SoundBuzzLoopStop()

void SoundBuzzLoopStop ( )
inlineprotected
309 {
310 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // client side
311 {
312 if (m_BuzzSoundLoop)
313 {
314 GetGame().ObjectDelete(m_BuzzSoundLoop);
316 }
317 }
318 }

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

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

◆ SoundCollision()

void SoundCollision ( )
inlineprotected
333 {
334 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // client side
335 {
339 }
340 }
void PlaySound()
Definition HungerSoundHandler.c:38
static const string m_SoundsCollision[SOUNDS_COLLISION_COUNT]
Definition BarbedWire.c:12
static const int SOUNDS_COLLISION_COUNT
Definition BarbedWire.c:6

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

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

◆ SoundCut()

void SoundCut ( )
inlineprotected
275 {
276 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // client side
277 {
281 }
282 }
static const string m_SoundsCut[SOUNDS_CUT_COUNT]
Definition BarbedWire.c:11
static const int SOUNDS_CUT_COUNT
Definition BarbedWire.c:5

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

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

◆ SoundDestroyStart()

void SoundDestroyStart ( string part_name)
inlineprotected
1111 {
1112 PlaySoundSet( m_Sound, GetDismantleSoundByMaterial( part_name ), 0.1, 0.1 );
1113 }
string GetDismantleSoundByMaterial(string part_name)
Definition BaseBuildingBase.c:1131

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

◆ SoundDismantleStart()

void SoundDismantleStart ( string part_name)
inlineprotected
1106 {
1107 PlaySoundSet( m_Sound, GetDismantleSoundByMaterial( part_name ), 0.1, 0.1 );
1108 }

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

◆ SoundElectricShock()

void SoundElectricShock ( )
inlineprotected
322 {
323 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // client side
324 {
328 }
329 }
static const int SOUNDS_SHOCK_COUNT
Definition BarbedWire.c:7
static const string m_SoundsShock[SOUNDS_SHOCK_COUNT]
Definition BarbedWire.c:13

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

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

◆ SoundSpark()

void SoundSpark ( )
inlineprotected
286 {
287 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // client side
288 {
292 }
293 }
static const int SOUNDS_SPARK_COUNT
Definition BarbedWire.c:4
static const string m_SoundsSpark[SOUNDS_SPARK_COUNT]
Definition BarbedWire.c:10

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

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

◆ SoundTentClosePlay()

void SoundTentClosePlay ( )
inlineprotected
781 {
783 sound.SetAutodestroy(true);
784 }
string GetSoundClose()
Definition TentBase.c:768

Перекрестные ссылки GetPosition, TentBase::GetSoundClose() и SEffectManager::PlaySound().

◆ SoundTentCloseWindowPlay()

void SoundTentCloseWindowPlay ( )
inlineprotected
793 {
795 sound.SetAutodestroy(true);
796 }
string GetSoundCloseWindow()
Definition TentBase.c:772

Перекрестные ссылки GetPosition, TentBase::GetSoundCloseWindow() и SEffectManager::PlaySound().

◆ SoundTentOpenPlay()

void SoundTentOpenPlay ( )
inlineprotected
775 {
777 sound.SetAutodestroy(true);
778 }
string GetSoundOpen()
Definition TentBase.c:766

Перекрестные ссылки GetPosition, TentBase::GetSoundOpen() и SEffectManager::PlaySound().

◆ SoundTentOpenWindowPlay()

void SoundTentOpenWindowPlay ( )
inlineprotected
787 {
789 sound.SetAutodestroy(true);
790 }
string GetSoundOpenWindow()
Definition TentBase.c:770

Перекрестные ссылки GetPosition, TentBase::GetSoundOpenWindow() и SEffectManager::PlaySound().

◆ SoundTurnOff() [1/3]

void SoundTurnOff ( )
inlineprotected
80 {
81 PlaySoundSet( m_SoundTurnOff, SOUND_TURN_OFF, 0.1, 0.1 );
82 }
EffectSound m_SoundTurnOff
Definition PortableGasLamp.c:15
const string SOUND_TURN_OFF
Definition PortableGasLamp.c:11

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

◆ SoundTurnOff() [2/3]

void SoundTurnOff ( )
inlineprotected
293 {
294 PlaySoundSet(m_SoundTurnOff, SOUND_TURN_OFF, 0.1, 0.1);
295 }

◆ SoundTurnOff() [3/3]

void SoundTurnOff ( )
inlineprotected
332 {
333 PlaySoundSet(m_SoundTurnOff, SOUND_TURN_OFF, 0, 0);
334 }

◆ SoundTurnOn() [1/3]

void SoundTurnOn ( )
inlineprotected
75 {
76 PlaySoundSet( m_SoundTurnOn, SOUND_TURN_ON, 0.1, 0.1 );
77 }
EffectSound m_SoundTurnOn
Definition PortableGasLamp.c:14
const string SOUND_TURN_ON
Definition PortableGasLamp.c:10

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

◆ SoundTurnOn() [2/3]

void SoundTurnOn ( )
inlineprotected
288 {
289 PlaySoundSet(m_SoundTurnOn, SOUND_TURN_ON, 0.1, 0.1);
290 }

◆ SoundTurnOn() [3/3]

void SoundTurnOn ( )
inlineprotected
327 {
328 PlaySoundSet(m_SoundTurnOn, SOUND_TURN_ON, 0, 0);
329 }

◆ Spark()

void Spark ( )
inlineprotected
266 {
267 ParticleManager.GetInstance().PlayOnObject( ParticleList.BARBED_WIRE_SPARKS, this);
268 SoundSpark();
269 }
void SoundSpark()
Definition BarbedWire.c:285
static const int BARBED_WIRE_SPARKS
Definition ParticleList.c:136

Перекрестные ссылки ParticleList::BARBED_WIRE_SPARKS, ParticleManager() и SoundSpark().

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

◆ SpawnCatch()

void SpawnCatch ( )
inlineprotected
552 {
553 // Only server side, let's make sure
554 if (GetGame().IsMultiplayer() && GetGame().IsClient())
555 return;
556
558 SetIsDeploySound(false);
559 ItemBase catch;
560 if (m_CanCatch)
561 {
562 catch = ItemBase.Cast(m_CatchingContext.SpawnAndSetupCatch(m_YieldItemIdx,m_PreyPos));
563
565 SetCatchSuccessful(catch != null);
566 // We change the trap state and visuals
567 SetUsed();
568 }
569
570 SetSynchDirty();
571 }
void OnCatchSpawnServer()
Definition TrapSpawnBase.c:578

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

◆ SpoiledRemoveTimerTick()

void SpoiledRemoveTimerTick ( )
inlineprivate
586 {
587 if ( m_GrowthTimer != NULL )
588 {
589 m_GrowthTimer.Stop();
590 }
591
592 RemoveSlot();
593 }

◆ Spotlight()

void Spotlight ( )
inlineprotected
43 {
45
46 RegisterNetSyncVariableBool("m_IsSoundSynchRemote");
47 RegisterNetSyncVariableBool("m_IsDeploySound");
48 RegisterNetSyncVariableBool("m_IsFolded");
49 }

◆ SprayPlant()

void SprayPlant ( float consumed_quantity)
inlineprivate
644 {
645 //Rework this to have something smooth
647
648 if ( !NeedsSpraying() )
649 {
650 if ( m_InfestationTimer != NULL )
651 {
652 m_InfestationTimer.Stop();
653 }
654
655 m_IsInfested = false;
657
658 ChangeInfestation( false );
659 UpdatePlant();
660 }
661 }
bool NeedsSpraying()
Definition PlantBase.c:802

◆ StartActivate()

void StartActivate ( PlayerBase player)
inlineprotected
271{ }

◆ StartLoopSound()

void StartLoopSound ( )
inlineprotected
90 {
91 if (GetGame().IsClient() || !GetGame().IsMultiplayer())
92 {
93 if (GetCompEM().IsWorking())
94 {
95 PlaySoundSetLoop(m_EngineLoop, LOOP_SOUND, 0, 0);
96
97 // Particle
100 }
101 }
102 }
Definition GeneratorSmoke.c:2
vector GetSmokeParticlePosition()
Definition PowerGenerator.c:78
static const string LOOP_SOUND
Definition PowerGenerator.c:9
vector GetSmokeParticleOrientation()
Definition PowerGenerator.c:83
static int PlayOnObject(notnull Effect eff, Object obj, vector local_pos="0 0 0", vector local_ori="0 0 0", bool force_rotation_relative_to_world=false)
Play an Effect.
Definition EffectManager.c:70

Перекрестные ссылки GetGame() и SEffectManager::PlayOnObject().

◆ StartPeriodicMeasurement()

void StartPeriodicMeasurement ( )
inlineprotected
16 {
17 if( !m_Timer )
18 {
19 m_Timer = new Timer;
20 }
21
22 m_Timer.Run( 0.01, this, "PrepareMeasurement", null, true );
23 }

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

◆ StopChargedAlarm()

void StopChargedAlarm ( )
inlineprivate
85 {
87 {
88 //GetGame().ObjectDelete(m_ChargedAlarm);
91 }
92 }

Перекрестные ссылки EffectSound::SoundStop().

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

◆ StopChargingSound()

void StopChargingSound ( )
inlineprivate
95 {
97 {
99 }
100 }

Перекрестные ссылки EffectSound::SoundStop().

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

◆ StopChargingTimer()

void StopChargingTimer ( )
inlineprivate
103 {
104 if (m_ChargingTimer)
105 {
106 m_ChargingTimer.Stop();
108 }
109 }

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

◆ StopDeployLoopSound() [1/5]

void StopDeployLoopSound ( )
protected

DEPRECATED.

◆ StopDeployLoopSound() [2/5]

void StopDeployLoopSound ( )
protected

DEPRECATED.

◆ StopDeployLoopSound() [3/5]

void StopDeployLoopSound ( )
protected

DEPRECATED.

◆ StopDeployLoopSound() [4/5]

void StopDeployLoopSound ( )
protected

DEPRECATED.

◆ StopDeployLoopSound() [5/5]

void StopDeployLoopSound ( )
protected

DEPRECATED.

◆ StopInfestation()

string StopInfestation ( float consumed_quantity)
inlineprivate
665 {
667
668 if ( !NeedsSpraying() )
669 {
670 if ( m_InfestationTimer != NULL )
671 {
672 m_InfestationTimer.Stop();
673 }
674
675 m_IsInfested = false;
677
678 ChangeInfestation( false );
679 UpdatePlant();
680
681 return "I've sprayed the plant a bit. Now it is enough spayed.";
682 }
683 else
684 {
685 return "I've sprayed the plant a bit.";
686 }
687 }

◆ StopPeriodicMeasurement()

void StopPeriodicMeasurement ( )
inlineprotected
56 {
57 if( m_Timer )
58 {
59 m_Timer.Stop();
60 }
61 }

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

◆ SwitchLightOff()

void SwitchLightOff ( )
inlineprotected
325 {
326 SetObjectMaterial( 3, DEFAULT_MATERIAL );
327 }

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

◆ SwitchLightOn()

void SwitchLightOn ( )
inlineprotected
308 {
309 SetObjectMaterial( 3, SWITCH_LIGHT_GLOW );
310 }
const string SWITCH_LIGHT_GLOW
Definition BatteryCharger.c:20

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

◆ Synchronize() [1/2]

void Synchronize ( )
inlineprotected
112 {
113 if ( GetGame().IsServer() )
114 {
115 SetSynchDirty();
116 }
117 }

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

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

◆ Synchronize() [2/2]

void Synchronize ( )
inlineprivate
17 {
18 if ( GetGame().IsServer() )
19 {
20 SetSynchDirty();
21 }
22 }

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

◆ SynchronizeBaseState()

void SynchronizeBaseState ( )
inlineprotected
96 {
97 if ( GetGame().IsServer() )
98 {
99 SetSynchDirty();
100 }
101 }

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

◆ SyncSlots()

void SyncSlots ( )
inlineprivate
195 {
196 for ( int i = 0; i < GetGardenSlotsCount(); i++ )
197 {
198 // Read relevant bit
200 m_Slots[i].SetFertilityState(fertilityState);
201
202 int wateredState = (m_SlotWateredState >> i) & 1;
203 m_Slots[i].SetWateredState( wateredState );
204
205 if ( fertilityState == eFertlityState.NONE )
206 {
207 m_Slots[i].SetFertilityType( "" );
208 m_Slots[i].SetFertilizerQuantity( 0 );
209 }
210
211 if ( wateredState == eWateredState.DRY )
212 {
213 m_Slots[i].SetWater( 0 );
214 }
215
217 }
218
219 if ( GetGame().IsServer() )
220 {
221 SetSynchDirty();
222 }
223 }

Перекрестные ссылки GetGame() и GardenBase::GetGardenSlotsCount().

◆ TentBase()

void TentBase ( )
inlineprotected
41 {
45
47 RegisterNetSyncVariableInt("m_State");
48 RegisterNetSyncVariableBool("m_IsSoundSynchRemote");
49 RegisterNetSyncVariableBool("m_IsEntrance");
50 RegisterNetSyncVariableBool("m_IsWindow");
51 RegisterNetSyncVariableBool("m_IsToggle");
52 RegisterNetSyncVariableBool("m_IsDeploySound");
53 RegisterNetSyncVariableInt("m_OpeningMask");
54 RegisterNetSyncVariableBool("m_IsBeingPacked");
55
56 ProcessInvulnerabilityCheck(GetInvulnerabilityTypeString());
57 }
ref array< string > m_ShowAnimationsWhenPacked
Definition TentBase.c:35
ref array< string > m_ShowAnimationsWhenPitched
Definition TentBase.c:34
static const vector Zero
Definition EnConvert.c:110

Перекрестные ссылки GetInvulnerabilityTypeString(), m_HalfExtents и vector::Zero.

◆ ToggleAnimation()

void ToggleAnimation ( string selection)
inlineprotected
686 {
687 if (m_State == PACKED)
688 {
689 return;
690 }
691
692 bool is_closed;
693 ResetToggle();
694
695 for (int i = 0; i < m_ToggleAnimations.Count(); i++)
696 {
698
699 string toggle_off = toggle.GetToggleOff();
700 toggle_off.ToLower();
701 string toggle_on = toggle.GetToggleOn();
702 toggle_on.ToLower();
703
704 if (toggle_off == selection || toggle_on == selection)
705 {
706 is_closed = m_OpeningMask & toggle.GetOpeningBit();
707 if (is_closed)
708 {
709 SetAnimationPhase(toggle.GetToggleOff(), 0);
710 AddProxyPhysics(toggle.GetToggleOff());
711 SetAnimationPhase(toggle.GetToggleOn(), 1);
712 RemoveProxyPhysics(toggle.GetToggleOn());
713 m_ToggleAnimations.Set(toggle, false);
714 m_IsToggle = true;
715 m_OpeningMask &= ~toggle.GetOpeningBit();
716
717 if (selection.Contains("window"))
718 {
720 }
721
722 if (selection.Contains("entrance") || selection.Contains("door"))
723 {
725 }
726
728 }
729 else
730 {
731 SetAnimationPhase(toggle.GetToggleOff(), 1);
732 RemoveProxyPhysics(toggle.GetToggleOff());
733 SetAnimationPhase(toggle.GetToggleOn(), 0);
734 AddProxyPhysics(toggle.GetToggleOn());
735 m_ToggleAnimations.Set(toggle, true);
736 m_IsToggle = false;
737 m_OpeningMask |= toggle.GetOpeningBit();
738
739 if (selection.Contains("window"))
740 {
742 }
743
744 if (selection.Contains("entrance") || selection.Contains("door"))
745 {
747 }
748
750 }
751 }
752 }
753 SetSynchDirty();
755 }
void ManipulateWindow()
Definition TentBase.c:669
void AnimateCamonetToggle(ToggleAnimations toggle)
Definition TentBase.c:762
void ResetToggle()
Definition TentBase.c:657
void ManipulateEntrance()
Definition TentBase.c:664
bool Contains(string sample)
Returns true if sample is substring of string.
Definition EnString.c:286

Перекрестные ссылки TentBase::AnimateCamonetToggle(), string::Contains(), m_State и SoundSynchRemote().

◆ ToolBase()

void ToolBase ( )
inlineprotected
7 {
8
9 }

◆ TrapSpawnBase()

void TrapSpawnBase ( )
inlineprotected
52 {
54
55 RegisterNetSyncVariableBool("m_IsSoundSynchRemote");
56 RegisterNetSyncVariableBool("m_IsDeploySound");
57 RegisterNetSyncVariableBool("m_IsActive");
58 RegisterNetSyncVariableBool("m_IsDeployed");
59 RegisterNetSyncVariableInt("m_YieldItemIdx");
60
61 //DEPRECATED stuff below, legacy reasons only
62 m_CatchesPond = new multiMap<string, float>; //yields now in WorldData.InitYieldBank
63 m_CatchesSea = new multiMap<string, float>; //yields now in WorldData.InitYieldBank
64 m_CatchesGroundAnimal = new multiMap<string, float>; //yields now in WorldData.InitYieldBank
65 }
ref multiMap< string, float > m_CatchesPond
DEPRECATED.
Definition TrapSpawnBase.c:872
void InitTrapValues()
Definition TrapSpawnBase.c:78
ref multiMap< string, float > m_CatchesGroundAnimal
DEPRECATED.
Definition TrapSpawnBase.c:874
ref multiMap< string, float > m_CatchesSea
DEPRECATED.
Definition TrapSpawnBase.c:873

Перекрестные ссылки TrapSpawnBase::InitTrapValues().

◆ TryPitch()

void TryPitch ( bool update_navmesh,
bool init = false )
inlineprotected
557 {
558 if (GetHierarchyRootPlayer())
559 {
560 if (GetGame().IsDedicatedServer())
561 {
563 }
564
565 return;
566 }
567
569 }
void Pitch(bool update_navmesh, bool init=false)
Definition TentBase.c:530

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

◆ TrySpawnCatch()

void TrySpawnCatch ( )
inlineprotected
536 {
539
541 {
542 SpawnCatch();
543 }
545 {
547 }
548 }
void AdjustDetectionRange()
Definition TrapSpawnBase.c:450
bool IsPlayerInVicinity()
Definition TrapSpawnBase.c:524
void SpawnCatch()
Definition TrapSpawnBase.c:551

◆ UndergroundStash()

void UndergroundStash ( )
inlineprivate
3{}

◆ Unfold()

void Unfold ( )
inlineprotected
264 {
265 m_IsFolded = false;
267 SetSynchDirty();
268 }

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

Используется в EOnInit(), OnInitEnergy(), OnIsPlugged(), OnItemLocationChanged(), OnPlacementComplete() и OnStoreLoad().

◆ UnregisterPartForSync()

void UnregisterPartForSync ( int part_id)
inlineprotected
154 {
155 //part_id must starts from index = 1
156 int offset;
157 int mask;
158
159 if ( part_id >= 1 && part_id <= 31 ) //<1,31> (31 parts)
160 {
161 offset = part_id - 1;
162 mask = 1 << offset;
163
165 }
166 else if ( part_id >= 32 && part_id <= 62 ) //<32,62> (31 parts)
167 {
168 offset = ( part_id % 32 );
169 mask = 1 << offset;
170
172 }
173 else if ( part_id >= 63 && part_id <= 93 ) //<63,93> (31 parts)
174 {
175 offset = ( part_id % 63 );
176 mask = 1 << offset;
177
179 }
180 }

Перекрестные ссылки m_SyncParts01, m_SyncParts02 и m_SyncParts03.

◆ UpdateAllSelections() [1/2]

void UpdateAllSelections ( )
inlineprivate
33 {
34 HideAllSelections();
35 EntityAI energy_source = GetCompEM().GetEnergySource();
36
37 if (energy_source)
38 {
39 string ES_model = energy_source.GetModelName();
40 EntityAI powered_device = GetCompEM().GetPluggedDevice();
41
43 {
44 // Show metal wire selection
46 ShowSelection(selection_wire);
47
48 // Show plug selection
50 selection_plug.ToLower();
51 ShowSelection(selection_plug);
52
53 // Set plug's texture
54 int selection_index = GetHiddenSelectionIndex(selection_plug);
55 string texture_path = powered_device.GetCompEM().GetCordTextureFile();
56 SetObjectTexture( selection_index, texture_path );
57 }
58 else
59 {
60 // Show metal wire selection
62 ShowSelection(selection_wire2);
63 }
64 }
65 else
66 {
67 ShowSelection(SEL_WIRE_ROLLED);
68 }
69 }
static string SEL_WIRE_PREFIX
Definition MetalWire.c:4
static string SEL_WIRE_ROLLED
Definition MetalWire.c:3
static string SEL_WIRE_SUFIX
Definition MetalWire.c:5
static string SEL_PLUG_SUFIX
Definition MetalWire.c:6

Перекрестные ссылки SEL_PLUG_SUFIX и SEL_WIRE_SUFIX.

Используется в EOnInit(), Fold(), OnInitEnergy(), OnIsPlugged(), OnIsUnplugged(), OnOwnSocketReleased(), OnOwnSocketTaken(), OnWorkStart(), OnWorkStop() и Unfold().

◆ UpdateAllSelections() [2/2]

void UpdateAllSelections ( )
inlineprotected
159 {
160 bool isPlugged = GetCompEM().IsPlugged();
161 PlayerBase player = PlayerBase.Cast(GetHierarchyRootPlayer());
162 bool isInHands = player && player.GetItemInHands() == this;
163 HideAllSelections();
164
165 m_LightLocalPosition = GetSelectionPositionLS("beamStart");
166
167 if (IsFolded() || isInHands)
168 {
169 HideSelection(SEL_REFLECTOR_COMP_U);
170
171 ShowSelection(SEL_INVENTORY);
172 ShowSelection(SEL_GLASS_F);
173 ShowSelection(SEL_REFLECTOR_F);
174
175 if (isPlugged)
176 {
177 ShowSelection(SEL_CORD_PLUGGED_F);
178 }
179 else
180 {
181 ShowSelection(SEL_CORD_FOLDED_F);
182 }
183
184 if (!IsHologram())
185 {
186 if (GetCompEM().IsWorking())
187 {
188 SetObjectMaterial(ID_GLASS_UNFOLDED, LIGHT_ON_GLASS);
189 SetObjectMaterial(ID_REFLECTOR_UNFOLDED, LIGHT_ON_REFLECTOR);
190 SetObjectMaterial(ID_GLASS_FOLDED, LIGHT_ON_GLASS);
191 SetObjectMaterial(ID_REFLECTOR_FOLDED, LIGHT_ON_REFLECTOR);
192 }
193 else
194 {
195 SetObjectMaterial(ID_GLASS_UNFOLDED, LIGHT_OFF_GLASS);
196 SetObjectMaterial(ID_REFLECTOR_UNFOLDED, LIGHT_OFF_REFLECTOR);
197 SetObjectMaterial(ID_GLASS_FOLDED, LIGHT_OFF_GLASS);
198 SetObjectMaterial(ID_REFLECTOR_FOLDED, LIGHT_OFF_REFLECTOR);
199 }
200 }
201 }
202 else
203 {
204 ShowSelection(SEL_PLACING);
205 ShowSelection(SEL_REFLECTOR_U);
206 ShowSelection(SEL_GLASS_U);
207 ShowSelection(SEL_REFLECTOR_COMP_U);
208
209 if (isPlugged)
210 {
211 ShowSelection(SEL_CORD_PLUGGED_U);
212 }
213 else
214 {
215 ShowSelection(SEL_CORD_FOLDED_U);
216 }
217
218 if (!IsHologram())
219 {
220 if (GetCompEM().IsWorking())
221 {
222 SetObjectMaterial(ID_GLASS_UNFOLDED, LIGHT_ON_GLASS);
223 SetObjectMaterial(ID_REFLECTOR_UNFOLDED, LIGHT_ON_REFLECTOR);
224 }
225 else
226 {
227 SetObjectMaterial(ID_GLASS_UNFOLDED, LIGHT_OFF_GLASS);
228 SetObjectMaterial(ID_REFLECTOR_UNFOLDED, LIGHT_OFF_REFLECTOR);
229 }
230 }
231 }
232 }
static const string SEL_REFLECTOR_COMP_U
Definition Spotlight.c:11
static const string SEL_CORD_PLUGGED_U
Definition Spotlight.c:13
static const int ID_GLASS_FOLDED
Definition Spotlight.c:26
static const string SEL_REFLECTOR_F
Definition Spotlight.c:21
static const string SEL_INVENTORY
Definition Spotlight.c:17
static const string SEL_GLASS_U
Definition Spotlight.c:20
static const string SEL_CORD_FOLDED_U
Definition Spotlight.c:12
static const string SEL_REFLECTOR_U
Definition Spotlight.c:22
static const string SEL_GLASS_F
Definition Spotlight.c:19
static const string SEL_PLACING
Definition Spotlight.c:18
bool IsFolded()
Definition Spotlight.c:318
static const int ID_REFLECTOR_UNFOLDED
Definition Spotlight.c:25
static const int ID_GLASS_UNFOLDED
Definition Spotlight.c:24
static const int ID_REFLECTOR_FOLDED
Definition Spotlight.c:27

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

◆ UpdateAttachmentPhysics()

void UpdateAttachmentPhysics ( string slot_name,
bool is_locked )
inlineprotected
798 {
799 //checks for invalid appends; hotfix
800 if ( !m_Mountables || m_Mountables.Find(slot_name) == -1 )
801 return;
802 //----------------------------------
803 string slot_name_mounted = slot_name + "_Mounted";
804 EntityAI attachment = FindAttachmentBySlotName( slot_name );
805
806 //remove proxy physics
807 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " Removing ATT SLOT=" + slot_name + " RM / RM");
808 RemoveProxyPhysics( slot_name_mounted );
809 RemoveProxyPhysics( slot_name );
810
811 if ( attachment )
812 {
813 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " Adding ATT=" + Object.GetDebugName(attachment));
814 if ( is_locked )
815 {
816 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " RM / RM");
817 AddProxyPhysics( slot_name_mounted );
818 }
819 else
820 {
821 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " ADD");
822 AddProxyPhysics( slot_name );
823 }
824 }
825 }
Definition ObjectTyped.c:2

Перекрестные ссылки bsbDebugPrint(), GetDebugName(), LogManager::IsBaseBuildingLogEnable() и m_Mountables.

◆ UpdateAttachmentSlot()

void UpdateAttachmentSlot ( )
inlineprotected
82 {
83 BaseBuildingBase base_building = BaseBuildingBase.Cast( GetHierarchyParent() );
84 if ( base_building )
85 {
87 GetInventory().GetCurrentInventoryLocation( inventory_location );
88 bool is_mounted = base_building.GetInventory().GetSlotLock( inventory_location.GetSlot() );
90
91 base_building.UpdateAttachmentVisuals( slot_name, is_mounted );
92 base_building.UpdateAttachmentPhysics( slot_name, is_mounted );
93 }
94 }

Перекрестные ссылки InventorySlots::GetSlotName().

◆ UpdateAttachmentVisuals()

void UpdateAttachmentVisuals ( string slot_name,
bool is_locked )
inlineprotected
728 {
729 string slotNameMounted = slot_name + "_Mounted";
730 EntityAI attachment = FindAttachmentBySlotName(slot_name);
731
732 if (attachment)
733 {
735 if (barbedWire && barbedWire.IsMounted())
737 else
739
740 if (is_locked)
741 {
742 SetAnimationPhase(slotNameMounted, 0);
743 SetAnimationPhase(slot_name, 1);
744 }
745 else
746 {
747 SetAnimationPhase(slotNameMounted, 1);
748 SetAnimationPhase(slot_name, 0);
749 }
750 }
751 else
752 {
753 SetAnimationPhase(slotNameMounted, 1);
754 SetAnimationPhase(slot_name, 1);
755
757 }
758 }
void CreateAreaDamage()
Definition FireplaceBase.c:2290

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

◆ UpdateFuelMeter()

void UpdateFuelMeter ( )
inlineprotected
260 {
261 if (GetGame().IsClient() || !GetGame().IsMultiplayer())
262 {
263 SetAnimationPhase("dial_fuel", m_FuelPercentage * 0.01);
264 }
265 }

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

◆ UpdateNavmesh()

void UpdateNavmesh ( )
inlineprotected
828 {
829 SetAffectPathgraph( true, false );
830 GetGame().GetCallQueue( CALL_CATEGORY_SYSTEM ).CallLater( GetGame().UpdatePathgraphRegionByObject, 100, false, this );
831 }

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

◆ UpdateNVGStatus()

void UpdateNVGStatus ( PlayerBase player,
bool attaching = false,
bool force_disable = false )
inlineprivate
851 {
852 NVGoggles NVGAttachment;
853 NVGAttachment = NVGoggles.Cast(FindAttachmentBySlotName("NVG"));
854 bool has_nvg_slot;
855 for (int i = 0; i < GetInventory().GetAttachmentSlotsCount(); i++)
856 {
857 has_nvg_slot = GetInventory().GetAttachmentSlotId(i) == InventorySlots.GetSlotIdFromString("NVG");
858 if (has_nvg_slot)
859 break;
860 }
861
862 if ( player && has_nvg_slot )
863 {
864 if ( NVGAttachment )
865 {
866 NVGAttachment.LoweredCheck();
867
868 if ( attaching && NVGAttachment.m_Strap && NVGAttachment.m_IsLowered )
869 {
870 NVGAttachment.SetPlayer(player);
871 player.SetNVGLowered(true);
872
873 if ( player.IsControlledPlayer() )
874 {
875 if ( NVGAttachment.IsWorking() )
876 {
877 player.AddActiveNV(NVTypes.NV_GOGGLES);
878 //player.RemoveActiveNV(NVTypes.NV_GOGGLES_OFF);
879 }
880 else
881 {
882 //player.AddActiveNV(NVTypes.NV_GOGGLES_OFF);
883 player.RemoveActiveNV(NVTypes.NV_GOGGLES);
884 }
885 }
886 }
887 else
888 {
889 NVGAttachment.SetPlayer(null);
890 player.SetNVGLowered(false);
891
892 if ( player.IsControlledPlayer() )
893 {
894 player.RemoveActiveNV(NVTypes.NV_GOGGLES);
895 //player.RemoveActiveNV(NVTypes.NV_GOGGLES_OFF);
896 }
897 }
898 }
899 else if ( player.IsNVGWorking() && force_disable )
900 {
901 player.SetNVGLowered(false);
902
903 if ( player.IsControlledPlayer() )
904 {
905 player.RemoveActiveNV(NVTypes.NV_GOGGLES);
906 //player.RemoveActiveNV(NVTypes.NV_GOGGLES_OFF);
907 }
908 }
909 }
910 }
NVTypes
Definition DayZPlayerCamera_Base.c:55

Перекрестные ссылки InventorySlots::GetSlotIdFromString().

◆ UpdatePhysics() [1/3]

void UpdatePhysics ( )
inlineprotected
762 {
764 bsbDebugPrint("[bsb] " + GetDebugName(this) + " BaseBuildingBase::UpdatePhysics");
765
768
770 bsbDebugPrint("[bsb] " + GetDebugName(this) + " att_cnt=" + attachmentSlots.Count());
771
772 foreach (string slotName : attachmentSlots)
773 {
775 }
776
777 //check base
778 if (!HasBase())
779 {
781 bsbDebugPrint("[bsb] " + GetDebugName(this) + ANIMATION_DEPLOYED + " ADD");
782
783 AddProxyPhysics(ANIMATION_DEPLOYED);
784 }
785 else
786 {
788 bsbDebugPrint("[bsb] " + GetDebugName(this) + ANIMATION_DEPLOYED + " RM");
789
790 RemoveProxyPhysics(ANIMATION_DEPLOYED);
791 }
792
793 GetConstruction().UpdatePhysics();
795 }
PlayerSpawnPreset slotName
void GetAttachmentSlots(EntityAI entity, out array< string > attachment_slots)
Definition BaseBuildingBase.c:862
bool IsAttachmentSlotLocked(EntityAI attachment)
Definition BaseBuildingBase.c:843

Перекрестные ссылки ANIMATION_DEPLOYED, bsbDebugPrint(), GetAttachmentSlots(), GetConstruction(), GetDebugName(), HasBase(), IsAttachmentSlotLocked(), LogManager::IsBaseBuildingLogEnable(), slotName, UpdateAttachmentPhysics() и UpdateNavmesh().

◆ UpdatePhysics() [2/3]

void UpdatePhysics ( )
inlineprotected
139 {
140 AddProxyPhysics( "Inventory" );
141 RemoveProxyPhysics( "Placing" );
142 }

◆ UpdatePhysics() [3/3]

void UpdatePhysics ( )
inlineprotected
599 {
601 string animation_name;
602
603 if (GetState() == PITCHED)
604 {
605 for (int i = 0; i < m_ShowAnimationsWhenPitched.Count(); i++)
606 {
608
610 proxy_selection_name.ToLower();
611 AddProxyPhysics(proxy_selection_name);
612 }
613
615 }
616 else
617 {
618 for (int j = 0; j < m_ShowAnimationsWhenPacked.Count(); j++)
619 {
621
623 proxy_selection_name.ToLower();
624 AddProxyPhysics(proxy_selection_name);
625 }
626 }
627 }

Перекрестные ссылки CALL_CATEGORY_SYSTEM, GetGame() и GetState().

◆ UpdatePlant()

void UpdatePlant ( )
inlineprivate
490 {
491 if ( m_PlantStateIndex > 0 )
492 {
493 string plant_state_index = m_PlantStateIndex.ToStringLen(2);
495
496 // HIDING PREVIOUS PLANT STATE AND SHOWING THE CURRENT ONE
497 ShowSelection( "plantStage_" + plant_state_index ); // SHOW!
498 HideSelection( "plantStage_" + prev_plant_state_index ); // HIDE!
499
500 // HIDING PREVIOUS CROPS STATE AND SHOWING THE CURRENT ONE
501
502 if ( HasCrops() )
503 {
504 ShowSelection( "plantStage_" + plant_state_index + "_crops" ); // SHOW!
505 HideSelection( "plantStage_" + prev_plant_state_index + "_crops" ); // HIDE!
506 }
507 else
508 {
509 HideSelection( "plantStage_" + plant_state_index + "_crops" ); // HIDE!
510 HideSelection( "plantStage_" + prev_plant_state_index + "_crops" ); // HIDE!
511 }
512
513 // HIDING PREVIOUS SHADOW STATE AND SHOWING THE CURRENT ONE
514 ShowSelection( "plantStage_" + plant_state_index + "_shadow" ); // SHOW!
515 HideSelection( "plantStage_" + prev_plant_state_index + "_shadow" ); // HIDE!
516 }
517
520 }
bool HasCrops()
Definition PlantBase.c:907

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

◆ UpdatePreyPos()

void UpdatePreyPos ( )
inlineprotected
248 {
250 if (MemoryPointExists("Prey_Position"))
251 m_PreyPos = ModelToWorld(GetMemoryPointPos("Prey_Position"));
252 }

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

◆ UpdateSelections()

void UpdateSelections ( )
inlineprivate
13 {
14 RemoveProxyPhysics( "stage_1" );
15 RemoveProxyPhysics( "stage_2" );
16 RemoveProxyPhysics( "stage_3" );
17
18 // Show/Hide selections according to the current quantity
19 if ( this )
20 {
21 float quantity = GetQuantity();
23
24 if ( quantity > GetQuantityMax() *0.66 )
25 {
26 // Show 3/3 amount of planks
27 ShowSelection ( "stage_3" );
28 HideSelection ( "stage_2" );
29 HideSelection ( "stage_1" );
30
31 AddProxyPhysics( "stage_3" );
32 }
33
34 if ( quantity > quantity_max *0.33 && quantity <= quantity_max *0.66 )
35 {
36 // Show 2/3 amount of planks
37 HideSelection ( "stage_3" );
38 ShowSelection ( "stage_2" );
39 HideSelection ( "stage_1" );
40
41 AddProxyPhysics( "stage_2" );
42 }
43
44 if ( quantity > 0 && quantity <= quantity_max *0.33 )
45 {
46 // Show 1/3 amount of planks
47 HideSelection ( "stage_3" );
48 HideSelection ( "stage_2" );
49 ShowSelection ( "stage_1" );
50
51 AddProxyPhysics( "stage_1" );
52 }
53
54 if ( quantity == 0 )
55 {
56 // Show 0 planks. Object should be deleted now.
57 HideSelection ( "stage_3" );
58 HideSelection ( "stage_2" );
59 HideSelection ( "stage_1" );
60 }
61 }
62 }
override int GetQuantityMax()
Definition ItemBase.c:8081

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

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

◆ UpdateSlotTexture()

void UpdateSlotTexture ( int slot_index)
inlineprivate
532 {
533 Slot slot = m_Slots.Get( slot_index );
534
535 // Show / Hide selections according to DIGGED or COVERED states.
536
537 if ( slot.IsDigged() || slot.IsPlanted() )
538 {
541
542 HideSelection( str_hide );
543 ShowSelection( str_show );
544 }
545
546 if ( slot.GetFertilityType() != "" )
547 {
548 SetSlotTextureFertilized( slot_index, slot.GetFertilityType() );
549 }
550 else
551 {
553 }
554 }
void SetSlotTextureDigged(int slot_index)
Definition GardenBase.c:556
void SetSlotTextureFertilized(int slot_index, string item_type)
Definition GardenBase.c:580

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

◆ UpdateStatusLights()

void UpdateStatusLights ( )
inlineprotected
116 {
117 if ( GetGame().IsClient() || !GetGame().IsMultiplayer() )
118 {
119 if (GetCompEM().IsWorking())
120 {
122 ItemBase battery = ItemBase.Cast( GetCompEM().GetPluggedDevice() );
123
124 if (battery)
125 {
126 RedLightOff();
127
128 if (m_BatteryEnergy0To100 <= 33)
129 {
130 // Less than 1/3 charged, yellow status light must repeatedly blink
131
134 else
136
138 }
139 else if (m_BatteryEnergy0To100 > 33 && m_BatteryEnergy0To100 <= 66)
140 {
141 // Less than 2/3 charged, yellow status light must glow
142
144 }
145 else if (m_BatteryEnergy0To100 > 66 && m_BatteryEnergy0To100 < 100)
146 {
147 // Less than 3/3 charged, yellow status light must glow, green light must blink
148
150
152 GreenLightOn();
153 else
155
157 }
158 else if (m_BatteryEnergy0To100 >= 100)
159 {
160 // Fully charged, green light must glow
162 GreenLightOn();
163 }
164 }
165 else
166 {
168 RedLightOn();
169 else
170 RedLightOff();
171
173
176 }
177 }
178 else
179 {
182 RedLightOff();
184 }
185 }
186 }
void SwitchLightOn()
Definition BatteryCharger.c:307
void RedLightOff()
Definition BatteryCharger.c:312
bool m_BlinkingStatusLightIsOn
Definition BatteryCharger.c:33
void GreenLightOn()
Definition BatteryCharger.c:299
void YellowLightOn()
Definition BatteryCharger.c:303
void YellowLightOff()
Definition BatteryCharger.c:320
void RedLightOn()
Definition BatteryCharger.c:295
void GreenLightOff()
Definition BatteryCharger.c:316

Перекрестные ссылки GetGame(), GreenLightOff(), GreenLightOn(), m_BlinkingStatusLightIsOn, RedLightOff(), RedLightOn(), SwitchLightOff(), SwitchLightOn(), YellowLightOff() и YellowLightOn().

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

◆ UpdateTexturesOnAllSlots()

void UpdateTexturesOnAllSlots ( )
inlineprivate
138 {
140
141 for ( int i = 0; i < slots_count; i++ )
142 {
144 }
145 }

Перекрестные ссылки GardenBase::GetGardenSlotsCount().

◆ UpdateTrapEnviroMask()

void UpdateTrapEnviroMask ( )
inlineprotected
740 {
741 m_CatchEnviroMask = m_CatchingContext.UpdateTrapEnviroMask();
742 }

◆ UpdateVisuals() [1/3]

void UpdateVisuals ( )
inlineprotected
709 {
711
713 foreach (string slotName : attachmentSlots)
714 {
716 }
717
718 //check base
719 if (!HasBase())
720 SetAnimationPhase(ANIMATION_DEPLOYED, 0);
721 else
722 SetAnimationPhase(ANIMATION_DEPLOYED, 1);
723
724 GetConstruction().UpdateVisuals();
725 }

Перекрестные ссылки ANIMATION_DEPLOYED, GetAttachmentSlots(), GetConstruction(), HasBase(), IsAttachmentSlotLocked(), slotName и UpdateAttachmentVisuals().

◆ UpdateVisuals() [2/3]

void UpdateVisuals ( )
inlineprotected
133 {
134 SetAnimationPhase( "Inventory", 0 );
135 SetAnimationPhase( "Placing", 1 );
136 }

◆ UpdateVisuals() [3/3]

void UpdateVisuals ( )
inlineprotected
572 {
574 string animation_name;
575
576 if (GetState() == PITCHED)
577 {
578 for (int i = 0; i < m_ShowAnimationsWhenPitched.Count(); i++)
579 {
581
582 SetAnimationPhase(animation_name, 0);
583 }
584
586 }
587 else
588 {
589 for (int j = 0; j < m_ShowAnimationsWhenPacked.Count(); j++)
590 {
592
593 SetAnimationPhase(animation_name, 0);
594 }
595 }
596 }
void HandleOpeningsVisuals()
Definition TentBase.c:850

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

◆ WaterAllSlots()

void WaterAllSlots ( )
inlineprivate
817 {
818 int state = 0;
819
820 for ( int i = 0; i < m_Slots.Count(); i++ )
821 {
822 state += 1 * Math.Pow( 2, i );
823 }
824
826 }
void SetSlotWateredState(int newState)
Definition GardenBase.c:843

Перекрестные ссылки Math::Pow().

◆ YellowLightOff()

void YellowLightOff ( )
inlineprotected
321 {
322 SetObjectMaterial( 1, DEFAULT_MATERIAL );
323 }

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

◆ YellowLightOn()

void YellowLightOn ( )
inlineprotected
304 {
305 SetObjectMaterial( 1, YELLOW_LIGHT_GLOW );
306 }
const string YELLOW_LIGHT_GLOW
Definition BatteryCharger.c:19

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

Поля

◆ ANIM_PHASE_FLAME

const string ANIM_PHASE_FLAME = "FlameHide"
private

◆ ANIMATION_DEPLOYED

const string ANIMATION_DEPLOYED = "Deployed"
private

◆ ATTACHED_CLIPS_STATES

const string ATTACHED_CLIPS_STATES[] = {SEL_CLIPS_CAR, SEL_CLIPS_TRUCK}
protected
23{SEL_CLIPS_CAR, SEL_CLIPS_TRUCK}; // TO DO: If it's required by design, add helicopter battery here and register its selection names.

◆ ATTACHED_CLIPS_STATES_COUNT

const int ATTACHED_CLIPS_STATES_COUNT = 2
protected

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

◆ ATTACHMENT_CAULDRON

ATTACHMENT_CAULDRON = Cauldron
protected

◆ ATTACHMENT_COOKING_POT

ATTACHMENT_COOKING_POT = Pot
protected

◆ ATTACHMENT_FRYING_PAN

ATTACHMENT_FRYING_PAN = FryingPan
protected

◆ CHARGED_AND_READY_SOUND

const string CHARGED_AND_READY_SOUND = "defibrillator_ready_SoundSet"
staticprivate

◆ CHARGING_SOUND

const string CHARGING_SOUND = "defibrillator_charge_SoundSet"
staticprivate

◆ CHECK_RAIN_INTERVAL

const int CHECK_RAIN_INTERVAL = 15
staticprivate

◆ DEFAULT_MATERIAL

const string DEFAULT_MATERIAL = "dz\\gear\\camping\\data\\battery_charger.rvmat"
staticprotected

◆ FLAME_BUTANE_OFF

const string FLAME_BUTANE_OFF = ""
protected

◆ FLAME_BUTANE_ON

const string FLAME_BUTANE_ON = "dz\\gear\\cooking\\data\\flame_butane_ca.paa"
protected

◆ GAS_LIGHT_MATERIAL_OFF

const string GAS_LIGHT_MATERIAL_OFF = "dz\\data\\data\\default.rvmat"
private

◆ GAS_LIGHT_MATERIAL_ON

const string GAS_LIGHT_MATERIAL_ON = "dz\\gear\\cooking\\data\\GasLightOn.rvmat"
private

◆ GLASS_ID

int GLASS_ID = 2
staticprivate

◆ GREEN_LIGHT_GLOW

const string GREEN_LIGHT_GLOW = "dz\\gear\\camping\\data\\battery_charger_light_g.rvmat"
staticprotected

◆ ID_GLASS_FOLDED

const int ID_GLASS_FOLDED = 5
staticprivate

◆ ID_GLASS_UNFOLDED

const int ID_GLASS_UNFOLDED = 3
staticprivate

◆ ID_REFLECTOR_FOLDED

const int ID_REFLECTOR_FOLDED = 6
staticprivate

◆ ID_REFLECTOR_UNFOLDED

const int ID_REFLECTOR_UNFOLDED = 4
staticprivate

◆ LIGHT_OFF_GLASS

static string LIGHT_OFF_GLASS = "dz\\gear\\tools\\data\\flashlight_glass.rvmat"
staticprivate

◆ LIGHT_OFF_REFLECTOR

static string LIGHT_OFF_REFLECTOR = "dz\\gear\\tools\\data\\flashlight.rvmat"
staticprivate

◆ LIGHT_ON_GLASS

static string LIGHT_ON_GLASS = "dz\\gear\\tools\\data\\flashlight_glass_on.rvmat"
staticprivate

◆ LIGHT_ON_REFLECTOR

static string LIGHT_ON_REFLECTOR = "dz\\gear\\tools\\data\\flashlight_glass_on.rvmat"
staticprivate

◆ LOOP_SOUND

const string LOOP_SOUND = "powerGeneratorLoop_SoundSet"
staticprivate

◆ m_ActivationTime

int m_ActivationTime
private

◆ m_AdjustedMaxActiveTime

int m_AdjustedMaxActiveTime
private

After this time after deployment, the trap is activated.

◆ m_AlignCatchTimer

ref Timer m_AlignCatchTimer
private

DEPRECATED, no reason to keep the information as member.

◆ m_AnimationPhaseSet

string m_AnimationPhaseSet
protected

◆ m_AnimationPhaseTriggered

string m_AnimationPhaseTriggered
protected

◆ m_AnimationPhaseUsed

string m_AnimationPhaseUsed
protected

◆ m_AreaDamage

ref AreaDamageManager m_AreaDamage
protected

◆ m_Bait

EntityAI m_Bait
protected

DEPRECATED.

◆ m_BaitCatchProb

float m_BaitCatchProb
protected

◆ m_BaitLossFraction

float m_BaitLossFraction
private

Max time of trap activity (seconds)

◆ m_BaitNeeded

bool m_BaitNeeded
protected

DEPRECATED.

◆ m_BatteryEnergy0To100

int m_BatteryEnergy0To100
protected

◆ m_BlinkingStatusLightInterval

float m_BlinkingStatusLightInterval = 0.4
staticprotected

◆ m_BlinkingStatusLightIsOn

bool m_BlinkingStatusLightIsOn = false
protected

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

◆ m_BuzzSoundLoop

SoundOnVehicle m_BuzzSoundLoop
private

◆ m_CamoNet

CamoNet m_CamoNet
protected

◆ m_CanCatch

bool m_CanCatch = false
private

◆ m_Catch

ItemBase m_Catch
private

DEPRECATED.

◆ m_CatchEnviroMask

int m_CatchEnviroMask = 0
private

◆ m_CatchesGroundAnimal

ref multiMap<string, float> m_CatchesGroundAnimal
protected

DEPRECATED.

◆ m_CatchesPond

ref multiMap<string, float> m_CatchesPond
protected

DEPRECATED.

◆ m_CatchesSea

ref multiMap<string, float> m_CatchesSea
protected

DEPRECATED.

◆ m_CatchingContext

ref CatchingContextTrapsBase m_CatchingContext
protected

◆ m_CatchParticleEffecterId

int m_CatchParticleEffecterId = -1
private

◆ m_ChargedAlarm

EffectSound m_ChargedAlarm
private

◆ m_ChargeEnergyPerSecond

float m_ChargeEnergyPerSecond
protected

◆ m_ChargeTime

float m_ChargeTime = 5
staticprivate

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

◆ m_ChargingSound

EffectSound m_ChargingSound
private

◆ m_ChargingTimer

ref Timer m_ChargingTimer
private

◆ m_CheckRainTimer

ref Timer m_CheckRainTimer
protected

◆ m_ClutterCutter

Object m_ClutterCutter
protected

◆ m_Construction

ref Construction m_Construction
private

◆ m_ConstructionKitHealth

float m_ConstructionKitHealth
private

◆ m_CookingEquipment

ItemBase m_CookingEquipment
private

◆ m_CookingProcess

ref Cooking m_CookingProcess
private

◆ m_CropsCount

int m_CropsCount
private

◆ m_CropsType

string m_CropsType
private

◆ m_CurrentlyUsedDelta

float m_CurrentlyUsedDelta
private

◆ m_CurrentMinimalDistance

float m_CurrentMinimalDistance
private

◆ m_CurrentPlantMaterialQuantity

float m_CurrentPlantMaterialQuantity
private

◆ m_DamageTriggers

ref map<string, ref AreaDamageManager> m_DamageTriggers
protected

◆ m_DefaultFertility

float m_DefaultFertility = 1
protected

◆ m_DefectRate

float m_DefectRate
private

Normalized bait qty reduction on unsuccessful catch.

◆ m_DeleteDryPlantTime

int m_DeleteDryPlantTime
private

◆ m_DeleteDryPlantTimer

ref Timer m_DeleteDryPlantTimer = NULL
private

◆ m_DeployedRegularly

bool m_DeployedRegularly
protected

◆ m_DeployLoopSound

ref EffectSound m_DeployLoopSound
protected

DEPRECATED.

◆ m_ElapsedTime

int m_ElapsedTime
private

Adjusted by init wait time, when appropriate.

◆ m_EnergyNeededToCharge

float m_EnergyNeededToCharge = 20
staticprivate

◆ m_EngineLoop

EffectSound m_EngineLoop
protected

◆ m_EngineStart

EffectSound m_EngineStart
protected

◆ m_EngineStop

EffectSound m_EngineStop
protected

◆ m_EvaluateDeployment

bool m_EvaluateDeployment
private

◆ m_FinalCatchProb

float m_FinalCatchProb
protected

DEPRECATED.

◆ m_ForceIntoHands

bool m_ForceIntoHands
private

◆ m_Fuel

float m_Fuel
private

◆ m_FuelPercentage

int m_FuelPercentage
private

◆ m_FuelTankCapacity

float m_FuelTankCapacity
staticprivate

◆ m_FuelToEnergyRatio

float m_FuelToEnergyRatio
staticprivate

◆ m_FullMaturityTime

int m_FullMaturityTime
private

◆ m_GardenBase

GardenBase m_GardenBase = NULL
private

◆ m_GrowthStagesCount

int m_GrowthStagesCount
private

◆ m_GrowthTimer

ref Timer m_GrowthTimer = NULL
private

◆ m_HalfExtents

vector m_HalfExtents
protected

◆ m_HasBase

bool m_HasBase
private

◆ m_HasCrops

bool m_HasCrops
private

◆ m_HybridAttachments

ref array<string> m_HybridAttachments
protected

◆ m_InfestationChance

float m_InfestationChance
private

◆ m_InfestationTimer

ref Timer m_InfestationTimer = NULL
private

◆ m_InfoSetup

string m_InfoSetup
private

DEPRECATED.

◆ m_InitWaitTime

int m_InitWaitTime
private

duh

◆ m_InitWaitTimeMax

int m_InitWaitTimeMax
private

◆ m_InitWaitTimeMin

int m_InitWaitTimeMin
private

◆ m_InteractedPartId

int m_InteractedPartId
private

◆ m_IsActive

bool m_IsActive
protected

◆ m_IsBeingPacked

bool m_IsBeingPacked = false
protected

◆ m_IsBloodTypeVisible

bool m_IsBloodTypeVisible = false
private

◆ m_IsCatchSuccessful

bool m_IsCatchSuccessful
private

◆ m_IsCharged

bool m_IsCharged = false
private

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

◆ m_IsDeployed

bool m_IsDeployed
protected

◆ m_IsEntrance

bool m_IsEntrance
protected

◆ m_IsFoldable

bool m_IsFoldable
private

◆ m_IsFolded

bool m_IsFolded
private

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

◆ m_IsInfested

bool m_IsInfested
private

◆ m_IsInProgress

bool m_IsInProgress
protected

DEPRECATED.

◆ m_IsMounted

bool m_IsMounted
protected

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

◆ m_IsPastWaitingTime

bool m_IsPastWaitingTime
protected

◆ m_IsPlaced

bool m_IsPlaced
protected

◆ m_IsToggle

bool m_IsToggle
protected

◆ m_IsUsable

bool m_IsUsable
protected

DEPRECATED.

◆ m_IsWindow

bool m_IsWindow
protected

◆ m_ItemVisibilityModifier

float m_ItemVisibilityModifier
private

◆ m_LastMountedState

bool m_LastMountedState
protected

◆ m_Light [1/5]

BlowtorchLight m_Light
protected

◆ m_Light [2/5]

FlashlightLight m_Light
private

◆ m_Light [3/5]

PortableGasLampLight m_Light
private

◆ m_Light [4/5]

StoveLight m_Light
private

◆ m_Light [5/5]

SpotlightLight m_Light
private

◆ m_LightLocalOrientation

vector m_LightLocalOrientation = "0 0 0"
staticprivate

◆ m_LightLocalPosition

vector m_LightLocalPosition
staticprivate

◆ m_map_slots

ref map<string,string> m_map_slots
staticprivate

◆ m_MarkForDeletion

bool m_MarkForDeletion = false
private

◆ m_MaxActiveTime

int m_MaxActiveTime
private

Catch spawn and player check interval (expensive-ish)

◆ m_MaxWateredStateVal

int m_MaxWateredStateVal = 0
protected

◆ m_MineDisarmRate

int m_MineDisarmRate = 60
protected

◆ m_MinimalDistanceFromPlayersToCatch

float m_MinimalDistanceFromPlayersToCatch
private

Absolute damage dealt to trap when used.

◆ m_ModuleHorticulture

PluginHorticulture m_ModuleHorticulture
private

◆ m_Mountables

ref array<string> m_Mountables
protected

◆ m_MountSound

EffectSound m_MountSound
protected

◆ m_NeedInstalation

bool m_NeedInstalation
private

◆ m_NoBaitCatchProb

float m_NoBaitCatchProb
protected

DEPRECATED.

◆ m_NoteContents

ref WrittenNoteData m_NoteContents
protected

◆ m_OpeningMask

int m_OpeningMask = 0
protected

◆ m_OpeningMaskLocal

int m_OpeningMaskLocal = -1
protected

◆ m_Particle

Particle m_Particle
protected

◆ m_PerformedActionId

int m_PerformedActionId
private

◆ m_PlaceableWaterSurfaceList

ref array<string> m_PlaceableWaterSurfaceList
protected

◆ m_PlantMaterialMultiplier

float m_PlantMaterialMultiplier
private

◆ m_PlantState

int m_PlantState
private

◆ m_PlantStateIndex

int m_PlantStateIndex
private

◆ m_PrevTimer

const string m_PlaceableWaterType ref Timer m_PrevTimer
protected

DEPRECATED.

◆ m_PreyPos

vector m_PreyPos
private

◆ m_RollSuccessTime

int m_RollSuccessTime
private

◆ m_ShowAnimationsWhenPacked

ref array<string> m_ShowAnimationsWhenPacked
protected

◆ m_ShowAnimationsWhenPitched

ref array<string> m_ShowAnimationsWhenPitched
protected

◆ m_Slot

ref Slot m_Slot = NULL
private

◆ m_SlotFertilityState

int m_SlotFertilityState = 0
protected

◆ m_Slots

ref array<ref Slot> m_Slots
protected

◆ m_SlotWateredState

int m_SlotWateredState = 0
protected

◆ m_Smoke

Effect m_Smoke
protected

◆ m_Sound

EffectSound m_Sound
protected

◆ m_SoundBurningLoop

EffectSound m_SoundBurningLoop
protected

◆ m_SoundBuzzLoop

const string m_SoundBuzzLoop = "electricFenceBuzzLoop1"
staticprivate

◆ m_SoundLoopEntity

SoundOnVehicle m_SoundLoopEntity
private

◆ m_SoundLoopStartTimer

ref Timer m_SoundLoopStartTimer
protected

◆ m_SoundsCollision

const string m_SoundsCollision[SOUNDS_COLLISION_COUNT] = {"barbedFenceCollision1", "barbedFenceCollision2", "barbedFenceCollision3", "barbedFenceCollision4"}
staticprivate
12{"barbedFenceCollision1", "barbedFenceCollision2", "barbedFenceCollision3", "barbedFenceCollision4"};

◆ m_SoundsCut

const string m_SoundsCut[SOUNDS_CUT_COUNT] = {"barbedFenceCut1", "barbedFenceCut2", "barbedFenceCut3"}
staticprivate
11{"barbedFenceCut1", "barbedFenceCut2", "barbedFenceCut3"};

◆ m_SoundsShock

const string m_SoundsShock[SOUNDS_SHOCK_COUNT] = {"electricFenceShock1", "electricFenceShock2", "electricFenceShock3", "electricFenceShock4"}
staticprivate
13{"electricFenceShock1", "electricFenceShock2", "electricFenceShock3", "electricFenceShock4"};

◆ m_SoundsSpark

const string m_SoundsSpark[SOUNDS_SPARK_COUNT] = {"electricFenceSpark1", "electricFenceSpark2", "electricFenceSpark3", "electricFenceSpark4"}
staticprivate
10{"electricFenceSpark1", "electricFenceSpark2", "electricFenceSpark3", "electricFenceSpark4"};

◆ m_SoundTurnOff

EffectSound m_SoundTurnOff
protected

◆ m_SoundTurnOn

EffectSound m_SoundTurnOn
protected

◆ m_SparkEvent

ref Timer m_SparkEvent
private

◆ m_SparkPlug

ItemBase m_SparkPlug
protected

◆ m_SpawnUpdateWaitTime

int m_SpawnUpdateWaitTime
private

Catch evaluation interval.

◆ m_SpoilAfterFullMaturityTime

int m_SpoilAfterFullMaturityTime
private

◆ m_SpoilAfterFullMaturityTimer

ref Timer m_SpoilAfterFullMaturityTimer = NULL
private

◆ m_SpoiledRemoveTime

int m_SpoiledRemoveTime
private

◆ m_SpoiledRemoveTimer

ref Timer m_SpoiledRemoveTimer = NULL
private

◆ m_SprayQuantity

float m_SprayQuantity
private

◆ m_SprayUsage

float m_SprayUsage
private

◆ m_State

int m_State
protected

◆ m_StateChangeTime

int m_StateChangeTime
private

◆ m_StateLocal

int m_StateLocal = -1
protected

◆ m_SyncParts01

int m_SyncParts01
private

◆ m_SyncParts02

int m_SyncParts02
private

◆ m_SyncParts03

int m_SyncParts03
private

◆ m_TimeFactor

float m_TimeFactor
private

◆ m_Timer

ref Timer m_Timer
protected

◆ m_ToggleAnimations

ref map< ref ToggleAnimations, bool> m_ToggleAnimations
protected

◆ m_TriggerActive

bool m_TriggerActive
protected

◆ m_UpdateStatusLightsTimer

ref Timer m_UpdateStatusLightsTimer
protected

◆ m_UpdateWaitTime

int m_UpdateWaitTime
private

◆ m_UTSLConst

◆ m_UTSLEngine

◆ m_UTSource

ref UniversalTemperatureSource m_UTSource
protected

DEPRECATED Attached spark plug item.

◆ m_UTSSettings

ref UniversalTemperatureSourceSettings m_UTSSettings
protected

◆ m_WaterSurfaceForSetup

bool m_WaterSurfaceForSetup
protected

DEPRECATED.

◆ m_YieldItemIdx

int m_YieldItemIdx = -1
private

◆ m_YieldItemIdxLocal

int m_YieldItemIdxLocal = -1
private

◆ MAX_PLACEMENT_HEIGHT_DIFF

const float MAX_PLACEMENT_HEIGHT_DIFF = 1.5
private

◆ OPENING_0

const int OPENING_0 = 1
private

◆ OPENING_1

const int OPENING_1 = 2
private

◆ OPENING_10

const int OPENING_10 = 1024
private

◆ OPENING_11

const int OPENING_11 = 2048
private

◆ OPENING_12

const int OPENING_12 = 4096
private

◆ OPENING_13

const int OPENING_13 = 8192
private

◆ OPENING_14

const int OPENING_14 = 16384
private

◆ OPENING_15

const int OPENING_15 = 32768
private

◆ OPENING_2

const int OPENING_2 = 4
private

◆ OPENING_3

const int OPENING_3 = 8
private

◆ OPENING_4

const int OPENING_4 = 16
private

◆ OPENING_5

const int OPENING_5 = 32
private

◆ OPENING_6

const int OPENING_6 = 64
private

◆ OPENING_7

const int OPENING_7 = 128
private

◆ OPENING_8

const int OPENING_8 = 256
private

◆ OPENING_9

const int OPENING_9 = 512
private

◆ PACKED

const int PACKED = 0
staticprivate

◆ PARAM_COOKING_EQUIP_MAX_TEMP

const float PARAM_COOKING_EQUIP_MAX_TEMP = 250
protected

◆ PARAM_COOKING_EQUIP_TEMP_INCREASE

const float PARAM_COOKING_EQUIP_TEMP_INCREASE = 10
protected

◆ PARAM_COOKING_TEMP_THRESHOLD

const float PARAM_COOKING_TEMP_THRESHOLD = 100
protected

◆ PARAM_COOKING_TIME_INC_COEF

const float PARAM_COOKING_TIME_INC_COEF = 0.5
protected

◆ PARTICLE_PATH

int PARTICLE_PATH
protected

◆ PITCHED

const int PITCHED = 1
staticprivate

◆ RANDOM_SPARK_INTERVAL

const float RANDOM_SPARK_INTERVAL = 5.0
staticprivate

◆ RED_LIGHT_GLOW

const string RED_LIGHT_GLOW = "dz\\gear\\camping\\data\\battery_charger_light_r.rvmat"
staticprotected

◆ REFLECTOR_ID

int REFLECTOR_ID = 1
staticprivate

◆ SEL_CLIPS_CAR

const string SEL_CLIPS_CAR = "clips_car_battery"
staticprotected

◆ SEL_CLIPS_DETACHED

const string SEL_CLIPS_DETACHED = "clips_detached"
staticprotected

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

◆ SEL_CLIPS_FOLDED

const string SEL_CLIPS_FOLDED = "clips_folded"
staticprotected

◆ SEL_CLIPS_TRUCK

const string SEL_CLIPS_TRUCK = "clips_truck_battery"
staticprotected

◆ SEL_CORD_FOLDED [1/2]

const string SEL_CORD_FOLDED = "cord_folded"
staticprotected

◆ SEL_CORD_FOLDED [2/2]

const string SEL_CORD_FOLDED = "cord_folded"
staticprivate

◆ SEL_CORD_FOLDED_F

const string SEL_CORD_FOLDED_F = "spotlight_folded_cord_folded"
staticprivate

◆ SEL_CORD_FOLDED_U

const string SEL_CORD_FOLDED_U = "cord_folded"
staticprivate

◆ SEL_CORD_PLUGGED [1/2]

const string SEL_CORD_PLUGGED = "cord_plugged"
staticprotected

◆ SEL_CORD_PLUGGED [2/2]

const string SEL_CORD_PLUGGED = "cord_plugged"
staticprivate

◆ SEL_CORD_PLUGGED_F

const string SEL_CORD_PLUGGED_F = "spotlight_folded_cord_plugged"
staticprivate

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

◆ SEL_CORD_PLUGGED_U

const string SEL_CORD_PLUGGED_U = "cord_plugged"
staticprivate

◆ SEL_GLASS_F

const string SEL_GLASS_F = "glass_folded"
staticprivate

◆ SEL_GLASS_U

const string SEL_GLASS_U = "glass_unfolded"
staticprivate

◆ SEL_INVENTORY

const string SEL_INVENTORY = "inventory"
staticprivate

◆ SEL_LIGHT_STATE_1

const string SEL_LIGHT_STATE_1 = "light_stand_by"
staticprotected

◆ SEL_LIGHT_STATE_2

const string SEL_LIGHT_STATE_2 = "light_charging"
staticprotected

◆ SEL_LIGHT_STATE_3

const string SEL_LIGHT_STATE_3 = "light_charged"
staticprotected

◆ SEL_PLACING

const string SEL_PLACING = "placing"
staticprivate

◆ SEL_PLUG_SUFIX

string SEL_PLUG_SUFIX = "_plug"
staticprivate

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

◆ SEL_REFLECTOR_COMP_U

const string SEL_REFLECTOR_COMP_U = "reflector"
staticprivate

◆ SEL_REFLECTOR_F

const string SEL_REFLECTOR_F = "reflector_folded"
staticprivate

◆ SEL_REFLECTOR_U

const string SEL_REFLECTOR_U = "reflector_unfolded"
staticprivate

◆ SEL_SWITCH_OFF

const string SEL_SWITCH_OFF = "switch_off"
staticprotected

◆ SEL_SWITCH_ON

const string SEL_SWITCH_ON = "switch_on"
staticprotected

◆ SEL_WIRE_PREFIX

string SEL_WIRE_PREFIX = "Att_"
staticprivate

◆ SEL_WIRE_ROLLED

string SEL_WIRE_ROLLED = "rolled"
staticprivate

◆ SEL_WIRE_SUFIX

string SEL_WIRE_SUFIX = "_plugged"
staticprivate

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

◆ SHOCK_SOUND

const string SHOCK_SOUND = "defibrillator_shock_SoundSet"
staticprivate

◆ SLOT_MATERIAL_COMPOST_DRY

const string SLOT_MATERIAL_COMPOST_DRY = "dz\\gear\\cultivation\\data\\soil_cultivated_compost.rvmat"
staticprivate

◆ SLOT_MATERIAL_COMPOST_WET

const string SLOT_MATERIAL_COMPOST_WET = "dz\\gear\\cultivation\\data\\soil_cultivated_compost_wet.rvmat"
staticprivate

◆ SLOT_MATERIAL_DRY

const string SLOT_MATERIAL_DRY = "dz\\gear\\cultivation\\data\\soil_cultivated.rvmat"
staticprivate

◆ SLOT_MATERIAL_LIMED_DRY

const string SLOT_MATERIAL_LIMED_DRY = "dz\\gear\\cultivation\\data\\soil_cultivated_limed.rvmat"
staticprivate

◆ SLOT_MATERIAL_LIMED_WET

const string SLOT_MATERIAL_LIMED_WET = "dz\\gear\\cultivation\\data\\soil_cultivated_limed_wet.rvmat"
staticprivate

◆ SLOT_MATERIAL_WET

const string SLOT_MATERIAL_WET = "dz\\gear\\cultivation\\data\\soil_cultivated_wet.rvmat"
staticprivate

◆ SLOT_MEMORY_POINT_PREFIX

const string SLOT_MEMORY_POINT_PREFIX = "slot_"
staticprivate

◆ SLOT_SEEDBASE_PREFIX

const string SLOT_SEEDBASE_PREFIX = "seedbase_"
staticprivate

◆ SLOT_SELECTION_COVERED_PREFIX

const string SLOT_SELECTION_COVERED_PREFIX = "slotCovered_"
staticprivate

◆ SLOT_SELECTION_DIGGED_PREFIX

const string SLOT_SELECTION_DIGGED_PREFIX = "seedbase_"
staticprivate

◆ SLOT_TEXTURE_DIGGED_WET_LIME

const string SLOT_TEXTURE_DIGGED_WET_LIME = "dz\\gear\\cultivation\\data\\soil_digged_wet_lime_CO.paa"
staticprivate

◆ SLOT_TEXTURE_DIGGED_WET_PLANT

const string SLOT_TEXTURE_DIGGED_WET_PLANT = "dz\\gear\\cultivation\\data\\soil_digged_wet_plant_CO.paa"
staticprivate

◆ SOUND_BUILD_METAL

const string SOUND_BUILD_METAL = "putDown_MetalPlank_SoundSet"
private

◆ SOUND_BUILD_WIRE

const string SOUND_BUILD_WIRE = "putDown_BarbedWire_SoundSet"
private

◆ SOUND_BUILD_WOOD_LOG

const string SOUND_BUILD_WOOD_LOG = "putDown_WoodLog_SoundSet"
private

◆ SOUND_BUILD_WOOD_PLANK

const string SOUND_BUILD_WOOD_PLANK = "putDown_WoodPlank_SoundSet"
private

◆ SOUND_BUILD_WOOD_STAIRS

const string SOUND_BUILD_WOOD_STAIRS = "putDown_WoodStairs_SoundSet"
private

◆ SOUND_BURNING

const string SOUND_BURNING = "Blowtorch_Loop_SoundSet"
private

◆ SOUND_DISMANTLE_METAL

const string SOUND_DISMANTLE_METAL = "Crash_MetalPlank_SoundSet"
private

◆ SOUND_DISMANTLE_WIRE

const string SOUND_DISMANTLE_WIRE = "putDown_BarbedWire_SoundSet"
private

◆ SOUND_DISMANTLE_WOOD_LOG

const string SOUND_DISMANTLE_WOOD_LOG = "Crash_WoodPlank_SoundSet"
private

◆ SOUND_DISMANTLE_WOOD_PLANK

const string SOUND_DISMANTLE_WOOD_PLANK = "Crash_WoodPlank_SoundSet"
private

◆ SOUND_DISMANTLE_WOOD_STAIRS

const string SOUND_DISMANTLE_WOOD_STAIRS = "Crash_WoodPlank_SoundSet"
private

◆ SOUND_MOUNT

const string SOUND_MOUNT = "putDown_BarbedWire_SoundSet"
protected

◆ SOUND_TURN_OFF

const string SOUND_TURN_OFF = "portablegaslamp_turn_off_SoundSet"
private

◆ SOUND_TURN_ON

const string SOUND_TURN_ON = "portablegaslamp_turn_on_SoundSet"
private

◆ SOUNDS_COLLISION_COUNT

const int SOUNDS_COLLISION_COUNT = 4
staticprivate

◆ SOUNDS_CUT_COUNT

const int SOUNDS_CUT_COUNT = 3
staticprivate

◆ SOUNDS_SHOCK_COUNT

const int SOUNDS_SHOCK_COUNT = 4
staticprivate

◆ SOUNDS_SPARK_COUNT

const int SOUNDS_SPARK_COUNT = 4
staticprivate

◆ SPARKPLUG_ATTACH_SOUND

const string SPARKPLUG_ATTACH_SOUND = "sparkplug_attach_SoundSet"
staticprivate

◆ SPARKPLUG_DETACH_SOUND

const string SPARKPLUG_DETACH_SOUND = "sparkplug_detach_SoundSet"
staticprivate

◆ SPOIL_AFTER_MATURITY_TIME

const float SPOIL_AFTER_MATURITY_TIME = 14400
private

◆ START_SOUND

const string START_SOUND = "powerGeneratorTurnOn_SoundSet"
staticprivate

◆ STATE_DRY

const int STATE_DRY = 0
staticprivate

◆ STATE_GROWING

const int STATE_GROWING = 1
staticprivate

◆ STATE_MATURE

const int STATE_MATURE = 2
staticprivate

◆ STATE_SPOILED

const int STATE_SPOILED = 3
staticprivate

◆ STOP_SOUND

const string STOP_SOUND = "powerGeneratorTurnOff_SoundSet"
staticprivate

◆ SWITCH_LIGHT_GLOW

const string SWITCH_LIGHT_GLOW = "dz\\gear\\camping\\data\\battery_charger_light_switch_on.rvmat"
staticprotected

◆ TEXTURE_FLAME

const string TEXTURE_FLAME = "dz\\gear\\cooking\\data\\flame_butane_ca.paa"
private

◆ YELLOW_LIGHT_GLOW

const string YELLOW_LIGHT_GLOW = "dz\\gear\\camping\\data\\battery_charger_light_y.rvmat"
staticprotected

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