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

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

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

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

ref array< ref Slotm_Slots
 
int m_SlotFertilityState = 0
 
int m_SlotWateredState = 0
 
int m_MaxWateredStateVal = 0
 
float m_DefaultFertility = 1
 
ref Timer m_CheckRainTimer
 
EffectSound m_DeployLoopSound
 
SoundOnVehicle m_BuzzSoundLoop
 
ref Timer m_SparkEvent
 
ref AreaDamageManager m_AreaDamage
 
bool m_TriggerActive
 
bool m_IsPlaced
 
bool m_IsMounted
 
bool m_LastMountedState
 
const string SOUND_MOUNT = "putDown_BarbedWire_SoundSet"
 
EffectSound m_MountSound
 
EffectSound m_Sound
 
ref map< string, ref AreaDamageManagerm_DamageTriggers
 
ref array< stringm_HybridAttachments
 
ref array< stringm_Mountables
 
const string ATTACHED_CLIPS_STATES [] = {SEL_CLIPS_CAR, SEL_CLIPS_TRUCK}
 
const int ATTACHED_CLIPS_STATES_COUNT = 2
 
int m_BatteryEnergy0To100
 
float m_ChargeEnergyPerSecond
 
ref Timer m_UpdateStatusLightsTimer
 
bool m_BlinkingStatusLightIsOn = false
 
BlowtorchLight m_Light
 
EffectSound m_SoundBurningLoop
 
bool m_DeployedRegularly
 
ref WrittenNoteData m_NoteContents
 
int PARTICLE_PATH
 
Particle m_Particle
 
EffectSound m_SoundTurnOn
 
EffectSound m_SoundTurnOff
 
const string FLAME_BUTANE_ON = "dz\\gear\\cooking\\data\\flame_butane_ca.paa"
 
const string FLAME_BUTANE_OFF = ""
 
 ATTACHMENT_COOKING_POT = Pot
 
 ATTACHMENT_FRYING_PAN = FryingPan
 
 ATTACHMENT_CAULDRON = Cauldron
 
const float PARAM_COOKING_TEMP_THRESHOLD = 100
 
const float PARAM_COOKING_EQUIP_TEMP_INCREASE = 10
 
const float PARAM_COOKING_EQUIP_MAX_TEMP = 250
 
const float PARAM_COOKING_TIME_INC_COEF = 0.5
 
ref UniversalTemperatureSource m_UTSource
 DEPRECATED Attached spark plug item.
 
ref UniversalTemperatureSourceSettings m_UTSSettings
 
ref UniversalTemperatureSourceLambdaConstant m_UTSLConst
 
EffectSound m_EngineLoop
 
EffectSound m_EngineStart
 
EffectSound m_EngineStop
 
ref Timer m_SoundLoopStartTimer
 
Effect m_Smoke
 
ItemBase m_SparkPlug
 
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
 
ref Timer m_Timer
 
int m_State
 
int m_StateLocal = -1
 
bool m_IsEntrance
 
bool m_IsWindow
 
bool m_IsToggle
 
bool m_IsBeingPacked = false
 
int m_OpeningMask = 0
 
int m_OpeningMaskLocal = -1
 
ref map< ref ToggleAnimations, boolm_ToggleAnimations
 
ref array< stringm_ShowAnimationsWhenPitched
 
ref array< stringm_ShowAnimationsWhenPacked
 
Object m_ClutterCutter
 
CamoNet m_CamoNet
 
vector m_HalfExtents
 
int m_MineDisarmRate = 60
 
EntityAI m_Bait
 
bool m_IsActive
 
bool m_IsDeployed
 
bool m_IsInProgress
 
string m_AnimationPhaseSet
 
string m_AnimationPhaseTriggered
 
string m_AnimationPhaseUsed
 
ref array< stringm_PlaceableWaterSurfaceList
 DEPRECATED.
 
bool m_WaterSurfaceForSetup
 
ref multiMap< string, floatm_CatchesPond
 
ref multiMap< string, floatm_CatchesSea
 
ref multiMap< string, floatm_CatchesGroundAnimal
 
ref EffectSound m_DeployLoopSound
 
ref Timer m_PrevTimer
 
bool m_NeedInstalation
 
bool m_BaitNeeded
 
bool m_IsUsable
 

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

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 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 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 ()
 
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 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 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 ()
 
void TrapSpawnBase ()
 
void ~TrapSpawnBase ()
 
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 Fold ()
 
void AddDefect ()
 
void StartActivate (PlayerBase player)
 
bool CanBeTaken ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI parent)
 
void SetActive ()
 
void SetInactive ()
 
void SetUsed ()
 
void SpawnCatch ()
 
bool SetCanCatch (out EntityAI bait)
 
void CatchSetQuant (ItemBase catch)
 
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 OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
void PlayDeployLoopSound ()
 
void StopDeployLoopSound ()
 
override void SetActions ()
 
bool CanPutInInventory (EntityAI player)
 
void AlignCatch (ItemBase obj, string catch_name)
 
bool IsPlaceable ()
 
override bool CanBePlaced (Man player, vector position)
 
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
 
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
 
int m_InitWaitTime
 
int m_UpdateWaitTime
 
float m_DefectRate
 
bool m_IsFoldable
 
bool m_CanCatch = false
 
float m_MinimalDistanceFromPlayersToCatch
 
float m_BaitCatchProb
 
float m_NoBaitCatchProb
 
float m_FinalCatchProb
 
vector m_PreyPos
 
ItemBase m_Catch
 
ref Timer m_AlignCatchTimer
 
string m_InfoSetup
 

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

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
828 {
829 HandleVoiceEffect(false, PlayerBase.Cast(GetHierarchyRootPlayer()));
830 }
void HandleVoiceEffect(bool enable, PlayerBase player)
Definition InventoryItem.c:938
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

◆ ~BarbedWire()

void ~BarbedWire ( )
inlineprotected
45 {
47 }
EffectSound m_DeployLoopSound
Definition BarbedWire.c:15
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:267

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

◆ ~Defibrillator()

void ~Defibrillator ( )
inlineprivate
24 {
27 }
EffectSound m_ChargedAlarm
Definition Defibrillator.c:13
EffectSound m_ChargingSound
Definition Defibrillator.c:14

Перекрестные ссылки 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

◆ ~KitBase()

void ~KitBase ( )
inlineprotected

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

◆ ~Paper()

void ~Paper ( )
inlineprotected
10{}

◆ ~PowerGeneratorBase()

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

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

◆ ~Spotlight()

void ~Spotlight ( )
inlineprotected

◆ ~TentBase()

void ~TentBase ( )
inlineprotected
61 {
62 if (GetGame())
63 {
65 }
66
68 }
void DestroyClutterCutter()
Definition TentBase.c:821
proto native CGame GetGame()

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

◆ ~TrapSpawnBase()

void ~TrapSpawnBase ( )
inlineprivate

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

Методы

◆ AddDefect()

void AddDefect ( )
inlineprivate
236 {
237 if ( GetGame().IsServer() )
238 {
239 DecreaseHealth( "", "", m_DefectRate );
240 }
241 }
float m_DefectRate
Definition TrapSpawnBase.c:5

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

◆ AddFuel()

float AddFuel ( float available_fuel)
inlineprotected
279 {
280 if (available_fuel == 0)
281 {
282 return 0;
283 }
284 GetCompEM().InteractBranch(this);
285 float needed_fuel = GetMaxFuel() - GetFuel();
286
288 {
290 return available_fuel; // Return used fuel amount
291 }
292 else
293 {
295 return needed_fuel;
296 }
297 }
float GetMaxFuel()
Definition PowerGenerator.c:324
void SetFuel(float fuel_amount)
Definition PowerGenerator.c:259
float GetFuel()
Definition PowerGenerator.c:318

Перекрестные ссылки GetFuel(), GetMaxFuel() и SetFuel().

◆ AfterStoreLoad() [1/4]

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

◆ AfterStoreLoad() [2/4]

override void AfterStoreLoad ( )
inlineprotected
199 {
200 super.AfterStoreLoad();
201
202 //set mounted state based on locked slot after everything is loaded
204 }
void SetMountedState(bool is_mounted)
Definition BarbedWire.c:74
bool GetSlotLockedState()
Definition BarbedWire.c:61

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

◆ AfterStoreLoad() [3/4]

override void AfterStoreLoad ( )
inlineprotected
443 {
444 super.AfterStoreLoad();
445
447 {
449 }
450 }
bool m_FixDamageSystemInit
Definition ItemBase.c:4773
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 )
inlineprivate
544{ }

◆ AnimateCamonetByOpeningSelection()

void AnimateCamonetByOpeningSelection ( string opening_selection)
inlineprotected
777{};

◆ AnimateCamonetToggle()

void AnimateCamonetToggle ( ToggleAnimations toggle)
inlineprotected
775{};

◆ AssembleKit()

void AssembleKit ( )
inlineprotected
181 {
182 if (!IsHologram())
183 {
184 Rope rope = Rope.Cast(GetInventory().CreateAttachment("Rope"));
185 }
186 }
override bool IsHologram()
Definition ItemBase.c:5674

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

◆ BarbedWire()

void BarbedWire ( )
inlineprotected
33 {
35 m_TriggerActive = false;
36 m_IsPlaced = false;
37
38 //synchronized variables
39 RegisterNetSyncVariableBool( "m_IsSoundSynchRemote" );
40 RegisterNetSyncVariableBool( "m_IsDeploySound" );
41 RegisterNetSyncVariableBool( "m_IsMounted" );
42 }
bool m_IsPlaced
Definition BarbedWire.c:23
bool m_TriggerActive
Definition BarbedWire.c:22
ref Timer m_SparkEvent
Definition BarbedWire.c:19
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:880
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:328
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
1044 {
1045 if ( angle_deg != 0 )
1046 {
1047 //orientation
1049
1050 //center
1052 if ( MemoryPointExists( "rotate_axis" ) )
1053 {
1054 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
1055 }
1056 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];
1057 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];
1058 center[0] = r_center_x;
1059 center[2] = r_center_z;
1060 }
1061 }
Definition EnMath.c:7
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
301 {
302 if (container)
303 {
304 // Get the liquid
305 int liquid_type = container.GetLiquidType();
306
307 // Do all checks
308 if ( container.GetQuantity() > 0 && GetCompEM().GetEnergy() < GetCompEM().GetEnergyMax() && (liquid_type & LIQUID_GASOLINE))
309 {
310 return true;
311 }
312 }
313
314 return false;
315 }
float GetEnergy()
Definition ItemBase.c:8187
const int LIQUID_GASOLINE
Definition constants.c:509

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

◆ CanAssignAttachmentsToQuickbar()

override bool CanAssignAttachmentsToQuickbar ( )
inlineprotected
120 {
121 return false;
122 }

◆ CanAssignToQuickbar()

override bool CanAssignToQuickbar ( )
inlineprivate
73 {
74 return (!GetInventory().IsAttachment());
75 }

◆ CanAttach()

bool CanAttach ( ItemBase item)
inlineprotected
498 {
499 if (item.IsKindOf ("CamoNet") && GetState() == PITCHED)
500 {
501 return true;
502 }
503
504 return false;
505 }
int GetState()
Definition TentBase.c:462
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
53 {
55 {
56 return false;
57 }
58
59 return Torch.Cast(other_item.GetHierarchyParent()) == null;//when the other rag is attached to the torch, disallow this action
60 }

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

◆ CanBeDisinfected() [1/2]

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

◆ CanBeDisinfected() [2/2]

override bool CanBeDisinfected ( )
inlineprivate
78 {
79 return true;
80 }

◆ 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
43 {
44 return GetHierarchyParent() == null;
45 }

◆ CanBeManipulated()

bool CanBeManipulated ( )
inlineprotected
486 {
487 if (GetState() == PACKED)
488 {
489 return true;
490 }
491 else
492 {
493 return false;
494 }
495 }
static const int PACKED
Definition TentBase.c:20

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

◆ CanBePacked()

bool CanBePacked ( )
inlineprotected
473 {
474 if (GetState() == PITCHED)
475 {
476 if (GetInventory().GetCargo().GetItemCount() == 0 && GetInventory().AttachmentCount() == 0)
477 {
478 return true;
479 }
480 }
481
482 return false;
483 }

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

◆ CanBePlaced() [1/2]

override bool CanBePlaced ( Man player,
vector position )
inlineprotected
992 {
993 vector playerpos = player.GetPosition();
994 float delta1 = playerpos[1] - position[1];
995
997 return false;
998 return true;
999 }
const float MAX_PLACEMENT_HEIGHT_DIFF
Definition TentBase.c:22

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

◆ CanBePlaced() [2/2]

override bool CanBePlaced ( Man player,
vector position )
inlineprivate
568 {
570 }
bool IsPlaceableAtPosition(vector position)
Definition TrapSpawnBase.c:191

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

◆ CanBeRepairedByCrafting()

override bool CanBeRepairedByCrafting ( )
inlineprotected
92 {
93 return false;
94 }

◆ CanBeRepairedToPristine()

override bool CanBeRepairedToPristine ( )
inlineprotected
333 {
334 return true;
335 }

◆ CanBeTaken()

bool CanBeTaken ( )
inlineprivate
248 {
249 if ( !IsDeployed() || ( GetInventory().AttachmentCount() == 0 && IsDeployed() ) )
250 {
251 return true;
252 }
253
254 return false;
255 }
bool IsDeployed()
Definition TrapSpawnBase.c:155

◆ 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)
inlineprivate
454 {
455 super.CanDisplayAttachmentSlot( slot_id );
456 return IsDeployed();
457 }

◆ 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
978 {
979 if ( HasBase() || GetInventory().AttachmentCount() > 0 )
980 {
981 return false;
982 }
983
984 return true;
985 }
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:8042
override float GetWet()
Definition ItemBase.c:8328
Definition constants.c:615
const float STATE_DAMP
Definition constants.c:787

Перекрестные ссылки 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
410 {
411 return GetCompEM().IsWorking();
412 }

◆ CanIgniteItem() [10/10]

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

◆ CanLoadAttachment() [1/3]

override bool CanLoadAttachment ( EntityAI attachment)
inlineprotected
269 {
270 if ( !super.CanLoadAttachment(attachment) )
271 return false;
272
275
276 // Only one attachment allowed
277 if ( GetCompEM().GetPluggedDevice() )
278 return false;
279
280 if ( ibase.HasEnergyManager() && ibase.GetCompEM().GetPluggedDevicesCount() >= 1 ) // Make sure nothing is plugged into the battery
281 return false;
282
283 return true;
284 }
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
356 {
357 int slotId;
358 for (int i = 0; i < attachment.GetInventory().GetSlotIdCount(); i++)
359 {
360 slotId = attachment.GetInventory().GetSlotId(i);
361 if (GetInventory().HasAttachmentSlot(slotId))
362 {
364 EntityAI ent = this;
365 EntityAI parent;
366 while (ent)
367 {
368 if (ent.GetInventory().GetCurrentInventoryLocation(loc) && loc.IsValid())
369 {
370 if (loc.GetType() == InventoryLocationType.CARGO)
371 {
372 parent = ent.GetHierarchyParent();
373 if (parent.GetInventory().HasInventorySlot(slotId))
374 {
375 //Print("CanLoadAttachment | parent " + parent + " matches in slot name: " + InventorySlots.GetSlotName(slotId) + " of " + this);
376 return false;
377 }
378 }
379 }
380
381 ent = ent.GetHierarchyParent();
382 }
383 }
384 }
385
386 return super.CanLoadAttachment(attachment);
387 }
InventoryLocationType
types of Inventory Location
Definition InventoryLocation.c:4
Definition Building.c:6
InventoryLocation.
Definition InventoryLocation.c:28

◆ CanLoadAttachment() [3/3]

override bool CanLoadAttachment ( EntityAI attachment)
inlineprotected
984 {
985 if (GetHealthLevel() == GameConstants.STATE_RUINED)
986 return false;
987
988 return super.CanLoadAttachment(attachment);
989 }
const int STATE_RUINED
Definition constants.c:760

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

◆ CanLoadItemIntoCargo()

override bool CanLoadItemIntoCargo ( EntityAI item)
inlineprotected
966 {
967 if (!super.CanLoadItemIntoCargo(item))
968 return false;
969 if (GetHealthLevel() == GameConstants.STATE_RUINED)
970 return false;
971
972 return true;
973 }

Перекрестные ссылки 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
118 {
119 return GetCompEM().GetPluggedDevicesCount() == 0 && !GetCompEM().IsWorking();
120 }

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

◆ 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:666

◆ CanProxyObstruct()

override bool CanProxyObstruct ( )
inlineprotected
28 {
29 return false;
30 }

◆ CanProxyObstructSelf()

override bool CanProxyObstructSelf ( )
inlineprotected

prevents showing cargo when outside the tent geometry

82 {
83 return true;
84 }

◆ CanPutAsAttachment() [1/5]

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

◆ 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
925 {
926 return false;
927 }

◆ CanPutInCargo() [4/13]

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

◆ 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) ) {return false;}
30 EntityAI owner_EAI = GetHierarchyParent();
31 if ( owner_EAI && owner_EAI.IsKindOf("Fence"))
32 {
33 return true;
34 }
35
36 bool allow_into_inv = !GetCompEM().IsPlugged();
37 return allow_into_inv;
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
299 {
300 if (!super.CanPutInCargo(parent))
301 return false;
302
303 if (GetCompEM().IsSwitchedOn())
304 return false;
305
306 //can 'parent' be attached to 'this' (->assumed smaller size than 'this')?
307 if (parent)
308 {
309 int slotId;
310 for (int i = 0; i < GetInventory().GetAttachmentSlotsCount(); i++)
311 {
312 slotId = GetInventory().GetAttachmentSlotId(i);
313 if (parent.GetInventory().HasInventorySlot(slotId))
314 {
315 //Print("CanPutInCargo | parent " + parent + " matches in slot name: " + InventorySlots.GetSlotName(slotId) + " of " + this);
316 return false;
317 }
318 }
319 }
320
321 return true;
322 }

◆ CanPutInCargo() [9/13]

override bool CanPutInCargo ( EntityAI parent)
inlineprotected
97 {
98 if (!super.CanPutInCargo(parent))
99 {
100 return false;
101 }
102
103 return CanManipulate();
104 }
bool CanManipulate()
Definition PowerGenerator.c:117

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

◆ CanPutInCargo() [10/13]

override bool CanPutInCargo ( EntityAI parent)
inlineprotected
318 {
319 if (!super.CanPutInCargo(parent))
320 return false;
321
322 return !GetCompEM().IsPlugged();
323 }

◆ CanPutInCargo() [11/13]

override bool CanPutInCargo ( EntityAI parent)
inlineprotected
318 {
319 if (!super.CanPutInCargo(parent))
320 {
321 return false;
322 }
323
324 return CanBeManipulated();
325 }
bool CanBeManipulated()
Definition TentBase.c:485

◆ CanPutInCargo() [12/13]

override bool CanPutInCargo ( EntityAI parent)
inlineprivate
258 {
259 super.CanPutInCargo( parent );
260 return CanBeTaken();
261 }
bool CanBeTaken()
Definition TrapSpawnBase.c:247

◆ CanPutInCargo() [13/13]

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

◆ CanPutInInventory()

bool CanPutInInventory ( EntityAI player)
inlineprivate
542{ }

◆ CanPutIntoHands() [1/12]

override bool CanPutIntoHands ( EntityAI parent)
inlineprotected
936 {
937 return false;
938 }

◆ CanPutIntoHands() [2/12]

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

◆ CanPutIntoHands() [3/12]

override bool CanPutIntoHands ( EntityAI parent)
inlineprotected
391 {
392 if (!super.CanPutIntoHands(parent))
393 {
394 return false;
395 }
396
397 return !GetCompEM().IsSwitchedOn();
398 }

◆ CanPutIntoHands() [4/12]

override bool CanPutIntoHands ( EntityAI parent)
inlineprotected
308 {
309 if (!super.CanPutIntoHands(parent))
310 {
311 return false;
312 }
313
314 return CanBeManipulated();
315 }

◆ CanPutIntoHands() [5/12]

override bool CanPutIntoHands ( EntityAI parent)
inlineprivate
264 {
265 super.CanPutIntoHands( parent );
266 return CanBeTaken();
267 }

◆ 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
205 {
206 if( !super.CanPutIntoHands( parent ) )
207 {
208 return false;
209 }
210 // No "Take into hands" action if the item is connected
211 if ( !GetCompEM().IsPlugged() && !GetCompEM().GetPluggedDevice() )
212 {
213 return true;
214 }
215
216 return false;
217 }

◆ CanPutIntoHands() [10/12]

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

◆ CanPutIntoHands() [11/12]

override bool CanPutIntoHands ( EntityAI player)
inlineprotected
108 {
109 if(!super.CanPutIntoHands(parent))
110 {
111 return false;
112 }
113 return CanManipulate();
114 }

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

◆ CanPutIntoHands() [12/12]

override bool CanPutIntoHands ( EntityAI player)
inlineprotected
326 {
327 if (!super.CanPutIntoHands(parent))
328 {
329 return false;
330 }
331 // Commented out so Reposition action is possible to execute
332 return true;
333 }

◆ CanReceiveAttachment() [1/5]

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected
898 {
899 return super.CanReceiveAttachment(attachment, slotId);
900 }

◆ CanReceiveAttachment() [2/5]

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

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

◆ CanReceiveAttachment() [3/5]

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected
330 {
332 EntityAI ent = this;
333 EntityAI parent;
334 while (ent)
335 {
336 if (ent.GetInventory().GetCurrentInventoryLocation(loc) && loc.IsValid())
337 {
338 if (loc.GetType() == InventoryLocationType.CARGO)
339 {
340 parent = ent.GetHierarchyParent();
341 if (parent && parent.GetInventory().HasInventorySlot(slotId))
342 {
343 //Print("CanReceiveAttachment | parent " + parent + " matches in slot name: " + InventorySlots.GetSlotName(slotId) + " of " + this);
344 return false;
345 }
346 }
347 }
348
349 ent = ent.GetHierarchyParent();
350 }
351
352 return super.CanReceiveAttachment(attachment, slotId);
353 }

◆ CanReceiveAttachment() [4/5]

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected
976 {
977 if (GetHealthLevel() == GameConstants.STATE_RUINED)
978 return false;
979
980 return super.CanReceiveAttachment(attachment, slotId);
981 }

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

◆ CanReceiveAttachment() [5/5]

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprivate
460 {
461 super.CanReceiveAttachment( attachment, slotId );
462 return IsDeployed();
463 }

◆ CanReceiveItemIntoCargo()

override bool CanReceiveItemIntoCargo ( EntityAI item)
inlineprotected
958 {
959 if (GetHealthLevel() == GameConstants.STATE_RUINED || m_IsBeingPacked)
960 return false;
961
962 return super.CanReceiveItemIntoCargo(item);
963 }
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
930 {
931 return false;
932 }

◆ CanRemoveFromCargo() [2/3]

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

◆ CanRemoveFromCargo() [3/3]

override bool CanRemoveFromCargo ( EntityAI parent)
inlineprotected
325 {
326 return true;
327 }

◆ 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
82 {
83 return true;
84 }

◆ 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
650 {
651 for (int i = 0; i < m_ToggleAnimations.Count(); i++)
652 {
654 string toggle_off = toggle.GetToggleOff();
655 toggle_off.ToLower();
656 string toggle_on = toggle.GetToggleOn();
657 toggle_on.ToLower();
658
659 if (toggle_off == selection || toggle_on == selection)
660 {
661 string zone;
662 DamageSystem.GetDamageZoneFromComponentName(this,selection,zone);
663 return GetHealthLevel(zone) < GameConstants.STATE_RUINED;
664 }
665 }
666
667 return false;
668 }
ref map< ref ToggleAnimations, bool > m_ToggleAnimations
Definition TentBase.c:33
Definition ToggleSelections.c:2

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

◆ CanUseConstruction()

override bool CanUseConstruction ( )
inlineprotected
827 {
828 return true;
829 }

◆ CanUseConstructionBuild()

override bool CanUseConstructionBuild ( )
inlineprotected
832 {
833 return true;
834 }

◆ CatchSetQuant()

void CatchSetQuant ( ItemBase catch)
inlineprivate
407 {
408 if ( catch.HasQuantity() )
409 {
410 // Random quantity between 50% and 100%
411 float coef = Math.RandomFloatInclusive(0.5, 1.0);
412 float item_quantity = catch.GetQuantityMax() * coef;
414 catch.SetQuantity( item_quantity );
415 }
416 }
bool HasQuantity()
Definition ItemBase.c:8037
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

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

◆ 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
1137 {
1138 if (!GetGame().IsMultiplayer() || GetGame().IsServer())
1139 {
1140 //if this is a hybrid attachment, set damage of appropriate damage zone. Zone name must match slot name...WIP
1142 {
1143 SetHealth(slot_name,"Health",item.GetHealth());
1144 }
1145 }
1146 }

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

◆ CheckLevelVerticalDistance()

bool CheckLevelVerticalDistance ( float max_dist,
string selection,
PlayerBase player )
inlineprotected
875 {
876 return true;
877 }

◆ CheckMemoryPointVerticalDistance()

bool CheckMemoryPointVerticalDistance ( float max_dist,
string selection,
PlayerBase player )
inlineprotected
870 {
871 return true;
872 }

◆ CheckRainStart()

void CheckRainStart ( )
inlineprivate
779 {
780 if ( !m_CheckRainTimer )
782
783 m_CheckRainTimer.Run( CHECK_RAIN_INTERVAL, this, "CheckRainTick", NULL, true );
784 }
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
787 {
788 float rain_intensity = GetGame().GetWeather().GetRain().GetActual();
789
791
792 if (rain_intensity > 1 || rain_intensity < 0)
793 wetness = 0; // hackfix for weird values returned by weather system
794
795 if (wetness == 0)
797
799
800 if ( rain_intensity > 0 )
801 {
803 SetSynchDirty();
804 }
805
806 for ( int i = 0; i < slots_count; i++ )
807 {
808 if ( m_Slots )
809 {
810 Slot slot = m_Slots.Get( i );
811
812 if ( slot )
813 {
814 slot.GiveWater( wetness * Math.RandomFloat01() );
815 }
816 }
817 }
818 }
int GetGardenSlotsCount()
Definition GardenBase.c:308
void WaterAllSlots()
Definition GardenBase.c:821
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
865 {
866 return true;
867 }

◆ 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().

◆ ClearCookingEquipment()

void ClearCookingEquipment ( ItemBase pItem)
inlineprotected
47 {
49 {
50 m_CookingProcess.TerminateCookingSounds(pItem);
51 }
52
54 }
ref Cooking m_CookingProcess
Definition PortableGasStove.c:19
void SetCookingEquipment(ItemBase equipment)
Definition PortableGasStove.c:41

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

◆ Clothing_Base()

void Clothing_Base ( )
inlineprivate
823 {
824 m_ItemVisibilityModifier = ConfigGetFloat("visibilityModifier");
825 }
float m_ItemVisibilityModifier
Definition InventoryItem.c:820

◆ ConditionIntoInventory()

bool ConditionIntoInventory ( EntityAI player)
inlineprotected
303 {
304 return CanBeManipulated();
305 }

◆ ConditionOutOfHands()

bool ConditionOutOfHands ( EntityAI player)
inlineprotected
328 {
329 return CanBeManipulated();
330 }

◆ ConstructionInit()

void ConstructionInit ( )
inlineprotected
881 {
882 if ( !m_Construction )
883 {
884 m_Construction = new Construction( this );
885 }
886
887 GetConstruction().Init();
888 }
void Construction(BaseBuildingBase parent)
Definition Construction.c:26
Construction GetConstruction()
Definition BaseBuildingBase.c:890
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
214 {
215 if (m_CookingProcess == null)
216 {
218 }
219
221 }
ItemBase GetCookingEquipment()
Definition PortableGasStove.c:36
const float PARAM_COOKING_TIME_INC_COEF
Definition PortableGasStove.c:15
float m_TimeFactor
Definition PortableGasStove.c:17

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

◆ CreateAreaDamage()

void CreateAreaDamage ( string slot_name,
float rotation_angle = 0 )
inlineprotected
997 {
998 if ( GetGame() && GetGame().IsServer() )
999 {
1000 //destroy area damage if some already exists
1002
1003 //create new area damage
1005 areaDamage.SetDamageComponentType(AreaDamageComponentTypes.HITZONE);
1006
1007 vector min_max[2];
1008 if ( MemoryPointExists( slot_name + "_min" ) )
1009 {
1010 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
1011 }
1012 if ( MemoryPointExists( slot_name + "_max" ) )
1013 {
1014 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
1015 }
1016
1017 //get proper trigger extents (min<max)
1018 vector extents[2];
1019 GetConstruction().GetTriggerExtents( min_max, extents );
1020
1021 //get box center
1022 vector center;
1023 center = GetConstruction().GetBoxCenter( min_max );
1024 center = ModelToWorld( center );
1025
1026 //rotate center if needed
1029
1030 areaDamage.SetExtents( extents[0], extents[1] );
1031 areaDamage.SetAreaPosition( center );
1032 areaDamage.SetAreaOrientation( orientation );
1033 areaDamage.SetLoopInterval( 1.0 );
1034 areaDamage.SetDeferDuration( 0.2 );
1035 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
1036 areaDamage.SetAmmoName( "BarbedWireHit" );
1037 areaDamage.Spawn();
1038
1040 }
1041 }
vector GetOrientation()
Definition AreaDamageManager.c:306
void DestroyAreaDamage()
Definition FireplaceBase.c:2331
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:1043

Перекрестные ссылки 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
271 {
272 m_AreaDamage = new AreaDamageOneTime(this);
273 m_AreaDamage.SetExtents("-1 0 -0.4", "1 0.7 0.4");
274 m_AreaDamage.SetHitZones({"RightLeg", "LeftLeg", "RightFoot", "LeftFoot"});
275 m_AreaDamage.SetAmmoName("BarbedWireHit");
276 m_AreaDamage.Spawn();
277 m_TriggerActive = true;
278 }
ref AreaDamageManager m_AreaDamage
Definition BarbedWire.c:20

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

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

◆ CreateElectrifiedDamageTrigger()

void CreateElectrifiedDamageTrigger ( )
inlineprotected
260 {
262 m_AreaDamage.SetExtents("-1 0 -0.4", "1 0.7 0.4");
263 m_AreaDamage.SetLoopInterval(0.3);
264 m_AreaDamage.SetHitZones({"RightLeg", "LeftLeg", "RightFoot", "LeftFoot"});
265 m_AreaDamage.SetAmmoName("BarbedWireHit");
266 m_AreaDamage.Spawn();
267 m_TriggerActive = true;
268 }
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:3746

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

◆ CreateRope()

void CreateRope ( Rope rope)
inlineprotected
191 {
192 if (!rope)
193 return;
194
195 InventoryLocation targetLoc = rope.GetTargetLocation();
196 if (targetLoc && targetLoc.GetType() != InventoryLocationType.GROUND)
197 {
198 MiscGameplayFunctions.TransferItemProperties(this, rope);
199 return;
200 }
201
202 EntityAI newRope = EntityAI.Cast(GetGame().CreateObjectEx(rope.GetType(), GetPosition(), ECE_PLACE_ON_SURFACE));
203
204 if (newRope)
205 MiscGameplayFunctions.TransferItemProperties(this, newRope);
206
207 rope.Delete();
208 }
class JsonUndergroundAreaTriggerData GetPosition
Definition UndergroundAreaLoader.c:9

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

◆ DebugCustomState()

void DebugCustomState ( )
inlineprotected
1168 {
1169 }

◆ 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
1064 {
1065 if (GetGame() && GetGame().IsServer())
1066 {
1069 {
1070 if (areaDamage)
1071 {
1072 areaDamage.Destroy();
1073 }
1074
1075 m_DamageTriggers.Remove( slot_name );
1076 }
1077 }
1078 }

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

◆ DestroyClutterCutter()

void DestroyClutterCutter ( )
inlineprotected
822 {
823 if (GetGame().IsMultiplayer() || GetGame().IsServer())
824 {
825 if (m_ClutterCutter)
826 {
827 GetGame().ObjectDelete(m_ClutterCutter);
828 }
829 }
830 }
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:1224
Definition Debug.c:735
static bool IsBaseBuildingLogEnable()
Definition Debug.c:839
override string GetDebugName()
Definition dayzplayer.c:1158

Перекрестные ссылки 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
281 {
282 m_AreaDamage.Destroy();
283 m_TriggerActive = false;
284 }

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

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

◆ DestroyFireplace()

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

Перекрестные ссылки 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:5549
void RemoveSlot()
Definition PlantBase.c:824

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

◆ DisassembleKit()

void DisassembleKit ( ItemBase item)
inlineprotected
188{}

◆ DisassembleOnLastDetach()

override bool DisassembleOnLastDetach ( )
inlineprotected
72 {
73 return true;
74 }

◆ 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:243

Перекрестные ссылки 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
767 {
768 return true;
769 }

◆ DisplayNameRuinAttach() [2/2]

override bool DisplayNameRuinAttach ( )
inlineprivate
798 {
799 return true;
800 }

◆ 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
466 {
468 return;
469
470 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
471
472 if (GetGame().IsMultiplayer() && !GetGame().IsServer())
473 return;
474
476 string part_name = zone;
477 part_name.ToLower();
478
480 {
482
483 if ( construction_part && construction.IsPartConstructed( part_name ) )
484 {
485 construction.DestroyPartServer( null, part_name, AT_DESTROY_PART );
486 construction.DestroyConnectedParts(part_name);
487 }
488
489 //barbed wire handling (hack-ish)
490 if ( part_name.Contains("barbed") )
491 {
492 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
493 if (barbed_wire)
494 barbed_wire.SetMountedState( false );
495 }
496 }
497 }
const int AT_DESTROY_PART
Definition _constants.c:8
Definition ConstructionPart.c:2
void BarbedWire()
Definition BarbedWire.c:32

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

◆ EEHealthLevelChanged() [2/2]

override void EEHealthLevelChanged ( int oldLevel,
int newLevel,
string zone )
inlineprotected
239 {
240 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
241
243 return;
244
245 if (zone == "" && GetState() == PITCHED && newLevel == GameConstants.STATE_RUINED && GetGame().IsServer())
246 MiscGameplayFunctions.DropAllItemsInInventoryInBounds(this, m_HalfExtents);
247
248 if (zone != "Body" && zone != "Inventory" && zone != "")
249 {
251 {
253 DamageSystem.GetComponentNamesFromDamageZone(this,zone,selections);
254 for (int j = 0; j < selections.Count(); j++)
255 {
256 if (selections.Get(j) != "")
257 {
258 RemoveProxyPhysics(selections.Get(j)); //To keep
259 //HideSelection(selections.Get(j)); //To change
261 }
262 }
263 }
265 {
266 if (GetState() == PITCHED)
267 {
268 TryPitch(true);
269 }
270 }
271 }
272 }
void AnimateCamonetByOpeningSelection(string opening_selection)
Definition TentBase.c:777
void TryPitch(bool update_navmesh, bool init=false)
Definition TentBase.c:569
vector m_HalfExtents
Definition TentBase.c:39

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

◆ EEInit() [1/5]

override void EEInit ( )
inlineprotected
50 {
51 super.EEInit();
52
53 GetGame().GetCallQueue( CALL_CATEGORY_GAMEPLAY ).CallLater( UpdateAttachmentSlot, 100, false );
54 }
void UpdateAttachmentSlot()
Definition BarbedWire.c:87
const int CALL_CATEGORY_GAMEPLAY
Definition tools.c:10

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

◆ EEInit() [2/5]

override void EEInit ( )
inlineprotected
510 {
511 super.EEInit();
512
513 // init visuals and physics
515
516 //debug
517 #ifdef DEVELOPER
519 #endif
520 }
void DebugCustomState()
Definition BaseBuildingBase.c:1167
void InitBaseState()
Definition BaseBuildingBase.c:676

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

◆ EEInit() [3/5]

override void EEInit ( )
inlineprotected
58 {
59 super.EEInit();
60
61 //set visual on init
64
65 if (GetGame().IsServer())
66 {
67 GetGame().GetCallQueue( CALL_CATEGORY_GAMEPLAY ).Call( AssembleKit );
68 }
69 }
void AssembleKit()
Definition KitBase.c:180
void UpdateVisuals()
Definition BaseBuildingBase.c:701
void UpdatePhysics()
Definition BaseBuildingBase.c:754

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

◆ EEInit() [4/5]

override void EEInit ( )
inlineprotected
64 {
65 super.EEInit();
66
67 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
68 {
70 m_UTSSettings.m_ManualUpdate = true;
71 m_UTSSettings.m_TemperatureMin = 0;
72 m_UTSSettings.m_TemperatureMax = 1000;
73 m_UTSSettings.m_RangeFull = 1;
74 m_UTSSettings.m_RangeMax = 2;
75 m_UTSSettings.m_TemperatureCap = 10;
76
79 }
80 }
ref UniversalTemperatureSourceSettings m_UTSSettings
Definition PortableGasStove.c:32
ref UniversalTemperatureSourceLambdaConstant m_UTSLConst
Definition PortableGasStove.c:33
ref UniversalTemperatureSource m_UTSource
DEPRECATED Attached spark plug item.
Definition PortableGasStove.c:31
original Timer deletes m_params which is unwanted
Definition UniversalTemperatureSource.c:26
Definition UniversalTemperatureSource.c:2

Перекрестные ссылки GetGame(), 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;
52 m_UTSSettings.m_RangeFull = 1;
53 m_UTSSettings.m_RangeMax = 2.5;
54 m_UTSSettings.m_TemperatureCap = 8;
55
58 }
59 }
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
Definition PowerGenerator.c:24
Definition UniversalTemperatureSourceLambdaBaseImpl.c:63

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

◆ 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:135
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:713
Slot GetSlotByIndex(int index)
Definition GardenBase.c:838
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
523 {
524 super.EEItemAttached( item, slot_name );
525
529 }
void UpdateAttachmentPhysics(string slot_name, bool is_locked)
Definition BaseBuildingBase.c:790
void CheckForHybridAttachments(EntityAI item, string slot_name)
Definition BaseBuildingBase.c:1136

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

◆ EEItemAttached() [3/6]

override void EEItemAttached ( EntityAI item,
string slot_name )
inlineprotected
84 {
85 super.EEItemAttached(item, slot_name);
86
87 //cookware
88 switch (item.Type())
89 {
94 RefreshFlameVisual(m_EM.IsSwitchedOn(), true);
95 break;
96 }
97 }
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
209 {
210 super.EEItemAttached(item, slot_name);
211 GetCompEM().InteractBranch(this);
212
214
215 if (item_IB.IsKindOf("Sparkplug") && IsInitialized())
216 {
217 ShowSelection("sparkplug_installed");
218
219 #ifndef SERVER
221 sound.SetAutodestroy( true );
222 #endif
223 }
224 }
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:165

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

◆ EEItemAttached() [5/6]

override void EEItemAttached ( EntityAI item,
string slot_name )
inlineprotected
371 {
372 super.EEItemAttached(item, slot_name);
373
374 if (item.IsKindOf ("CamoNet"))
375 {
376 m_CamoNet = CamoNet.Cast(item);
378 //SetAnimationPhase("Camonet", 0);
379
380 if (!IsKindOf ("MediumTent"))
381 {
382 AddProxyPhysics("camonet");
383 }
384 }
385
386 if (item.IsKindOf ("XmasLights"))
387 {
388 SetAnimationPhase("Xlights", 0);
389 SetAnimationPhase("Xlights_glass_r", 0);
390 SetAnimationPhase("Xlights_glass_g", 0);
391 SetAnimationPhase("Xlights_glass_b", 0);
392 SetAnimationPhase("Xlights_glass_y", 0);
393
394 XmasLights xlights = XmasLights.Cast(item);
395 xlights.AttachToObject(this);
396 }
397 }
void HandleCamoNetAttachment(bool hide)
Definition TentBase.c:770
CamoNet m_CamoNet
Definition TentBase.c:38

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

◆ EEItemAttached() [6/6]

override void EEItemAttached ( EntityAI item,
string slot_name )
inlineprivate
466 {
467 super.EEItemAttached( item, slot_name );
468
469 // In the case the trap was still deployed, enable "quick re-arm" by attaching
470 if ( IsDeployed() && slot_name == "Trap_Bait" )
471 {
472 SetActive();
473 }
474 }
void SetActive()
Definition TrapSpawnBase.c:270

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

◆ EEItemDetached() [1/6]

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/6]

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected
532 {
533 super.EEItemDetached( item, slot_name );
534
537 }

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

◆ EEItemDetached() [3/6]

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected
77 {
78 super.EEItemDetached( item, slot_name );
79
80 PlayerBase player = PlayerBase.Cast(GetHierarchyRootPlayer());
81 if ( player && player.IsPlayerDisconnected() )
82 return;
83
84 if (item && slot_name == "Rope")
85 {
86 if (GetGame().IsServer() && !m_DeployedRegularly)
87 {
89 Delete();
90 }
91 }
92 }
bool m_DeployedRegularly
Definition KitBase.c:4
void DisassembleKit(ItemBase item)
Definition KitBase.c:188

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

◆ EEItemDetached() [4/6]

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected
100 {
101 super.EEItemDetached(item, slot_name);
102
103 //cookware
104 switch (item.Type())
105 {
110 //remove cooking equipment reference
112 RefreshFlameVisual(m_EM.IsSwitchedOn(), false);
113 break;
114 }
115 }
void ClearCookingEquipment()
DEPRECATED.
Definition FireplaceBase.c:561
void RemoveCookingAudioVisuals()
Definition PortableGasStove.c:251

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

◆ EEItemDetached() [5/6]

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected
227 {
228 super.EEItemDetached(item, slot_name);
229
230 GetCompEM().InteractBranch(this);
231
233
234 if (item_IB.IsKindOf("Sparkplug"))
235 {
236 HideSelection("sparkplug_installed");
237 GetCompEM().SwitchOff();
238
239 #ifndef SERVER
241 sound.SetAutodestroy(true);
242 #endif
243 }
244 }
static const string SPARKPLUG_DETACH_SOUND
Definition PowerGenerator.c:12

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

◆ EEItemDetached() [6/6]

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected
400 {
401 super.EEItemDetached(item, slot_name);
402
403 if (item.IsKindOf ("CamoNet"))
404 {
405 m_CamoNet = null;
407 //SetAnimationPhase("Camonet", 1);
408
409 if (!IsKindOf ("MediumTent"))
410 {
411 RemoveProxyPhysics("camonet");
412 }
413 }
414
415 if (item.IsKindOf ("XmasLights"))
416 {
417 SetAnimationPhase("Xlights", 1);
418 SetAnimationPhase("Xlights_glass_r", 1);
419 SetAnimationPhase("Xlights_glass_g", 1);
420 SetAnimationPhase("Xlights_glass_b", 1);
421 SetAnimationPhase("Xlights_glass_y", 1);
422
423 XmasLights xlights = XmasLights.Cast(item);
424 xlights.DetachFromObject(this);
425 }
426 }

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

◆ 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
500 {
502 {
503 GetGame().GetCallQueue( CALL_CATEGORY_GAMEPLAY ).CallLater( SetPartsAfterStoreLoad, 500, false, this );
504 }
505
506 super.EEOnAfterLoad();
507 }

Перекрестные ссылки 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:786
void UpdateTexturesOnAllSlots()
Definition GardenBase.c:137

◆ EOnInit() [2/3]

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

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

◆ EOnInit() [3/3]

override void EOnInit ( IEntity other,
int extra )
inlineprotected
79 {
80 if (!IsHologram())
81 {
83 HideSelection(SEL_CORD_FOLDED_F);
84 }
85 else
86 {
87 Unfold();
88 }
89 }
static const string SEL_CORD_FOLDED_F
Definition Spotlight.c:15
void Unfold()
Definition Spotlight.c:280
void UpdateAllSelections()
Definition MetalWire.c:32

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

◆ 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 //TODO Boris: Add soft skill 2.0
481 //PluginExperience module_exp = GetPlugin(PluginExperience);
482 //slot.m_HarvestingEfficiency = module_exp.GetExpParamNumber(player, PluginExperience.EXP_FARMER_FERTILIZATION, "efficiency");
483 }
484 }
485 }
486 else
487 {
488 slot.SetFertilizerQuantity(0);
489 slot.SetFertilityType("");
490 slot.SetFertilityState(eFertlityState.NONE);
491 }
492 SetSynchDirty();
493 }
494 }
eFertlityState
Definition Slot.c:2
int m_SlotFertilityState
Definition GardenBase.c:26
void UpdateSlotTexture(int slot_index)
Definition GardenBase.c:535
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'.

Перекрестные ссылки 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 ( )
inlineprivate
227 {
228 if ( GetGame().IsServer() && m_IsFoldable == true )
229 {
230 SetInactive();
231 }
232 }
void SetInactive()
Definition TrapSpawnBase.c:291
bool m_IsFoldable
Definition TrapSpawnBase.c:6

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

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

◆ Fold() [2/2]

void Fold ( bool keep_connected = false)
inlineprotected
268 {
269 m_IsFolded = true;
270 if (!keep_connected)
271 {
272 GetCompEM().SwitchOff();
273 GetCompEM().UnplugThis();
274 }
275
277 SetSynchDirty();
278 }
bool m_IsFolded
Definition Spotlight.c:3

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

◆ FoldBaseBuildingObject()

ItemBase FoldBaseBuildingObject ( )
inlineprotected
988 {
991
992 return item;
993 }
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
1183 {
1185 array<ConstructionPart> parts = GetConstruction().GetConstructionParts().GetValueArray();
1186
1187 Man p;
1188
1189 #ifdef SERVER
1191 GetGame().GetWorld().GetPlayerList(players);
1192 if (players.Count())
1193 p = players[0];
1194 #else
1195 p = GetGame().GetPlayer();
1196 #endif
1197
1198 foreach (ConstructionPart part : parts)
1199 {
1200 bool excluded = false;
1201 string partName = part.GetPartName();
1202 if (excludes)
1203 {
1204 foreach (string exclude : excludes)
1205 {
1206 if (partName.Contains(exclude))
1207 {
1208 excluded = true;
1209 break;
1210 }
1211 }
1212 }
1213
1214 if (!excluded)
1215 {
1217 }
1218 }
1219
1220 GetConstruction().UpdateVisuals();
1221 }
const int AT_BUILD_PART
Definition _constants.c:6
void OnPartBuiltServer(notnull Man player, string part_name, int action_id)
Definition BaseBuildingBase.c:556
array< string > OnDebugSpawnBuildExcludes()
Excludes certain parts from being built by OnDebugSpawn, uses Contains to compare.
Definition BaseBuildingBase.c:1172

Перекрестные ссылки 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:778
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
856 {
857 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
858 if ( GetGame().ConfigIsExisting( config_path ) )
859 {
860 GetGame().ConfigGetTextArray( config_path, attachment_slots );
861 }
862 }

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

◆ GetBandagingEffectivity() [1/2]

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

Используется в ActionBandageSelfCB::CreateActionComponent() и ActionBandageTargetCB::CreateActionComponent().

◆ GetBandagingEffectivity() [2/2]

override float GetBandagingEffectivity ( )
inlineprivate
109 {
110 return 0.5;
111 }

◆ 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
1104 {
1106
1107 switch ( material_type )
1108 {
1109 case ConstructionMaterialType.MATERIAL_LOG: return SOUND_BUILD_WOOD_LOG;
1110 case ConstructionMaterialType.MATERIAL_WOOD: return SOUND_BUILD_WOOD_PLANK;
1111 case ConstructionMaterialType.MATERIAL_STAIRS: return SOUND_BUILD_WOOD_STAIRS;
1112 case ConstructionMaterialType.MATERIAL_METAL: return SOUND_BUILD_METAL;
1113 case ConstructionMaterialType.MATERIAL_WIRE: return SOUND_BUILD_WIRE;
1114 }
1115
1116 return "";
1117 }
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
819{};

◆ GetConstruction()

Construction GetConstruction ( )
inlineprotected
891 {
892 return m_Construction;
893 }

Перекрестные ссылки 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
37 {
38 return m_CookingEquipment;
39 }
ItemBase m_CookingEquipment
Definition PortableGasStove.c:20

Перекрестные ссылки 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
1149 {
1150 return 111;
1151 }

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

◆ GetDamageSystemVersionChange() [2/2]

override int GetDamageSystemVersionChange ( )
inlineprotected
953 {
954 return 110;
955 }

◆ GetDeployFinishSoundset()

override string GetDeployFinishSoundset ( )
inlineprotected
136 {
137 return "";
138 }

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

◆ GetDeploySoundset() [1/3]

override string GetDeploySoundset ( )
inlineprotected
438 {
439 return "placeBarbedWire_SoundSet";
440 }

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

◆ GetDeploySoundset() [2/3]

override string GetDeploySoundset ( )
inlineprotected
125 {
126 return "putDown_FenceKit_SoundSet";
127 }

◆ GetDeploySoundset() [3/3]

override string GetDeploySoundset ( )
inlineprotected
401 {
402 return "placeSpotlight_SoundSet";
403 }

◆ GetDisarmRate()

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

◆ GetDismantleSoundByMaterial()

string GetDismantleSoundByMaterial ( string part_name)
inlineprotected
1120 {
1122
1123 switch ( material_type )
1124 {
1125 case ConstructionMaterialType.MATERIAL_LOG: return SOUND_DISMANTLE_WOOD_LOG;
1126 case ConstructionMaterialType.MATERIAL_WOOD: return SOUND_DISMANTLE_WOOD_PLANK;
1127 case ConstructionMaterialType.MATERIAL_STAIRS: return SOUND_DISMANTLE_WOOD_STAIRS;
1128 case ConstructionMaterialType.MATERIAL_METAL: return SOUND_DISMANTLE_METAL;
1129 case ConstructionMaterialType.MATERIAL_WIRE: return SOUND_DISMANTLE_WIRE;
1130 }
1131
1132 return "";
1133 }
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
319 {
320 return GetCompEM().GetEnergy() / m_FuelToEnergyRatio;
321 }
static float m_FuelToEnergyRatio
Definition PowerGenerator.c:5

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

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

◆ 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
111 {
112 if (GetInventory().AttachmentCount() != 0)
113 {
114 return GetInventory().GetAttachmentFromIndex(0);
115 }
116
117 return null;
118 }

◆ 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:4748

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

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

◆ GetInfectionChance() [2/2]

override float GetInfectionChance ( int system = 0,
Param param = null )
inlineprivate
114 {
115 if (m_Cleanness == 1)
116 return 0;
117
118 return 0.15;
119 }

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

◆ GetInvulnerabilityTypeString() [1/2]

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

◆ GetInvulnerabilityTypeString() [2/2]

override string GetInvulnerabilityTypeString ( )
inlineprotected
71 {
72 return "disableContainerDamage";
73 }

◆ GetItemVisibility()

float GetItemVisibility ( )
inlineprivate
838 {
840 }

◆ GetKitSpawnPosition()

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

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

◆ GetLiquidThroughputCoef()

override float GetLiquidThroughputCoef ( )
inlineprotected
73 {
75 }
const float LIQUID_THROUGHPUT_GENERATOR
Definition constants.c:528

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

Используется в ActionExtinguishFireplaceByExtinguisherCB::CreateActionComponent() и ActionExtinguishFireplaceByLiquidCB::CreateActionComponent().

◆ GetLoopDeploySoundset() [1/3]

override string GetLoopDeploySoundset ( )
inlineprotected
443 {
444 return "barbedwire_deploy_SoundSet";
445 }

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

◆ GetLoopDeploySoundset() [2/3]

override string GetLoopDeploySoundset ( )
inlineprotected
130 {
131 //return "BarbedWire_Deploy_loop_SoundSet";
132 return "Shelter_Site_Build_Loop_SoundSet";
133 }

◆ GetLoopDeploySoundset() [3/3]

override string GetLoopDeploySoundset ( )
inlineprotected
406 {
407 return "spotlight_deploy_SoundSet";
408 }

◆ GetMaxFuel()

float GetMaxFuel ( )
inlineprotected
325 {
326 return m_FuelTankCapacity;
327 }
static float m_FuelTankCapacity
Definition PowerGenerator.c:4

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

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

◆ GetMaxWaterStateVal()

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

◆ GetMeleeTargetType()

override int GetMeleeTargetType ( )
inlineprotected
97 {
98 return EMeleeTargetType.NONALIGNABLE;
99 }
EMeleeTargetType
Definition EMeleeTargetType.c:2

◆ GetNearestSlotIDByState()

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

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

◆ GetPlaceSoundset() [1/4]

override string GetPlaceSoundset ( )
inlineprotected
434 {
435 return "placeBatteryCharger_SoundSet";
436 }

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

◆ GetPlaceSoundset() [2/4]

override string GetPlaceSoundset ( )
inlineprivate
125 {
126 return "placeCableReel_SoundSet";
127 }

◆ GetPlaceSoundset() [3/4]

override string GetPlaceSoundset ( )
inlineprotected
362 {
363 return "placePowerGenerator_SoundSet";
364 }

◆ 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
839 {
840 return m_Slots.Get(index);
841 }

◆ GetSlotBySelection()

Slot GetSlotBySelection ( string selection_component)
inlineprivate
667 {
669
670 if ( slot_index > -1 )
671 {
672 return m_Slots.Get( slot_index );
673 }
674 else
675 {
676 return NULL;
677 }
678 }
int GetSlotIndexBySelection(string selection_component)
Definition GardenBase.c:681

◆ GetSlotIndexByAttachmentSlot()

int GetSlotIndexByAttachmentSlot ( string att_slot)
inlineprivate
714 {
715 int slot_index = -1;
716
717 int start = "SeedBase_".Length();
718 int end = att_slot.Length();//start + 2;
719 int len = end - start;
720
721 string num_str = att_slot.Substring( start, len );
722 slot_index = num_str.ToInt();
723
724 return slot_index;
725 }

◆ GetSlotIndexByPlant()

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

◆ GetSlotIndexBySelection()

int GetSlotIndexBySelection ( string selection_component)
inlineprivate
682 {
683 int slot_index = -1;
684
685 if ( m_Slots != NULL )
686 {
689
691
692 if ( start > -1 )
693 {
695 int end = start + 2;
696 int length = selection_component.Length();
697
698 if ( length >= end )
699 {
700 int length_add = length - end; // Hack-fix for inconsistent component names in p3d
701 int length_from_end = 2 + length_add;
702 string num_str = selection_component.Substring( start, length_from_end );
703 slot_index = num_str.ToInt();
704
706 }
707 }
708 }
709
710 return slot_index;
711 }

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

◆ GetSlotLockedState()

bool GetSlotLockedState ( )
inlineprotected
62 {
63 BaseBuildingBase base_building = BaseBuildingBase.Cast( GetHierarchyParent() );
64 if ( base_building )
65 {
67 GetInventory().GetCurrentInventoryLocation( inventory_location );
68 return base_building.GetInventory().GetSlotLock( inventory_location.GetSlot() );
69 }
70
71 return false;
72 }
Definition Fence.c:2

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

◆ GetSlotPosition()

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

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

◆ GetSlots()

array< ref Slot > GetSlots ( )
inlineprivate
834 {
835 return m_Slots;
836 }

◆ GetSlotWateredState()

int GetSlotWateredState ( )
inlineprivate
844 {
845 return m_SlotWateredState;
846 }
int m_SlotWateredState
Definition GardenBase.c:27

◆ GetSoundClose()

string GetSoundClose ( )
inlineprotected
781{};

◆ GetSoundCloseWindow()

string GetSoundCloseWindow ( )
inlineprotected
785{};

◆ GetSoundOpen()

string GetSoundOpen ( )
inlineprotected
779{};

◆ GetSoundOpenWindow()

string GetSoundOpenWindow ( )
inlineprotected
783{};

◆ 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
463 {
464 return m_State;
465 }
int m_State
Definition TentBase.c:24

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

◆ GetStateLocal()

int GetStateLocal ( )
inlineprotected
468 {
469 return m_StateLocal;
470 }
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

Перекрестные ссылки 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
429 {
430 if (MemoryPointExists("invView2") && !m_IsFolded)
431 {
432 return 1;
433 }
434
435 return 0;
436 }

◆ GetViewIndex() [3/3]

override int GetViewIndex ( )
inlineprotected
429 {
430 if (MemoryPointExists("invView2"))
431 {
433 GetInventory().GetCurrentInventoryLocation(il);
434 InventoryLocationType type = il.GetType();
435
436 if (GetState() == PACKED)
437 {
438 switch (type)
439 {
440 case InventoryLocationType.ATTACHMENT:
441 return 1;
442 default:
443 return 0;
444 }
445 }
446 else
447 {
448 switch (type)
449 {
450 case InventoryLocationType.ATTACHMENT:
451 case InventoryLocationType.GROUND:
452 return 1;
453 default:
454 return 0;
455 }
456 }
457 }
458
459 return 0;
460 }

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

◆ GetVoiceEffect()

int GetVoiceEffect ( )
inlineprivate

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

947 {
948 return 0;
949 }

◆ 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
321 {
322 SetObjectMaterial( 2, DEFAULT_MATERIAL );
323 }
const string DEFAULT_MATERIAL
Definition BatteryCharger.c:21

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

◆ GreenLightOn()

void GreenLightOn ( )
inlineprotected
304 {
305 SetObjectMaterial( 2, GREEN_LIGHT_GLOW );
306 }
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().

◆ HandleCamoNetAttachment()

void HandleCamoNetAttachment ( bool hide)
inlineprotected
771 {
772 SetAnimationPhase("CamoNet", hide);
773 }

◆ HandleOpeningsPhysics()

void HandleOpeningsPhysics ( )
inlineprotected
917 {
918 bool is_closed;
919 bool is_ruined;
920 int hplevel;
921 string zone;
922 string component;
924
925 for (int i = 0; i < m_ToggleAnimations.Count(); i++)
926 {
927 toggle = m_ToggleAnimations.GetKey(i);
928 is_closed = m_OpeningMask & toggle.GetOpeningBit();
929 component = toggle.GetToggleOff(); //either one works
930 component.ToLower();
931 DamageSystem.GetDamageZoneFromComponentName(this,component,zone);
932 is_ruined = (GetHealthLevel(zone) == GameConstants.STATE_RUINED);
933
934 //re-adding physics to avoid proxy physics stacking
935 RemoveProxyPhysics(toggle.GetToggleOff());
936 RemoveProxyPhysics(toggle.GetToggleOn());
937
938 if (!is_ruined && GetState() == PITCHED)
939 {
940 if (is_closed)
941 {
942 AddProxyPhysics(toggle.GetToggleOn());
943 }
944 else
945 {
946 AddProxyPhysics(toggle.GetToggleOff());
947 }
948 }
949 }
950 }
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.
int m_OpeningMask
Definition TentBase.c:30

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

◆ HandleOpeningsVisuals()

void HandleOpeningsVisuals ( )
inlineprotected
884 {
885 bool is_closed;
886 bool is_ruined;
887 string zone;
888 string component;
890
891 for (int i = 0; i < m_ToggleAnimations.Count(); i++)
892 {
893 toggle = m_ToggleAnimations.GetKey(i);
894 is_closed = m_OpeningMask & toggle.GetOpeningBit();
895 component = toggle.GetToggleOff(); //either one works
896 component.ToLower();
897 DamageSystem.GetDamageZoneFromComponentName(this,component,zone);
898 //is_ruined = (GetHealthLevel(zone) == GameConstants.STATE_RUINED);
899
900 if (is_closed)
901 {
902 SetAnimationPhase(toggle.GetToggleOff(),1);
903 SetAnimationPhase(toggle.GetToggleOn(),is_ruined);
904 m_ToggleAnimations.Set(toggle, false);
905 }
906 else
907 {
908 SetAnimationPhase(toggle.GetToggleOn(),1);
909 SetAnimationPhase(toggle.GetToggleOff(),is_ruined);
910 m_ToggleAnimations.Set(toggle, true);
911 }
912 //AnimateCamonetToggle(toggle);
913 }
914 }

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

◆ HandleVoiceEffect()

void HandleVoiceEffect ( bool enable,
PlayerBase player )
inlineprivate
939 {
940 if ( IsObstructingVoice() && player )
942 }
void MutePlayer(PlayerBase player, bool state)
This items has effect on player's voice.
Definition InventoryItem.c:927
bool IsObstructingVoice()
Returns if this entity obsructs player's voice.
Definition InventoryItem.c:920

◆ 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
903 {
904 int attachment_count = GetInventory().AttachmentCount();
905 if ( attachment_count > 0 )
906 {
907 if ( HasBase() && attachment_count == 1 )
908 {
909 return false;
910 }
911
912 return true;
913 }
914
915 return false;
916 }

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

◆ HasBase()

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

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

◆ HasClutterCutter()

bool HasClutterCutter ( )
inlineprotected
818{};

◆ HasCrops()

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

◆ HasEnoughEnergyForRepair()

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

◆ 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
38 {
39 return true;
40 }

◆ HasProperDistance()

bool HasProperDistance ( string selection,
PlayerBase player )
inlineprotected
972 {
973 return true;
974 }

◆ HasProxyParts() [1/3]

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

◆ HasProxyParts() [2/3]

override bool HasProxyParts ( )
inlineprotected
23 {
24 return true;
25 }

◆ HasProxyParts() [3/3]

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

◆ HasSparkplug()

bool HasSparkplug ( )
inlineprotected
331 {
332 int slot = InventorySlots.GetSlotIdFromString("SparkPlug");
333 EntityAI ent = GetInventory().FindAttachment(slot);
334
335 return ent && !ent.IsRuined();
336 }

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

◆ HideAllAnimationsAndProxyPhysics()

void HideAllAnimationsAndProxyPhysics ( bool hide_animations = true,
bool hide_physics = true )
inlineprotected
275 {
276 string cfg_path = "cfgVehicles " + GetType() + " AnimationSources";
277
278 if (GetGame().ConfigIsExisting(cfg_path))
279 {
280 int selections = GetGame().ConfigGetChildrenCount(cfg_path);
282
283 for (int i = 0; i < selections; i++)
284 {
285 string selection_name;
286 GetGame().ConfigGetChildName(cfg_path, i, selection_name);
287 if (hide_animations)
288 {
289 SetAnimationPhase(selection_name, 1);
290 }
291
293 proxy_selection_name.ToLower();
294 if (hide_physics)
295 {
296 RemoveProxyPhysics(proxy_selection_name);
297 }
298 }
299 }
300 }

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

◆ HideAttachedClipsStates()

void HideAttachedClipsStates ( )
inlineprotected
287 {
288 for ( int i = 0; i < ATTACHED_CLIPS_STATES_COUNT; i++ )
289 {
290 string selection = ATTACHED_CLIPS_STATES[i];
291 HideSelection(selection);
292 }
293 }
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
550 {
551 return true;
552 }

◆ 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
677 {
678 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " BaseBuildingBase::InitBaseState ");
679
680 InitVisuals();
681 UpdateNavmesh(); //regenerate navmesh
682 GetConstruction().InitBaseState();
683 }
void UpdateNavmesh()
Definition BaseBuildingBase.c:820
void InitVisuals()
Definition BaseBuildingBase.c:685

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

◆ 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:4774

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

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

◆ InitVisuals()

void InitVisuals ( )
inlineprotected
686 {
687 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " InitVisuals");
688 //check base
689 if ( !HasBase() )
690 {
691 SetAnimationPhase( ANIMATION_DEPLOYED, 0 );
692 }
693 else
694 {
695 SetAnimationPhase( ANIMATION_DEPLOYED, 1 );
696 }
697
698 GetConstruction().UpdateVisuals();
699 }
const string ANIMATION_DEPLOYED
Definition BaseBuildingBase.c:4

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

◆ IsActive()

bool IsActive ( )
inlineprivate
151 {
152 return m_IsActive;
153 }
bool m_IsActive
Definition TrapSpawnBase.c:18

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

◆ IsAttachmentSlotLocked() [1/2]

bool IsAttachmentSlotLocked ( EntityAI attachment)
inlineprotected
837 {
838 if ( attachment )
839 {
841 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
842
843 return GetInventory().GetSlotLock( inventory_location.GetSlot() );
844 }
845
846 return false;
847 }

◆ IsAttachmentSlotLocked() [2/2]

bool IsAttachmentSlotLocked ( string slot_name)
inlineprotected
850 {
851 return GetInventory().GetSlotLock( InventorySlots.GetSlotIdFromString( slot_name ) );
852 }

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

◆ IsBasebuildingKit()

override bool IsBasebuildingKit ( )
inlineprotected
18 {
19 return true;
20 }

Используется в 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
833 {
834 return true;
835 }

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

◆ IsCorrectFertilizer()

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

◆ IsDeployable() [1/5]

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

◆ IsDeployable() [2/5]

override bool IsDeployable ( )
inlineprotected
429 {
430 return true;
431 }

◆ IsDeployable() [3/5]

override bool IsDeployable ( )
inlineprotected
115 {
116 return true;
117 }

◆ IsDeployable() [4/5]

override bool IsDeployable ( )
inlineprotected
396 {
397 return true;
398 }

◆ IsDeployable() [5/5]

override bool IsDeployable ( )
inlineprotected
837 {
838 return true;
839 }

◆ IsDeployed()

bool IsDeployed ( )
inlineprivate
156 {
157 return m_IsDeployed;
158 }
bool m_IsDeployed
Definition TrapSpawnBase.c:19

◆ 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 }

◆ 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
59 {
60 return true;
61 }

◆ IsFacingCamera()

bool IsFacingCamera ( string selection)
inlineprotected
960 {
961 return true;
962 }

◆ IsFacingPlayer()

override bool IsFacingPlayer ( PlayerBase player,
string selection )
inlineprotected
943 {
944 return true;
945 }

◆ IsFolded()

bool IsFolded ( )
inlineprotected
336 {
337 return m_IsFolded;
338 }

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

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

◆ IsGasMask()

bool IsGasMask ( )
inlineprivate
952 {
953 return false;
954 }

◆ 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
405 {
406 return GetCompEM().IsWorking();
407 }

◆ IsIgnoredByConstruction() [1/2]

override bool IsIgnoredByConstruction ( )
inlineprotected
1081 {
1082 return true;
1083 }

◆ IsIgnoredByConstruction() [2/2]

override bool IsIgnoredByConstruction ( )
inlineprotected
508 {
509 return false;
510 }

◆ IsInventoryVisible()

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

◆ IsItemTent()

override bool IsItemTent ( )
inlineprotected
87 {
88 return true;
89 }

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

◆ IsManipulatedEntrance()

bool IsManipulatedEntrance ( )
inlineprotected
688 {
689 return m_IsEntrance;
690 }
bool m_IsEntrance
Definition TentBase.c:26

◆ IsManipulatedWindow()

bool IsManipulatedWindow ( )
inlineprotected
693 {
694 return m_IsWindow;
695 }
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
57 {
58 return GetSlotLockedState();
59 }

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

◆ IsObstructingVoice()

bool IsObstructingVoice ( )
inlineprivate

Returns if this entity obsructs player's voice.

921 {
922 return false;
923 }

◆ 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 ( )
inlineprivate
547 {
548 if ( GetGame().IsServer() )
549 {
550 if ( GetHierarchyRootPlayer() != NULL && GetHierarchyRootPlayer().GetHumanInventory().GetEntityInHands() == this )
551 {
552 PlayerBase player = PlayerBase.Cast( GetHierarchyRootPlayer() );
553
554 vector player_pos = player.GetPosition();
555 vector aim_pos = player.GetAimPosition();
556
557 if ( vector.DistanceSq(player_pos, aim_pos) <= ( 1.5 * 1.5 ) )
558 {
560 }
561 }
562 }
563
564 return false;
565 }
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)
inlineprivate
192 {
193 string surface_type;
194 GetGame().SurfaceGetType3D( position[0], position[1], position[2], surface_type);
195
196 // check surface
197 return GetGame().IsSurfaceDigable(surface_type);
198 }

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

◆ IsPlayerInside()

override bool IsPlayerInside ( PlayerBase player,
string selection )
inlineprotected
948 {
949 return true;
950 }

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

◆ 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)
inlineprivate
445 {
446 string surfaceType;
447 GetGame().SurfaceGetType3D(position[0], position[1], position[2], surfaceType);
448
450 }
ref array< string > m_PlaceableWaterSurfaceList
DEPRECATED.
Definition TrapSpawnBase.c:29
Definition Surface.c:2
static bool AllowedWaterSurface(float pHeight, string pSurface, array< string > pAllowedSurfaceList)
Definition Surface.c:8

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

◆ IsTakeable()

override bool IsTakeable ( )
inlineprivate
187 {
188 return true;
189 }

◆ 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
68 {
69 return Fireplace.CanIgniteEntityAsFireplace(this);
70 }

◆ KitBase()

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

◆ LockAttachmentSlot()

void LockAttachmentSlot ( bool lock_state)
inlineprotected
103 {
104 BaseBuildingBase base_building = BaseBuildingBase.Cast( GetHierarchyParent() );
105 if ( base_building )
106 {
108 GetInventory().GetCurrentInventoryLocation( inventory_location );
109 base_building.GetInventory().SetSlotLock( inventory_location.GetSlot(), lock_state );
110 //string slot_name = InventorySlots.GetSlotName( inventory_location.GetSlot() );
111 //base_building.UpdateAttachmentVisuals( slot_name, lock_state );
112 //base_building.UpdateAttachmentPhysics( slot_name, lock_state );
113 }
114 }

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

◆ ManipulateEntrance()

void ManipulateEntrance ( )
inlineprotected
678 {
679 m_IsEntrance = true;
680 }

◆ ManipulateWindow()

void ManipulateWindow ( )
inlineprotected
683 {
684 m_IsWindow = true;
685 }

◆ MetalWire()

◆ MustBeBuiltFromOutside()

bool MustBeBuiltFromOutside ( )
inlineprotected

Some buildings can only be built from outside.

954 {
955 return false;
956 }

◆ MutePlayer()

void MutePlayer ( PlayerBase player,
bool state )
inlineprivate

This items has effect on player's voice.

928 {
929 #ifdef SERVER
930 if (GetGame() && player.GetIdentity() != null)
931 {
932 GetGame().SetVoiceEffect(player, GetVoiceEffect(), state);
933 }
934 #endif
935 }
int GetVoiceEffect()
The voice effect this item uses, default is 0 (none)
Definition InventoryItem.c:946

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

◆ NeedsFertilization()

bool NeedsFertilization ( string selection_component)
inlineprivate
514 {
516
517 if ( slot )
518 {
519 if ( slot.GetFertilityState() == eFertlityState.NONE )
520 {
521 return true;
522 }
523 }
524
525 return false;
526 }

◆ 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

◆ 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 }
void SetCleanness(int value, bool allow_client=false)
Definition ItemBase.c:8404

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

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

◆ OnCombine() [2/2]

override void OnCombine ( ItemBase other_item)
inlineprivate
122 {
123 super.OnCombine(other_item);
124 if (m_Cleanness == 1 && other_item.m_Cleanness == 0)
125 SetCleanness(0);
126 }

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

◆ OnDebugSpawn() [1/5]

override void OnDebugSpawn ( )
inlineprotected
1178 {
1179 FullyBuild();
1180 }
void FullyBuild()
Definition BaseBuildingBase.c:1182

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

◆ OnDebugSpawn() [2/5]

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

◆ 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
425 {
427 if ( Class.CastTo(entity, this) )
428 {
429 GetInventory().CreateInInventory("LargeGasCanister");
430 GetInventory().CreateInInventory("Pot");
431
432 SpawnEntityOnGroundPos("WaterBottle", entity.GetPosition() + Vector(0.2, 0, 0));
433 }
434 }

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

◆ OnDebugSpawn() [5/5]

override void OnDebugSpawn ( )
inlineprotected
379 {
381 if (Class.CastTo(entity, this))
382 {
383 entity.GetInventory().CreateInInventory("SparkPlug");
384 }
385
387 }

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

◆ OnDebugSpawnBuildExcludes()

array< string > OnDebugSpawnBuildExcludes ( )
inlineprotected

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

1173 {
1174 return null;
1175 }

◆ OnEndPlacement()

override void OnEndPlacement ( )
inlineprotected
103 {
104 m_DeployedRegularly = true;
106 }
void SoundSynchRemote()
Definition ItemBase.c:9011

Перекрестные ссылки 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:27
const float FIREPLACE_IGNITE
Definition ActionConstants.c:91

Перекрестные ссылки 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:7947

Перекрестные ссылки 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
63 {
64 Fireplace.IgniteEntityAsFireplace(this, fire_source);
65 }

◆ OnInitEnergy() [1/3]

override void OnInitEnergy ( )
inlineprotected
128 {
129 m_FuelTankCapacity = GetGame().ConfigGetFloat ("CfgVehicles " + GetType() + " fuelTankCapacity");
130 m_FuelToEnergyRatio = GetCompEM().GetEnergyMax() / m_FuelTankCapacity; // Conversion ratio of 1 ml of fuel to X Energy
131
133 }

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

◆ OnInitEnergy() [2/3]

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

◆ OnInitEnergy() [3/3]

override void OnInitEnergy ( )
inlineprotected
64 {
65 if (GetCompEM().IsPlugged())
66 {
67 if (!GetHierarchyRoot())
68 Unfold();
69 else
70 Fold(true);
71 }
72 else
73 Fold();
74
76 }
void Fold()
Definition TrapSpawnBase.c:226

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

◆ OnInventoryEnter() [1/4]

override void OnInventoryEnter ( Man player)
inlineprotected
247 {
248 super.OnInventoryEnter(player);
249 HideSelection("placing");
250 ShowSelection("zbytek");
251 if (m_TriggerActive)
253 GetCompEM().UnplugThis();
254 GetCompEM().UnplugAllDevices();
255 }
void DestroyDamageTrigger()
Definition BarbedWire.c:280

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

◆ OnInventoryEnter() [2/4]

override void OnInventoryEnter ( Man player)
inlineprotected
357 {
358 super.OnInventoryEnter(player);
359
361 HideSelection(SEL_CLIPS_DETACHED);
362 ShowSelection(SEL_CLIPS_FOLDED);
363 }
const string SEL_CLIPS_FOLDED
Definition BatteryCharger.c:7
const string SEL_CLIPS_DETACHED
Definition BatteryCharger.c:6
void HideAttachedClipsStates()
Definition BatteryCharger.c:286

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

◆ OnInventoryEnter() [3/4]

override void OnInventoryEnter ( Man player)
inlineprivate
64 {
65 super.OnInventoryEnter(player);
66
69 if (player_PB.GetItemInHands() == this && GetCompEM().IsPlugged())
70 {
71 //player_PB.TogglePlacingLocal();
72 return;
73 }
74
75 GetCompEM().UnplugAllDevices();
76
77 if (!player_PB.IsPlacingLocal())
78 GetCompEM().UnplugThis();
79 }

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

◆ 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
348 {
349 super.OnInventoryExit(player);
350
352 HideSelection(SEL_CLIPS_FOLDED);
353 ShowSelection(SEL_CLIPS_DETACHED);
354 }

Перекрестные ссылки 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
235 {
236 SoundCut();
237 }
void SoundCut()
Definition BarbedWire.c:310

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

◆ OnIsPlugged() [2/3]

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

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

◆ OnIsPlugged() [3/3]

override void OnIsPlugged ( EntityAI source_device)
inlineprotected
160 {
161 Unfold();
163 }

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

◆ OnIsUnplugged() [1/3]

override void OnIsUnplugged ( EntityAI last_energy_source)
inlineprotected
240 {
241 if (m_TriggerActive)
243 SoundCut();
244 }

Перекрестные ссылки 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
242 {
243 Fold();
245 }

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

◆ OnItemLocationChanged() [1/6]

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
inlineprotected
401 {
402 super.OnItemLocationChanged(old_owner, new_owner);
403
404 if (m_TriggerActive)
405 {
407 m_IsPlaced = false;
408 }
409 }

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

◆ OnItemLocationChanged() [2/6]

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
inlineprotected
95 {
96 super.OnItemLocationChanged( old_owner, new_owner );
97
98 //update visuals after location change
100 }

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

◆ OnItemLocationChanged() [3/6]

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
inlineprotected
203 {
204 super.OnItemLocationChanged(old_owner, new_owner);
206 }

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

◆ OnItemLocationChanged() [4/6]

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
inlineprotected
134 {
135 super.OnItemLocationChanged(old_owner, new_owner);
136
137 //skips folding of currently deployed spotlight
139 {
140 m_EvaluateDeployment = false;
141 if (m_Light)
142 {
144 }
145
146 Unfold();
147
148 return;
149 }
150
151 // When the item is picked up by a player
153 if (player && player.GetItemInHands() == this)
154 {
155 Fold(GetCompEM().IsPlugged());
156 }
157 }
override bool IsBeingPlaced()
Definition ItemBase.c:5658
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
159 {
160 super.OnItemLocationChanged(old_owner, new_owner);
161
162 if (new_owner || old_owner)
163 {
164 if (GetInventory().CountInventory() == 1) // refuse to pack tent with anything inside
165 Pack(false);
166 }
167 }
void Pack(bool update_navmesh, bool init=false)
Definition TentBase.c:512

◆ OnItemLocationChanged() [6/6]

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
inlineprivate
419 {
420 super.OnItemLocationChanged( old_owner, new_owner );
421
422 if ( GetGame().IsServer() )
423 {
424 // throw trap from vicinity if the trap does not need installation ( action required )
425 if ( new_owner == NULL && m_NeedInstalation == false )
426 {
427 SetActive();
428 }
429 else if ( old_owner == NULL && new_owner != NULL )
430 {
431 if ( m_IsFoldable )
432 {
433 Fold();
434 }
435 else
436 {
437 SetInactive();
438 }
439 }
440 }
441 }
bool m_NeedInstalation
Definition TrapSpawnBase.c:42

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

◆ OnOwnSocketReleased() [1/2]

override void OnOwnSocketReleased ( EntityAI device)
inlineprotected
240 {
242 ShowSelection(SEL_CLIPS_DETACHED);
243 }

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

◆ OnOwnSocketReleased() [2/2]

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

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

◆ OnOwnSocketTaken() [1/2]

override void OnOwnSocketTaken ( EntityAI device)
inlineprotected
220 {
221 string att_type = device.GetType();
222
223 if ( att_type == "CarBattery" )
224 {
226 ShowSelection(SEL_CLIPS_CAR);
227 }
228
229 if ( att_type == "TruckBattery" )
230 {
232 ShowSelection(SEL_CLIPS_TRUCK);
233 }
234
235 HideSelection(SEL_CLIPS_DETACHED);
236 HideSelection(SEL_CLIPS_FOLDED);
237 }
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
590 {
591 //play sound
593 }
void SoundBuildStart(string part_name)
Definition BaseBuildingBase.c:1088

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

◆ OnPartBuiltServer()

void OnPartBuiltServer ( notnull Man player,
string part_name,
int action_id )
inlineprotected
557 {
559
560 //check base state
561 if (construtionPart.IsBase())
562 {
563 SetBaseState(true);
564
565 //spawn kit
567 }
568
569 //register constructed parts for synchronization
571
572 //register action that was performed on part
574
575 //synchronize
577
578 SetPartFromSyncData(construtionPart); // server part of sync, client will be synced from SetPartsFromSyncData
579
581
582 //update visuals
584
585 //reset action sync data
586 GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(ResetActionSyncData, 100, false, this);
587 }
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
670 {
671 //play sound
673 }
void SoundDestroyStart(string part_name)
Definition BaseBuildingBase.c:1098

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

◆ OnPartDestroyedServer()

void OnPartDestroyedServer ( Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part = false )
inlineprotected
637 {
638 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " OnPartDestroyedServer " + part_name);
640
641 //register constructed parts for synchronization
643
644 //register action that was performed on part
646
647 //synchronize
649
650 // server part of sync, client will be synced from SetPartsFromSyncData
652
654
655 //update visuals
657
658 //reset action sync data
659 GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(ResetActionSyncData, 100, false, this);
660
661 //check base state
662 if (construtionPart.IsBase())
663 {
664 //Destroy construction
665 GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(DestroyConstruction, 200, false, this);
666 }
667 }
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
630 {
631 //play sound
633 }
void SoundDismantleStart(string part_name)
Definition BaseBuildingBase.c:1093

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

◆ OnPartDismantledServer()

void OnPartDismantledServer ( notnull Man player,
string part_name,
int action_id )
inlineprotected
597 {
598 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " OnPartDismantledServer " + part_name);
600
601 //register constructed parts for synchronization
603
604 //register action that was performed on part
606
607 //synchronize
609
610 // server part of sync, client will be synced from SetPartsFromSyncData
612
614
615 //update visuals
617
618 //reset action sync data
619 GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(ResetActionSyncData, 100, false, this);
620
621 //check base state
622 if (construtionPart.IsBase())
623 {
624 //Destroy construction
625 GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(DestroyConstruction, 200, false, this);
626 }
627 }

Перекрестные ссылки 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
109 {
110 super.OnPlacementCancelled(player);
111 m_DeployedRegularly = false;
112 }

◆ OnPlacementCancelled() [2/2]

override void OnPlacementCancelled ( Man player)
inlineprotected
389 {
390 super.OnPlacementCancelled(player);
391
392 Fold(true);
393 }

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

◆ OnPlacementComplete() [1/8]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprotected
416 {
417 super.OnPlacementComplete( player, position, orientation );
418
419 if ( GetGame().IsServer() )
420 {
421 ShowAllSelections();
422 HideSelection("zbytek");
423
424 if (!GetHierarchyParent())
425 {
426 if (GetCompEM().IsPlugged() && GetCompEM().IsWorking() )
428 else
430 m_IsPlaced = true;
431 }
432
433 SetIsDeploySound( true );
434 }
435 }
void SetIsDeploySound(bool is_deploy_sound)
Definition ItemBase.c:9038
void CreateDamageTrigger()
Definition BarbedWire.c:270
void CreateElectrifiedDamageTrigger()
Definition BarbedWire.c:259

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

◆ OnPlacementComplete() [2/8]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprotected
422 {
423 super.OnPlacementComplete( player, position, orientation );
424
425 SetIsPlaceSound( true );
426 }
void SetIsPlaceSound(bool is_place_sound)
Definition ItemBase.c:9028

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

◆ OnPlacementComplete() [3/8]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprivate
118 {
119 super.OnPlacementComplete( player, position, orientation );
120
121 SetIsPlaceSound( true );
122 }

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

◆ OnPlacementComplete() [4/8]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprotected
355 {
356 super.OnPlacementComplete(player, position, orientation);
357
358 SetIsPlaceSound(true);
359 }

Перекрестные ссылки 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
376 {
377 super.OnPlacementComplete(player, position, orientation);
378
379 if (GetGame().IsServer())
380 {
381 SetIsDeploySound(true);
382 }
383
384 Unfold();
386 }

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

◆ OnPlacementComplete() [7/8]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprotected
842 {
843 super.OnPlacementComplete(player, position, orientation);
844
845 if (GetGame().IsServer())
846 {
847 TryPitch(true);
848
849 SetIsDeploySound(true);
850 }
851 }

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

◆ OnPlacementComplete() [8/8]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprivate
481 {
482 super.OnPlacementComplete(player, position, orientation);
483
484 if (GetGame().IsServer())
485 {
487 float direction[4];
492
493 if (GetInventory().GetCurrentInventoryLocation(source))
494 {
495 destination.SetGroundEx(this, position, direction);
496 if (GetGame().IsMultiplayer())
497 player.ServerTakeToDst(source, destination);
498 else // singleplayer
499 player.GetInventory().TakeToDst(InventoryMode.LOCAL, source, destination);
500 }
501
502 SetupTrapPlayer(PlayerBase.Cast(player), false);
503 SetIsDeploySound(true);
504 SetActive();
505 }
506 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
Definition Inventory.c:22
void SetupTrapPlayer(PlayerBase player, bool set_position=true)
Definition TrapSpawnBase.c:211
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.

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

◆ OnPlacementStarted() [1/3]

override void OnPlacementStarted ( Man player)
inlineprotected
393 {
394 super.OnPlacementStarted(player);
395
396 SetAnimationPhase(SEL_CLIPS_DETACHED, 0);
397 SetAnimationPhase(SEL_CLIPS_FOLDED, 1);
398 SetAnimationPhase(SEL_SWITCH_ON, 1);
399 SetAnimationPhase(SEL_SWITCH_OFF, 1);
400 SetAnimationPhase(SEL_LIGHT_STATE_1, 1);
401 SetAnimationPhase(SEL_LIGHT_STATE_2, 1);
402 SetAnimationPhase(SEL_LIGHT_STATE_3, 1);
403
409 };
410
412 foreach (string selection : selections)
413 {
414 if (GetGame().IsMultiplayer() && GetGame().IsServer())
415 playerPB.GetHologramServer().SetSelectionToRefresh(selection);
416 else
417 playerPB.GetHologramLocal().SetSelectionToRefresh(selection);
418 }
419 }
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
101 {
102 super.OnPlacementStarted(player);
103
107 };
108
110 if (GetGame().IsMultiplayer() && GetGame().IsServer())
111 playerPB.GetHologramServer().SetSelectionToRefresh(selections);
112 else
113 if (playerPB.GetHologramLocal())
114 playerPB.GetHologramLocal().SetSelectionToRefresh(selections);
115 }

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

◆ OnPlacementStarted() [3/3]

override void OnPlacementStarted ( Man player)
inlineprotected
357 {
358 super.OnPlacementStarted(player);
359
363 };
364
366 foreach (string selection : selections)
367 {
368 if (GetGame().IsMultiplayer() && GetGame().IsServer())
369 playerPB.GetHologramServer().SetSelectionToRefresh(selection);
370 else
371 playerPB.GetHologramLocal().SetSelectionToRefresh(selection);
372 }
373 }
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
540 {
542 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint( "inv: OnSetSlotLock " + GetDebugName( this ) + " slot=" + slot_name + " locked=" + locked + " was_locked=" + was_locked );
543
546 }
static proto native owned string GetSlotName(int id)
converts slot_id to string
void UpdateAttachmentVisuals(string slot_name, bool is_locked)
Definition BaseBuildingBase.c:720

Перекрестные ссылки 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
179 {
180 if ( !super.OnStoreLoad( ctx, version ) )
181 return false;
182
183 //--- Barbed wire data ---
184 //is mounted (removed in ver. 105)
185 if ( version < 105 )
186 {
187 float is_mounted;
188 if ( !ctx.Read( is_mounted ) )
189 {
190 return false;
191 }
192 }
193 //---
194
195 return true;
196 }

◆ 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
296 {
297 if (!super.OnStoreLoad(ctx, version))
298 return false;
299
300 // Load folded/unfolded state
301 bool b_is_folded = false;
302 if (!ctx.Read(b_is_folded))
303 b_is_folded = true;
304
305 if (b_is_folded)
306 {
307 Fold();
308 }
309 else
310 {
311 Unfold();
312 }
313
314 return true;
315 }

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

◆ OnStoreLoad() [9/10]

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected
110 {
111 if (!super.OnStoreLoad(ctx, version))
112 return false;
113
114 ctx.Read(m_State);
115 if (version >= 110)
116 {
117 if (!ctx.Read(m_OpeningMask))
118 Print("ERROR: no opening mask found! Default openinng settings initialized.");
119 }
120
121 if (m_State == PITCHED)
122 {
123 TryPitch(true);
124
125 if (GetGame().IsServer())
126 {
128 {
130 m_ClutterCutter.SetOrientation(GetOrientation());
131 }
132
134 }
135 }
136 else
137 {
138 Pack(true);
139 }
140
141 return true;
142 }
void RefreshAttachements()
Definition TentBase.c:337
bool HasClutterCutter()
Definition TentBase.c:818
string GetClutterCutter()
Definition TentBase.c:819
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки 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 )
inlineprivate
98 {
99 if ( !super.OnStoreLoad(ctx, version) )
100 return false;
101
102 bool b_is_active = false;
103 if ( !ctx.Read( b_is_active ) )
104 b_is_active = false;
105
106 bool b_is_in_progress = false;
107 if ( !ctx.Read( b_is_in_progress ) )
108 b_is_in_progress = false;
109
110 bool b_is_deployed = false;
111 if ( !ctx.Read( b_is_deployed ) )
112 b_is_deployed = false;
113
114 if ( b_is_active )
115 {
116 SetActive();
117 }
118
120 {
122 }
123
125
126 return true;
127 }
void SetDeployed(bool newState)
Definition TrapSpawnBase.c:160
void StartActivate(PlayerBase player)
Definition TrapSpawnBase.c:243

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

◆ 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
174 {
175 super.OnStoreSave( ctx );
176 }

◆ 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
288 {
289 super.OnStoreSave(ctx);
290
291 // Save folded/unfolded state
292 ctx.Write(m_IsFolded);
293 }

◆ OnStoreSave() [9/10]

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected
102 {
103 super.OnStoreSave(ctx);
104
105 ctx.Write(m_State);
106 ctx.Write(m_OpeningMask);
107 }

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

◆ OnStoreSave() [10/10]

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprivate
87 {
88 super.OnStoreSave( ctx );
89
90 ctx.Write( m_IsActive );
91
92 ctx.Write( m_IsInProgress );
93
94 ctx.Write( m_IsDeployed );
95 }
bool m_IsInProgress
Definition TrapSpawnBase.c:20

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

◆ 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
341 {
342 HideSelection(SEL_SWITCH_ON);
343 ShowSelection(SEL_SWITCH_OFF);
344 }

◆ 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
132 {
133 super.OnSwitchOff();
134
135 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
136 {
137 m_UTSource.SetDefferedActive(false, 5.0);
138 }
139
140 //sound (client only)
141 SoundTurnOff();
143 {
144 m_CookingProcess.TerminateCookingSounds(GetCookingEquipment());
145 }
146 }

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

◆ OnSwitchOff() [4/5]

override void OnSwitchOff ( )
inlineprivate
43 {
44
45 }

◆ OnSwitchOff() [5/5]

override void OnSwitchOff ( )
inlineprotected
100 {
101 super.OnSwitchOff();
102
103 SoundTurnOff();
104
105 if (m_Light)
106 {
107 m_Light.FadeOut(0.05);
108 m_Light = null;
109 }
110 }

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

◆ OnSwitchOn() [1/5]

override void OnSwitchOn ( )
inlineprotected
335 {
336 HideSelection(SEL_SWITCH_OFF);
337 ShowSelection(SEL_SWITCH_ON);
338 }

◆ 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
119 {
120 super.OnSwitchOn();
121
122 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
123 {
124 m_UTSource.SetDefferedActive(true, 3.0);
125 }
126
127 //sound (client only)
128 SoundTurnOn();
129 }

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

◆ OnSwitchOn() [4/5]

override void OnSwitchOn ( )
inlineprivate
38 {
39
40 }

◆ OnSwitchOn() [5/5]

override void OnSwitchOn ( )
inlineprotected
93 {
94 super.OnSwitchOn();
95
97 }

Перекрестные ссылки 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
126 {
127 super.OnVariablesSynchronized();
128
130 {
131 //Play sound
132 PlaySoundSet( m_MountSound, SOUND_MOUNT, 0.1, 0.1 );
133 }
135
136 if ( IsDeploySound() )
137 {
139 }
140
142 {
144 }
145
147 {
149 }
150 }
void PlayDeploySound()
Definition ItemBase.c:9069
bool IsDeploySound()
Definition ItemBase.c:9043
bool CanPlayDeployLoopSound()
Definition ItemBase.c:9105
EffectSound m_MountSound
Definition BarbedWire.c:29
void PlayDeployLoopSound()
Definition BarbedWire.c:152
void StopDeployLoopSound()
Definition BarbedWire.c:163
const string SOUND_MOUNT
Definition BarbedWire.c:28
bool m_LastMountedState
Definition BarbedWire.c:27
bool m_IsMounted
Definition BarbedWire.c:26

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

◆ 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
366 {
367 super.OnVariablesSynchronized();
368
369 if ( IsPlaceSound() )
370 {
372 }
373 }
void PlayPlaceSound()
Definition ItemBase.c:9093
bool IsPlaceSound()
Definition ItemBase.c:9033

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

◆ OnVariablesSynchronized() [5/12]

override void OnVariablesSynchronized ( )
inlineprivate
87 {
88 super.OnVariablesSynchronized();
89
90 if ( IsPlaceSound() )
91 {
93 }
94 }

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

◆ OnVariablesSynchronized() [6/12]

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

◆ OnVariablesSynchronized() [7/12]

override void OnVariablesSynchronized ( )
inlineprotected
33 {
34 super.OnVariablesSynchronized();
35
36 if ( IsDeploySound() )
37 {
39 }
40
42 {
44 }
45
47 {
49 }
50
52 {
54 }
55 }
void PlayDeployFinishSound()
Definition ItemBase.c:9081
bool IsSoundSynchRemote()
Definition ItemBase.c:9018

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

◆ OnVariablesSynchronized() [8/12]

override void OnVariablesSynchronized ( )
inlineprotected
339 {
340 super.OnVariablesSynchronized();
341
343
344 if (IsPlaceSound())
345 {
347 }
348 }

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

◆ 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
248 {
249 super.OnVariablesSynchronized();
250
251 if (IsDeploySound())
252 {
254 }
255
257 {
259 }
260
262 {
264 }
265 }

Перекрестные ссылки CanPlayDeployLoopSound(), IsDeploySound(), m_DeployLoopSound, PlayDeployLoopSound(), PlayDeploySound() и StopDeployLoopSound().

◆ OnVariablesSynchronized() [11/12]

override void OnVariablesSynchronized ( )
inlineprotected
170 {
171 super.OnVariablesSynchronized();
172
173 if (IsDeploySound())
174 {
176 }
177 else
178 {
179 if (m_State == PITCHED)
180 {
182 {
183 if (m_IsToggle)
184 {
186 }
187 else
188 {
190 }
191 }
193 {
194 if (m_IsToggle)
195 {
197 }
198 else
199 {
201 }
202 }
203 }
204 }
205
207 {
209 }
210
212 {
214 }
215
216 if (m_State != m_StateLocal)
217 {
218 if (m_State == PACKED)
219 Pack(false);
220 else
221 TryPitch(false);
222
224 }
225
226 if ((m_OpeningMaskLocal != m_OpeningMask)) //opening synchronization for physics recalculation
227 {
230
231 if (m_State == PACKED)
232 {
233 Pack(false); //intentional
234 }
235 }
236 }
void SoundTentClosePlay()
Definition TentBase.c:793
void HandleOpeningsPhysics()
Definition TentBase.c:916
int m_OpeningMaskLocal
Definition TentBase.c:31
void SoundTentOpenPlay()
Definition TentBase.c:787
bool IsManipulatedWindow()
Definition TentBase.c:692
void SoundTentCloseWindowPlay()
Definition TentBase.c:805
void SoundTentOpenWindowPlay()
Definition TentBase.c:799
bool IsManipulatedEntrance()
Definition TentBase.c:687
bool m_IsToggle
Definition TentBase.c:28

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

◆ OnVariablesSynchronized() [12/12]

override void OnVariablesSynchronized ( )
inlineprivate

this event is called all variables are synchronized on client

131 {
132 super.OnVariablesSynchronized();
133
134 if ( IsDeploySound() && IsDeployed() )
135 {
137 }
138
140 {
142 }
143
145 {
147 }
148 }

Перекрестные ссылки CanPlayDeployLoopSound(), IsDeploySound(), m_DeployLoopSound, PlayDeployLoopSound(), PlayDeploySound() и StopDeployLoopSound().

◆ OnWasAttached() [1/3]

override void OnWasAttached ( EntityAI parent,
int slot_id )
inlineprivate
905 {
906 super.OnWasAttached(parent, slot_id);
907
908 if ( slot_id == InventorySlots.HEADGEAR || slot_id == InventorySlots.MASK )
909 HandleVoiceEffect(true, PlayerBase.Cast(GetHierarchyRootPlayer()));
910 }

◆ 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
913 {
914 super.OnWasDetached(parent, slot_id);
915
916 HandleVoiceEffect(false, PlayerBase.Cast(parent));
917 }

◆ 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
232{}

◆ 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 // Heat up the items so players know they are working.
64 this.SetTemperature(60);
65 battery.SetTemperature(60);
66
67 float charger_health = GetHealth("", "");
68 float energy_add = m_ChargeEnergyPerSecond * ( consumed_energy / GetCompEM().GetEnergyUsage() );
69
70 #ifdef DIAG_DEVELOPER
71 if (FeatureTimeAccel.GetFeatureTimeAccelEnabled(ETimeAccelCategories.ENERGY_RECHARGE))
72 {
73 float timeAccel = FeatureTimeAccel.GetFeatureTimeAccelValue();
75 }
76 #endif
77
78 if ( GetCompEM().ConsumeEnergy(energy_add) ) // consumes energy from the power source
79 {
80 // There is enough of energy to use
81 energy_add = energy_add * ( 0.5 + charger_health*0.005 ); // Damaged charger works less efficiently - 50% damage causes 75% efficiency
82 }
83 else
84 {
85 // There is NOT enough of energy to use
86 energy_add = 0;
87 }
88
89 battery.GetCompEM().AddEnergy( energy_add );
90 }
91 else
92 {
93 battery.GetCompEM().SetEnergy( battery_capacity );
94 }
95 m_BatteryEnergy0To100 = battery.GetCompEM().GetEnergy0To100();
96 SetSynchDirty();
97 }
98 }
99 }
override void SetTemperature(float value, bool allow_client=false)
Definition ItemBase.c:8225
int m_BatteryEnergy0To100
Definition BatteryCharger.c:28

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

◆ 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

183 {
184 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
185 {
187 }
188
189 //manage cooking equipment
191 {
192 if (GetGame() && GetGame().IsServer())
193 {
194 float cook_equip_temp = GetCookingEquipment().GetTemperature();
195
196 //start cooking
198 {
201 }
202
203 //set temperature to cooking equipment
206 GetCookingEquipment().SetTemperature(cook_equip_temp);
208 GetCookingEquipment().DecreaseHealth(GameConstants.FIRE_ATTACHMENT_DAMAGE_PER_SECOND * GetCompEM().GetUpdateInterval(), false);
209 }
210 }
211 }
void CookWithEquipment()
Definition PortableGasStove.c:213
const float PARAM_COOKING_EQUIP_MAX_TEMP
Definition PortableGasStove.c:14
const float PARAM_COOKING_EQUIP_TEMP_INCREASE
Definition PortableGasStove.c:13
const float PARAM_COOKING_TEMP_THRESHOLD
Definition PortableGasStove.c:12
const float FIRE_ATTACHMENT_DAMAGE_PER_SECOND
various damage per second constants
Definition constants.c:730

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

◆ OnWork() [5/6]

override void OnWork ( float consumed_energy)
inlineprotected
164 {
165 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
166 {
168 }
169
170 if (GetGame().IsServer())
171 {
172 m_FuelPercentage = GetCompEM().GetEnergy0To100();
173 SetSynchDirty();
174 }
175
177 }

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

◆ OnWork() [6/6]

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

◆ OnWorkStart() [1/11]

override void OnWorkStart ( )
inlineprotected
208 {
210 if (m_TriggerActive)
212
213 if (m_IsPlaced)
214 {
215 //TimerRandomSpark();
217 }
218 }
void SoundBuzzLoopStart()
Definition BarbedWire.c:332

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

◆ OnWorkStart() [2/11]

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

Перекрестные ссылки 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
149 {
150 super.OnWorkStart();
151
152 #ifndef SERVER
153 m_Light = StoveLight.Cast(ScriptedLightBase.CreateLight(StoveLight, "0 0 0"));
154 m_Light.AttachOnMemoryPoint(this, "light");
155 #endif
156
157 //refresh visual
159
160 //sound (client only)
162 }

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

◆ OnWorkStart() [8/11]

override void OnWorkStart ( )
inlineprotected
137 {
138 if (GetGame().IsClient() || !GetGame().IsMultiplayer())
139 {
140 if (IsInitialized())
141 {
142 PlaySoundSet(m_EngineStart, START_SOUND, 0, 0);
143 }
144
146 {
148 }
149
150 if (!m_SoundLoopStartTimer.IsRunning()) // Makes sure the timer is NOT running already
151 {
152 m_SoundLoopStartTimer.Run(1.5, this, "StartLoopSound", NULL, false);
153 }
154 }
155
156 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
157 {
158 m_UTSource.SetDefferedActive(true, 20.0);
159 }
160 }
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
113 {
114 #ifndef SERVER
115 m_Light = SpotlightLight.Cast(ScriptedLightBase.CreateLight(SpotlightLight, "0 0 0"));
117 #endif
118
120 }

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

◆ OnWorkStop() [1/11]

override void OnWorkStop ( )
inlineprotected
221 {
223 if (m_TriggerActive)
225
226 if (m_IsPlaced)
228
229 m_SparkEvent.Stop();
230 }
void SoundBuzzLoopStop()
Definition BarbedWire.c:344

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

◆ OnWorkStop() [2/11]

override void OnWorkStop ( )
inlineprotected
111 {
112 if ( GetGame().IsClient() || !GetGame().IsMultiplayer() )
113 {
116 }
117 }

Перекрестные ссылки 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
165 {
166 #ifndef SERVER
167 if (m_Light)
168 {
169 m_Light.FadeOut();
170 }
171 #endif
172
173 //refresh visual
174 RefreshFlameVisual(false, false);
175 //stop steam particle
177 //sound (client only)
179 }

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

◆ OnWorkStop() [8/11]

override void OnWorkStop ( )
inlineprotected
181 {
182 if (GetGame().IsClient() || !GetGame().IsMultiplayer())
183 {
184 // Sound
185 PlaySoundSet(m_EngineStop, STOP_SOUND, 0, 0);
186 StopSoundSet(m_EngineLoop);
187
188 // particle
190
191 // Fuel meter
193 }
194
195 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
196 {
197 m_UTSource.SetDefferedActive(false, 20.0);
198 }
199 }
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 и UpdateFuelMeter().

◆ 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
123 {
124 #ifndef SERVER
125 if (m_Light)
126 m_Light.FadeOut();
127 #endif
128
130 }

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

◆ Pack()

void Pack ( bool update_navmesh,
bool init = false )
inlineprotected
513 {
515
516 m_State = PACKED;
520
521 Refresh();
522
523 GetInventory().LockInventory(HIDE_INV_FROM_SCRIPT);
524
525 if (update_navmesh)
526 {
528 }
529
531
532 if (GetGame().IsServer() && !IsHologram())
533 MiscGameplayFunctions.DropAllItemsInInventoryInBounds(this, m_HalfExtents);
534
535 SetSynchDirty();
536
537 if ((!GetGame().IsDedicatedServer()) && !init)
538 {
539 GetOnViewIndexChanged().Invoke();
540 }
541 }
enum MagnumStableStateID init
void HideAllAnimationsAndProxyPhysics(bool hide_animations=true, bool hide_physics=true)
Definition TentBase.c:274
void Refresh()
Definition TentBase.c:643
void RegenerateNavmesh()
Definition TentBase.c:811

Перекрестные ссылки 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:424

Перекрестные ссылки ParticleList::DEBUG_DOT, GetGame(), ParticleList::GetPathToParticles(), GetPosition, ParticleManager() и path.

◆ PerformRoofCheckForBase()

bool PerformRoofCheckForBase ( string partName,
PlayerBase player,
out bool result )
inlineprotected
966 {
967 return false;
968 }

◆ 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
544 {
546
551
552 Refresh();
553
554 GetInventory().UnlockInventory(HIDE_INV_FROM_SCRIPT);
555
556 if (update_navmesh)
557 {
559 }
560
561 SetSynchDirty();
562
563 if ((!GetGame().IsDedicatedServer()) && !init)
564 {
565 GetOnViewIndexChanged().Invoke();
566 }
567 }

Перекрестные ссылки 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:436

Перекрестные ссылки 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:8971
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().

◆ PlayDeployLoopSound() [1/5]

void PlayDeployLoopSound ( )
inlineprotected
153 {
154 if ( !GetGame().IsDedicatedServer() )
155 {
157 {
159 }
160 }
161 }
bool IsSoundPlaying()
Get whether EffectSound is currently playing.
Definition EffectSound.c:274
override string GetLoopDeploySoundset()
Definition BarbedWire.c:442

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

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

◆ PlayDeployLoopSound() [2/5]

void PlayDeployLoopSound ( )
inlineprotected
161 {
162 if ( !GetGame().IsDedicatedServer() )
163 {
165 {
167 }
168 }
169 }

Перекрестные ссылки GetGame(), KitBase::GetLoopDeploySoundset(), GetPosition, m_DeployLoopSound и SEffectManager::PlaySound().

◆ PlayDeployLoopSound() [3/5]

void PlayDeployLoopSound ( )
inlineprotected
411 {
412 if (!GetGame().IsDedicatedServer() && !m_DeployLoopSound)
413 {
416 }
417 }
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
Definition EffectSound.c:597

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

◆ PlayDeployLoopSound() [4/5]

void PlayDeployLoopSound ( )
inlineprotected
854 {
855 if (!GetGame().IsDedicatedServer())
856 {
858 {
860 }
861 }
862 }

Перекрестные ссылки GetGame(), TentBase::GetLoopDeploySoundset(), GetPosition, m_DeployLoopSound и SEffectManager::PlaySound().

◆ PlayDeployLoopSound() [5/5]

void PlayDeployLoopSound ( )
inlineprivate
509 {
510 if ( !GetGame().IsDedicatedServer() )
511 {
513 {
515 }
516 }
517 }

Перекрестные ссылки GetGame(), TrapSpawnBase::GetLoopDeploySoundset(), GetPosition, m_DeployLoopSound и SEffectManager::PlaySound().

◆ PostAreaDamageActions()

override void PostAreaDamageActions ( )
inlineprotected
392 {
393 //dmg to barbed wire here
394 MiscGameplayFunctions.DealAbsoluteDmg(this, 1000);
395 }

◆ 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
382 {
383 if ( GetCompEM().IsPlugged() && GetCompEM().IsSwitchedOn() )
384 {
385 Spark();
387 }
389 }
void SoundCollision()
Definition BarbedWire.c:368
void Spark()
Definition BarbedWire.c:301
void SoundElectricShock()
Definition BarbedWire.c:357

Перекрестные ссылки 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 }
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

Перекрестные ссылки 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
317 {
318 SetObjectMaterial( 0, DEFAULT_MATERIAL );
319 }

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

◆ RedLightOn()

void RedLightOn ( )
inlineprotected
300 {
301 SetObjectMaterial( 0, RED_LIGHT_GLOW );
302 }
const string RED_LIGHT_GLOW
Definition BatteryCharger.c:17

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

◆ Refresh()

void Refresh ( )
inlineprotected
644 {
645 GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).Call(UpdateVisuals);
647 }

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

◆ RefreshAttachements()

void RefreshAttachements ( )
inlineprotected
338 {
339 int slot_id_camo;
340 int slot_id_xlights;
342
344 m_CamoNet = CamoNet.Cast(GetInventory().FindAttachment(slot_id_camo));
345
347 eai_xlights = GetInventory().FindAttachment(slot_id_xlights);
348
349 if (m_CamoNet)
350 {
352 //SetAnimationPhase("Camonet", 0);
353
354 if (!IsKindOf("MediumTent"))
355 {
356 AddProxyPhysics("camonet");
357 }
358 }
359
360 if (eai_xlights)
361 {
362 SetAnimationPhase("Xlights", 0);
363 SetAnimationPhase("Xlights_glass_r", 0);
364 SetAnimationPhase("Xlights_glass_g", 0);
365 SetAnimationPhase("Xlights_glass_b", 0);
366 SetAnimationPhase("Xlights_glass_y", 0);
367 }
368 }

Перекрестные ссылки 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

224 {
225 if (!working)
226 {
227 SetObjectTexture(0, FLAME_BUTANE_OFF);
228 SetObjectTexture(1, FLAME_BUTANE_OFF);
229
230 return;
231 }
232
233 if (!hasAttachment)
234 {
236 SetObjectTexture(0, FLAME_BUTANE_ON);
237 SetObjectTexture(1, FLAME_BUTANE_OFF);
238 }
239 else
240 {
242 SetObjectTexture(0, FLAME_BUTANE_OFF);
243 SetObjectTexture(1, FLAME_BUTANE_ON);
244 }
245 }
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
376 {
377 super.RefreshPhysics();
378
379 if ( GetAttachmentByType(CarBattery) )
380 {
381 RemoveProxyPhysics( "battery" );
382 AddProxyPhysics( "battery" );
383 }
384 else
385 RemoveProxyPhysics( "battery" );
386 }
Definition CarBattery.c:1

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

◆ RefreshPhysics() [2/3]

override void RefreshPhysics ( )
inlineprotected
141 {
142 super.RefreshPhysics();
143
145 }

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

◆ RefreshPhysics() [3/3]

override void RefreshPhysics ( )
inlineprotected
145 {
146 super.RefreshPhysics();
147
148 if (m_State == PITCHED)
149 {
150 TryPitch(false, true);
151 }
152 else
153 {
154 Pack(false, true);
155 }
156 }

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

◆ RegenerateNavmesh()

void RegenerateNavmesh ( )
inlineprotected
812 {
813 SetAffectPathgraph(true, false);
814
815 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(GetGame().UpdatePathgraphRegionByObject, 100, false, this);
816 }

Перекрестные ссылки 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
252 {
254 if (cookEquipment)
255 {
256 switch (cookEquipment.Type())
257 {
261 cookingPot.RemoveAudioVisualsOnClient();
262 break;
264 FryingPan fryingPan = FryingPan.Cast(cookEquipment);
265 fryingPan.RemoveAudioVisualsOnClient();
266 break;
267 }
268 }
269 }
Definition CanisterGasoline.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
628 {
629 if ( m_Slots != NULL )
630 {
631 Slot slot = m_Slots.Get( index );
632 PlantBase plant = slot.GetPlant();
633
634 if ( plant )
635 {
636 plant.UnlockFromParent();
637 plant.m_MarkForDeletion = true;
638 GetGame().ObjectDelete( plant );
639 }
640
641 slot.Init( GetBaseFertility() );
642
643 // Clear relevant bit
644 slot.SetFertilityState(eFertlityState.NONE);
645 m_SlotFertilityState &= ~(1 << slot.GetSlotIndex());
646
647 slot.SetWateredState( eWateredState.DRY );
648 m_SlotWateredState &= ~(1 << slot.GetSlotIndex());
649
650 SetSynchDirty();
651
652 HideSelection( SLOT_SELECTION_COVERED_PREFIX + (index + 1).ToStringLen(2) );
654 }
655 }
static const string SLOT_SELECTION_COVERED_PREFIX
Definition GardenBase.c:18

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

◆ RemoveSlotPlant()

void RemoveSlotPlant ( Object plant)
inlineprivate
658 {
660 if ( index >= 0 )
661 {
662 RemoveSlot( index );
663 }
664 }
int GetSlotIndexByPlant(Object plant)
Definition GardenBase.c:727

◆ ResetActionSyncData()

void ResetActionSyncData ( )
inlineprotected
229 {
230 //reset data
233 }

Перекрестные ссылки m_InteractedPartId и m_PerformedActionId.

◆ ResetToggle()

void ResetToggle ( )
inlineprotected
671 {
672 m_IsEntrance = false;
673 m_IsWindow = false;
674 m_IsToggle = false;
675 }

◆ 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:629
void OnPartDestroyedClient(string part_name, int action_id)
Definition BaseBuildingBase.c:669
void OnPartBuiltClient(string part_name, int action_id)
Definition BaseBuildingBase.c:589
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/49]

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/49]

override void SetActions ( )
inlineprivate
743 {
744 super.SetActions();
745
746 AddAction(ActionAttach);
747 }

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

◆ SetActions() [3/49]

override void SetActions ( )
inlineprivate
755 {
756 super.SetActions();
757
759 }
Definition ActionFillOil.c:12

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

◆ SetActions() [4/49]

override void SetActions ( )
inlineprivate
772 {
773 super.SetActions();
774
777 }
void ActionDetach()
Definition ActionDetach.c:10
Definition ActionAttachOnSelection.c:2

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

◆ SetActions() [5/49]

override void SetActions ( )
inlineprivate
787 {
788 super.SetActions();
789
791 AddAction(ActionAttach);
792 }

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

◆ SetActions() [6/49]

override void SetActions ( )
inlineprivate
808 {
809 super.SetActions();
810
813 }

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

◆ SetActions() [7/49]

override void SetActions ( )
inlineprivate
854 {
858 }
Definition ActionHarvestCrops.c:2
Definition ActionRemovePlant.c:2
Definition ActionRemoveSeed.c:2

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

◆ SetActions() [8/49]

override void SetActions ( )
inlineprivate
913 {
914 super.SetActions();
915
918 }

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

◆ SetActions() [9/49]

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() [10/49]

override void SetActions ( )
inlineprotected
448 {
449 super.SetActions();
450
454
455 }
Definition ActionAttachToConstruction.c:2
Definition ActionRestrainSelf.c:24
Definition ActionRestrainTarget.c:24

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

◆ SetActions() [11/49]

override void SetActions ( )
inlineprivate
38 {
39 super.SetActions();
40
43 AddAction(ActionAttach);
45 }

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

◆ SetActions() [12/49]

override void SetActions ( )
inlineprotected
1154 {
1155 super.SetActions();
1156
1158 //AddAction(ActionTakeHybridAttachment);
1159 //AddAction(ActionTakeHybridAttachmentToHands);
1162 }
void RemoveAction(typename actionName)
Definition AdvancedCommunication.c:252
Definition ActionDetachFromTarget.c:2
Definition ActionTakeItem.c:7
Definition ActionTakeItemToHands.c:2

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

◆ SetActions() [13/49]

override void SetActions ( )
inlineprotected
439 {
440 super.SetActions();
441
448 }
Definition ActionPlaceObject.c:10
Definition ActionPlugIn.c:2
Definition ActionTogglePlaceObject.c:2
Definition ActionTurnOffWhileOnGround.c:2
Definition ActionTurnOnWhileOnGround.c:2
Definition ActionUnplugThisByCord.c:2

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

◆ SetActions() [14/49]

override void SetActions ( )
inlineprotected
100 {
101 super.SetActions();
102
108 }
ActionLightItemOnFireWithBlowtorchCB ActionLightItemOnFireCB ActionLightItemOnFireWithBlowtorch()
Definition ActionLightItemOnFireWithBlowtorch.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(), ActionRepairCarChassisWithBlowtorch(), ActionRepairCarEngineWithBlowtorch(), ActionRepairCarPartWithBlowtorch(), ActionRepairItemWithBlowtorch() и AddAction().

◆ SetActions() [15/49]

override void SetActions ( )
inlineprivate

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

◆ SetActions() [16/49]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
6
10 }
Definition ActionAttachOnTentProxy.c:2

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

◆ SetActions() [17/49]

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() [18/49]

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 ActionDigWorms.c:15
Definition ActionDismantleGardenPlot.c:10
Definition ActionDismantlePart.c:27
Definition ActionFillObject.c:10

Перекрестные ссылки ActionBuryAshes(), ActionDigOutStash() и AddAction().

◆ SetActions() [19/49]

override void SetActions ( )
inlineprivate

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

◆ SetActions() [20/49]

override void SetActions ( )
inlineprivate
113 {
114 super.SetActions();
115
116 AddAction(ActionAttach);
117 }

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

◆ SetActions() [21/49]

override void SetActions ( )
inlineprivate

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

◆ SetActions() [22/49]

override void SetActions ( )
inlineprivate
38 {
40 super.SetActions();
41
44 AddAction(ActionAttach);
46 }
Definition ActionPackGift.c:10

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

◆ SetActions() [23/49]

override void SetActions ( )
inlineprivate
91 {
92 super.SetActions();
93
95 }
Definition ActionUnrestrainSelf.c:49

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

◆ SetActions() [24/49]

override void SetActions ( )
inlineprivate
26 {
27 super.SetActions();
28
30 }
ActionLightItemOnFireCB ActionContinuousBaseCB ActionLightItemOnFire()
Definition ActionLightItemOnFire.c:11

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

◆ SetActions() [25/49]

override void SetActions ( )
inlineprivate
68 {
69 super.SetActions();
70
71 //AddAction(ActionClapBearTrapWithThisItem);
73 }
Definition ActionFertilizeSlot.c:12

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

◆ SetActions() [26/49]

override void SetActions ( )
inlineprotected
211 {
212 super.SetActions();
213
215 AddAction(ActionDeployObject);
216 }

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

◆ SetActions() [27/49]

override void SetActions ( )
inlineprivate
34 {
35 super.SetActions();
36
38 }

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

◆ SetActions() [28/49]

override void SetActions ( )
inlineprivate

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

◆ SetActions() [29/49]

override void SetActions ( )
inlineprivate
122 {
123 super.SetActions();
124
128 AddAction(ActionAttach);
129 }

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

◆ SetActions() [30/49]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
6
8 }

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

◆ SetActions() [31/49]

override void SetActions ( )
inlineprotected
66 {
67 super.SetActions();
68
71 AddAction(ActionAttach);
73 }

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

◆ SetActions() [32/49]

override void SetActions ( )
inlineprivate
9 {
10 super.SetActions();
11
12 AddAction(ActionAttach);
14 }

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

◆ SetActions() [33/49]

override void SetActions ( )
inlineprivate
34 {
35 super.SetActions();
36
38 }

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

◆ SetActions() [34/49]

override void SetActions ( )
inlineprivate

◆ SetActions() [35/49]

override void SetActions ( )
inlineprivate
8 {
9 super.SetActions();
11 }

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

◆ SetActions() [36/49]

override void SetActions ( )
inlineprotected

◆ SetActions() [37/49]

override void SetActions ( )
inlineprotected

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

◆ SetActions() [38/49]

override void SetActions ( )
inlineprotected
367 {
368 super.SetActions();
369
375 }
Definition ActionTurnOffPowerGenerator.c:2
Definition ActionTurnOnPowerGenerator.c:2

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

◆ SetActions() [39/49]

override void SetActions ( )
inlineprivate
84 {
85 super.SetActions();
86
91
94 AddAction(ActionAttach);
97
106 }
ActionCraftArmbandCB ActionContinuousBaseCB ActionCraftArmband()
Definition ActionCraftArmband.c:11
Definition ActionCraftImprovisedEyePatch.c:10
Definition ActionCraftImprovisedFaceCover.c:13
Definition ActionCraftImprovisedFeetCover.c:13
Definition ActionCraftImprovisedHandsCover.c:13
Definition ActionCraftImprovisedHeadCover.c:14
Definition ActionCraftImprovisedLegsCover.c:13
Definition ActionCraftImprovisedTorsoCover.c:13
Definition ActionGagSelf.c:2
Definition ActionGagTarget.c:2
Definition ActionRefuelTorch.c:2

Перекрестные ссылки ActionBandageSelf(), ActionBandageTarget(), ActionCraftArmband(), ActionDetach() и AddAction().

◆ SetActions() [40/49]

override void SetActions ( )
inlineprotected

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

◆ SetActions() [41/49]

◆ SetActions() [42/49]

◆ SetActions() [43/49]

override void SetActions ( )
inlineprotected

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

◆ SetActions() [44/49]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
6
7 AddAction(ActionAttach);
10 }

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

◆ SetActions() [45/49]

override void SetActions ( )
inlineprotected
874 {
875 super.SetActions();
876
880 AddAction(ActionDeployObject);
881 }
ActionPackTentCB ActionContinuousBaseCB ActionPackTent()
Definition ActionPackTent.c:11
Definition ActionToggleTentOpen.c:2

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

◆ SetActions() [46/49]

override void SetActions ( )
inlineprivate
19 {
20 super.SetActions();
21
24 }
Definition ActionMeasureTemperatureSelf.c:10
Definition ActionMeasureTemperatureTarget.c:10

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

◆ SetActions() [47/49]

override void SetActions ( )
inlineprivate
530 {
531 super.SetActions();
532
535 }
ActionActivateTrapCB ActionContinuousBaseCB ActionActivateTrap()
Definition ActionActivateTrap.c:18
Definition ActionDeployHuntingTrap.c:2

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

◆ SetActions() [48/49]

override void SetActions ( )
inlineprivate

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

◆ SetActions() [49/49]

override void SetActions ( )
inlineprivate

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

◆ SetActive()

void SetActive ( )
inlineprivate
271 {
272 if ( GetGame().IsServer() && !IsActive() )
273 {
274 m_IsActive = true;
275
277 {
278 SetAnimationPhase( m_AnimationPhaseSet, 1 );
279 SetAnimationPhase( m_AnimationPhaseTriggered, 0 );
280 SetAnimationPhase( m_AnimationPhaseUsed, 1 );
281 }
282
283 // When activated we start timer for catch check
285 m_Timer.Run( m_InitWaitTime, this, "SpawnCatch" );
286
287 SetSynchDirty();
288 }
289 }
string m_AnimationPhaseTriggered
Definition TrapSpawnBase.c:25
string m_AnimationPhaseSet
Definition TrapSpawnBase.c:24
int m_InitWaitTime
Definition TrapSpawnBase.c:3
string m_AnimationPhaseUsed
Definition TrapSpawnBase.c:26
bool IsActive()
Definition TrapSpawnBase.c:150
ref Timer m_Timer
Definition Raycaster.c:5

Перекрестные ссылки CALL_CATEGORY_GAMEPLAY, GetGame(), IsActive(), m_AnimationPhaseSet, m_AnimationPhaseTriggered, m_InitWaitTime, m_IsActive и m_Timer.

◆ 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)
inlineprivate
386 {
387 int slotIdx = InventorySlots.GetSlotIdFromString("Trap_Bait");
388 bait = GetInventory().FindAttachment( slotIdx );
389
390 if ( bait )
391 {
393 if ( edibleBait )
394 {
395 if ( !edibleBait.GetFoodStage().IsFoodBurned() && !edibleBait.GetFoodStage().IsFoodRotten() )
396 return true;
397 else
398 return false; // We have invalid bait, no catch
399 }
400 }
401 // We are allowed to catch with no bait
402 return true;
403 }
Definition Edible_Base.c:2

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

◆ SetCookingEquipment()

void SetCookingEquipment ( ItemBase equipment)
inlineprotected
42 {
44 }

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

◆ SetDeployed()

void SetDeployed ( bool newState)
inlineprivate
161 {
163
164 if ( newState == true )
165 {
167 {
168 SetAnimationPhase( m_AnimationPhaseSet, 1 );
169 SetAnimationPhase( m_AnimationPhaseTriggered, 0 );
170 SetAnimationPhase( m_AnimationPhaseUsed, 1 );
171 }
172 }
173 else
174 {
176 {
177 SetAnimationPhase( m_AnimationPhaseSet, 0 );
178 SetAnimationPhase( m_AnimationPhaseTriggered, 1 );
179 SetAnimationPhase( m_AnimationPhaseUsed, 1 );
180 }
181 }
182
183 SetSynchDirty();
184 }

Перекрестные ссылки m_AnimationPhaseSet и m_AnimationPhaseTriggered.

◆ SetFuel()

void SetFuel ( float fuel_amount)
inlineprotected
260 {
261 if (m_FuelTankCapacity > 0)
262 {
263 m_FuelToEnergyRatio = GetCompEM().GetEnergyMax() / m_FuelTankCapacity;
264 GetCompEM().SetEnergy(fuel_amount * m_FuelToEnergyRatio);
265 m_FuelPercentage = GetCompEM().GetEnergy0To100();
266 SetSynchDirty();
268 }
269 else
270 {
271 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());
272 DPrint(error);
273 }
274 }
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(), m_FuelTankCapacity и UpdateFuelMeter().

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

◆ SetInactive()

void SetInactive ( )
inlineprivate
292 {
293 if ( GetGame().IsServer() )
294 {
295 // We stop timers as the trap is no longer active, then update visuals
296 m_IsActive = false;
297 if ( m_Timer )
298 {
299 m_Timer.Stop();
300 }
301
302 SetDeployed( false );
303
304 SetSynchDirty();
305 }
306 }

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

◆ SetIsBeingPacked()

void SetIsBeingPacked ( bool isBeingPacked)
inlineprotected
1002 {
1004 SetSynchDirty();
1005 }

◆ 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
75 {
76 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " SetMountedState mounted=" + is_mounted);
77
78 //lock slot
82
83 //synchronize
85 }
void LockAttachmentSlot(bool lock_state)
Definition BarbedWire.c:102
void Synchronize()
Definition BarbedWire.c:117

Перекрестные ссылки 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:1232
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
562 {
563 TStringArray textures = GetHiddenSelectionsTextures();
564
566
567 ShowSelection( str_digged );
568 string texture = textures.Get(0);
569 SetObjectTexture( slot_index, texture );
570
571 Slot slot = m_Slots.Get( slot_index );
572
573 if ( slot.GetWateredState() == 0 )
574 {
575 // Set dry material
576 SetObjectMaterial( slot_index, SLOT_MATERIAL_DRY );
577 }
578 else
579 {
580 // Set wet material
581 SetObjectMaterial( slot_index, SLOT_MATERIAL_WET );
582 }
583 }
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

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

◆ SetSlotTextureFertilized()

void SetSlotTextureFertilized ( int slot_index,
string item_type )
inlineprivate
586 {
587 TStringArray textures = GetHiddenSelectionsTextures();
588
589 int tex_id = GetGame().ConfigGetInt( string.Format("cfgVehicles %1 Horticulture TexId", item_type) );
590
592
593 ShowSelection( str_show );
594 SetObjectTexture( slot_index, textures.Get(tex_id) );
595
596 Slot slot = m_Slots.Get( slot_index );
597
598 int slot_index_offset = 0;
599
600 // Set material according to dry / wet states
601 if ( slot.GetWateredState() == 0 )
602 {
603 // Set dry material for garden lime
604 if ( slot.GetFertilityType() == "GardenLime" )
605 {
607 }
608 else if ( slot.GetFertilityType() == "PlantMaterial" )
609 {
611 }
612 }
613 else
614 {
615 // Set dry material for compost
616 if ( slot.GetFertilityType() == "GardenLime" )
617 {
619 }
620 else if ( slot.GetFertilityType() == "PlantMaterial" )
621 {
623 }
624 }
625 }
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
849 {
851 }

◆ 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().

◆ SetupTrap()

void SetupTrap ( )
inlineprivate
201 {
202 if ( GetGame().IsServer() )
203 {
204 if ( GetHierarchyRootPlayer() && GetHierarchyRootPlayer().CanDropEntity( this ) )
205 {
206 SetupTrapPlayer( PlayerBase.Cast( GetHierarchyRootPlayer() ) );
207 }
208 }
209 }

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

◆ SetupTrapPlayer()

void SetupTrapPlayer ( PlayerBase player,
bool set_position = true )
inlineprivate
212 {
213 if ( GetGame().IsServer() )
214 {
215 if ( set_position )
216 {
217 vector trapPos = player.GetPosition() + ( player.GetDirection() * 0.5 );
218 trapPos[1] = GetGame().SurfaceRoadY( trapPos[0], trapPos[2] );
220 }
221
222 SetDeployed( true );
223 }
224 }

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

◆ SetUsed()

void SetUsed ( )
inlineprivate
309 {
310 if ( GetGame().IsServer() )
311 {
312 // We updated state, visuals and stop timers
313 m_IsActive = false;
314 m_IsDeployed = false;
315 if ( m_Timer )
316 {
317 m_Timer.Stop();
318 }
319
321 {
322 SetAnimationPhase( m_AnimationPhaseSet, 1 );
323 SetAnimationPhase( m_AnimationPhaseTriggered, 1 );
324 SetAnimationPhase( m_AnimationPhaseUsed, 0 );
325 }
326
327 SetSynchDirty();
328 }
329 }

Перекрестные ссылки GetGame(), m_AnimationPhaseSet, m_AnimationPhaseTriggered, m_IsActive и m_Timer.

◆ ShowZonesHealth() [1/2]

override bool ShowZonesHealth ( )
inlineprivate
803 {
804 return true;
805 }

◆ ShowZonesHealth() [2/2]

override bool ShowZonesHealth ( )
inlineprotected
919 {
920 return true;
921 }

◆ SlotWaterStateUpdate()

void SlotWaterStateUpdate ( Slot slot)
inlineprivate
529 {
530 // Set relevant bit
531 m_SlotWateredState |= slot.GetWateredState() << slot.GetSlotIndex();
532 SetSynchDirty();
533 }

◆ SoundBuildStart()

void SoundBuildStart ( string part_name)
inlineprotected
1089 {
1090 PlaySoundSet( m_Sound, GetBuildSoundByMaterial( part_name ), 0.1, 0.1 );
1091 }
string GetBuildSoundByMaterial(string part_name)
Definition BaseBuildingBase.c:1103
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
275 {
276 PlaySoundSetLoop(m_SoundBurningLoop, SOUND_BURNING, 0.1, 0.3);
277 }

◆ 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
280 {
281 StopSoundSet(m_SoundBurningLoop);
282 }

◆ SoundBuzzLoopStart()

void SoundBuzzLoopStart ( )
inlineprotected
333 {
334 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // client side
335 {
336 if (!m_BuzzSoundLoop)
337 {
338 m_BuzzSoundLoop = PlaySoundLoop(m_SoundBuzzLoop, 50);
339 }
340 }
341 }
SoundOnVehicle m_BuzzSoundLoop
Definition BarbedWire.c:17
static const string m_SoundBuzzLoop
Definition BarbedWire.c:14

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

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

◆ SoundBuzzLoopStop()

void SoundBuzzLoopStop ( )
inlineprotected
345 {
346 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // client side
347 {
348 if (m_BuzzSoundLoop)
349 {
350 GetGame().ObjectDelete(m_BuzzSoundLoop);
352 }
353 }
354 }

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

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

◆ SoundCollision()

void SoundCollision ( )
inlineprotected
369 {
370 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // client side
371 {
375 }
376 }
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
311 {
312 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // client side
313 {
317 }
318 }
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
1099 {
1100 PlaySoundSet( m_Sound, GetDismantleSoundByMaterial( part_name ), 0.1, 0.1 );
1101 }
string GetDismantleSoundByMaterial(string part_name)
Definition BaseBuildingBase.c:1119

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

◆ SoundDismantleStart()

void SoundDismantleStart ( string part_name)
inlineprotected
1094 {
1095 PlaySoundSet( m_Sound, GetDismantleSoundByMaterial( part_name ), 0.1, 0.1 );
1096 }

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

◆ SoundElectricShock()

void SoundElectricShock ( )
inlineprotected
358 {
359 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // client side
360 {
364 }
365 }
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
322 {
323 if ( !GetGame().IsServer() || !GetGame().IsMultiplayer() ) // client side
324 {
328 }
329 }
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
794 {
796 sound.SetAutodestroy(true);
797 }
string GetSoundClose()
Definition TentBase.c:781

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

◆ SoundTentCloseWindowPlay()

void SoundTentCloseWindowPlay ( )
inlineprotected
806 {
808 sound.SetAutodestroy(true);
809 }
string GetSoundCloseWindow()
Definition TentBase.c:785

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

◆ SoundTentOpenPlay()

void SoundTentOpenPlay ( )
inlineprotected
788 {
790 sound.SetAutodestroy(true);
791 }
string GetSoundOpen()
Definition TentBase.c:779

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

◆ SoundTentOpenWindowPlay()

void SoundTentOpenWindowPlay ( )
inlineprotected
800 {
802 sound.SetAutodestroy(true);
803 }
string GetSoundOpenWindow()
Definition TentBase.c:783

Перекрестные ссылки 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
290 {
291 PlaySoundSet(m_SoundTurnOff, SOUND_TURN_OFF, 0.1, 0.1);
292 }

◆ SoundTurnOff() [3/3]

void SoundTurnOff ( )
inlineprotected
349 {
350 PlaySoundSet(m_SoundTurnOff, SOUND_TURN_OFF, 0, 0);
351 }

◆ 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
285 {
286 PlaySoundSet(m_SoundTurnOn, SOUND_TURN_ON, 0.1, 0.1);
287 }

◆ SoundTurnOn() [3/3]

void SoundTurnOn ( )
inlineprotected
344 {
345 PlaySoundSet(m_SoundTurnOn, SOUND_TURN_ON, 0, 0);
346 }

◆ Spark()

void Spark ( )
inlineprotected
302 {
303 ParticleManager.GetInstance().PlayOnObject( ParticleList.BARBED_WIRE_SPARKS, this);
304 SoundSpark();
305 }
void SoundSpark()
Definition BarbedWire.c:321
static const int BARBED_WIRE_SPARKS
Definition ParticleList.c:135

Перекрестные ссылки ParticleList::BARBED_WIRE_SPARKS, ParticleManager() и SoundSpark().

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

◆ SpawnCatch()

void SpawnCatch ( )
inlineprivate
333 {
334 // Only server side, let's make sure
335 if ( GetGame().IsClient() )
336 return;
337
338 // If we can't get CEApi we won't be able to test proximity
339 if ( !GetCEApi() )
340 return;
341
342 int i;
343 m_Bait = null;
344
345 // We check if we have bait and can catch
347
348 SetIsDeploySound( false );
349 SetSynchDirty();
350
351 // We check the distance from players through CEApi if that check is enabled
353 {
355 {
356 m_CanCatch = false;
357
358 // We could not catch yet, let's retest until we can
359 if ( m_Timer )
360 m_Timer.Stop();
361
363 m_Timer.Run( m_UpdateWaitTime, this, "SpawnCatch" );
364
365 return; // No need to go further, let's just wait for next check
366 }
367 }
368
369 // We get the probability to catch depending on bait presence
370 if ( m_Bait )
372 else
374
375 // We get the position of prey when it will spawn
377 if ( MemoryPointExists("Prey_Position") )
378 {
379 m_PreyPos = ModelToWorld( GetMemoryPointPos("Prey_Position") );
380 }
381 }
proto native bool AvoidPlayer(vector vPos, float fDistance)
Check if there is a player within a radius.
proto native CEApi GetCEApi()
Get the CE API.
float m_NoBaitCatchProb
Definition TrapSpawnBase.c:11
float m_BaitCatchProb
Definition TrapSpawnBase.c:10
bool m_CanCatch
Definition TrapSpawnBase.c:7
bool SetCanCatch(out EntityAI bait)
Definition TrapSpawnBase.c:385
float m_FinalCatchProb
Definition TrapSpawnBase.c:12
int m_UpdateWaitTime
Definition TrapSpawnBase.c:4
EntityAI m_Bait
Definition TrapSpawnBase.c:16
vector m_PreyPos
Definition TrapSpawnBase.c:14
float m_MinimalDistanceFromPlayersToCatch
Definition TrapSpawnBase.c:8

Перекрестные ссылки AvoidPlayer(), CALL_CATEGORY_GAMEPLAY, GetCEApi(), GetGame(), GetPosition, m_Timer и 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
44 {
46
47 RegisterNetSyncVariableBool("m_IsSoundSynchRemote");
48 RegisterNetSyncVariableBool("m_IsDeploySound");
49 RegisterNetSyncVariableBool("m_IsFolded");
50 }

◆ 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)
inlineprivate
243{ }

◆ StartLoopSound()

void StartLoopSound ( )
inlineprotected
79 {
80 if (GetGame().IsClient() || !GetGame().IsMultiplayer())
81 {
82 if (GetCompEM().IsWorking())
83 {
84 PlaySoundSetLoop(m_EngineLoop, LOOP_SOUND, 0, 0);
85
86 // Particle
87 vector local_pos = "0.3 0.21 0.4";
88 vector local_ori = "270 0 0";
91 }
92 }
93 }
Definition GeneratorSmoke.c:2
static const string LOOP_SOUND
Definition PowerGenerator.c:9
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:66

Перекрестные ссылки 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 ( )
inlineprotected
164 {
165 if ( !GetGame().IsDedicatedServer() )
166 {
169 }
170 }
void SetSoundFadeOut(float fade_out)
Set the sound fade out duration.
Definition EffectSound.c:885

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

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

◆ StopDeployLoopSound() [2/5]

void StopDeployLoopSound ( )
inlineprotected
172 {
173 if ( !GetGame().IsDedicatedServer() )
174 {
177 }
178 }

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

◆ StopDeployLoopSound() [3/5]

void StopDeployLoopSound ( )
inlineprotected
420 {
421 if (!GetGame().IsDedicatedServer())
422 {
425 }
426 }

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

◆ StopDeployLoopSound() [4/5]

void StopDeployLoopSound ( )
inlineprotected
865 {
866 if (!GetGame().IsDedicatedServer())
867 {
870 }
871 }

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

◆ StopDeployLoopSound() [5/5]

void StopDeployLoopSound ( )
inlineprivate
520 {
521 if ( !GetGame().IsDedicatedServer() )
522 {
525 }
526 }

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

◆ 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
329 {
330 SetObjectMaterial( 3, DEFAULT_MATERIAL );
331 }

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

◆ SwitchLightOn()

void SwitchLightOn ( )
inlineprotected
312 {
313 SetObjectMaterial( 3, SWITCH_LIGHT_GLOW );
314 }
const string SWITCH_LIGHT_GLOW
Definition BatteryCharger.c:20

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

◆ Synchronize() [1/2]

void Synchronize ( )
inlineprotected
118 {
119 if ( GetGame().IsServer() )
120 {
121 SetSynchDirty();
122 }
123 }

Перекрестные ссылки 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
42 {
46
48 RegisterNetSyncVariableInt("m_State");
49 RegisterNetSyncVariableBool("m_IsSoundSynchRemote");
50 RegisterNetSyncVariableBool("m_IsEntrance");
51 RegisterNetSyncVariableBool("m_IsWindow");
52 RegisterNetSyncVariableBool("m_IsToggle");
53 RegisterNetSyncVariableBool("m_IsDeploySound");
54 RegisterNetSyncVariableInt("m_OpeningMask");
55 RegisterNetSyncVariableBool("m_IsBeingPacked");
56
57 ProcessInvulnerabilityCheck(GetInvulnerabilityTypeString());
58 }
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
699 {
700 if (m_State == PACKED)
701 {
702 return;
703 }
704
705 bool is_closed;
706 ResetToggle();
707
708 for (int i = 0; i < m_ToggleAnimations.Count(); i++)
709 {
711
712 string toggle_off = toggle.GetToggleOff();
713 toggle_off.ToLower();
714 string toggle_on = toggle.GetToggleOn();
715 toggle_on.ToLower();
716
717 if (toggle_off == selection || toggle_on == selection)
718 {
719 is_closed = m_OpeningMask & toggle.GetOpeningBit();
720 if (is_closed)
721 {
722 SetAnimationPhase(toggle.GetToggleOff(), 0);
723 AddProxyPhysics(toggle.GetToggleOff());
724 SetAnimationPhase(toggle.GetToggleOn(), 1);
725 RemoveProxyPhysics(toggle.GetToggleOn());
726 m_ToggleAnimations.Set(toggle, false);
727 m_IsToggle = true;
728 m_OpeningMask &= ~toggle.GetOpeningBit();
729
730 if (selection.Contains("window"))
731 {
733 }
734
735 if (selection.Contains("entrance") || selection.Contains("door"))
736 {
738 }
739
741 }
742 else
743 {
744 SetAnimationPhase(toggle.GetToggleOff(), 1);
745 RemoveProxyPhysics(toggle.GetToggleOff());
746 SetAnimationPhase(toggle.GetToggleOn(), 0);
747 AddProxyPhysics(toggle.GetToggleOn());
748 m_ToggleAnimations.Set(toggle, true);
749 m_IsToggle = false;
750 m_OpeningMask |= toggle.GetOpeningBit();
751
752 if (selection.Contains("window"))
753 {
755 }
756
757 if (selection.Contains("entrance") || selection.Contains("door"))
758 {
760 }
761
763 }
764 }
765 }
766 SetSynchDirty();
768 }
void ManipulateWindow()
Definition TentBase.c:682
void AnimateCamonetToggle(ToggleAnimations toggle)
Definition TentBase.c:775
void ResetToggle()
Definition TentBase.c:670
void ManipulateEntrance()
Definition TentBase.c:677
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 ( )
inlineprivate
51 {
52 m_DefectRate = 10; //Added damage after trap activation
54 m_InitWaitTime = 10;
55 m_NeedInstalation = true;
56 m_BaitNeeded = true;
57 m_IsFoldable = false;
59
60 m_BaitCatchProb = 95;
62
66
70
74
75 RegisterNetSyncVariableBool("m_IsSoundSynchRemote");
76 RegisterNetSyncVariableBool("m_IsDeploySound");
77 RegisterNetSyncVariableBool("m_IsActive");
78 RegisterNetSyncVariableBool("m_IsDeployed");
79 }
bool m_BaitNeeded
Definition TrapSpawnBase.c:43
ref multiMap< string, float > m_CatchesPond
Definition TrapSpawnBase.c:32
ref multiMap< string, float > m_CatchesGroundAnimal
Definition TrapSpawnBase.c:34
ref multiMap< string, float > m_CatchesSea
Definition TrapSpawnBase.c:33
Definition ActionConstants.c:145
const string SEA
Definition ActionConstants.c:146
const string FRESH
fake
Definition ActionConstants.c:147

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

◆ TryPitch()

void TryPitch ( bool update_navmesh,
bool init = false )
inlineprotected
570 {
571 if (GetHierarchyRootPlayer())
572 {
573 if (GetGame().IsDedicatedServer())
574 {
576 }
577
578 return;
579 }
580
582 }
void Pitch(bool update_navmesh, bool init=false)
Definition TentBase.c:543

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

◆ UndergroundStash()

void UndergroundStash ( )
inlineprivate
3{}

◆ Unfold()

void Unfold ( )
inlineprotected
281 {
282 m_IsFolded = false;
284 SetSynchDirty();
285 }

Перекрестные ссылки 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
166 {
167 bool isPlugged = GetCompEM().IsPlugged();
168 PlayerBase player = PlayerBase.Cast(GetHierarchyRootPlayer());
169 bool isInHands = player && player.GetItemInHands() == this;
170 HideAllSelections();
171
172 m_LightLocalPosition = GetSelectionPositionLS("beamStart");
173
174 if (IsFolded() || isInHands)
175 {
176 HideSelection(SEL_REFLECTOR_COMP_U);
177
178 ShowSelection(SEL_INVENTORY);
179 ShowSelection(SEL_GLASS_F);
180 ShowSelection(SEL_REFLECTOR_F);
181
182 if (isPlugged)
183 {
184 ShowSelection(SEL_CORD_PLUGGED_F);
185 }
186 else
187 {
188 ShowSelection(SEL_CORD_FOLDED_F);
189 }
190
191 if (!IsHologram())
192 {
193 if (GetCompEM().IsWorking())
194 {
195 SetObjectMaterial(ID_GLASS_UNFOLDED, LIGHT_ON_GLASS);
196 SetObjectMaterial(ID_REFLECTOR_UNFOLDED, LIGHT_ON_REFLECTOR);
197 SetObjectMaterial(ID_GLASS_FOLDED, LIGHT_ON_GLASS);
198 SetObjectMaterial(ID_REFLECTOR_FOLDED, LIGHT_ON_REFLECTOR);
199 }
200 else
201 {
202 SetObjectMaterial(ID_GLASS_UNFOLDED, LIGHT_OFF_GLASS);
203 SetObjectMaterial(ID_REFLECTOR_UNFOLDED, LIGHT_OFF_REFLECTOR);
204 SetObjectMaterial(ID_GLASS_FOLDED, LIGHT_OFF_GLASS);
205 SetObjectMaterial(ID_REFLECTOR_FOLDED, LIGHT_OFF_REFLECTOR);
206 }
207 }
208 }
209 else
210 {
211 ShowSelection(SEL_PLACING);
212 ShowSelection(SEL_REFLECTOR_U);
213 ShowSelection(SEL_GLASS_U);
214 ShowSelection(SEL_REFLECTOR_COMP_U);
215
216 if (isPlugged)
217 {
218 ShowSelection(SEL_CORD_PLUGGED_U);
219 }
220 else
221 {
222 ShowSelection(SEL_CORD_FOLDED_U);
223 }
224
225 if (!IsHologram())
226 {
227 if (GetCompEM().IsWorking())
228 {
229 SetObjectMaterial(ID_GLASS_UNFOLDED, LIGHT_ON_GLASS);
230 SetObjectMaterial(ID_REFLECTOR_UNFOLDED, LIGHT_ON_REFLECTOR);
231 }
232 else
233 {
234 SetObjectMaterial(ID_GLASS_UNFOLDED, LIGHT_OFF_GLASS);
235 SetObjectMaterial(ID_REFLECTOR_UNFOLDED, LIGHT_OFF_REFLECTOR);
236 }
237 }
238 }
239 }
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:335
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
791 {
792 //checks for invalid appends; hotfix
793 if ( !m_Mountables || m_Mountables.Find(slot_name) == -1 )
794 return;
795 //----------------------------------
796 string slot_name_mounted = slot_name + "_Mounted";
797 EntityAI attachment = FindAttachmentBySlotName( slot_name );
798
799 //remove proxy physics
800 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " Removing ATT SLOT=" + slot_name + " RM / RM");
801 RemoveProxyPhysics( slot_name_mounted );
802 RemoveProxyPhysics( slot_name );
803
804 if ( attachment )
805 {
806 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " Adding ATT=" + Object.GetDebugName(attachment));
807 if ( is_locked )
808 {
809 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " RM / RM");
810 AddProxyPhysics( slot_name_mounted );
811 }
812 else
813 {
814 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " ADD");
815 AddProxyPhysics( slot_name );
816 }
817 }
818 }
Definition ObjectTyped.c:2

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

◆ UpdateAttachmentSlot()

void UpdateAttachmentSlot ( )
inlineprotected
88 {
89 BaseBuildingBase base_building = BaseBuildingBase.Cast( GetHierarchyParent() );
90 if ( base_building )
91 {
93 GetInventory().GetCurrentInventoryLocation( inventory_location );
94 bool is_mounted = base_building.GetInventory().GetSlotLock( inventory_location.GetSlot() );
96
97 base_building.UpdateAttachmentVisuals( slot_name, is_mounted );
98 base_building.UpdateAttachmentPhysics( slot_name, is_mounted );
99 }
100 }

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

◆ UpdateAttachmentVisuals()

void UpdateAttachmentVisuals ( string slot_name,
bool is_locked )
inlineprotected
721 {
722 string slotNameMounted = slot_name + "_Mounted";
723 EntityAI attachment = FindAttachmentBySlotName(slot_name);
724
725 if (attachment)
726 {
728 if (barbedWire && barbedWire.IsMounted())
730 else
732
733 if (is_locked)
734 {
735 SetAnimationPhase(slotNameMounted, 0);
736 SetAnimationPhase(slot_name, 1);
737 }
738 else
739 {
740 SetAnimationPhase(slotNameMounted, 1);
741 SetAnimationPhase(slot_name, 0);
742 }
743 }
744 else
745 {
746 SetAnimationPhase(slotNameMounted, 1);
747 SetAnimationPhase(slot_name, 1);
748
750 }
751 }
void CreateAreaDamage()
Definition FireplaceBase.c:2315

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

◆ UpdateFuelMeter()

void UpdateFuelMeter ( )
inlineprotected
251 {
252 if (GetGame().IsClient() || !GetGame().IsMultiplayer())
253 {
254 SetAnimationPhase("dial_fuel", m_FuelPercentage * 0.01);
255 }
256 }

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

Используется в EOnInit(), OnInitEnergy(), OnItemLocationChanged(), OnVariablesSynchronized(), OnWork(), OnWorkStop() и SetFuel().

◆ UpdateNavmesh()

void UpdateNavmesh ( )
inlineprotected
821 {
822 SetAffectPathgraph( true, false );
823 GetGame().GetCallQueue( CALL_CATEGORY_SYSTEM ).CallLater( GetGame().UpdatePathgraphRegionByObject, 100, false, this );
824 }

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

◆ UpdateNVGStatus()

void UpdateNVGStatus ( PlayerBase player,
bool attaching = false,
bool force_disable = false )
inlineprivate
843 {
844 NVGoggles NVGAttachment;
845 NVGAttachment = NVGoggles.Cast(FindAttachmentBySlotName("NVG"));
846 bool has_nvg_slot;
847 for (int i = 0; i < GetInventory().GetAttachmentSlotsCount(); i++)
848 {
849 has_nvg_slot = GetInventory().GetAttachmentSlotId(i) == InventorySlots.GetSlotIdFromString("NVG");
850 if (has_nvg_slot)
851 break;
852 }
853
854 if ( player && has_nvg_slot )
855 {
856 if ( NVGAttachment )
857 {
858 NVGAttachment.LoweredCheck();
859
860 if ( attaching && NVGAttachment.m_Strap && NVGAttachment.m_IsLowered )
861 {
862 NVGAttachment.SetPlayer(player);
863 player.SetNVGLowered(true);
864
865 if ( player.IsControlledPlayer() )
866 {
867 if ( NVGAttachment.IsWorking() )
868 {
869 player.AddActiveNV(NVTypes.NV_GOGGLES);
870 //player.RemoveActiveNV(NVTypes.NV_GOGGLES_OFF);
871 }
872 else
873 {
874 //player.AddActiveNV(NVTypes.NV_GOGGLES_OFF);
875 player.RemoveActiveNV(NVTypes.NV_GOGGLES);
876 }
877 }
878 }
879 else
880 {
881 NVGAttachment.SetPlayer(null);
882 player.SetNVGLowered(false);
883
884 if ( player.IsControlledPlayer() )
885 {
886 player.RemoveActiveNV(NVTypes.NV_GOGGLES);
887 //player.RemoveActiveNV(NVTypes.NV_GOGGLES_OFF);
888 }
889 }
890 }
891 else if ( player.IsNVGWorking() && force_disable )
892 {
893 player.SetNVGLowered(false);
894
895 if ( player.IsControlledPlayer() )
896 {
897 player.RemoveActiveNV(NVTypes.NV_GOGGLES);
898 //player.RemoveActiveNV(NVTypes.NV_GOGGLES_OFF);
899 }
900 }
901 }
902 }
NVTypes
Definition DayZPlayerCamera_Base.c:55

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

◆ UpdatePhysics() [1/3]

void UpdatePhysics ( )
inlineprotected
755 {
757 bsbDebugPrint("[bsb] " + GetDebugName(this) + " BaseBuildingBase::UpdatePhysics");
758
761
763 bsbDebugPrint("[bsb] " + GetDebugName(this) + " att_cnt=" + attachmentSlots.Count());
764
765 foreach (string slotName : attachmentSlots)
766 {
768 }
769
770 //check base
771 if (!HasBase())
772 {
774 bsbDebugPrint("[bsb] " + GetDebugName(this) + ANIMATION_DEPLOYED + " ADD");
775
776 AddProxyPhysics(ANIMATION_DEPLOYED);
777 }
778 else
779 {
781 bsbDebugPrint("[bsb] " + GetDebugName(this) + ANIMATION_DEPLOYED + " RM");
782
783 RemoveProxyPhysics(ANIMATION_DEPLOYED);
784 }
785
786 GetConstruction().UpdatePhysics();
788 }
PlayerSpawnPreset slotName
void GetAttachmentSlots(EntityAI entity, out array< string > attachment_slots)
Definition BaseBuildingBase.c:855
bool IsAttachmentSlotLocked(EntityAI attachment)
Definition BaseBuildingBase.c:836

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

◆ UpdatePhysics() [2/3]

void UpdatePhysics ( )
inlineprotected
155 {
156 AddProxyPhysics( "Inventory" );
157 RemoveProxyPhysics( "Placing" );
158 }

◆ UpdatePhysics() [3/3]

void UpdatePhysics ( )
inlineprotected
612 {
614 string animation_name;
615
616 if (GetState() == PITCHED)
617 {
618 for (int i = 0; i < m_ShowAnimationsWhenPitched.Count(); i++)
619 {
621
623 proxy_selection_name.ToLower();
624 AddProxyPhysics(proxy_selection_name);
625 }
626
628 }
629 else
630 {
631 for (int j = 0; j < m_ShowAnimationsWhenPacked.Count(); j++)
632 {
634
636 proxy_selection_name.ToLower();
637 AddProxyPhysics(proxy_selection_name);
638 }
639 }
640 }

Перекрестные ссылки 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().

◆ 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:7988

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

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

◆ UpdateSlotTexture()

void UpdateSlotTexture ( int slot_index)
inlineprivate
536 {
537 // TO DO: Fix DAYZ-30633 here!
538 Slot slot = m_Slots.Get( slot_index );
539
540 // Show / Hide selections according to DIGGED or COVERED states.
541
542 if ( slot.IsDigged() || slot.IsPlanted() )
543 {
546
547 HideSelection( str_hide );
548 ShowSelection( str_show );
549 }
550
551 if ( slot.GetFertilityType() != "" )
552 {
553 SetSlotTextureFertilized( slot_index, slot.GetFertilityType() );
554 }
555 else
556 {
558 }
559 }
void SetSlotTextureDigged(int slot_index)
Definition GardenBase.c:561
void SetSlotTextureFertilized(int slot_index, string item_type)
Definition GardenBase.c:585

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

◆ UpdateStatusLights()

void UpdateStatusLights ( )
inlineprotected
120 {
121 if ( GetGame().IsClient() || !GetGame().IsMultiplayer() )
122 {
123 if (GetCompEM().IsWorking())
124 {
126 ItemBase battery = ItemBase.Cast( GetCompEM().GetPluggedDevice() );
127
128 if (battery)
129 {
130 RedLightOff();
131
132 if (m_BatteryEnergy0To100 <= 33)
133 {
134 // Less than 1/3 charged, yellow status light must repeatedly blink
135
138 else
140
142 }
143 else if (m_BatteryEnergy0To100 > 33 && m_BatteryEnergy0To100 <= 66)
144 {
145 // Less than 2/3 charged, yellow status light must glow
146
148 }
149 else if (m_BatteryEnergy0To100 > 66 && m_BatteryEnergy0To100 < 100)
150 {
151 // Less than 3/3 charged, yellow status light must glow, green light must blink
152
154
156 GreenLightOn();
157 else
159
161 }
162 else if (m_BatteryEnergy0To100 >= 100)
163 {
164 // Fully charged, green light must glow
166 GreenLightOn();
167 }
168 }
169 else
170 {
172 RedLightOn();
173 else
174 RedLightOff();
175
177
180 }
181 }
182 else
183 {
186 RedLightOff();
188 }
189 }
190 }
void SwitchLightOn()
Definition BatteryCharger.c:311
void RedLightOff()
Definition BatteryCharger.c:316
bool m_BlinkingStatusLightIsOn
Definition BatteryCharger.c:33
void GreenLightOn()
Definition BatteryCharger.c:303
void YellowLightOn()
Definition BatteryCharger.c:307
void YellowLightOff()
Definition BatteryCharger.c:324
void RedLightOn()
Definition BatteryCharger.c:299
void GreenLightOff()
Definition BatteryCharger.c:320

Перекрестные ссылки 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().

◆ UpdateVisuals() [1/3]

void UpdateVisuals ( )
inlineprotected
702 {
704
706 foreach (string slotName : attachmentSlots)
707 {
709 }
710
711 //check base
712 if (!HasBase())
713 SetAnimationPhase(ANIMATION_DEPLOYED, 0);
714 else
715 SetAnimationPhase(ANIMATION_DEPLOYED, 1);
716
717 GetConstruction().UpdateVisuals();
718 }

Перекрестные ссылки ANIMATION_DEPLOYED, GetAttachmentSlots(), GetConstruction(), HasBase(), IsAttachmentSlotLocked(), slotName и UpdateAttachmentVisuals().

◆ UpdateVisuals() [2/3]

void UpdateVisuals ( )
inlineprotected
149 {
150 SetAnimationPhase( "Inventory", 0 );
151 SetAnimationPhase( "Placing", 1 );
152 }

◆ UpdateVisuals() [3/3]

void UpdateVisuals ( )
inlineprotected
585 {
587 string animation_name;
588
589 if (GetState() == PITCHED)
590 {
591 for (int i = 0; i < m_ShowAnimationsWhenPitched.Count(); i++)
592 {
594
595 SetAnimationPhase(animation_name, 0);
596 }
597
599 }
600 else
601 {
602 for (int j = 0; j < m_ShowAnimationsWhenPacked.Count(); j++)
603 {
605
606 SetAnimationPhase(animation_name, 0);
607 }
608 }
609 }
void HandleOpeningsVisuals()
Definition TentBase.c:883

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

◆ WaterAllSlots()

void WaterAllSlots ( )
inlineprivate
822 {
823 int state = 0;
824
825 for ( int i = 0; i < m_Slots.Count(); i++ )
826 {
827 state += 1 * Math.Pow( 2, i );
828 }
829
831 }
void SetSlotWateredState(int newState)
Definition GardenBase.c:848

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

◆ YellowLightOff()

void YellowLightOff ( )
inlineprotected
325 {
326 SetObjectMaterial( 1, DEFAULT_MATERIAL );
327 }

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

◆ YellowLightOn()

void YellowLightOn ( )
inlineprotected
308 {
309 SetObjectMaterial( 1, YELLOW_LIGHT_GLOW );
310 }
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_AlignCatchTimer

ref Timer m_AlignCatchTimer
private

◆ 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

◆ m_BaitCatchProb

float m_BaitCatchProb
private

◆ m_BaitNeeded

bool m_BaitNeeded
protected

◆ 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
protected

◆ m_CamoNet

CamoNet m_CamoNet
protected

◆ m_CanCatch

bool m_CanCatch = false
private

◆ m_Catch

ItemBase m_Catch
private

◆ m_CatchesGroundAnimal

ref multiMap<string, float> m_CatchesGroundAnimal
protected

◆ m_CatchesPond

ref multiMap<string, float> m_CatchesPond
protected

◆ m_CatchesSea

ref multiMap<string, float> m_CatchesSea
protected

◆ 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_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

◆ m_DeleteDryPlantTime

int m_DeleteDryPlantTime
private

◆ m_DeleteDryPlantTimer

ref Timer m_DeleteDryPlantTimer = NULL
private

◆ m_DeployedRegularly

bool m_DeployedRegularly
protected

◆ m_DeployLoopSound [1/2]

EffectSound m_DeployLoopSound
protected

◆ m_DeployLoopSound [2/2]

ref EffectSound m_DeployLoopSound
protected

◆ 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
private

◆ m_ForceIntoHands

bool m_ForceIntoHands
private

◆ m_Fuel

float m_Fuel
private

◆ m_FuelPercentage

int m_FuelPercentage
private

◆ m_FuelTankCapacity

float m_FuelTankCapacity
staticprivate

Используется в GetMaxFuel(), OnInitEnergy() и SetFuel().

◆ m_FuelToEnergyRatio

float m_FuelToEnergyRatio
staticprivate

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

◆ 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

◆ m_InitWaitTime

int m_InitWaitTime
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_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

◆ m_IsMounted

bool m_IsMounted
protected

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

◆ m_IsPlaced

bool m_IsPlaced
protected

◆ m_IsToggle

bool m_IsToggle
protected

◆ m_IsUsable

bool m_IsUsable
protected

◆ 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_MaxWateredStateVal

int m_MaxWateredStateVal = 0
protected

◆ m_MineDisarmRate

int m_MineDisarmRate = 60
protected

◆ m_MinimalDistanceFromPlayersToCatch

float m_MinimalDistanceFromPlayersToCatch
private

◆ 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
protected

◆ m_NoBaitCatchProb

float m_NoBaitCatchProb
private

◆ 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

DEPRECATED.

◆ m_PlantMaterialMultiplier

float m_PlantMaterialMultiplier
private

◆ m_PlantState

int m_PlantState
private

◆ m_PlantStateIndex

int m_PlantStateIndex
private

◆ m_PrevTimer

ref Timer m_PrevTimer
protected

◆ m_PreyPos

vector m_PreyPos
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
protected

◆ m_SparkPlug

ItemBase m_SparkPlug
protected

◆ 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

◆ 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

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