Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
Entity Class Reference

Protected Member Functions

void AddSingleExclusionValueGlobal (EAttExclusions value)
 to help with item staging exclusions
void AddTemperature (float value)
void AddWet (float value)
void AdjustExclusionAccessCondition (int occupiedSlot, int testedSlot, set< int > value, inout set< int > adjustedValue)
 if we want to filter
void AdjustExclusionAccessPropagation (int occupiedSlot, int testedSlot, set< int > value, inout set< int > adjustedValue)
 if we want to filter propagation specifically; DO NOT override unless you know what you are doing.
void AfterStoreLoad ()
 Called when entity is being loaded from DB or Storage (after all children loaded).
bool AreChildrenAccessible ()
void AttemptDestructionBehaviour (int oldLevel, int newLevel, string zone)
bool CanAssignAttachmentsToQuickbar ()
bool CanAssignToQuickbar ()
override bool CanBeActionTarget ()
bool CanBeBackstabbed ()
bool CanBeCombined (EntityAI other_item, bool reservation_check=true, bool stack_max_limit=false)
bool CanBeFSwaped ()
bool CanBeIgnitedBy (EntityAI igniter=NULL)
 Override this method so it checks whenever this item can be ignited right now or not. Evaluated on Server and Client.
bool CanBePlaced (Man player, vector position)
string CanBePlacedFailMessage (Man player, vector position)
 Method which returns message why object can't be placed at given position.
bool CanBeSplit ()
 returns current splitability
bool CanBeTargetedByAI (EntityAI ai)
bool CanCombineAttachment (notnull EntityAI e, int slot, bool stack_max_limit=false)
bool CanDetachAttachment (EntityAI parent)
bool CanDisplayAnyAttachmentSlot ()
bool CanDisplayAttachmentCategory (string category_name)
bool CanDisplayAttachmentSlot (int slot_id)
bool CanDisplayAttachmentSlot (string slot_name)
bool CanDisplayCargo ()
bool CanDisplayWeight ()
 'displayWeight' in item config
bool CanDropEntity (notnull EntityAI item)
 Returns if item can be dropped out from this entity.
bool CanFreeze ()
bool CanHaveTemperature ()
 returns true used on selected items that have a temperature effect and can processes temperature changes
bool CanIgniteItem (EntityAI ignite_target=NULL)
 Override this method and check if the given item can be ignited right now by this one. Evaluated on Server and Client.
bool CanItemOverheat ()
 Overheat time CAN be 0, GameConstants.TEMPERATURE_TIME_OVERHEAT_MIN is ignored if so.
bool CanLoadAttachment (EntityAI attachment)
bool CanLoadItemIntoCargo (EntityAI item)
bool CanPutAsAttachment (EntityAI parent)
bool CanPutInCargo (EntityAI parent)
bool CanPutIntoHands (EntityAI parent)
bool CanReceiveAttachment (EntityAI attachment, int slotId)
bool CanReceiveItemIntoCargo (EntityAI item)
bool CanReceiveItemIntoHands (EntityAI item_to_hands)
bool CanReleaseAttachment (EntityAI attachment)
bool CanReleaseCargo (EntityAI cargo)
bool CanReleaseFromHands (EntityAI handheld)
bool CanRemoveFromCargo (EntityAI parent)
bool CanRemoveFromHands (EntityAI parent)
bool CanSaveItemInHands (EntityAI item_in_hands)
bool CanSwapEntities (EntityAI otherItem, InventoryLocation otherDestination, InventoryLocation destination)
bool CanSwapItemInCargo (EntityAI child_entity, EntityAI new_entity)
bool CanSwitchDuringAttach (EntityAI parent)
string ChangeIntoOnAttach (string slot)
string ChangeIntoOnDetach ()
bool CheckAttachmentReceiveExclusion (EntityAI attachment, int slotId)
 checks specifically for att. exclusion conflicts before att. receive
bool CheckExclusionAccessCondition (int occupiedSlot, int targetSlot, set< int > value, inout set< int > adjustedValue)
bool CheckExclusionAccessPropagation (int occupiedSlot, int targetSlot, set< int > value, inout set< int > adjustedValue)
 special propagation contition
void CheckForDestroy ()
void CheckForRoofLimited (float timeTresholdMS=3000)
 Roof check for entity, limited by time (anti-spam solution).
void ClearInventory ()
void ClearSingleExclusionValueGlobal (EAttExclusions value)
 to help with item staging exclusions
void ClearWeightDirty ()
void CombineItemsClient (EntityAI entity2, bool use_stack_max=false)
void CombineItemsEx (EntityAI entity2, bool use_stack_max=false)
float ConvertNonlethalDamage (float damage)
 DEPRECATED - for legacy purposes.
float ConvertNonlethalDamage (float damage, DamageType damageType)
proto native void CreateAndInitInventory ()
void DeathUpdate ()
void DebugBBoxDelete ()
Shape DebugBBoxDraw ()
void DebugBBoxSetColor (int color)
void DebugDirectionDelete ()
Shape DebugDirectionDraw (float distance=1)
void DebugDirectionSetColor (int color)
override void Delete ()
 Delete this object in next frame.
void DeleteOnClient ()
void DeleteSafe ()
void DeleteSave ()
void DeSerializeNumericalVars (array< float > floats)
proto native void DestroyInventory ()
bool DisassembleOnLastDetach ()
bool DoPlacingHeightCheck ()
 Do the roof check when placing this?
void EEAmmoChanged ()
void EECargoIn (EntityAI item)
void EECargoMove (EntityAI item)
void EECargoOut (EntityAI item)
void EEDelete (EntityAI parent)
 Called right before object deleting.
void EEHealthLevelChanged (int oldLevel, int newLevel, string zone)
void EEHitBy (TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef)
void EEHitByRemote (int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos)
void EEInit ()
 Called upon object creation.
void EEInventoryIn (Man newParentMan, EntityAI diz, EntityAI newParent)
void EEInventoryOut (Man oldParentMan, EntityAI diz, EntityAI newParent)
void EEItemAttached (EntityAI item, string slot_name)
void EEItemDetached (EntityAI item, string slot_name)
void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
void EEKilled (Object killer)
 called on server when the entity is killed
void EEOnAfterLoad ()
 Called when entity is part of "connected system" and being restored after load.
void EEOnCECreate ()
 Called when entity is being created as new by CE/ Debug.
void EEParentedFrom (EntityAI parent)
 Called from 'IEntity.RemoveChild' or 'IEntity.AddChild' when hierarchy changes.
void EEParentedTo (EntityAI parent)
 Called from 'IEntity.AddChild'.
override void EOnFrame (IEntity other, float timeSlice)
void ExecuteActionsConnectedToValve (int pValveIndex)
EntityAI FindAttachmentBySlotName (string slot_name)
int GetAgents ()
ArrowManagerBase GetArrowManager ()
EntityAI GetAttachmentByConfigTypeName (string type)
 Get attached entity by config type name.
EntityAI GetAttachmentByType (typename type)
 Get attached entity by type.
set< intGetAttachmentExclusionInitSlotValue (int slotId)
 override this to modify slot behavior for specific items, or just set 'm_AttachmentExclusionMaskGlobal' value for simple items
string GetAttachmentSoundType ()
 returns sound type of attachment (used for clothing and weapons on DayZPlayerImplement, paired with Anim*Type enum from DayZAnimEvents)
array< EntityAIGetAttachmentsWithAttachments ()
array< EntityAIGetAttachmentsWithCargo ()
int GetBayonetAttachmentIdx ()
int GetButtstockAttachmentIdx ()
int GetCleanness ()
void GetColor (out int r, out int g, out int b, out int a)
ComponentBodyStaging GetCompBS ()
 Use this to access Body Staging component on dead character. Returns NULL if the given object lacks such component.
float GetConfigWeightModified ()
bool GetCookingTargetTemperature (out float temperature)
 specifically for cooking system, to get heat source target temperatures
string GetDeadItemName ()
void GetDebugActions (out TSelectableActionInfoArrayEx outputList)
void GetDebugButtonNames (out string button1, out string button2, out string button3, out string button4)
string GetDebugText ()
string GetDefaultHitComponent ()
 returns default hit component for the Entity (overriden for each Type - PlayerBase, DayZInfected, DayZAnimal, etc.)
vector GetDefaultHitPosition ()
string GetDefaultHitPositionComponent ()
 returns default hit position component name for the Entity (overriden by type if needed - used mainly as support for impact particles)
proto native CEItemProfile GetEconomyProfile ()
 Get economy item profile (if assigned, otherwise null).
map< int, stringGetEntityDamageDisplayNameMap ()
DamageZoneMap GetEntityDamageZoneMap ()
float GetFreezeThawProgress ()
 on server only
float GetHeatPermeabilityCoef ()
 Returns temperature change speed multiplier for this item and all its children (multiplicative interaction).
int GetHiddenSelectionIndex (string selection)
 Returns index of the string found in cfg array 'hiddenSelections'. If it's not found then it returns -1.
override TStringArray GetHiddenSelections ()
 Returns the hiddenSelectionsTextures array from the object's config.
HiddenSelectionsData GetHiddenSelectionsData ()
override TStringArray GetHiddenSelectionsMaterials ()
 Returns the hiddenSelectionsMaterials array from the object's config.
override TStringArray GetHiddenSelectionsTextures ()
 Returns the hiddenSelectionsTextures array from the object's config.
int GetHierarchyLevel (int lvl=0)
proto native EntityAI GetHierarchyParent ()
 Returns direct parent of current entity.
proto native EntityAI GetHierarchyRoot ()
 Returns root of current hierarchy (for example: if this entity is in Backpack on gnd, returns Backpack).
proto native Man GetHierarchyRootPlayer ()
 Returns root of current hierarchy cast to Man.
string GetHitComponentForAI ()
 Returns hit component for the Entity (overriden for each Type - PlayerBase, DayZInfected, DayZAnimal, etc.).
proto native GameInventory GetInventory ()
float GetInventoryAndCargoWeight (bool forceRecalc=false)
bool GetInventoryHandAnimation (notnull InventoryLocation loc, out int value)
string GetInvulnerabilityTypeString ()
bool GetIsFrozen ()
float GetItemOverheatProgress ()
float GetItemOverheatThreshold ()
 if undefined, max temperature used as default
float GetItemOverheatTime ()
 any configured value >= 0 will simulate overheating
proto native float GetLifetime ()
 Get remaining economy lifetime (seconds).
proto native float GetLifetimeMax ()
 Get max economy lifetime per instance - default is from DB (seconds).
float GetLiquidThroughputCoef ()
 Returns liquid throughput coeficient.
int GetLiquidType ()
int GetMeleeTargetType ()
 value is related to EMeleeTargetType
proto native owned string GetObjectMaterial (int index)
proto native owned string GetObjectTexture (int index)
ScriptInvoker GetOnAttachmentReleaseLock ()
ScriptInvoker GetOnAttachmentSetLock ()
ScriptInvoker GetOnHitByInvoker ()
ScriptInvoker GetOnItemAddedIntoCargo ()
ScriptInvoker GetOnItemAttached ()
ScriptInvoker GetOnItemDetached ()
ScriptInvoker GetOnItemFlipped ()
ScriptInvoker GetOnItemMovedInCargo ()
ScriptInvoker GetOnItemRemovedFromCargo ()
ScriptInvoker GetOnKilledInvoker ()
ScriptInvoker GetOnReleaseLock ()
ScriptInvoker GetOnSetLock ()
ScriptInvoker GetOnViewIndexChanged ()
EntityAI GetPairDevice ()
proto void GetPersistentID (out int b1, out int b2, out int b3, out int b4)
 Returns blocks of bits of persistence id of this entity. This id stays the same even after server restart.
float GetQuantity ()
int GetQuantityMax ()
int GetQuantityMin ()
float GetQuantityNormalized ()
int GetQuickBarBonus ()
RemotelyActivatedItemBehaviour GetRemotelyActivatedItemBehaviour ()
 Remotely controlled devices helpers.
float GetSingleInventoryItemWeightEx ()
int GetSlotsCountCorrect ()
float GetStoreLoadedQuantity ()
array< stringGetSuitableFinisherHitComponents ()
int GetTargetQuantityMax (int attSlotID=-1)
float GetTemperature ()
float GetTemperatureFreezeThreshold ()
float GetTemperatureFreezeTime ()
float GetTemperatureInit ()
float GetTemperatureMax ()
float GetTemperatureMin ()
float GetTemperatureThawThreshold ()
float GetTemperatureThawTime ()
int GetTurnableValveIndex (int pComponentIndex)
UTemperatureSource GetUniversalTemperatureSource ()
vector GetUniversalTemperatureSourcePosition ()
array< floatGetVariablesFloat ()
int GetWeight ()
float GetWeightEx (bool forceRecalc=false)
 returns overall weight of the entity, 'forceRecalc = true' is meant to be used only when debugging, using it in gameplay code is higly inadvisable as it bypasses the weight caching and has adverse effect on performance
float GetWeightSpecialized (bool forceRecalc=false)
 returns weight of the entity in a way that's specific to the entity type and is internal to the weight system calculation, to obtain entity's weight, use the 'GetWeightEx' method instead
float GetWet ()
float GetWetInit ()
EWetnessLevel GetWetLevel ()
float GetWetMax ()
float GetWetMin ()
float GetWetWeightModifier ()
void HandleFreezingProgression (float deltaHeat, TemperatureData data)
void HandleItemOverheating (float deltaHeat, TemperatureData data)
bool HasAnyCargo ()
 is this container empty or not, checks only cargo
bool HasBayonetAttached ()
bool HasButtstockAttached ()
bool HasFlammableMaterial ()
 Override this method to return TRUE when this item has or can provide fire. Evaluated on server and client.
bool HasQuantity ()
bool HasTurnableValveBehavior ()
 Turnable Valve behaviour.
bool HasWetness ()
float HeightCheckOverride ()
 used as script-side override of distance for specific height checks
float HeightStartCheckOverride ()
 used as script-side override of start pos for specific height checks
void HideAllSelections ()
 Sets all animation values to 1, making them INVISIBLE if they are configured in models.cfg in such way. These selections must also be defined in the entity's config class in 'AnimationSources'.
void HideSelection (string selection_name)
 Hides selection of the given name. Must be configed in config.cpp and models.cfg.
bool IgnoreOutOfReachCondition ()
proto native void IncreaseLifetime ()
 Reset economy lifetime to default (seconds).
void IncreaseLifetimeUp ()
 Reset economy lifetime to default across entity hierarchy all the way to the topmost entity.
void InitGlobalExclusionValues ()
 override to init part of the mask, independent of slot-specific behavior
void InitLegacyConfigExclusionValues ()
bool InitLegacyExclusionCheck ()
void InitLegacySlotExclusionValuesDerived ()
void InitLegacySlotExclusionValuesImplicit ()
 adding base one-directional relations between headgear, masks, eyewear, and headstraps (exception)
void InitTemperature ()
void InsertAgent (int agent, float count=1)
void InterpolateTempData (TemperatureDataInterpolated data)
bool IsAnimal ()
bool IsBasebuildingKit ()
bool IsBeingPlaced ()
bool IsCookware ()
bool IsEmpty ()
 is this container empty or not, checks both cargo and attachments
override bool IsEntityAI ()
bool IsExclusionFlagPresent (set< int > values)
 checks 'this' if the incoming flag is present for the current state (slot behavior and others)
bool IsExclusionFlagPresentRecursive (set< int > values, int targetSlot)
 Gets flag from what is effectively an owner.
bool IsFreezeThawProgressFinished ()
 on server only
bool IsHeavyBehaviour ()
 returns item behaviour of item (more in ItemBase)
override bool IsHologram ()
bool IsIgnited ()
 Override this method and make it so it returns whenever this item is on fire right now or not. Evaluated on Server and Client.
bool IsIgnoredByConstruction ()
bool IsInventoryVisible ()
bool IsItemOverheated ()
bool IsLockedInSlot ()
bool IsManagingArrows ()
bool IsOneHandedBehaviour ()
 returns item behaviour of item (more in ItemBase)
proto native bool IsPilotLight ()
bool IsPlayer ()
bool IsPreparedToDelete ()
bool IsPrepareToDelete ()
proto native bool IsRequiredSimulation ()
bool IsRoofAbove ()
bool IsSelfAdjustingTemperature ()
bool IsServerCheck (bool allow_client)
bool IsSetForDeletion ()
proto native bool IsSimpleHiddenSelectionVisible (int index)
bool IsSlotReserved (int slotID)
bool IsSplitable ()
 returns just the configured 'canBeSplit' bool
bool IsStoreLoad ()
bool IsTakeable ()
bool IsTargetIgnitionSuccessful (EntityAI item_target)
 Final evaluation just before the target item is actually ignited. Evaluated on Server.
bool IsThisIgnitionSuccessful (EntityAI item_source=NULL)
 Final evaluation just before this item is actually ignited from fire source. Evaluated on Server.
bool IsTwoHandedBehaviour ()
 returns item behaviour of item (more in ItemBase)
bool IsUniversalTemperatureSource ()
 Universal Temperature Sources Helpers.
bool IsValveTurnable (int pValveIndex)
bool IsVariableSet (int variable)
 'true' if this variable has ever been changed from default
bool IsZombie ()
bool IsZombieMilitary ()
bool KeepHealthOnReplace ()
bool LoadVariables (ParamsReadContext ctx, int version=-1)
bool LocalDropEntity (notnull EntityAI item)
bool LocalTakeEntityAsAttachment (notnull EntityAI item)
bool LocalTakeEntityAsAttachmentEx (notnull EntityAI item, int slot)
bool LocalTakeEntityToCargo (notnull EntityAI item)
bool LocalTakeEntityToCargoEx (notnull EntityAI item, int idx, int row, int col)
bool LocalTakeEntityToInventory (FindInventoryLocationType flags, notnull EntityAI item)
bool LocalTakeEntityToTargetAttachment (notnull EntityAI target, notnull EntityAI item)
bool LocalTakeEntityToTargetAttachmentEx (notnull EntityAI target, notnull EntityAI item, int slot)
bool LocalTakeEntityToTargetCargo (notnull EntityAI target, notnull EntityAI item)
bool LocalTakeEntityToTargetCargoEx (notnull CargoBase cargo, notnull EntityAI item, int row, int col)
bool LocalTakeEntityToTargetInventory (notnull EntityAI target, FindInventoryLocationType flags, notnull EntityAI item)
bool LocalTakeToDst (notnull InventoryLocation src, notnull InventoryLocation dst)
void Log (string msg, string fnc_name="n/a")
 Log.
void LogError (string msg, string fnc_name="n/a")
 LogError.
void LogWarning (string msg, string fnc_name="n/a")
 LogWarning.
bool OnAction (int action_id, Man player, ParamsReadContext ctx)
void OnAttachmentRuined (EntityAI attachment)
 Called when some attachment of this parent is ruined. Called on server and client side.
void OnBeforeTryDelete ()
void OnBinLoadItemsDropped ()
 Called when an item fails to get loaded into the inventory of an entity and gets dropped.
void OnCargoChanged ()
void OnCEUpdate ()
 Central economy calls this function whenever going over all the entities.
void OnChildItemReceived (InventoryItem item)
void OnChildItemRemoved (InventoryItem item)
void OnDamageDestroyed (int oldLevel)
 Called when the health gets to the min value, 'oldLevel' is previous health level, 'oldLevel' -1 means this entity was just spawned.
void OnDebugButtonPressClient (int button_index)
void OnDebugButtonPressServer (int button_index)
void OnDebugSpawn ()
void OnDebugSpawnEx (DebugSpawnParams params)
override void OnExplosionEffects (Object source, Object directHit, int componentIndex, string surface, vector pos, vector surfNormal, float energyFactor, float explosionFactor, bool isWater, string ammoType)
void OnFreezeStateChangeClient ()
void OnFreezeStateChangeServer ()
void OnHologramBeingPlaced (Man player)
void OnIgnitedTarget (EntityAI target_item)
 Executed on Server when this item ignites some target item.
void OnIgnitedTargetFailed (EntityAI target_item)
 Executed on Server when this item failed to ignite target item.
void OnIgnitedThis (EntityAI fire_source)
 Executed on Server when some item ignited this one.
void OnIgnitedThisFailed (EntityAI fire_source)
 Executed on Server when some item failed to ignite this one.
void OnInventoryInit ()
void OnItemAttachmentSlotChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
void OnItemOverheat (float deltaTime)
void OnItemOverheatEnd ()
 note, that the deltaTime could be reverse-calculated and not totally accurate
void OnItemOverheatStart ()
 override to implement desired overheat behavior on entity
void OnMovedInsideCargo (EntityAI container)
 Called when this item enters cargo of some container.
void OnMovedWithinCargo (EntityAI container)
 Called when this item moves within cargo of some container.
void OnPlacementCancelled (Man player)
void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
void OnPlacementStarted (Man player)
void OnRemovedFromCargo (EntityAI container)
 Called when this item exits cargo of some container.
override void OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx)
bool OnStoreLoad (ParamsReadContext ctx, int version)
 Called when data is loaded from persistence (on server side).
void OnStoreSave (ParamsWriteContext ctx)
 Engine calls this function to collect data from entity to store for persistence (on server side).
void OnVariablesSynchronized ()
 Called on clients after receiving synchronization data from server.
void OnWasAttached (EntityAI parent, int slot_id)
void OnWasDetached (EntityAI parent, int slot_id)
void OnWetChanged (float newVal, float oldVal)
void OnWetLevelChanged (EWetnessLevel newLevel, EWetnessLevel oldLevel)
void PairRemote (notnull EntityAI trigger)
bool PlacementCanBeRotated ()
 Should return false if you want to disable hologram rotation.
proto native void PlaceOnSurfaceRotated (out vector trans[4], vector pos, float dx=0, float dz=0, float fAngle=0, bool align=false)
bool PredictiveDropEntity (notnull EntityAI item)
bool PredictiveTakeEntityAsAttachment (notnull EntityAI item)
 Put item into as attachment.
bool PredictiveTakeEntityAsAttachmentEx (notnull EntityAI item, int slot)
 Returns if item can be added as attachment on specific slot.
bool PredictiveTakeEntityToCargo (notnull EntityAI item)
 Put item into into cargo.
bool PredictiveTakeEntityToCargoEx (notnull EntityAI item, int idx, int row, int col)
 Put item into into cargo on specific cargo location.
bool PredictiveTakeEntityToInventory (FindInventoryLocationType flags, notnull EntityAI item)
 Put item anywhere into this entity (as attachment or into cargo, recursively).
bool PredictiveTakeEntityToTargetAttachment (notnull EntityAI target, notnull EntityAI item)
bool PredictiveTakeEntityToTargetAttachmentEx (notnull EntityAI target, notnull EntityAI item, int slot)
bool PredictiveTakeEntityToTargetCargo (notnull EntityAI target, notnull EntityAI item)
bool PredictiveTakeEntityToTargetCargoEx (notnull CargoBase cargo, notnull EntityAI item, int row, int col)
bool PredictiveTakeEntityToTargetInventory (notnull EntityAI target, FindInventoryLocationType flags, notnull EntityAI item)
bool PredictiveTakeToDst (notnull InventoryLocation src, notnull InventoryLocation dst)
void ProcessInvulnerabilityCheck (string servercfg_param)
override EntityAI ProcessMeleeItemDamage (int mode=0)
void ProcessVariables ()
bool ReadVarsFromCTX (ParamsReadContext ctx, int version=-1)
 Reads from storage CTX.
void RefreshTemperatureAccess (TemperatureData data)
 refreshes access without setting temperature, keeps the source locked in
proto native void RegisterNetSyncVariableBool (string variableName)
proto native void RegisterNetSyncVariableBoolSignal (string variableName)
proto native void RegisterNetSyncVariableFloat (string variableName, float minValue=0, float maxValue=0, int precision=1)
proto native void RegisterNetSyncVariableInt (string variableName, int minValue=0, int maxValue=0)
proto native void RegisterNetSyncVariableObject (string variableName)
void RegisterTransportHit (Transport transport)
void RemoveAgent (int agent_id)
void RemoveAllAgents ()
void RemoveAllAgentsExcept (int agent_to_keep)
void RemoveItemVariable (int variable)
 Removes variable from variable mask, making it appear as though the variable has never been changed from default.
bool ReplaceOnDeath ()
void SaveVariables (ParamsWriteContext ctx)
void SerializeNumericalVars (array< float > floats_out)
bool ServerDropEntity (notnull EntityAI item)
bool ServerTakeEntityAsAttachment (notnull EntityAI item)
bool ServerTakeEntityAsAttachmentEx (notnull EntityAI item, int slot)
bool ServerTakeEntityToCargo (notnull EntityAI item)
bool ServerTakeEntityToInventory (FindInventoryLocationType flags, notnull EntityAI item)
bool ServerTakeEntityToTargetAttachment (notnull EntityAI target, notnull EntityAI item)
bool ServerTakeEntityToTargetAttachmentEx (notnull EntityAI target, notnull EntityAI item, int slot)
bool ServerTakeEntityToTargetCargo (notnull EntityAI target, notnull EntityAI item)
bool ServerTakeEntityToTargetCargoEx (notnull CargoBase cargo, notnull EntityAI item, int row, int col)
bool ServerTakeEntityToTargetInventory (notnull EntityAI target, FindInventoryLocationType flags, notnull EntityAI item)
bool ServerTakeToDst (notnull InventoryLocation src, notnull InventoryLocation dst)
proto native void SetAITargetCallbacks (AbstractAITargetCallbacks callbacks)
void SetAttachmentExclusionMaskGlobal (set< int > values)
void SetAttachmentExclusionMaskSlot (int slotId, set< int > values)
 sets values for specific slot
void SetBayonetAttached (bool pState, int slot_idx=-1)
void SetButtstockAttached (bool pState, int slot_idx=-1)
void SetCleanness (int value, bool allow_client=false)
void SetColor (int r, int g, int b, int a)
void SetFreezeThawProgress (float val)
 0->1 when freezing, 1->0 when thawing
void SetFromProjectile (ProjectileStoppedInfo info)
void SetFrozen (bool frozen)
void SetInvisibleRecursive (bool invisible, EntityAI parent=null, array< int > attachments=null)
void SetItemOverheatProgress (float val, float deltaTime=0)
proto native void SetLifetime (float fLifeTime)
 Set (override) remaining economy lifetime (seconds).
proto native void SetLifetimeMax (float fLifeTime)
 Set (override) max economy lifetime per entity instance (seconds).
void SetLiquidType (int value, bool allow_client=false)
proto native void SetObjectMaterial (int index, string mat_name)
 Change material in hiddenSelections.
proto native void SetObjectTexture (int index, string texture_name)
 Change texture in hiddenSelections.
void SetPersistentPairID (int id)
proto native void SetPilotLight (bool isOn)
void SetPrepareToDelete ()
bool SetQuantity (float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
void SetQuantityNormalized (float value, bool destroy_config=true, bool destroy_forced=false)
void SetQuantityToMinimum ()
proto native void SetRequiredSimulation (bool req)
void SetRoofAbove (bool state)
proto native void SetSimpleHiddenSelectionState (int index, bool state)
 Simple hidden selection state; 0 == hidden.
void SetStoreLoad (bool value)
void SetStoreLoadedQuantity (float value)
proto native void SetSynchDirty ()
 Sets object synchronization dirty flag, which signalize that object wants to be synchronized (take effect only in MP on server side).
void SetTakeable (bool pState)
void SetTemperature (float value, bool allow_client=false)
 not really deprecated, but missing context info from TemperatureData. Default values used instead.
void SetTemperatureDirect (float value, bool allow_client=false)
void SetTemperatureEx (TemperatureData data)
 sets temperature, handles base overheating and freezing state progression logics
void SetTemperatureMax ()
 presumably for debug purposes?
void SetUniversalTemperatureSource (UTemperatureSource uts)
void SetVariableMask (int variable)
void SetWeightDirty ()
void SetWet (float value, bool allow_client=false)
void SetWetMax ()
void ShowAllSelections ()
 Sets all animation values to 0, making them VISIBLE if they are configured in models.cfg in such way. These selections must also be defined in the entity's config class in 'AnimationSources'.
void ShowSelection (string selection_name)
 Shows selection of the given name. Must be configed in config.hpp and models.cfg.
void SoundHardBushFallingPlay ()
void SoundHardTreeFallingPlay ()
void SoundSoftBushFallingPlay ()
void SoundSoftTreeFallingPlay ()
EntityAI SpawnEntityOnGround (string object_name, vector mat[4])
EntityAI SpawnEntityOnGroundPos (string object_name, vector pos)
EntityAI SpawnInInventoryOrGroundPos (string object_name, GameInventory inv, vector pos)
void SplitIntoStackMaxClient (EntityAI destination_entity, int slot_id)
void SplitIntoStackMaxEx (EntityAI destination_entity, int slot_id)
void SwitchItemSelectionTexture (EntityAI item, string slot_name)
void SwitchItemSelectionTextureEx (EItemManipulationContext context, Param par=null)
proto native void SwitchLight (bool isOn)
void TransferVariablesFloat (array< float > float_vars)
bool TranslateSlotFromSelection (string selection_name, out int slot_id)
bool TryDelete ()
void UnpairRemote ()
proto native void UpdateNetSyncVariableFloat (string variableName, float minValue=0, float maxValue=0, int precision=1)
proto native void UpdateNetSyncVariableInt (string variableName, float minValue=0, float maxValue=0)
void UpdateWeight (WeightUpdateType updateType=WeightUpdateType.FULL, float weightAdjustment=0)
bool UseConfigInitTemperature ()
void WriteVarsToCTX (ParamsWriteContext ctx)
 Writes to storage CTX.
bool IsSkinned ()
 Skinning.
void SetAsSkinned ()
bool CanBeSkinnedWith (EntityAI tool)
float GetSkinningBloodInfectionChance (eAgents type)
void CacheSkinningBloodInfectionChance (eAgents type)
ComponentEnergyManager GetCompEM ()
 energy manager ENERGY MANAGER:Documentation: Confluence >> Camping & Squatting >> Electricity >> Energy Manager functionalities Use this to access Energy Manager component on your device. Returns NULL if the given object lacks such component.
bool HasEnergyManager ()
 If this item has class EnergyManager in its config then it returns true. Otherwise returns false.
void OnWorkStart ()
 Energy manager event: Called only once when this device starts doing its work.
void OnWork (float consumed_energy)
 Energy manager event: Called every device update if its supposed to do some work. The update can be every second or at random, depending on its manipulation.
void OnWorkStop ()
 Energy manager event: Called when the device stops working (was switched OFF or ran out of energy).
void OnSwitchOn ()
 Energy manager event: Called when the device is switched on.
void OnSwitchOff ()
 Energy manager event: Called when the device is switched OFF.
void OnIsPlugged (EntityAI source_device)
 Energy manager event: Called when this device is plugged into some energy source.
void OnIsUnplugged (EntityAI last_energy_source)
 Energy manager event: Called when this device is UNPLUGGED from the energy source.
void OnOwnSocketTaken (EntityAI device)
 Energy manager event: When something is plugged into this device.
void OnOwnSocketReleased (EntityAI device)
 Energy manager event: When something is UNPLUGGED from this device.
void OnInitEnergy ()
 Energy manager event: Object's initialization. Energy Manager is fully initialized by this point.
void OnEnergyConsumed ()
 Energy manager event: Called when energy was consumed on this device. ALWAYS CALL super.OnEnergyConsumed() !!!
void OnEnergyAdded ()
 Energy manager event: Called when energy was added on this device. ALWAYS CALL super.OnEnergyAdded() !!!

Static Protected Member Functions

static EWetnessLevel GetWetLevelInternal (float wetness)

Protected Attributes

bool m_CanDisplayWeight
ref DamageZoneMap m_DamageZoneMap
float m_ElapsedSinceLastUpdate
float m_FreezeThawProgress
bool m_Initialized = false
bool m_IsFrozen
bool m_IsFrozenLocal
ref ScriptInvoker m_OnAttachmentReleaseLock
ref ScriptInvoker m_OnAttachmentSetLock
ref ScriptInvoker m_OnHitByInvoker
ref ScriptInvoker m_OnItemAddedIntoCargo
ref ScriptInvoker m_OnItemAttached
ref ScriptInvoker m_OnItemDetached
ref ScriptInvoker m_OnItemFlipped
ref ScriptInvoker m_OnItemMovedInCargo
ref ScriptInvoker m_OnItemRemovedFromCargo
ref ScriptInvoker m_OnKilledInvoker
ref ScriptInvoker m_OnReleaseLock
ref ScriptInvoker m_OnSetLock
ref ScriptInvoker m_OnViewIndexChanged
float m_OverheatProgress
bool m_PendingDelete = false
float m_PreviousRoofTestTime = 0
bool m_RoofAbove = false
ref TemperatureAccessComponent m_TAC
bool m_TransportHitRegistered = false
vector m_TransportHitVelocity
UTemperatureSource m_UniversalTemperatureSource
float m_VarHeatPermeabilityCoef
int m_VariablesMask
float m_VarTemperature
float m_VarTemperatureFreezeThreshold
float m_VarTemperatureFreezeTime
float m_VarTemperatureInit
float m_VarTemperatureMax
float m_VarTemperatureMin
float m_VarTemperatureOverheatTime
float m_VarTemperatureThawThreshold
float m_VarTemperatureThawTime

Private Member Functions

void ~EntityAI ()
void ClearExclusionValueRecursive (set< int > values, int slotId)
Component CreateComponent (int comp_type, string extended_class_name="")
 CreateComponent.
void DeferredInit ()
bool DeleteComponent (int comp_type)
 DeleteComponent.
proto native void EnableHeatHaze (bool pState)
proto native bool EnableLinear (bool pState)
proto native void EnableSmooth (bool enable)
 Enables the smoothing in interpolation.
proto native bool EnableSpecular (bool pState)
void EntityAI ()
 cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
proto native float GetAmbientAlpha ()
proto native vector GetAmbientColorV ()
set< intGetAttachmentExclusionMaskAll (int slotId)
 Slot-specific, children (attachments), and additional (state etc.) masks combined.
set< intGetAttachmentExclusionMaskChildren ()
 Mask value coming from the item's attachments.
set< intGetAttachmentExclusionMaskGlobal ()
 Global mask value, independent of slot-specific behavior!
set< intGetAttachmentExclusionMaskSlot (int slotId)
 Specific slot behavior.
proto native float GetBrightness ()
ECachedEquipmentItemCategory GetCachedEquipmentCategory ()
proto native bool GetCastShadow ()
Component GetComponent (int comp_type, string extended_class_name="")
 GetComponent.
string GetDestructionBehaviour ()
proto native float GetDiffuseAlpha ()
proto native vector GetDiffuseColorV ()
proto native vector GetFlareRelPosition ()
proto native float GetHeatHazePower ()
proto native float GetHeatHazeRadius ()
int GetHideIconMask ()
 should the item's icon be hidden in any part of the inventory?
proto native int GetLightType ()
proto native float GetNearPlane ()
 get near plane of camera
proto native float GetRadius ()
proto native float GetSoundLength ()
proto native float GetSpotLightAngle ()
bool HasComponent (int comp_type)
 IsComponentExist.
bool HasInternalExclusionConflicts (int targetSlot)
 checks if any attachment or item state would interfere with this being attached into a different slot (Headgear -> Mask)
void InitAttachmentExclusionValues ()
void InitDamageZoneDisplayNameMapping ()
 Initialize map of damage zone display names for more optimized retrieval.
void InitDamageZoneMapping ()
 Initializes script-side map of damage zones and their components (named selections in models).
void InitInherentSlotExclusionMap ()
 map stored on instance to better respond to various state changes
void InitItemVariables ()
proto native bool IsActive ()
 Is this camera active?
bool IsDestructionBehaviour ()
proto native bool IsEnabled ()
proto native bool IsFlareVisible ()
bool IsInitialized ()
bool IsRefresherSignalingViable ()
proto native bool IsVisibleDuringDaylight ()
proto native void LookAt (vector targetPos)
 Orientation change by lookAt point.
void MaxLifetimeRefreshCalc ()
 Calculates if the max lifetime is higher than refresher frequency (i.e. gets kept alive by refresher).
void PropagateExclusionValueRecursive (set< int > values, int slotId)
proto native void SetActive (bool active)
 Sets this camera as active.
proto native void SetAmbientAlpha (float pAlpha)
proto native void SetAmbientColor (float pRed, float pGreen, float pBlue)
proto native void SetAmbientColorV (vector pColorVector)
proto native void SetBrightness (float pValue)
proto native void SetCastShadow (bool pState)
proto native void SetDiffuseAlpha (float pAlpha)
proto native void SetDiffuseColor (float pRed, float pGreen, float pBlue)
proto native void SetDiffuseColorV (vector pColorVector)
proto native void SetEnabled (bool pState)
proto native void SetFlareRelPosition (vector pPosition)
proto native void SetFlareVisible (bool pState)
proto native void SetFocus (float distance, float blur)
 Depth of Field settings.
proto native void SetFOV (float fov)
 Field of View settings.
proto native void SetHeatHazePower (float pValue)
proto native void SetHeatHazeRadius (float pValue)
proto native void SetLightType (int pType)
proto native void SetNearPlane (float nearPlane)
 set near plane of camera
proto native void SetPulseCoef (float pState)
proto native void SetRadius (float pValue)
proto native void SetSpotLightAngle (float pValue)
proto native void SetVisibleDuringDaylight (bool pState)
proto native void StopInterpolation ()
 Performs cleanup.

Static Private Member Functions

static proto native Camera GetCurrentCamera ()
 Returns active Camera instance (note: player's camera is not Camera instance - thus it return null).
static proto native float GetCurrentFOV ()
 Returns FOV of current camera object.
static proto native void InterpolateTo (Camera targetCamera, float time, int type)
 Interpolation between camera instances (current camera becomes targetCamera at the end of interpolation).
static proto native bool IsInterpolationComplete ()
 Checks if the current interpolation reached it's end.

Private Attributes

const int DEAD_REPLACE_DELAY = 250
const int DELETE_CHECK_DELAY = 100
ref set< intm_AttachmentExclusionMaskChildren
ref set< intm_AttachmentExclusionMaskGlobal
ref map< int, ref set< int > > m_AttachmentExclusionSlotMap
ref array< EntityAIm_AttachmentsWithAttachments
ref array< EntityAIm_AttachmentsWithCargo
ref map< eAgents, floatm_BloodInfectionChanceCached
ref ComponentsBank m_ComponentsBank
float m_ConfigWeight = ConfigGetInt("weight")
ref map< int, stringm_DamageDisplayNameMap = new map<int, string>
bool m_DeathSyncSent
ref DestructionEffectBase m_DestructionBehaviourObj
ComponentEnergyManager m_EM
ref HiddenSelectionsData m_HiddenSelectionsData
bool m_KilledByHeadshot
ref KillerData m_KillerData
float m_LastUpdatedTime
ref InventoryLocation m_OldLocation
bool m_PreparedToDelete = false
bool m_RefresherViable = false
float m_Weight
bool m_WeightDirty = 1
float m_WeightEx
int m_ViewIndex = 0
 view index Item view index is used to setup which camera will be used in item view widget in inventory. With this index you can setup various camera angles for different item states (e.g. fireplace, weapons).
void SetViewIndex (int index)
 Sets item preview index.
int GetViewIndex ()
 Returns item preview index !!!! IF OVERRIDING with more dynamic events call GetOnViewIndexChanged() in constructor on client !!!!

Detailed Description

Definition at line 1 of file camera.c.

Constructor & Destructor Documentation

◆ ~EntityAI()

void ~EntityAI ( )
inlineprivate

Definition at line 250 of file entityai.c.

Member Function Documentation

◆ AddSingleExclusionValueGlobal()

void AddSingleExclusionValueGlobal ( EAttExclusions value)
inlineprotected

to help with item staging exclusions

Definition at line 4440 of file entityai.c.

References m_AttachmentExclusionMaskGlobal.

◆ AddTemperature()

void AddTemperature ( float value)
inlineprotected

Definition at line 2335 of file entityai.c.

References GetTemperature(), and SetTemperature().

◆ AddWet()

void AddWet ( float value)
protected

◆ AdjustExclusionAccessCondition()

void AdjustExclusionAccessCondition ( int occupiedSlot,
int testedSlot,
set< int > value,
inout set< int > adjustedValue )
inlineprotected

if we want to filter

Definition at line 4627 of file entityai.c.

Referenced by AdjustExclusionAccessPropagation(), and CheckExclusionAccessCondition().

◆ AdjustExclusionAccessPropagation()

void AdjustExclusionAccessPropagation ( int occupiedSlot,
int testedSlot,
set< int > value,
inout set< int > adjustedValue )
inlineprotected

if we want to filter propagation specifically; DO NOT override unless you know what you are doing.

Definition at line 4649 of file entityai.c.

References AdjustExclusionAccessCondition().

Referenced by CheckExclusionAccessPropagation().

◆ AfterStoreLoad()

void AfterStoreLoad ( )
inlineprotected

Called when entity is being loaded from DB or Storage (after all children loaded).

Definition at line 1391 of file entityai.c.

◆ AreChildrenAccessible()

bool AreChildrenAccessible ( )
inlineprotected

◆ AttemptDestructionBehaviour()

void AttemptDestructionBehaviour ( int oldLevel,
int newLevel,
string zone )
inlineprotected

◆ CacheSkinningBloodInfectionChance()

void CacheSkinningBloodInfectionChance ( eAgents type)
inlineprotected

◆ CanAssignAttachmentsToQuickbar()

bool CanAssignAttachmentsToQuickbar ( )
inlineprotected
Returns
true if attached item can be assigned to quickbar safely

Definition at line 1800 of file entityai.c.

◆ CanAssignToQuickbar()

bool CanAssignToQuickbar ( )
inlineprotected
Returns
true if item can be assigned to quickbar safely

Definition at line 1792 of file entityai.c.

◆ CanBeActionTarget()

override bool CanBeActionTarget ( )
inlineprotected

Definition at line 812 of file entityai.c.

References IsSetForDeletion().

◆ CanBeBackstabbed()

bool CanBeBackstabbed ( )
inlineprotected

Definition at line 761 of file entityai.c.

◆ CanBeCombined()

bool CanBeCombined ( EntityAI other_item,
bool reservation_check = true,
bool stack_max_limit = false )
inlineprotected

Definition at line 1530 of file entityai.c.

References EntityAI().

◆ CanBeFSwaped()

bool CanBeFSwaped ( )
inlineprotected

Definition at line 1517 of file entityai.c.

◆ CanBeIgnitedBy()

bool CanBeIgnitedBy ( EntityAI igniter = NULL)
inlineprotected

Override this method so it checks whenever this item can be ignited right now or not. Evaluated on Server and Client.

Definition at line 546 of file entityai.c.

References EntityAI().

◆ CanBePlaced()

bool CanBePlaced ( Man player,
vector position )
inlineprotected

Definition at line 630 of file entityai.c.

◆ CanBePlacedFailMessage()

string CanBePlacedFailMessage ( Man player,
vector position )
inlineprotected

Method which returns message why object can't be placed at given position.

Definition at line 636 of file entityai.c.

◆ CanBeSkinnedWith()

bool CanBeSkinnedWith ( EntityAI tool)
inlineprotected

Definition at line 508 of file entityai.c.

References EntityAI(), and IsSkinned().

◆ CanBeSplit()

bool CanBeSplit ( )
inlineprotected

returns current splitability

Definition at line 672 of file entityai.c.

◆ CanBeTargetedByAI()

bool CanBeTargetedByAI ( EntityAI ai)
inlineprotected

Definition at line 749 of file entityai.c.

References dBodyIsActive(), EntityAI(), and EntityAI::IsMan().

◆ CanCombineAttachment()

bool CanCombineAttachment ( notnull EntityAI e,
int slot,
bool stack_max_limit = false )
inlineprotected

Definition at line 1522 of file entityai.c.

References EntityAI(), and GetInventory().

◆ CanDetachAttachment()

bool CanDetachAttachment ( EntityAI parent)
inlineprotected

Definition at line 1512 of file entityai.c.

References EntityAI().

◆ CanDisplayAnyAttachmentSlot()

bool CanDisplayAnyAttachmentSlot ( )
inlineprotected
Returns
true if any attachment slot can be shown

Definition at line 1755 of file entityai.c.

References CanDisplayAttachmentSlot(), GameInventory::GetAttachmentSlotId(), GameInventory::GetAttachmentSlotsCount(), and GetInventory().

◆ CanDisplayAttachmentCategory()

bool CanDisplayAttachmentCategory ( string category_name)
inlineprotected

Definition at line 1776 of file entityai.c.

◆ CanDisplayAttachmentSlot() [1/2]

bool CanDisplayAttachmentSlot ( int slot_id)
inlineprotected

Definition at line 1747 of file entityai.c.

References InventorySlots::GetShowForSlotId().

◆ CanDisplayAttachmentSlot() [2/2]

bool CanDisplayAttachmentSlot ( string slot_name)
inlineprotected

◆ CanDisplayCargo()

bool CanDisplayCargo ( )
inlineprotected
Returns
true if cargo can be displayed in UI (inventory)

Definition at line 1784 of file entityai.c.

References GetInventory().

◆ CanDisplayWeight()

bool CanDisplayWeight ( )
inlineprotected

'displayWeight' in item config

Definition at line 473 of file entityai.c.

References m_CanDisplayWeight.

◆ CanDropEntity()

bool CanDropEntity ( notnull EntityAI item)
inlineprotected

Returns if item can be dropped out from this entity.

Definition at line 2132 of file entityai.c.

References EntityAI().

◆ CanFreeze()

◆ CanHaveTemperature()

bool CanHaveTemperature ( )
inlineprotected

returns true used on selected items that have a temperature effect and can processes temperature changes

Definition at line 3844 of file entityai.c.

References GetTemperatureMax(), and GetTemperatureMin().

◆ CanIgniteItem()

bool CanIgniteItem ( EntityAI ignite_target = NULL)
inlineprotected

Override this method and check if the given item can be ignited right now by this one. Evaluated on Server and Client.

Definition at line 552 of file entityai.c.

References EntityAI().

◆ CanItemOverheat()

bool CanItemOverheat ( )
inlineprotected

Overheat time CAN be 0, GameConstants.TEMPERATURE_TIME_OVERHEAT_MIN is ignored if so.

Definition at line 2648 of file entityai.c.

References GetItemOverheatTime().

◆ CanLoadAttachment()

bool CanLoadAttachment ( EntityAI attachment)
inlineprotected

Definition at line 1456 of file entityai.c.

References EntityAI().

◆ CanLoadItemIntoCargo()

bool CanLoadItemIntoCargo ( EntityAI item)
inlineprotected

Definition at line 1568 of file entityai.c.

References EntityAI().

◆ CanPutAsAttachment()

bool CanPutAsAttachment ( EntityAI parent)
inlineprotected

Definition at line 1468 of file entityai.c.

References EntityAI(), and IsHologram().

◆ CanPutInCargo()

bool CanPutInCargo ( EntityAI parent)
inlineprotected

Definition at line 1579 of file entityai.c.

References EntityAI(), and IsHologram().

◆ CanPutIntoHands()

bool CanPutIntoHands ( EntityAI parent)
inlineprotected

Definition at line 1706 of file entityai.c.

References EntityAI(), and IsHologram().

◆ CanReceiveAttachment()

bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected

Definition at line 1444 of file entityai.c.

References CheckAttachmentReceiveExclusion(), and EntityAI().

◆ CanReceiveItemIntoCargo()

bool CanReceiveItemIntoCargo ( EntityAI item)
inlineprotected

◆ CanReceiveItemIntoHands()

bool CanReceiveItemIntoHands ( EntityAI item_to_hands)
inlineprotected

Definition at line 1652 of file entityai.c.

References EntityAI().

◆ CanReleaseAttachment()

◆ CanReleaseCargo()

bool CanReleaseCargo ( EntityAI cargo)
inlineprotected

Definition at line 1608 of file entityai.c.

References EntityAI().

◆ CanReleaseFromHands()

bool CanReleaseFromHands ( EntityAI handheld)
inlineprotected

Definition at line 1717 of file entityai.c.

References EntityAI().

◆ CanRemoveFromCargo()

bool CanRemoveFromCargo ( EntityAI parent)
inlineprotected

Definition at line 1619 of file entityai.c.

References EntityAI().

◆ CanRemoveFromHands()

bool CanRemoveFromHands ( EntityAI parent)
inlineprotected

Definition at line 1728 of file entityai.c.

References EntityAI().

◆ CanSaveItemInHands()

bool CanSaveItemInHands ( EntityAI item_in_hands)
inlineprotected

Definition at line 1695 of file entityai.c.

References EntityAI().

◆ CanSwapEntities()

bool CanSwapEntities ( EntityAI otherItem,
InventoryLocation otherDestination,
InventoryLocation destination )
inlineprotected

Definition at line 2173 of file entityai.c.

References EntityAI().

◆ CanSwapItemInCargo()

bool CanSwapItemInCargo ( EntityAI child_entity,
EntityAI new_entity )
inlineprotected

◆ CanSwitchDuringAttach()

bool CanSwitchDuringAttach ( EntityAI parent)
inlineprotected

Definition at line 1474 of file entityai.c.

References EntityAI().

◆ ChangeIntoOnAttach()

string ChangeIntoOnAttach ( string slot)
inlineprotected

Definition at line 3840 of file entityai.c.

◆ ChangeIntoOnDetach()

string ChangeIntoOnDetach ( )
inlineprotected

Definition at line 3841 of file entityai.c.

◆ CheckAttachmentReceiveExclusion()

bool CheckAttachmentReceiveExclusion ( EntityAI attachment,
int slotId )
inlineprotected

checks specifically for att. exclusion conflicts before att. receive

Definition at line 4655 of file entityai.c.

References EntityAI(), GetHierarchyRoot(), GetInventory(), InventoryLocation::GetSlot(), InventoryLocation::GetType(), and IsExclusionFlagPresentRecursive().

Referenced by CanReceiveAttachment().

◆ CheckExclusionAccessCondition()

bool CheckExclusionAccessCondition ( int occupiedSlot,
int targetSlot,
set< int > value,
inout set< int > adjustedValue )
inlineprotected

Definition at line 4605 of file entityai.c.

References AdjustExclusionAccessCondition().

Referenced by IsExclusionFlagPresentRecursive().

◆ CheckExclusionAccessPropagation()

bool CheckExclusionAccessPropagation ( int occupiedSlot,
int targetSlot,
set< int > value,
inout set< int > adjustedValue )
inlineprotected

special propagation contition

Definition at line 4633 of file entityai.c.

References AdjustExclusionAccessPropagation(), and InventorySlots::INVALID.

Referenced by ClearExclusionValueRecursive(), and PropagateExclusionValueRecursive().

◆ CheckForDestroy()

void CheckForDestroy ( )
inlineprotected

◆ CheckForRoofLimited()

void CheckForRoofLimited ( float timeTresholdMS = 3000)
protected

Roof check for entity, limited by time (anti-spam solution).

◆ ClearExclusionValueRecursive()

void ClearExclusionValueRecursive ( set< int > values,
int slotId )
inlineprivate

◆ ClearInventory()

void ClearInventory ( )
protected

◆ ClearSingleExclusionValueGlobal()

void ClearSingleExclusionValueGlobal ( EAttExclusions value)
inlineprotected

to help with item staging exclusions

Definition at line 4447 of file entityai.c.

References m_AttachmentExclusionMaskGlobal.

◆ ClearWeightDirty()

void ClearWeightDirty ( )
inlineprotected

Definition at line 3553 of file entityai.c.

References m_WeightDirty.

Referenced by GetWeightEx().

◆ CombineItemsClient()

void CombineItemsClient ( EntityAI entity2,
bool use_stack_max = false )
inlineprotected

Definition at line 1539 of file entityai.c.

References EntityAI().

◆ CombineItemsEx()

void CombineItemsEx ( EntityAI entity2,
bool use_stack_max = false )
protected

References EntityAI().

◆ ConvertNonlethalDamage() [1/2]

float ConvertNonlethalDamage ( float damage)
inlineprotected

DEPRECATED - for legacy purposes.

Definition at line 457 of file entityai.c.

◆ ConvertNonlethalDamage() [2/2]

float ConvertNonlethalDamage ( float damage,
DamageType damageType )
inlineprotected

Definition at line 451 of file entityai.c.

◆ CreateAndInitInventory()

proto native void CreateAndInitInventory ( )
protected

◆ CreateComponent()

Component CreateComponent ( int comp_type,
string extended_class_name = "" )
inlineprivate

CreateComponent.

Definition at line 316 of file entityai.c.

References GetComponent().

Referenced by EntityAI().

◆ DeathUpdate()

void DeathUpdate ( )
inlineprotected

◆ DebugBBoxDelete()

void DebugBBoxDelete ( )
inlineprotected

Definition at line 3335 of file entityai.c.

References COMP_TYPE_ETITY_DEBUG, and GetComponent().

◆ DebugBBoxDraw()

Shape DebugBBoxDraw ( )
inlineprotected

Definition at line 3325 of file entityai.c.

References COMP_TYPE_ETITY_DEBUG, GetComponent(), and Shape.

◆ DebugBBoxSetColor()

void DebugBBoxSetColor ( int color)
inlineprotected

Definition at line 3330 of file entityai.c.

References COMP_TYPE_ETITY_DEBUG, and GetComponent().

◆ DebugDirectionDelete()

void DebugDirectionDelete ( )
inlineprotected

Definition at line 3350 of file entityai.c.

References COMP_TYPE_ETITY_DEBUG, and GetComponent().

◆ DebugDirectionDraw()

Shape DebugDirectionDraw ( float distance = 1)
inlineprotected

Definition at line 3340 of file entityai.c.

References COMP_TYPE_ETITY_DEBUG, GetComponent(), and Shape.

◆ DebugDirectionSetColor()

void DebugDirectionSetColor ( int color)
inlineprotected

Definition at line 3345 of file entityai.c.

References COMP_TYPE_ETITY_DEBUG, and GetComponent().

◆ DeferredInit()

void DeferredInit ( )
inlineprivate

Definition at line 296 of file entityai.c.

References m_Initialized.

Referenced by EntityAI().

◆ Delete()

override void Delete ( )
inlineprotected

Delete this object in next frame.

Returns
void
ItemBase item = g_Game.GetPlayer().CreateInInventory("GrenadeRGD5");
item.Delete();
DayZGame g_Game
Definition dayzgame.c:3942

Definition at line 774 of file entityai.c.

References m_PendingDelete.

Referenced by DeleteSafe().

◆ DeleteComponent()

bool DeleteComponent ( int comp_type)
inlineprivate

DeleteComponent.

Definition at line 331 of file entityai.c.

References m_ComponentsBank.

◆ DeleteOnClient()

void DeleteOnClient ( )
inlineprotected

Definition at line 780 of file entityai.c.

References CALL_CATEGORY_SYSTEM, and g_Game.

◆ DeleteSafe()

void DeleteSafe ( )
inlineprotected

Definition at line 786 of file entityai.c.

References Delete(), g_Game, and GetHierarchyRootPlayer().

Referenced by DeathUpdate(), DeleteSave(), and TryDelete().

◆ DeleteSave()

void DeleteSave ( )
inlineprotected

Definition at line 802 of file entityai.c.

References DeleteSafe().

◆ DeSerializeNumericalVars()

void DeSerializeNumericalVars ( array< float > floats)
inlineprotected

◆ DestroyInventory()

proto native void DestroyInventory ( )
protected

◆ DisassembleOnLastDetach()

bool DisassembleOnLastDetach ( )
inlineprotected

Definition at line 566 of file entityai.c.

◆ DoPlacingHeightCheck()

bool DoPlacingHeightCheck ( )
inlineprotected

Do the roof check when placing this?

Definition at line 642 of file entityai.c.

◆ EEAmmoChanged()

void EEAmmoChanged ( )
inlineprotected

Definition at line 1022 of file entityai.c.

References SetWeightDirty().

◆ EECargoIn()

void EECargoIn ( EntityAI item)
inlineprotected

Definition at line 1208 of file entityai.c.

References EntityAI(), m_OnItemAddedIntoCargo, and SetWeightDirty().

◆ EECargoMove()

void EECargoMove ( EntityAI item)
inlineprotected

Definition at line 1234 of file entityai.c.

References EntityAI(), and m_OnItemMovedInCargo.

◆ EECargoOut()

void EECargoOut ( EntityAI item)
inlineprotected

Definition at line 1221 of file entityai.c.

References EntityAI(), m_OnItemRemovedFromCargo, and SetWeightDirty().

◆ EEDelete()

void EEDelete ( EntityAI parent)
inlineprotected

Called right before object deleting.

Definition at line 934 of file entityai.c.

References EntityAI(), GetInventory(), m_EM, and m_PendingDelete.

◆ EEHealthLevelChanged()

void EEHealthLevelChanged ( int oldLevel,
int newLevel,
string zone )
inlineprotected

◆ EEHitBy()

void EEHitBy ( TotalDamageResult damageResult,
int damageType,
EntityAI source,
int component,
string dmgZone,
string ammo,
vector modelPos,
float speedCoef )
inlineprotected

Definition at line 1117 of file entityai.c.

References component, EntityAI(), and m_OnHitByInvoker.

◆ EEHitByRemote()

void EEHitByRemote ( int damageType,
EntityAI source,
int component,
string dmgZone,
string ammo,
vector modelPos )
inlineprotected

Definition at line 1127 of file entityai.c.

References component, and EntityAI().

◆ EEInit()

◆ EEInventoryIn()

void EEInventoryIn ( Man newParentMan,
EntityAI diz,
EntityAI newParent )
protected

References EntityAI().

◆ EEInventoryOut()

void EEInventoryOut ( Man oldParentMan,
EntityAI diz,
EntityAI newParent )
inlineprotected

◆ EEItemAttached()

◆ EEItemDetached()

◆ EEItemLocationChanged()

void EEItemLocationChanged ( notnull InventoryLocation oldLoc,
notnull InventoryLocation newLoc )
inlineprotected

◆ EEKilled()

void EEKilled ( Object killer)
inlineprotected

called on server when the entity is killed

Definition at line 1078 of file entityai.c.

References CALL_CATEGORY_SYSTEM, DEAD_REPLACE_DELAY, DeathUpdate(), g_Game, m_OnKilledInvoker, Object, and ReplaceOnDeath().

◆ EEOnAfterLoad()

void EEOnAfterLoad ( )
inlineprotected

Called when entity is part of "connected system" and being restored after load.

Definition at line 1353 of file entityai.c.

References EntityAI(), g_Game, GetInventory(), and m_EM.

◆ EEOnCECreate()

void EEOnCECreate ( )
inlineprotected

Called when entity is being created as new by CE/ Debug.

Definition at line 1386 of file entityai.c.

◆ EEParentedFrom()

void EEParentedFrom ( EntityAI parent)
protected

Called from 'IEntity.RemoveChild' or 'IEntity.AddChild' when hierarchy changes.

References EntityAI().

◆ EEParentedTo()

void EEParentedTo ( EntityAI parent)
protected

Called from 'IEntity.AddChild'.

References EntityAI().

◆ EnableHeatHaze()

proto native void EnableHeatHaze ( bool pState)
private

◆ EnableLinear()

proto native bool EnableLinear ( bool pState)
private

◆ EnableSmooth()

proto native void EnableSmooth ( bool enable)
private

Enables the smoothing in interpolation.

◆ EnableSpecular()

proto native bool EnableSpecular ( bool pState)
private

◆ EntityAI()

void EntityAI ( )
inlineprivate

cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)

Definition at line 209 of file entityai.c.

References CALL_CATEGORY_SYSTEM, COMP_TYPE_ENERGY_MANAGER, CreateComponent(), DeferredInit(), g_Game, GetType(), InitDamageZoneDisplayNameMapping(), InitDamageZoneMapping(), InitItemVariables(), m_AttachmentsWithAttachments, m_AttachmentsWithCargo, m_BloodInfectionChanceCached, m_CanDisplayWeight, m_ElapsedSinceLastUpdate, m_HiddenSelectionsData, m_LastUpdatedTime, RegisterNetSyncVariableBool(), RegisterNetSyncVariableFloat(), and RegisterNetSyncVariableInt().

Referenced by AreChildrenAccessible(), CanBeCombined(), CanBeIgnitedBy(), CanBeSkinnedWith(), CanBeTargetedByAI(), CanCombineAttachment(), CanDetachAttachment(), CanDropEntity(), CanIgniteItem(), CanLoadAttachment(), CanLoadItemIntoCargo(), CanPutAsAttachment(), CanPutInCargo(), CanPutIntoHands(), CanReceiveAttachment(), CanReceiveItemIntoCargo(), CanReceiveItemIntoHands(), CanReleaseAttachment(), CanReleaseCargo(), CanReleaseFromHands(), CanRemoveFromCargo(), CanRemoveFromHands(), CanSaveItemInHands(), CanSwapEntities(), CanSwapItemInCargo(), CanSwitchDuringAttach(), CheckAttachmentReceiveExclusion(), ClearExclusionValueRecursive(), CombineItemsClient(), CombineItemsEx(), DeathUpdate(), EECargoIn(), EECargoMove(), EECargoOut(), EEDelete(), EEHealthLevelChanged(), EEHitBy(), EEHitByRemote(), EEInit(), EEInventoryIn(), EEInventoryOut(), EEItemAttached(), EEItemDetached(), EEItemLocationChanged(), EEOnAfterLoad(), EEParentedFrom(), EEParentedTo(), FindAttachmentBySlotName(), GetAttachmentByConfigTypeName(), GetAttachmentByType(), GetHierarchyParent(), GetHierarchyRoot(), GetPairDevice(), InitTemperature(), IsExclusionFlagPresentRecursive(), IsLockedInSlot(), IsTargetIgnitionSuccessful(), IsThisIgnitionSuccessful(), LocalDropEntity(), LocalTakeEntityAsAttachment(), LocalTakeEntityAsAttachmentEx(), LocalTakeEntityToCargo(), LocalTakeEntityToCargoEx(), LocalTakeEntityToInventory(), LocalTakeEntityToTargetAttachment(), LocalTakeEntityToTargetAttachmentEx(), LocalTakeEntityToTargetCargo(), LocalTakeEntityToTargetCargoEx(), LocalTakeEntityToTargetInventory(), OnAttachmentRuined(), OnIgnitedTarget(), OnIgnitedTargetFailed(), OnIgnitedThis(), OnIgnitedThisFailed(), OnIsPlugged(), OnIsUnplugged(), OnItemLocationChanged(), OnMovedInsideCargo(), OnMovedWithinCargo(), OnOwnSocketReleased(), OnOwnSocketTaken(), OnRemovedFromCargo(), OnStoreSave(), OnVariablesSynchronized(), OnWasAttached(), OnWasDetached(), PairRemote(), PredictiveDropEntity(), PredictiveTakeEntityAsAttachment(), PredictiveTakeEntityAsAttachmentEx(), PredictiveTakeEntityToCargo(), PredictiveTakeEntityToCargoEx(), PredictiveTakeEntityToInventory(), PredictiveTakeEntityToTargetAttachment(), PredictiveTakeEntityToTargetAttachmentEx(), PredictiveTakeEntityToTargetCargo(), PredictiveTakeEntityToTargetCargoEx(), PredictiveTakeEntityToTargetInventory(), ProcessMeleeItemDamage(), ProcessVariables(), PropagateExclusionValueRecursive(), ServerDropEntity(), ServerTakeEntityAsAttachment(), ServerTakeEntityAsAttachmentEx(), ServerTakeEntityToCargo(), ServerTakeEntityToInventory(), ServerTakeEntityToTargetAttachment(), ServerTakeEntityToTargetAttachmentEx(), ServerTakeEntityToTargetCargo(), ServerTakeEntityToTargetCargoEx(), ServerTakeEntityToTargetInventory(), SetInvisibleRecursive(), SpawnEntityOnGround(), SpawnEntityOnGroundPos(), SpawnInInventoryOrGroundPos(), SplitIntoStackMaxClient(), SplitIntoStackMaxEx(), and SwitchItemSelectionTexture().

◆ EOnFrame()

override void EOnFrame ( IEntity other,
float timeSlice )
inlineprotected

Definition at line 3282 of file entityai.c.

References COMP_TYPE_COUNT, and m_ComponentsBank.

◆ ExecuteActionsConnectedToValve()

void ExecuteActionsConnectedToValve ( int pValveIndex)
protected

◆ FindAttachmentBySlotName()

EntityAI FindAttachmentBySlotName ( string slot_name)
inlineprotected

◆ GetAgents()

int GetAgents ( )
inlineprotected

Definition at line 711 of file entityai.c.

◆ GetAmbientAlpha()

proto native float GetAmbientAlpha ( )
private

◆ GetAmbientColorV()

proto native vector GetAmbientColorV ( )
private

◆ GetArrowManager()

ArrowManagerBase GetArrowManager ( )
inlineprotected

Definition at line 4699 of file entityai.c.

◆ GetAttachmentByConfigTypeName()

EntityAI GetAttachmentByConfigTypeName ( string type)
inlineprotected

Get attached entity by config type name.

Definition at line 2117 of file entityai.c.

References GameInventory::AttachmentCount(), EntityAI(), GameInventory::GetAttachmentFromIndex(), and GetInventory().

◆ GetAttachmentByType()

EntityAI GetAttachmentByType ( typename type )
inlineprotected

Get attached entity by type.

Definition at line 2101 of file entityai.c.

References GameInventory::AttachmentCount(), EntityAI(), GameInventory::GetAttachmentFromIndex(), and GetInventory().

◆ GetAttachmentExclusionInitSlotValue()

set< int > GetAttachmentExclusionInitSlotValue ( int slotId)
inlineprotected

override this to modify slot behavior for specific items, or just set 'm_AttachmentExclusionMaskGlobal' value for simple items

Definition at line 4251 of file entityai.c.

Referenced by InitInherentSlotExclusionMap(), and InitLegacySlotExclusionValuesImplicit().

◆ GetAttachmentExclusionMaskAll()

set< int > GetAttachmentExclusionMaskAll ( int slotId)
inlineprivate

Slot-specific, children (attachments), and additional (state etc.) masks combined.

Definition at line 4510 of file entityai.c.

References GetAttachmentExclusionMaskSlot(), m_AttachmentExclusionMaskChildren, and m_AttachmentExclusionMaskGlobal.

Referenced by IsExclusionFlagPresent().

◆ GetAttachmentExclusionMaskChildren()

set< int > GetAttachmentExclusionMaskChildren ( )
inlineprivate

Mask value coming from the item's attachments.

Definition at line 4535 of file entityai.c.

References m_AttachmentExclusionMaskChildren.

Referenced by HasInternalExclusionConflicts().

◆ GetAttachmentExclusionMaskGlobal()

set< int > GetAttachmentExclusionMaskGlobal ( )
inlineprivate

Global mask value, independent of slot-specific behavior!

Definition at line 4529 of file entityai.c.

References m_AttachmentExclusionMaskGlobal.

Referenced by HasInternalExclusionConflicts().

◆ GetAttachmentExclusionMaskSlot()

set< int > GetAttachmentExclusionMaskSlot ( int slotId)
inlineprivate

◆ GetAttachmentSoundType()

string GetAttachmentSoundType ( )
inlineprotected

returns sound type of attachment (used for clothing and weapons on DayZPlayerImplement, paired with Anim*Type enum from DayZAnimEvents)

Definition at line 3817 of file entityai.c.

◆ GetAttachmentsWithAttachments()

array< EntityAI > GetAttachmentsWithAttachments ( )
inlineprotected

Definition at line 692 of file entityai.c.

References m_AttachmentsWithAttachments.

◆ GetAttachmentsWithCargo()

array< EntityAI > GetAttachmentsWithCargo ( )
inlineprotected

Definition at line 687 of file entityai.c.

References m_AttachmentsWithCargo.

◆ GetBayonetAttachmentIdx()

int GetBayonetAttachmentIdx ( )
inlineprotected

Definition at line 4006 of file entityai.c.

◆ GetBrightness()

proto native float GetBrightness ( )
private

◆ GetButtstockAttachmentIdx()

int GetButtstockAttachmentIdx ( )
inlineprotected

Definition at line 4010 of file entityai.c.

◆ GetCachedEquipmentCategory()

ECachedEquipmentItemCategory GetCachedEquipmentCategory ( )
inlineprivate

Definition at line 336 of file entityai.c.

◆ GetCastShadow()

proto native bool GetCastShadow ( )
private

◆ GetCleanness()

int GetCleanness ( )
inlineprotected

Definition at line 2761 of file entityai.c.

◆ GetColor()

void GetColor ( out int r,
out int g,
out int b,
out int a )
inlineprotected

Definition at line 2736 of file entityai.c.

◆ GetCompBS()

ComponentBodyStaging GetCompBS ( )
inlineprotected

Use this to access Body Staging component on dead character. Returns NULL if the given object lacks such component.

Definition at line 3400 of file entityai.c.

References COMP_TYPE_BODY_STAGING, GetComponent(), and HasComponent().

Referenced by IsSkinned(), OnRPC(), and SetAsSkinned().

◆ GetCompEM()

ComponentEnergyManager GetCompEM ( )
inlineprotected

energy manager ENERGY MANAGER:Documentation: Confluence >> Camping & Squatting >> Electricity >> Energy Manager functionalities Use this to access Energy Manager component on your device. Returns NULL if the given object lacks such component.

Definition at line 3410 of file entityai.c.

References COMP_TYPE_ENERGY_MANAGER, GetComponent(), HasComponent(), and m_EM.

Referenced by GetDebugText().

◆ GetComponent()

Component GetComponent ( int comp_type,
string extended_class_name = "" )
inlineprivate

◆ GetConfigWeightModified()

float GetConfigWeightModified ( )
inlineprotected

Definition at line 3530 of file entityai.c.

References GetWetWeightModifier(), and m_ConfigWeight.

◆ GetCookingTargetTemperature()

bool GetCookingTargetTemperature ( out float temperature)
inlineprotected

specifically for cooking system, to get heat source target temperatures

Definition at line 2478 of file entityai.c.

◆ GetCurrentCamera()

proto native Camera GetCurrentCamera ( )
staticprivate

Returns active Camera instance (note: player's camera is not Camera instance - thus it return null).

Returns
Camera active Camera instance

◆ GetCurrentFOV()

proto native float GetCurrentFOV ( )
staticprivate

Returns FOV of current camera object.

Returns
float FOV of current camera object

◆ GetDeadItemName()

string GetDeadItemName ( )
inlineprotected

Definition at line 1094 of file entityai.c.

Referenced by DeathUpdate().

◆ GetDebugActions()

void GetDebugActions ( out TSelectableActionInfoArrayEx outputList)
inlineprotected

Definition at line 3643 of file entityai.c.

References SAT_DEBUG_ACTION.

◆ GetDebugButtonNames()

void GetDebugButtonNames ( out string button1,
out string button2,
out string button3,
out string button4 )
inlineprotected

Definition at line 3320 of file entityai.c.

◆ GetDebugText()

◆ GetDefaultHitComponent()

string GetDefaultHitComponent ( )
inlineprotected

returns default hit component for the Entity (overriden for each Type - PlayerBase, DayZInfected, DayZAnimal, etc.)

returns Global so it is obvious you need to configure that properly on entity

Definition at line 3784 of file entityai.c.

References GetType(), and Debug::LogError().

◆ GetDefaultHitPosition()

vector GetDefaultHitPosition ( )
inlineprotected

Definition at line 3804 of file entityai.c.

References GetType(), Debug::LogError(), and vector::Zero.

◆ GetDefaultHitPositionComponent()

string GetDefaultHitPositionComponent ( )
inlineprotected

returns default hit position component name for the Entity (overriden by type if needed - used mainly as support for impact particles)

Definition at line 3792 of file entityai.c.

References GetType(), and Debug::LogError().

◆ GetDestructionBehaviour()

string GetDestructionBehaviour ( )
inlineprivate

Definition at line 341 of file entityai.c.

◆ GetDiffuseAlpha()

proto native float GetDiffuseAlpha ( )
private

◆ GetDiffuseColorV()

proto native vector GetDiffuseColorV ( )
private

◆ GetEconomyProfile()

proto native CEItemProfile GetEconomyProfile ( )
protected

Get economy item profile (if assigned, otherwise null).

Referenced by GetDebugText(), and MaxLifetimeRefreshCalc().

◆ GetEntityDamageDisplayNameMap()

map< int, string > GetEntityDamageDisplayNameMap ( )
inlineprotected

Definition at line 467 of file entityai.c.

References m_DamageDisplayNameMap.

◆ GetEntityDamageZoneMap()

DamageZoneMap GetEntityDamageZoneMap ( )
inlineprotected

Definition at line 462 of file entityai.c.

References m_DamageZoneMap.

◆ GetFlareRelPosition()

proto native vector GetFlareRelPosition ( )
private

◆ GetFreezeThawProgress()

float GetFreezeThawProgress ( )
inlineprotected

on server only

Definition at line 2513 of file entityai.c.

References m_FreezeThawProgress.

Referenced by SerializeNumericalVars().

◆ GetHeatHazePower()

proto native float GetHeatHazePower ( )
private

◆ GetHeatHazeRadius()

proto native float GetHeatHazeRadius ( )
private

◆ GetHeatPermeabilityCoef()

float GetHeatPermeabilityCoef ( )
inlineprotected

Returns temperature change speed multiplier for this item and all its children (multiplicative interaction).

Note
Values > 1 accelerate, values in <0,1) interval decelerate. Values < 0 should not be used here, but I'm not your mom.

Definition at line 2487 of file entityai.c.

References m_VarHeatPermeabilityCoef.

◆ GetHiddenSelectionIndex()

int GetHiddenSelectionIndex ( string selection)
inlineprotected

Returns index of the string found in cfg array 'hiddenSelections'. If it's not found then it returns -1.

Definition at line 2793 of file entityai.c.

References m_HiddenSelectionsData.

◆ GetHiddenSelections()

override TStringArray GetHiddenSelections ( )
inlineprotected

Returns the hiddenSelectionsTextures array from the object's config.

Definition at line 2802 of file entityai.c.

References m_HiddenSelectionsData.

◆ GetHiddenSelectionsData()

HiddenSelectionsData GetHiddenSelectionsData ( )
inlineprotected

Definition at line 2787 of file entityai.c.

References m_HiddenSelectionsData.

◆ GetHiddenSelectionsMaterials()

override TStringArray GetHiddenSelectionsMaterials ( )
inlineprotected

Returns the hiddenSelectionsMaterials array from the object's config.

Definition at line 2820 of file entityai.c.

References m_HiddenSelectionsData.

◆ GetHiddenSelectionsTextures()

override TStringArray GetHiddenSelectionsTextures ( )
inlineprotected

Returns the hiddenSelectionsTextures array from the object's config.

Definition at line 2811 of file entityai.c.

References m_HiddenSelectionsData.

◆ GetHideIconMask()

int GetHideIconMask ( )
inlineprivate

should the item's icon be hidden in any part of the inventory?

Definition at line 307 of file entityai.c.

◆ GetHierarchyLevel()

int GetHierarchyLevel ( int lvl = 0)
inlineprotected

Definition at line 886 of file entityai.c.

References GetHierarchyParent().

◆ GetHierarchyParent()

◆ GetHierarchyRoot()

proto native EntityAI GetHierarchyRoot ( )
protected

Returns root of current hierarchy (for example: if this entity is in Backpack on gnd, returns Backpack).

References EntityAI().

Referenced by CheckAttachmentReceiveExclusion(), InitTemperature(), and ProcessVariables().

◆ GetHierarchyRootPlayer()

proto native Man GetHierarchyRootPlayer ( )
protected

Returns root of current hierarchy cast to Man.

Referenced by DeleteSafe(), EEItemAttached(), EEItemDetached(), IgnoreOutOfReachCondition(), IsSlotReserved(), and OnBinLoadItemsDropped().

◆ GetHitComponentForAI()

string GetHitComponentForAI ( )
inlineprotected

Returns hit component for the Entity (overriden for each Type - PlayerBase, DayZInfected, DayZAnimal, etc.).

returns Global so it is obvious you need to configure that properly on entity

Definition at line 3776 of file entityai.c.

References GetType(), and Debug::LogError().

◆ GetInventory()

proto native GameInventory GetInventory ( )
protected

Referenced by CanCombineAttachment(), CanDisplayAnyAttachmentSlot(), CanDisplayCargo(), CanReceiveItemIntoCargo(), CanReleaseAttachment(), CanSwapItemInCargo(), CheckAttachmentReceiveExclusion(), ClearExclusionValueRecursive(), EEDelete(), EEInit(), EEInventoryOut(), EEOnAfterLoad(), FindAttachmentBySlotName(), GetAttachmentByConfigTypeName(), GetAttachmentByType(), GetInventoryAndCargoWeight(), GetSlotsCountCorrect(), GetViewIndex(), HasAnyCargo(), InitAttachmentExclusionValues(), InitInherentSlotExclusionMap(), InitLegacySlotExclusionValuesDerived(), InitLegacySlotExclusionValuesImplicit(), IsEmpty(), IsExclusionFlagPresent(), IsExclusionFlagPresentRecursive(), IsLockedInSlot(), LocalTakeEntityAsAttachment(), LocalTakeEntityAsAttachmentEx(), LocalTakeEntityToCargo(), LocalTakeEntityToCargoEx(), LocalTakeEntityToInventory(), LocalTakeEntityToTargetAttachment(), LocalTakeEntityToTargetAttachmentEx(), LocalTakeEntityToTargetCargo(), LocalTakeEntityToTargetCargoEx(), LocalTakeEntityToTargetInventory(), LocalTakeToDst(), OnDebugSpawn(), PredictiveTakeEntityAsAttachment(), PredictiveTakeEntityAsAttachmentEx(), PredictiveTakeEntityToCargo(), PredictiveTakeEntityToCargoEx(), PredictiveTakeEntityToInventory(), PredictiveTakeEntityToTargetAttachment(), PredictiveTakeEntityToTargetAttachmentEx(), PredictiveTakeEntityToTargetCargo(), PredictiveTakeEntityToTargetCargoEx(), PredictiveTakeEntityToTargetInventory(), PredictiveTakeToDst(), PropagateExclusionValueRecursive(), ServerTakeEntityAsAttachment(), ServerTakeEntityAsAttachmentEx(), ServerTakeEntityToCargo(), ServerTakeEntityToInventory(), ServerTakeEntityToTargetAttachment(), ServerTakeEntityToTargetAttachmentEx(), ServerTakeEntityToTargetCargo(), ServerTakeEntityToTargetCargoEx(), ServerTakeEntityToTargetInventory(), ServerTakeToDst(), and SetInvisibleRecursive().

◆ GetInventoryAndCargoWeight()

float GetInventoryAndCargoWeight ( bool forceRecalc = false)
inlineprotected

◆ GetInventoryHandAnimation()

bool GetInventoryHandAnimation ( notnull InventoryLocation loc,
out int value )
inlineprotected

Definition at line 4159 of file entityai.c.

◆ GetInvulnerabilityTypeString()

string GetInvulnerabilityTypeString ( )
inlineprotected

Definition at line 3976 of file entityai.c.

◆ GetIsFrozen()

bool GetIsFrozen ( )
inlineprotected

Definition at line 2535 of file entityai.c.

References m_IsFrozen.

Referenced by SerializeNumericalVars(), and WriteVarsToCTX().

◆ GetItemOverheatProgress()

float GetItemOverheatProgress ( )
inlineprotected

Definition at line 2670 of file entityai.c.

References m_OverheatProgress.

◆ GetItemOverheatThreshold()

float GetItemOverheatThreshold ( )
inlineprotected

if undefined, max temperature used as default

Definition at line 2654 of file entityai.c.

References GetTemperatureMax().

◆ GetItemOverheatTime()

float GetItemOverheatTime ( )
inlineprotected

any configured value >= 0 will simulate overheating

Definition at line 2660 of file entityai.c.

References m_VarTemperatureOverheatTime.

Referenced by CanItemOverheat(), and HandleItemOverheating().

◆ GetLifetime()

proto native float GetLifetime ( )
protected

Get remaining economy lifetime (seconds).

Referenced by GetDebugText().

◆ GetLifetimeMax()

proto native float GetLifetimeMax ( )
protected

Get max economy lifetime per instance - default is from DB (seconds).

◆ GetLightType()

proto native int GetLightType ( )
private

◆ GetLiquidThroughputCoef()

float GetLiquidThroughputCoef ( )
inlineprotected

Returns liquid throughput coeficient.

Definition at line 3971 of file entityai.c.

References LIQUID_THROUGHPUT_DEFAULT.

◆ GetLiquidType()

int GetLiquidType ( )
inlineprotected

Definition at line 2729 of file entityai.c.

◆ GetMeleeTargetType()

int GetMeleeTargetType ( )
inlineprotected

value is related to EMeleeTargetType

Definition at line 3811 of file entityai.c.

◆ GetNearPlane()

proto native float GetNearPlane ( )
private

get near plane of camera

◆ GetObjectMaterial()

proto native owned string GetObjectMaterial ( int index)
protected

◆ GetObjectTexture()

proto native owned string GetObjectTexture ( int index)
protected

◆ GetOnAttachmentReleaseLock()

ScriptInvoker GetOnAttachmentReleaseLock ( )
inlineprotected

Definition at line 1311 of file entityai.c.

References m_OnAttachmentReleaseLock.

◆ GetOnAttachmentSetLock()

ScriptInvoker GetOnAttachmentSetLock ( )
inlineprotected

Definition at line 1304 of file entityai.c.

References m_OnAttachmentSetLock.

◆ GetOnHitByInvoker()

ScriptInvoker GetOnHitByInvoker ( )
inlineprotected

Definition at line 1318 of file entityai.c.

References m_OnHitByInvoker.

◆ GetOnItemAddedIntoCargo()

ScriptInvoker GetOnItemAddedIntoCargo ( )
inlineprotected

Definition at line 1255 of file entityai.c.

References m_OnItemAddedIntoCargo.

◆ GetOnItemAttached()

ScriptInvoker GetOnItemAttached ( )
inlineprotected

Definition at line 1241 of file entityai.c.

References m_OnItemAttached.

◆ GetOnItemDetached()

ScriptInvoker GetOnItemDetached ( )
inlineprotected

Definition at line 1248 of file entityai.c.

References m_OnItemDetached.

◆ GetOnItemFlipped()

ScriptInvoker GetOnItemFlipped ( )
inlineprotected

Definition at line 1276 of file entityai.c.

References m_OnItemFlipped.

◆ GetOnItemMovedInCargo()

ScriptInvoker GetOnItemMovedInCargo ( )
inlineprotected

Definition at line 1269 of file entityai.c.

References m_OnItemMovedInCargo.

◆ GetOnItemRemovedFromCargo()

ScriptInvoker GetOnItemRemovedFromCargo ( )
inlineprotected

Definition at line 1262 of file entityai.c.

References m_OnItemRemovedFromCargo.

◆ GetOnKilledInvoker()

ScriptInvoker GetOnKilledInvoker ( )
inlineprotected

Definition at line 1325 of file entityai.c.

References m_OnKilledInvoker.

◆ GetOnReleaseLock()

ScriptInvoker GetOnReleaseLock ( )
inlineprotected

Definition at line 1297 of file entityai.c.

References m_OnReleaseLock.

◆ GetOnSetLock()

ScriptInvoker GetOnSetLock ( )
inlineprotected

Definition at line 1290 of file entityai.c.

References m_OnSetLock.

◆ GetOnViewIndexChanged()

ScriptInvoker GetOnViewIndexChanged ( )
inlineprotected

Definition at line 1283 of file entityai.c.

References m_OnViewIndexChanged.

◆ GetPairDevice()

EntityAI GetPairDevice ( )
protected

References EntityAI().

◆ GetPersistentID()

proto void GetPersistentID ( out int b1,
out int b2,
out int b3,
out int b4 )
protected

Returns blocks of bits of persistence id of this entity. This id stays the same even after server restart.

◆ GetQuantity()

float GetQuantity ( )
inlineprotected

Definition at line 2244 of file entityai.c.

◆ GetQuantityMax()

int GetQuantityMax ( )
inlineprotected

Definition at line 2256 of file entityai.c.

◆ GetQuantityMin()

int GetQuantityMin ( )
inlineprotected

Definition at line 2261 of file entityai.c.

◆ GetQuantityNormalized()

float GetQuantityNormalized ( )
inlineprotected

Definition at line 2251 of file entityai.c.

◆ GetQuickBarBonus()

int GetQuickBarBonus ( )
inlineprotected

Definition at line 2273 of file entityai.c.

◆ GetRadius()

proto native float GetRadius ( )
private

◆ GetRemotelyActivatedItemBehaviour()

RemotelyActivatedItemBehaviour GetRemotelyActivatedItemBehaviour ( )
protected

Remotely controlled devices helpers.

◆ GetSingleInventoryItemWeightEx()

float GetSingleInventoryItemWeightEx ( )
inlineprotected

Definition at line 3641 of file entityai.c.

◆ GetSkinningBloodInfectionChance()

float GetSkinningBloodInfectionChance ( eAgents type)
inlineprotected

Definition at line 516 of file entityai.c.

References m_BloodInfectionChanceCached.

◆ GetSlotsCountCorrect()

int GetSlotsCountCorrect ( )
inlineprotected

Definition at line 1838 of file entityai.c.

References GameInventory::GetAttachmentSlotsCount(), and GetInventory().

◆ GetSoundLength()

proto native float GetSoundLength ( )
private

◆ GetSpotLightAngle()

proto native float GetSpotLightAngle ( )
private

◆ GetStoreLoadedQuantity()

float GetStoreLoadedQuantity ( )
inlineprotected

Definition at line 2753 of file entityai.c.

◆ GetSuitableFinisherHitComponents()

array< string > GetSuitableFinisherHitComponents ( )
inlineprotected

Definition at line 3798 of file entityai.c.

References GetType(), and Debug::LogError().

◆ GetTargetQuantityMax()

int GetTargetQuantityMax ( int attSlotID = -1)
inlineprotected

Definition at line 2268 of file entityai.c.

◆ GetTemperature()

float GetTemperature ( )
inlineprotected

Definition at line 2457 of file entityai.c.

References m_VarTemperature.

◆ GetTemperatureFreezeThreshold()

float GetTemperatureFreezeThreshold ( )
inlineprotected

Definition at line 2492 of file entityai.c.

References m_VarTemperatureFreezeThreshold.

◆ GetTemperatureFreezeTime()

float GetTemperatureFreezeTime ( )
inlineprotected

Definition at line 2502 of file entityai.c.

References m_VarTemperatureFreezeTime.

◆ GetTemperatureInit()

float GetTemperatureInit ( )
inlineprotected

Definition at line 2462 of file entityai.c.

References m_VarTemperatureInit.

◆ GetTemperatureMax()

◆ GetTemperatureMin()

float GetTemperatureMin ( )
inlineprotected

◆ GetTemperatureThawThreshold()

float GetTemperatureThawThreshold ( )
inlineprotected

Definition at line 2497 of file entityai.c.

References m_VarTemperatureThawThreshold.

◆ GetTemperatureThawTime()

float GetTemperatureThawTime ( )
inlineprotected

Definition at line 2507 of file entityai.c.

References m_VarTemperatureThawTime.

◆ GetTurnableValveIndex()

int GetTurnableValveIndex ( int pComponentIndex)
protected

◆ GetUniversalTemperatureSource()

UTemperatureSource GetUniversalTemperatureSource ( )
inlineprotected

Definition at line 4176 of file entityai.c.

References m_UniversalTemperatureSource.

Referenced by IsUniversalTemperatureSource().

◆ GetUniversalTemperatureSourcePosition()

vector GetUniversalTemperatureSourcePosition ( )
inlineprotected

Definition at line 4186 of file entityai.c.

References GetPosition().

◆ GetVariablesFloat()

array< float > GetVariablesFloat ( )
inlineprotected

Definition at line 3154 of file entityai.c.

References CachedObjectsArrays::ARRAY_FLOAT, and SerializeNumericalVars().

◆ GetViewIndex()

int GetViewIndex ( )
inlineprotected

Returns item preview index !!!! IF OVERRIDING with more dynamic events call GetOnViewIndexChanged() in constructor on client !!!!

Definition at line 3730 of file entityai.c.

References GetInventory(), and InventoryLocation::GetType().

◆ GetWeight()

int GetWeight ( )
inlineprotected

Definition at line 3548 of file entityai.c.

References GetWeightEx().

◆ GetWeightEx()

float GetWeightEx ( bool forceRecalc = false)
inlineprotected

returns overall weight of the entity, 'forceRecalc = true' is meant to be used only when debugging, using it in gameplay code is higly inadvisable as it bypasses the weight caching and has adverse effect on performance

Definition at line 3613 of file entityai.c.

References ClearWeightDirty(), DumpStack(), GetWeightSpecialized(), m_WeightDirty, m_WeightEx, and Print().

Referenced by GetDebugText(), GetWeight(), and OnAction().

◆ GetWeightSpecialized()

float GetWeightSpecialized ( bool forceRecalc = false)
inlineprotected

returns weight of the entity in a way that's specific to the entity type and is internal to the weight system calculation, to obtain entity's weight, use the 'GetWeightEx' method instead

Definition at line 3606 of file entityai.c.

References GetInventoryAndCargoWeight().

◆ GetWet()

float GetWet ( )
inlineprotected

Definition at line 2184 of file entityai.c.

◆ GetWetInit()

float GetWetInit ( )
inlineprotected

Definition at line 2199 of file entityai.c.

◆ GetWetLevel()

EWetnessLevel GetWetLevel ( )
protected

◆ GetWetLevelInternal()

EWetnessLevel GetWetLevelInternal ( float wetness)
inlinestaticprotected

◆ GetWetMax()

float GetWetMax ( )
inlineprotected

Definition at line 2189 of file entityai.c.

◆ GetWetMin()

float GetWetMin ( )
inlineprotected

Definition at line 2194 of file entityai.c.

◆ GetWetWeightModifier()

float GetWetWeightModifier ( )
inlineprotected

Definition at line 3525 of file entityai.c.

References GetWetLevel(), and CfgGameplayHandler::GetWetnessWeightModifiers().

Referenced by GetConfigWeightModified().

◆ HandleFreezingProgression()

◆ HandleItemOverheating()

◆ HasAnyCargo()

bool HasAnyCargo ( )
inlineprotected

is this container empty or not, checks only cargo

Definition at line 678 of file entityai.c.

References GetInventory(), and CargoBase::GetItemCount().

Referenced by IsEmpty().

◆ HasBayonetAttached()

bool HasBayonetAttached ( )
inlineprotected

Definition at line 4005 of file entityai.c.

◆ HasButtstockAttached()

bool HasButtstockAttached ( )
inlineprotected

Definition at line 4009 of file entityai.c.

◆ HasComponent()

bool HasComponent ( int comp_type)
inlineprivate

IsComponentExist.

Definition at line 352 of file entityai.c.

References m_ComponentsBank.

Referenced by GetCompBS(), GetCompEM(), and HasEnergyManager().

◆ HasEnergyManager()

bool HasEnergyManager ( )
inlineprotected

If this item has class EnergyManager in its config then it returns true. Otherwise returns false.

Definition at line 3421 of file entityai.c.

References COMP_TYPE_ENERGY_MANAGER, and HasComponent().

◆ HasFlammableMaterial()

bool HasFlammableMaterial ( )
inlineprotected

Override this method to return TRUE when this item has or can provide fire. Evaluated on server and client.

Definition at line 540 of file entityai.c.

◆ HasInternalExclusionConflicts()

bool HasInternalExclusionConflicts ( int targetSlot)
inlineprivate

checks if any attachment or item state would interfere with this being attached into a different slot (Headgear -> Mask)

Definition at line 4541 of file entityai.c.

References GetAttachmentExclusionMaskChildren(), GetAttachmentExclusionMaskGlobal(), and GetAttachmentExclusionMaskSlot().

◆ HasQuantity()

bool HasQuantity ( )
inlineprotected

Definition at line 2237 of file entityai.c.

◆ HasTurnableValveBehavior()

bool HasTurnableValveBehavior ( )
protected

Turnable Valve behaviour.

◆ HasWetness()

bool HasWetness ( )
inlineprotected

Definition at line 2204 of file entityai.c.

References GetWetMax(), and GetWetMin().

◆ HeightCheckOverride()

float HeightCheckOverride ( )
inlineprotected

used as script-side override of distance for specific height checks

Definition at line 648 of file entityai.c.

◆ HeightStartCheckOverride()

float HeightStartCheckOverride ( )
inlineprotected

used as script-side override of start pos for specific height checks

Definition at line 654 of file entityai.c.

◆ HideAllSelections()

void HideAllSelections ( )
inlineprotected

Sets all animation values to 1, making them INVISIBLE if they are configured in models.cfg in such way. These selections must also be defined in the entity's config class in 'AnimationSources'.

Definition at line 1403 of file entityai.c.

References g_Game, GetType(), and HideSelection().

◆ HideSelection()

void HideSelection ( string selection_name)
inlineprotected

Hides selection of the given name. Must be configed in config.cpp and models.cfg.

Definition at line 3356 of file entityai.c.

Referenced by HideAllSelections().

◆ IgnoreOutOfReachCondition()

bool IgnoreOutOfReachCondition ( )
inlineprotected
Returns
if true, attachment condition for out of reach (inventory) will be ignored

Definition at line 1808 of file entityai.c.

References g_Game, and GetHierarchyRootPlayer().

◆ IncreaseLifetime()

proto native void IncreaseLifetime ( )
protected

Reset economy lifetime to default (seconds).

Referenced by IncreaseLifetimeUp().

◆ IncreaseLifetimeUp()

void IncreaseLifetimeUp ( )
inlineprotected

Reset economy lifetime to default across entity hierarchy all the way to the topmost entity.

Definition at line 3390 of file entityai.c.

References GetHierarchyParent(), and IncreaseLifetime().

◆ InitAttachmentExclusionValues()

◆ InitDamageZoneDisplayNameMapping()

void InitDamageZoneDisplayNameMapping ( )
inlineprivate

Initialize map of damage zone display names for more optimized retrieval.

Definition at line 406 of file entityai.c.

References CFG_MAGAZINESPATH, CFG_VEHICLESPATH, CFG_WEAPONSPATH, string::Format(), g_Game, GetDisplayName(), GetType(), m_DamageDisplayNameMap, and path.

Referenced by EntityAI().

◆ InitDamageZoneMapping()

void InitDamageZoneMapping ( )
inlineprivate

Initializes script-side map of damage zones and their components (named selections in models).

Definition at line 399 of file entityai.c.

References m_DamageZoneMap.

Referenced by EntityAI().

◆ InitGlobalExclusionValues()

void InitGlobalExclusionValues ( )
protected

override to init part of the mask, independent of slot-specific behavior

Referenced by InitAttachmentExclusionValues().

◆ InitInherentSlotExclusionMap()

void InitInherentSlotExclusionMap ( )
inlineprivate

map stored on instance to better respond to various state changes

Definition at line 4235 of file entityai.c.

References GetAttachmentExclusionInitSlotValue(), GetInventory(), GameInventory::GetSlotId(), GameInventory::GetSlotIdCount(), InventorySlots::INVALID, and SetAttachmentExclusionMaskSlot().

Referenced by InitAttachmentExclusionValues().

◆ InitItemVariables()

◆ InitLegacyConfigExclusionValues()

void InitLegacyConfigExclusionValues ( )
inlineprotected

◆ InitLegacyExclusionCheck()

bool InitLegacyExclusionCheck ( )
inlineprotected

◆ InitLegacySlotExclusionValuesDerived()

void InitLegacySlotExclusionValuesDerived ( )
inlineprotected

◆ InitLegacySlotExclusionValuesImplicit()

void InitLegacySlotExclusionValuesImplicit ( )
inlineprotected

adding base one-directional relations between headgear, masks, eyewear, and headstraps (exception)

Note
: 'InitLegacyConfigExclusionValues' adds them the other way if the item does not have any script-side exclusions AND has some legacy config parameter.

Definition at line 4298 of file entityai.c.

References GetAttachmentExclusionInitSlotValue(), GetInventory(), GameInventory::GetSlotId(), GameInventory::GetSlotIdCount(), and SetAttachmentExclusionMaskSlot().

Referenced by InitLegacyConfigExclusionValues().

◆ InitTemperature()

◆ InsertAgent()

void InsertAgent ( int agent,
float count = 1 )
protected

◆ InterpolateTempData()

void InterpolateTempData ( TemperatureDataInterpolated data)
inlineprotected

Definition at line 2443 of file entityai.c.

References GetTemperature().

Referenced by SetTemperatureEx().

◆ InterpolateTo()

proto native void InterpolateTo ( Camera targetCamera,
float time,
int type )
staticprivate

Interpolation between camera instances (current camera becomes targetCamera at the end of interpolation).

Parameters
targetCamerato which camera we want to interpolate
timetrue interpolation time
type0 = without dynamics 1 = first half - acceleration, second half deceleration 2 = first third - acceleration, second third - linear movement, last third - deceleration

◆ IsActive()

proto native bool IsActive ( )
private

Is this camera active?

Returns
bool true if this camera is active

◆ IsAnimal()

bool IsAnimal ( )
inlineprotected

Definition at line 729 of file entityai.c.

Referenced by UseConfigInitTemperature().

◆ IsBasebuildingKit()

bool IsBasebuildingKit ( )
inlineprotected

Definition at line 571 of file entityai.c.

◆ IsBeingPlaced()

bool IsBeingPlaced ( )
inlineprotected

Definition at line 1685 of file entityai.c.

◆ IsCookware()

bool IsCookware ( )
inlineprotected

Definition at line 576 of file entityai.c.

◆ IsDestructionBehaviour()

bool IsDestructionBehaviour ( )
inlineprivate

Definition at line 346 of file entityai.c.

◆ IsEmpty()

bool IsEmpty ( )
inlineprotected

is this container empty or not, checks both cargo and attachments

Definition at line 660 of file entityai.c.

References GetInventory(), and HasAnyCargo().

◆ IsEnabled()

proto native bool IsEnabled ( )
private

◆ IsEntityAI()

override bool IsEntityAI ( )
inlineprotected

Definition at line 717 of file entityai.c.

◆ IsExclusionFlagPresent()

bool IsExclusionFlagPresent ( set< int > values)
inlineprotected

checks 'this' if the incoming flag is present for the current state (slot behavior and others)

Definition at line 4566 of file entityai.c.

References GetAttachmentExclusionMaskAll(), GetInventory(), and slotName.

Referenced by IsExclusionFlagPresentRecursive().

◆ IsExclusionFlagPresentRecursive()

bool IsExclusionFlagPresentRecursive ( set< int > values,
int targetSlot )
inlineprotected

Gets flag from what is effectively an owner.

Definition at line 4583 of file entityai.c.

References CheckExclusionAccessCondition(), EntityAI(), GetHierarchyParent(), GetInventory(), InventoryLocation::GetSlot(), and IsExclusionFlagPresent().

Referenced by CheckAttachmentReceiveExclusion().

◆ IsFlareVisible()

proto native bool IsFlareVisible ( )
private

◆ IsFreezeThawProgressFinished()

bool IsFreezeThawProgressFinished ( )
inlineprotected

on server only

Definition at line 2519 of file entityai.c.

References m_FreezeThawProgress.

Referenced by ProcessVariables().

◆ IsHeavyBehaviour()

bool IsHeavyBehaviour ( )
inlineprotected

returns item behaviour of item (more in ItemBase)

Definition at line 3823 of file entityai.c.

◆ IsHologram()

override bool IsHologram ( )
inlineprotected

Definition at line 1690 of file entityai.c.

◆ IsIgnited()

bool IsIgnited ( )
inlineprotected

Override this method and make it so it returns whenever this item is on fire right now or not. Evaluated on Server and Client.

Definition at line 558 of file entityai.c.

References m_EM.

◆ IsIgnoredByConstruction()

bool IsIgnoredByConstruction ( )
inlineprotected

Definition at line 744 of file entityai.c.

◆ IsInitialized()

bool IsInitialized ( )
inlineprivate

Definition at line 301 of file entityai.c.

References m_Initialized.

◆ IsInterpolationComplete()

proto native bool IsInterpolationComplete ( )
staticprivate

Checks if the current interpolation reached it's end.

◆ IsInventoryVisible()

bool IsInventoryVisible ( )
inlineprotected

Definition at line 719 of file entityai.c.

References GetHierarchyParent(), and GetParent().

◆ IsItemOverheated()

bool IsItemOverheated ( )
inlineprotected

Definition at line 2665 of file entityai.c.

References m_OverheatProgress.

◆ IsLockedInSlot()

bool IsLockedInSlot ( )
inlineprotected
Returns
true if entity is locked in attachment slot

Definition at line 1886 of file entityai.c.

References EntityAI(), GetHierarchyParent(), GetInventory(), and InventoryLocation::GetSlot().

◆ IsManagingArrows()

bool IsManagingArrows ( )
inlineprotected

Definition at line 4694 of file entityai.c.

◆ IsOneHandedBehaviour()

bool IsOneHandedBehaviour ( )
inlineprotected

returns item behaviour of item (more in ItemBase)

Definition at line 3829 of file entityai.c.

◆ IsPilotLight()

proto native bool IsPilotLight ( )
protected

◆ IsPlayer()

bool IsPlayer ( )
inlineprotected

Definition at line 724 of file entityai.c.

◆ IsPreparedToDelete()

bool IsPreparedToDelete ( )
inlineprotected

Definition at line 829 of file entityai.c.

References m_PreparedToDelete.

Referenced by IsSetForDeletion().

◆ IsPrepareToDelete()

bool IsPrepareToDelete ( )
inlineprotected

Definition at line 843 of file entityai.c.

◆ IsRefresherSignalingViable()

bool IsRefresherSignalingViable ( )
inlineprivate

Definition at line 380 of file entityai.c.

References m_RefresherViable.

◆ IsRequiredSimulation()

proto native bool IsRequiredSimulation ( )
protected

◆ IsRoofAbove()

bool IsRoofAbove ( )
inlineprotected

Definition at line 698 of file entityai.c.

References m_RoofAbove.

◆ IsSelfAdjustingTemperature()

bool IsSelfAdjustingTemperature ( )
inlineprotected

Definition at line 3849 of file entityai.c.

◆ IsServerCheck()

bool IsServerCheck ( bool allow_client)
inlineprotected

Definition at line 2768 of file entityai.c.

References Error(), and g_Game.

Referenced by SetTemperature(), SetTemperatureDirect(), and SetTemperatureEx().

◆ IsSetForDeletion()

bool IsSetForDeletion ( )
inlineprotected

Definition at line 807 of file entityai.c.

References IsPendingDeletion(), IsPreparedToDelete(), and m_PendingDelete.

Referenced by CanBeActionTarget().

◆ IsSimpleHiddenSelectionVisible()

proto native bool IsSimpleHiddenSelectionVisible ( int index)
protected

◆ IsSkinned()

bool IsSkinned ( )
inlineprotected

Skinning.

Definition at line 497 of file entityai.c.

References GetCompBS().

Referenced by CanBeSkinnedWith().

◆ IsSlotReserved()

◆ IsSplitable()

bool IsSplitable ( )
inlineprotected

returns just the configured 'canBeSplit' bool

Definition at line 666 of file entityai.c.

◆ IsStoreLoad()

bool IsStoreLoad ( )
inlineprotected

Definition at line 2747 of file entityai.c.

◆ IsTakeable()

bool IsTakeable ( )
inlineprotected

Definition at line 1829 of file entityai.c.

◆ IsTargetIgnitionSuccessful()

bool IsTargetIgnitionSuccessful ( EntityAI item_target)
inlineprotected

Final evaluation just before the target item is actually ignited. Evaluated on Server.

Definition at line 612 of file entityai.c.

References EntityAI().

◆ IsThisIgnitionSuccessful()

bool IsThisIgnitionSuccessful ( EntityAI item_source = NULL)
inlineprotected

Final evaluation just before this item is actually ignited from fire source. Evaluated on Server.

Definition at line 618 of file entityai.c.

References EntityAI().

◆ IsTwoHandedBehaviour()

bool IsTwoHandedBehaviour ( )
inlineprotected

returns item behaviour of item (more in ItemBase)

Definition at line 3835 of file entityai.c.

◆ IsUniversalTemperatureSource()

bool IsUniversalTemperatureSource ( )
inlineprotected

Universal Temperature Sources Helpers.

Definition at line 4171 of file entityai.c.

References GetUniversalTemperatureSource().

◆ IsValveTurnable()

bool IsValveTurnable ( int pValveIndex)
protected

◆ IsVariableSet()

bool IsVariableSet ( int variable)
inlineprotected

'true' if this variable has ever been changed from default

Definition at line 3129 of file entityai.c.

References m_VariablesMask.

Referenced by SerializeNumericalVars(), and WriteVarsToCTX().

◆ IsVisibleDuringDaylight()

proto native bool IsVisibleDuringDaylight ( )
private

◆ IsZombie()

bool IsZombie ( )
inlineprotected

Definition at line 734 of file entityai.c.

Referenced by UseConfigInitTemperature().

◆ IsZombieMilitary()

bool IsZombieMilitary ( )
inlineprotected

Definition at line 739 of file entityai.c.

◆ KeepHealthOnReplace()

bool KeepHealthOnReplace ( )
inlineprotected

Definition at line 1099 of file entityai.c.

◆ LoadVariables()

bool LoadVariables ( ParamsReadContext ctx,
int version = -1 )
inlineprotected

Definition at line 3179 of file entityai.c.

References ItemVariableFlags::FLOAT, Serializer::Read(), and ReadVarsFromCTX().

Referenced by OnStoreLoad().

◆ LocalDropEntity()

bool LocalDropEntity ( notnull EntityAI item)
inlineprotected

Definition at line 2088 of file entityai.c.

References EntityAI().

◆ LocalTakeEntityAsAttachment()

bool LocalTakeEntityAsAttachment ( notnull EntityAI item)
inlineprotected

Definition at line 2074 of file entityai.c.

References EntityAI(), and GetInventory().

◆ LocalTakeEntityAsAttachmentEx()

bool LocalTakeEntityAsAttachmentEx ( notnull EntityAI item,
int slot )
inlineprotected

Definition at line 2007 of file entityai.c.

References EntityAI(), and GetInventory().

◆ LocalTakeEntityToCargo()

bool LocalTakeEntityToCargo ( notnull EntityAI item)
inlineprotected

Definition at line 1943 of file entityai.c.

References EntityAI(), and GetInventory().

◆ LocalTakeEntityToCargoEx()

bool LocalTakeEntityToCargoEx ( notnull EntityAI item,
int idx,
int row,
int col )
inlineprotected

Definition at line 1977 of file entityai.c.

References EntityAI(), and GetInventory().

◆ LocalTakeEntityToInventory()

bool LocalTakeEntityToInventory ( FindInventoryLocationType flags,
notnull EntityAI item )
inlineprotected

Definition at line 1910 of file entityai.c.

References EntityAI(), and GetInventory().

◆ LocalTakeEntityToTargetAttachment()

bool LocalTakeEntityToTargetAttachment ( notnull EntityAI target,
notnull EntityAI item )
inlineprotected

Definition at line 2039 of file entityai.c.

References EntityAI(), and GetInventory().

◆ LocalTakeEntityToTargetAttachmentEx()

bool LocalTakeEntityToTargetAttachmentEx ( notnull EntityAI target,
notnull EntityAI item,
int slot )
inlineprotected

Definition at line 2023 of file entityai.c.

References EntityAI(), and GetInventory().

◆ LocalTakeEntityToTargetCargo()

bool LocalTakeEntityToTargetCargo ( notnull EntityAI target,
notnull EntityAI item )
inlineprotected

Definition at line 1959 of file entityai.c.

References EntityAI(), and GetInventory().

◆ LocalTakeEntityToTargetCargoEx()

bool LocalTakeEntityToTargetCargoEx ( notnull CargoBase cargo,
notnull EntityAI item,
int row,
int col )
inlineprotected

Definition at line 1989 of file entityai.c.

References EntityAI(), and GetInventory().

◆ LocalTakeEntityToTargetInventory()

bool LocalTakeEntityToTargetInventory ( notnull EntityAI target,
FindInventoryLocationType flags,
notnull EntityAI item )
inlineprotected

Definition at line 1925 of file entityai.c.

References EntityAI(), and GetInventory().

◆ LocalTakeToDst()

bool LocalTakeToDst ( notnull InventoryLocation src,
notnull InventoryLocation dst )
inlineprotected

Definition at line 2055 of file entityai.c.

References GetInventory().

◆ Log()

void Log ( string msg,
string fnc_name = "n/a" )
inlineprotected

Log.

Definition at line 479 of file entityai.c.

References GetType(), and Debug::Log().

◆ LogError()

void LogError ( string msg,
string fnc_name = "n/a" )
inlineprotected

LogError.

Definition at line 491 of file entityai.c.

References GetType(), and Debug::LogError().

◆ LogWarning()

void LogWarning ( string msg,
string fnc_name = "n/a" )
inlineprotected

LogWarning.

Definition at line 485 of file entityai.c.

References GetType(), and Debug::LogWarning().

◆ LookAt()

proto native void LookAt ( vector targetPos)
private

Orientation change by lookAt point.

Parameters
targetPoswhere to look at

◆ MaxLifetimeRefreshCalc()

void MaxLifetimeRefreshCalc ( )
inlineprivate

Calculates if the max lifetime is higher than refresher frequency (i.e. gets kept alive by refresher).

Definition at line 361 of file entityai.c.

References g_Game, GetCEApi(), GetEconomyProfile(), m_RefresherViable, GameConstants::REFRESHER_FREQUENCY_DEFAULT, and SetSynchDirty().

Referenced by EEInit().

◆ OnAction()

bool OnAction ( int action_id,
Man player,
ParamsReadContext ctx )
inlineprotected

◆ OnAttachmentRuined()

void OnAttachmentRuined ( EntityAI attachment)
protected

Called when some attachment of this parent is ruined. Called on server and client side.

References EntityAI().

◆ OnBeforeTryDelete()

void OnBeforeTryDelete ( )
protected

Referenced by TryDelete().

◆ OnBinLoadItemsDropped()

void OnBinLoadItemsDropped ( )
inlineprotected

Called when an item fails to get loaded into the inventory of an entity and gets dropped.

Definition at line 1396 of file entityai.c.

References GetHierarchyRootPlayer().

◆ OnCargoChanged()

void OnCargoChanged ( )
protected

◆ OnCEUpdate()

void OnCEUpdate ( )
inlineprotected

Central economy calls this function whenever going over all the entities.

void OnCEUpdate()
{
// dont forget to propagate this call trough class hierarchy! - always at the start of the function
super.OnCEUpdate();
// use m_ElapsedSinceLastUpdate for time-related purposes
}
void OnCEUpdate()
Central economy calls this function whenever going over all the entities.
Definition entityai.c:3866

Definition at line 3866 of file entityai.c.

References g_Game, m_ElapsedSinceLastUpdate, m_LastUpdatedTime, and ProcessVariables().

◆ OnChildItemReceived()

void OnChildItemReceived ( InventoryItem item)
protected

◆ OnChildItemRemoved()

void OnChildItemRemoved ( InventoryItem item)
protected

◆ OnDamageDestroyed()

void OnDamageDestroyed ( int oldLevel)
protected

Called when the health gets to the min value, 'oldLevel' is previous health level, 'oldLevel' -1 means this entity was just spawned.

◆ OnDebugButtonPressClient()

void OnDebugButtonPressClient ( int button_index)
inlineprotected

Definition at line 3321 of file entityai.c.

◆ OnDebugButtonPressServer()

void OnDebugButtonPressServer ( int button_index)
inlineprotected

Definition at line 3322 of file entityai.c.

◆ OnDebugSpawn()

void OnDebugSpawn ( )
inlineprotected

Definition at line 3907 of file entityai.c.

References CFG_MAGAZINESPATH, CFG_VEHICLESPATH, CFG_WEAPONSPATH, g_Game, GetInventory(), path, and x.

◆ OnDebugSpawnEx()

void OnDebugSpawnEx ( DebugSpawnParams params)
inlineprotected

Definition at line 3902 of file entityai.c.

References OnDebugSpawn.

◆ OnEnergyAdded()

void OnEnergyAdded ( )
inlineprotected

Energy manager event: Called when energy was added on this device. ALWAYS CALL super.OnEnergyAdded() !!!

Definition at line 3462 of file entityai.c.

◆ OnEnergyConsumed()

void OnEnergyConsumed ( )
inlineprotected

Energy manager event: Called when energy was consumed on this device. ALWAYS CALL super.OnEnergyConsumed() !!!

Definition at line 3459 of file entityai.c.

◆ OnExplosionEffects()

override void OnExplosionEffects ( Object source,
Object directHit,
int componentIndex,
string surface,
vector pos,
vector surfNormal,
float energyFactor,
float explosionFactor,
bool isWater,
string ammoType )
inlineprotected

Definition at line 943 of file entityai.c.

References g_Game, m_DestructionBehaviourObj, and Object.

◆ OnFreezeStateChangeClient()

void OnFreezeStateChangeClient ( )
protected

Referenced by OnVariablesSynchronized().

◆ OnFreezeStateChangeServer()

void OnFreezeStateChangeServer ( )
protected

◆ OnHologramBeingPlaced()

void OnHologramBeingPlaced ( Man player)
protected

◆ OnIgnitedTarget()

void OnIgnitedTarget ( EntityAI target_item)
inlineprotected

Executed on Server when this item ignites some target item.

Definition at line 588 of file entityai.c.

References EntityAI().

◆ OnIgnitedTargetFailed()

void OnIgnitedTargetFailed ( EntityAI target_item)
inlineprotected

Executed on Server when this item failed to ignite target item.

Definition at line 600 of file entityai.c.

References EntityAI().

◆ OnIgnitedThis()

void OnIgnitedThis ( EntityAI fire_source)
inlineprotected

Executed on Server when some item ignited this one.

Definition at line 594 of file entityai.c.

References EntityAI().

◆ OnIgnitedThisFailed()

void OnIgnitedThisFailed ( EntityAI fire_source)
inlineprotected

Executed on Server when some item failed to ignite this one.

Definition at line 606 of file entityai.c.

References EntityAI().

◆ OnInitEnergy()

void OnInitEnergy ( )
inlineprotected

Energy manager event: Object's initialization. Energy Manager is fully initialized by this point.

Definition at line 3456 of file entityai.c.

◆ OnInventoryInit()

void OnInventoryInit ( )
inlineprotected

Definition at line 894 of file entityai.c.

References InitAttachmentExclusionValues().

◆ OnIsPlugged()

void OnIsPlugged ( EntityAI source_device)
inlineprotected

Energy manager event: Called when this device is plugged into some energy source.

Definition at line 3444 of file entityai.c.

References EntityAI().

◆ OnIsUnplugged()

void OnIsUnplugged ( EntityAI last_energy_source)
inlineprotected

Energy manager event: Called when this device is UNPLUGGED from the energy source.

Definition at line 3447 of file entityai.c.

References EntityAI().

◆ OnItemAttachmentSlotChanged()

void OnItemAttachmentSlotChanged ( notnull InventoryLocation oldLoc,
notnull InventoryLocation newLoc )
protected

◆ OnItemLocationChanged()

void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
protected

References EntityAI().

◆ OnItemOverheat()

void OnItemOverheat ( float deltaTime)
protected

Referenced by SetItemOverheatProgress().

◆ OnItemOverheatEnd()

void OnItemOverheatEnd ( )
protected

note, that the deltaTime could be reverse-calculated and not totally accurate

Referenced by SetItemOverheatProgress().

◆ OnItemOverheatStart()

void OnItemOverheatStart ( )
protected

override to implement desired overheat behavior on entity

Referenced by SetItemOverheatProgress().

◆ OnMovedInsideCargo()

void OnMovedInsideCargo ( EntityAI container)
inlineprotected

Called when this item enters cargo of some container.

Definition at line 1334 of file entityai.c.

References EntityAI(), and m_EM.

◆ OnMovedWithinCargo()

void OnMovedWithinCargo ( EntityAI container)
inlineprotected

Called when this item moves within cargo of some container.

Definition at line 1347 of file entityai.c.

References EntityAI().

◆ OnOwnSocketReleased()

void OnOwnSocketReleased ( EntityAI device)
inlineprotected

Energy manager event: When something is UNPLUGGED from this device.

Definition at line 3453 of file entityai.c.

References EntityAI().

◆ OnOwnSocketTaken()

void OnOwnSocketTaken ( EntityAI device)
inlineprotected

Energy manager event: When something is plugged into this device.

Definition at line 3450 of file entityai.c.

References EntityAI().

◆ OnPlacementCancelled()

void OnPlacementCancelled ( Man player)
protected

◆ OnPlacementComplete()

void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
protected

◆ OnPlacementStarted()

void OnPlacementStarted ( Man player)
protected

◆ OnRemovedFromCargo()

void OnRemovedFromCargo ( EntityAI container)
inlineprotected

Called when this item exits cargo of some container.

Definition at line 1341 of file entityai.c.

References EntityAI().

◆ OnRPC()

override void OnRPC ( PlayerIdentity sender,
int rpc_type,
ParamsReadContext ctx )
inlineprotected

Definition at line 3465 of file entityai.c.

References g_Game, GetCompBS(), and Serializer::Read().

◆ OnStoreLoad()

bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected

Called when data is loaded from persistence (on server side).

void OnStoreLoad(ParamsReadContext ctx, int version)
{
// dont forget to propagate this call trough class hierarchy!
if ( !super.OnStoreLoad(ctx, version) )
return false;
// read data loaded from game database (format and order of reading must be the same as writing!)
int a;
if ( !ctx.Read(a) )
return false;
float b;
if ( !ctx.Read(b) )
return false;
return true;
}
bool OnStoreLoad(ParamsReadContext ctx, int version)
Called when data is loaded from persistence (on server side).
Definition entityai.c:2989
proto bool Read(void value_in)
Serializer ParamsReadContext
Definition gameplay.c:15

Definition at line 2989 of file entityai.c.

References LoadVariables(), m_EM, and Serializer::Read().

◆ OnStoreSave()

void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected

Engine calls this function to collect data from entity to store for persistence (on server side).

{
// dont forget to propagate this call trough class hierarchy!
super.OnStoreSave(ctx);
// write any data (using params) you want to store
int a = 5;
float b = 6.0;
ctx.Write(a);
ctx.Write(b);
}
void OnStoreSave(ParamsWriteContext ctx)
Engine calls this function to collect data from entity to store for persistence (on server side).
Definition entityai.c:2925
proto bool Write(void value_out)
Serializer ParamsWriteContext
Definition gameplay.c:16

Definition at line 2925 of file entityai.c.

References EntityAI(), m_EM, SaveVariables(), and Serializer::Write().

◆ OnSwitchOff()

void OnSwitchOff ( )
inlineprotected

Energy manager event: Called when the device is switched OFF.

Definition at line 3441 of file entityai.c.

◆ OnSwitchOn()

void OnSwitchOn ( )
inlineprotected

Energy manager event: Called when the device is switched on.

Definition at line 3438 of file entityai.c.

◆ OnVariablesSynchronized()

void OnVariablesSynchronized ( )
inlineprotected

Called on clients after receiving synchronization data from server.

Definition at line 3074 of file entityai.c.

References EntityAI(), Error(), g_Game, m_EM, m_IsFrozen, m_IsFrozenLocal, and OnFreezeStateChangeClient().

◆ OnWasAttached()

void OnWasAttached ( EntityAI parent,
int slot_id )
protected

References EntityAI().

◆ OnWasDetached()

void OnWasDetached ( EntityAI parent,
int slot_id )
inlineprotected

Definition at line 1817 of file entityai.c.

References EntityAI(), and SetInvisibleRecursive().

◆ OnWetChanged()

void OnWetChanged ( float newVal,
float oldVal )
protected

◆ OnWetLevelChanged()

void OnWetLevelChanged ( EWetnessLevel newLevel,
EWetnessLevel oldLevel )
protected

◆ OnWork()

void OnWork ( float consumed_energy)
inlineprotected

Energy manager event: Called every device update if its supposed to do some work. The update can be every second or at random, depending on its manipulation.

Definition at line 3432 of file entityai.c.

◆ OnWorkStart()

void OnWorkStart ( )
inlineprotected

Energy manager event: Called only once when this device starts doing its work.

Definition at line 3429 of file entityai.c.

◆ OnWorkStop()

void OnWorkStop ( )
inlineprotected

Energy manager event: Called when the device stops working (was switched OFF or ran out of energy).

Definition at line 3435 of file entityai.c.

◆ PairRemote()

void PairRemote ( notnull EntityAI trigger)
protected

References EntityAI().

◆ PlacementCanBeRotated()

bool PlacementCanBeRotated ( )
inlineprotected

Should return false if you want to disable hologram rotation.

Definition at line 582 of file entityai.c.

◆ PlaceOnSurfaceRotated()

proto native void PlaceOnSurfaceRotated ( out vector trans[4],
vector pos,
float dx = 0,
float dz = 0,
float fAngle = 0,
bool align = false )
protected

◆ PredictiveDropEntity()

bool PredictiveDropEntity ( notnull EntityAI item)
inlineprotected

Definition at line 2083 of file entityai.c.

References EntityAI().

◆ PredictiveTakeEntityAsAttachment()

bool PredictiveTakeEntityAsAttachment ( notnull EntityAI item)
inlineprotected

Put item into as attachment.

Definition at line 2067 of file entityai.c.

References EntityAI(), g_Game, and GetInventory().

◆ PredictiveTakeEntityAsAttachmentEx()

bool PredictiveTakeEntityAsAttachmentEx ( notnull EntityAI item,
int slot )
inlineprotected

Returns if item can be added as attachment on specific slot.

Note that slot index IS NOT slot ID! Slot ID is defined in DZ/data/config.cpp

Definition at line 2000 of file entityai.c.

References EntityAI(), g_Game, and GetInventory().

◆ PredictiveTakeEntityToCargo()

bool PredictiveTakeEntityToCargo ( notnull EntityAI item)
inlineprotected

Put item into into cargo.

Definition at line 1936 of file entityai.c.

References EntityAI(), g_Game, and GetInventory().

◆ PredictiveTakeEntityToCargoEx()

bool PredictiveTakeEntityToCargoEx ( notnull EntityAI item,
int idx,
int row,
int col )
inlineprotected

Put item into into cargo on specific cargo location.

Definition at line 1970 of file entityai.c.

References EntityAI(), g_Game, and GetInventory().

◆ PredictiveTakeEntityToInventory()

bool PredictiveTakeEntityToInventory ( FindInventoryLocationType flags,
notnull EntityAI item )
inlineprotected

Put item anywhere into this entity (as attachment or into cargo, recursively).

Definition at line 1903 of file entityai.c.

References EntityAI(), g_Game, and GetInventory().

◆ PredictiveTakeEntityToTargetAttachment()

bool PredictiveTakeEntityToTargetAttachment ( notnull EntityAI target,
notnull EntityAI item )
inlineprotected

Definition at line 2032 of file entityai.c.

References EntityAI(), g_Game, and GetInventory().

◆ PredictiveTakeEntityToTargetAttachmentEx()

bool PredictiveTakeEntityToTargetAttachmentEx ( notnull EntityAI target,
notnull EntityAI item,
int slot )
inlineprotected

Definition at line 2016 of file entityai.c.

References EntityAI(), g_Game, and GetInventory().

◆ PredictiveTakeEntityToTargetCargo()

bool PredictiveTakeEntityToTargetCargo ( notnull EntityAI target,
notnull EntityAI item )
inlineprotected

Definition at line 1952 of file entityai.c.

References EntityAI(), g_Game, and GetInventory().

◆ PredictiveTakeEntityToTargetCargoEx()

bool PredictiveTakeEntityToTargetCargoEx ( notnull CargoBase cargo,
notnull EntityAI item,
int row,
int col )
inlineprotected

Definition at line 1982 of file entityai.c.

References EntityAI(), g_Game, and GetInventory().

◆ PredictiveTakeEntityToTargetInventory()

bool PredictiveTakeEntityToTargetInventory ( notnull EntityAI target,
FindInventoryLocationType flags,
notnull EntityAI item )
inlineprotected

Definition at line 1918 of file entityai.c.

References EntityAI(), g_Game, and GetInventory().

◆ PredictiveTakeToDst()

bool PredictiveTakeToDst ( notnull InventoryLocation src,
notnull InventoryLocation dst )
inlineprotected

Definition at line 2048 of file entityai.c.

References g_Game, and GetInventory().

◆ ProcessInvulnerabilityCheck()

void ProcessInvulnerabilityCheck ( string servercfg_param)
inlineprotected

◆ ProcessMeleeItemDamage()

override EntityAI ProcessMeleeItemDamage ( int mode = 0)
inlineprotected

Definition at line 3963 of file entityai.c.

References EntityAI(), g_Game, and MELEE_ITEM_DAMAGE.

◆ ProcessVariables()

◆ PropagateExclusionValueRecursive()

void PropagateExclusionValueRecursive ( set< int > values,
int slotId )
inlineprivate

◆ ReadVarsFromCTX()

bool ReadVarsFromCTX ( ParamsReadContext ctx,
int version = -1 )
inlineprotected

Reads from storage CTX.

Definition at line 3212 of file entityai.c.

References m_VariablesMask, Serializer::Read(), SetFrozen(), SetTemperatureDirect(), and VARIABLE_TEMPERATURE.

◆ RefreshTemperatureAccess()

void RefreshTemperatureAccess ( TemperatureData data)
inlineprotected

refreshes access without setting temperature, keeps the source locked in

Definition at line 2432 of file entityai.c.

References CanHaveTemperature(), Debug::Log(), and m_TAC.

◆ RegisterNetSyncVariableBool()

proto native void RegisterNetSyncVariableBool ( string variableName)
protected

Referenced by EntityAI(), and InitItemVariables().

◆ RegisterNetSyncVariableBoolSignal()

proto native void RegisterNetSyncVariableBoolSignal ( string variableName)
protected

◆ RegisterNetSyncVariableFloat()

proto native void RegisterNetSyncVariableFloat ( string variableName,
float minValue = 0,
float maxValue = 0,
int precision = 1 )
protected

Referenced by EntityAI(), and InitItemVariables().

◆ RegisterNetSyncVariableInt()

proto native void RegisterNetSyncVariableInt ( string variableName,
int minValue = 0,
int maxValue = 0 )
protected

Referenced by EntityAI().

◆ RegisterNetSyncVariableObject()

proto native void RegisterNetSyncVariableObject ( string variableName)
protected

◆ RegisterTransportHit()

void RegisterTransportHit ( Transport transport)
inlineprotected

◆ RemoveAgent()

void RemoveAgent ( int agent_id)
protected

◆ RemoveAllAgents()

void RemoveAllAgents ( )
protected

◆ RemoveAllAgentsExcept()

void RemoveAllAgentsExcept ( int agent_to_keep)
protected

◆ RemoveItemVariable()

void RemoveItemVariable ( int variable)
inlineprotected

Removes variable from variable mask, making it appear as though the variable has never been changed from default.

Definition at line 3144 of file entityai.c.

References m_VariablesMask.

◆ ReplaceOnDeath()

bool ReplaceOnDeath ( )
inlineprotected

Definition at line 1089 of file entityai.c.

◆ SaveVariables()

void SaveVariables ( ParamsWriteContext ctx)
inlineprotected

Definition at line 3161 of file entityai.c.

References ItemVariableFlags::FLOAT, m_VariablesMask, Serializer::Write(), and WriteVarsToCTX().

Referenced by OnStoreSave().

◆ SerializeNumericalVars()

void SerializeNumericalVars ( array< float > floats_out)
inlineprotected

◆ ServerDropEntity()

bool ServerDropEntity ( notnull EntityAI item)
inlineprotected

Definition at line 2093 of file entityai.c.

References EntityAI().

◆ ServerTakeEntityAsAttachment()

bool ServerTakeEntityAsAttachment ( notnull EntityAI item)
inlineprotected

Definition at line 2078 of file entityai.c.

References EntityAI(), and GetInventory().

◆ ServerTakeEntityAsAttachmentEx()

bool ServerTakeEntityAsAttachmentEx ( notnull EntityAI item,
int slot )
inlineprotected

Definition at line 2011 of file entityai.c.

References EntityAI(), and GetInventory().

◆ ServerTakeEntityToCargo()

bool ServerTakeEntityToCargo ( notnull EntityAI item)
inlineprotected

Definition at line 1947 of file entityai.c.

References EntityAI(), and GetInventory().

◆ ServerTakeEntityToInventory()

bool ServerTakeEntityToInventory ( FindInventoryLocationType flags,
notnull EntityAI item )
inlineprotected

Definition at line 1914 of file entityai.c.

References EntityAI(), and GetInventory().

◆ ServerTakeEntityToTargetAttachment()

bool ServerTakeEntityToTargetAttachment ( notnull EntityAI target,
notnull EntityAI item )
inlineprotected

Definition at line 2043 of file entityai.c.

References EntityAI(), and GetInventory().

◆ ServerTakeEntityToTargetAttachmentEx()

bool ServerTakeEntityToTargetAttachmentEx ( notnull EntityAI target,
notnull EntityAI item,
int slot )
inlineprotected

Definition at line 2027 of file entityai.c.

References EntityAI(), and GetInventory().

◆ ServerTakeEntityToTargetCargo()

bool ServerTakeEntityToTargetCargo ( notnull EntityAI target,
notnull EntityAI item )
inlineprotected

Definition at line 1963 of file entityai.c.

References EntityAI(), and GetInventory().

◆ ServerTakeEntityToTargetCargoEx()

bool ServerTakeEntityToTargetCargoEx ( notnull CargoBase cargo,
notnull EntityAI item,
int row,
int col )
inlineprotected

Definition at line 1993 of file entityai.c.

References EntityAI(), and GetInventory().

◆ ServerTakeEntityToTargetInventory()

bool ServerTakeEntityToTargetInventory ( notnull EntityAI target,
FindInventoryLocationType flags,
notnull EntityAI item )
inlineprotected

Definition at line 1929 of file entityai.c.

References EntityAI(), and GetInventory().

◆ ServerTakeToDst()

bool ServerTakeToDst ( notnull InventoryLocation src,
notnull InventoryLocation dst )
inlineprotected

Definition at line 2059 of file entityai.c.

References GetInventory().

◆ SetActive()

proto native void SetActive ( bool active)
private

Sets this camera as active.

◆ SetAITargetCallbacks()

proto native void SetAITargetCallbacks ( AbstractAITargetCallbacks callbacks)
protected

◆ SetAmbientAlpha()

proto native void SetAmbientAlpha ( float pAlpha)
private

◆ SetAmbientColor()

proto native void SetAmbientColor ( float pRed,
float pGreen,
float pBlue )
private

◆ SetAmbientColorV()

proto native void SetAmbientColorV ( vector pColorVector)
private

◆ SetAsSkinned()

void SetAsSkinned ( )
inlineprotected

Definition at line 502 of file entityai.c.

References GetCompBS().

◆ SetAttachmentExclusionMaskGlobal()

void SetAttachmentExclusionMaskGlobal ( set< int > values)
inlineprotected

Definition at line 4454 of file entityai.c.

References m_AttachmentExclusionMaskGlobal.

◆ SetAttachmentExclusionMaskSlot()

void SetAttachmentExclusionMaskSlot ( int slotId,
set< int > values )
inlineprotected

sets values for specific slot

Definition at line 4461 of file entityai.c.

References ErrorEx, and m_AttachmentExclusionSlotMap.

Referenced by InitInherentSlotExclusionMap(), InitLegacySlotExclusionValuesDerived(), and InitLegacySlotExclusionValuesImplicit().

◆ SetBayonetAttached()

void SetBayonetAttached ( bool pState,
int slot_idx = -1 )
inlineprotected

Definition at line 4004 of file entityai.c.

◆ SetBrightness()

proto native void SetBrightness ( float pValue)
private

◆ SetButtstockAttached()

void SetButtstockAttached ( bool pState,
int slot_idx = -1 )
inlineprotected

Definition at line 4008 of file entityai.c.

◆ SetCastShadow()

proto native void SetCastShadow ( bool pState)
private

◆ SetCleanness()

void SetCleanness ( int value,
bool allow_client = false )
protected

◆ SetColor()

void SetColor ( int r,
int g,
int b,
int a )
protected

◆ SetDiffuseAlpha()

proto native void SetDiffuseAlpha ( float pAlpha)
private

◆ SetDiffuseColor()

proto native void SetDiffuseColor ( float pRed,
float pGreen,
float pBlue )
private

◆ SetDiffuseColorV()

proto native void SetDiffuseColorV ( vector pColorVector)
private

◆ SetEnabled()

proto native void SetEnabled ( bool pState)
private

◆ SetFlareRelPosition()

proto native void SetFlareRelPosition ( vector pPosition)
private

◆ SetFlareVisible()

proto native void SetFlareVisible ( bool pState)
private

◆ SetFocus()

proto native void SetFocus ( float distance,
float blur )
private

Depth of Field settings.

Parameters
distanceDOF distance parameter
blurDOF blur parameter

◆ SetFOV()

proto native void SetFOV ( float fov)
private

Field of View settings.

Parameters
fovFOV angle in radians

◆ SetFreezeThawProgress()

void SetFreezeThawProgress ( float val)
inlineprotected

0->1 when freezing, 1->0 when thawing

Definition at line 2525 of file entityai.c.

References m_FreezeThawProgress.

Referenced by DeSerializeNumericalVars(), HandleFreezingProgression(), and SetFrozen().

◆ SetFromProjectile()

void SetFromProjectile ( ProjectileStoppedInfo info)
inlineprotected

Definition at line 4704 of file entityai.c.

◆ SetFrozen()

◆ SetHeatHazePower()

proto native void SetHeatHazePower ( float pValue)
private

◆ SetHeatHazeRadius()

proto native void SetHeatHazeRadius ( float pValue)
private

◆ SetInvisibleRecursive()

void SetInvisibleRecursive ( bool invisible,
EntityAI parent = null,
array< int > attachments = null )
inlineprotected

◆ SetItemOverheatProgress()

void SetItemOverheatProgress ( float val,
float deltaTime = 0 )
inlineprotected

◆ SetLifetime()

proto native void SetLifetime ( float fLifeTime)
protected

Set (override) remaining economy lifetime (seconds).

◆ SetLifetimeMax()

proto native void SetLifetimeMax ( float fLifeTime)
protected

Set (override) max economy lifetime per entity instance (seconds).

◆ SetLightType()

proto native void SetLightType ( int pType)
private

◆ SetLiquidType()

void SetLiquidType ( int value,
bool allow_client = false )
protected

◆ SetNearPlane()

proto native void SetNearPlane ( float nearPlane)
private

set near plane of camera

Parameters
nearPlaneclamped internally to 0.01m

◆ SetObjectMaterial()

proto native void SetObjectMaterial ( int index,
string mat_name )
protected

Change material in hiddenSelections.

◆ SetObjectTexture()

proto native void SetObjectTexture ( int index,
string texture_name )
protected

Change texture in hiddenSelections.

◆ SetPersistentPairID()

void SetPersistentPairID ( int id)
inlineprotected

◆ SetPilotLight()

proto native void SetPilotLight ( bool isOn)
protected

◆ SetPrepareToDelete()

void SetPrepareToDelete ( )
inlineprotected

Definition at line 824 of file entityai.c.

References m_PreparedToDelete.

◆ SetPulseCoef()

proto native void SetPulseCoef ( float pState)
private

◆ SetQuantity()

bool SetQuantity ( float value,
bool destroy_config = true,
bool destroy_forced = false,
bool allow_client = false,
bool clamp_to_stack_max = true )
protected

◆ SetQuantityNormalized()

void SetQuantityNormalized ( float value,
bool destroy_config = true,
bool destroy_forced = false )
protected

◆ SetQuantityToMinimum()

void SetQuantityToMinimum ( )
protected

◆ SetRadius()

proto native void SetRadius ( float pValue)
private

◆ SetRequiredSimulation()

proto native void SetRequiredSimulation ( bool req)
protected

◆ SetRoofAbove()

void SetRoofAbove ( bool state)
inlineprotected

Definition at line 703 of file entityai.c.

References m_RoofAbove.

◆ SetSimpleHiddenSelectionState()

proto native void SetSimpleHiddenSelectionState ( int index,
bool state )
protected

Simple hidden selection state; 0 == hidden.

◆ SetSpotLightAngle()

proto native void SetSpotLightAngle ( float pValue)
private

◆ SetStoreLoad()

void SetStoreLoad ( bool value)
protected

◆ SetStoreLoadedQuantity()

void SetStoreLoadedQuantity ( float value)
protected

◆ SetSynchDirty()

proto native void SetSynchDirty ( )
protected

Sets object synchronization dirty flag, which signalize that object wants to be synchronized (take effect only in MP on server side).

Referenced by MaxLifetimeRefreshCalc(), SetFrozen(), SetVariableMask(), and SetViewIndex().

◆ SetTakeable()

void SetTakeable ( bool pState)
protected

◆ SetTemperature()

void SetTemperature ( float value,
bool allow_client = false )
inlineprotected

not really deprecated, but missing context info from TemperatureData. Default values used instead.

Definition at line 2323 of file entityai.c.

References IsServerCheck(), SetTemperatureEx(), and TemperatureData().

Referenced by AddTemperature().

◆ SetTemperatureDirect()

◆ SetTemperatureEx()

◆ SetTemperatureMax()

void SetTemperatureMax ( )
inlineprotected

presumably for debug purposes?

Definition at line 2451 of file entityai.c.

References GetTemperature(), GetTemperatureFreezeThreshold(), GetTemperatureMax(), SetFrozen(), and SetTemperatureDirect().

◆ SetUniversalTemperatureSource()

void SetUniversalTemperatureSource ( UTemperatureSource uts)
inlineprotected

Definition at line 4181 of file entityai.c.

References m_UniversalTemperatureSource.

◆ SetVariableMask()

void SetVariableMask ( int variable)
inlineprotected

Definition at line 3134 of file entityai.c.

References g_Game, m_VariablesMask, and SetSynchDirty().

Referenced by SetTemperatureDirect().

◆ SetViewIndex()

void SetViewIndex ( int index)
inlineprotected

Sets item preview index.

Definition at line 3719 of file entityai.c.

References g_Game, m_ViewIndex, and SetSynchDirty().

◆ SetVisibleDuringDaylight()

proto native void SetVisibleDuringDaylight ( bool pState)
private

◆ SetWeightDirty()

void SetWeightDirty ( )
inlineprotected

◆ SetWet()

void SetWet ( float value,
bool allow_client = false )
protected

◆ SetWetMax()

void SetWetMax ( )
protected

◆ ShowAllSelections()

void ShowAllSelections ( )
inlineprotected

Sets all animation values to 0, making them VISIBLE if they are configured in models.cfg in such way. These selections must also be defined in the entity's config class in 'AnimationSources'.

Definition at line 1421 of file entityai.c.

References g_Game, GetType(), and ShowSelection().

◆ ShowSelection()

void ShowSelection ( string selection_name)
inlineprotected

Shows selection of the given name. Must be configed in config.hpp and models.cfg.

Definition at line 3365 of file entityai.c.

Referenced by ShowAllSelections().

◆ SoundHardBushFallingPlay()

void SoundHardBushFallingPlay ( )
inlineprotected

◆ SoundHardTreeFallingPlay()

void SoundHardTreeFallingPlay ( )
inlineprotected

◆ SoundSoftBushFallingPlay()

void SoundSoftBushFallingPlay ( )
inlineprotected

◆ SoundSoftTreeFallingPlay()

void SoundSoftTreeFallingPlay ( )
inlineprotected

◆ SpawnEntityOnGround()

EntityAI SpawnEntityOnGround ( string object_name,
vector mat[4] )
inlineprotected

◆ SpawnEntityOnGroundPos()

EntityAI SpawnEntityOnGroundPos ( string object_name,
vector pos )
inlineprotected

◆ SpawnInInventoryOrGroundPos()

EntityAI SpawnInInventoryOrGroundPos ( string object_name,
GameInventory inv,
vector pos )
inlineprotected

◆ SplitIntoStackMaxClient()

void SplitIntoStackMaxClient ( EntityAI destination_entity,
int slot_id )
protected

References EntityAI().

◆ SplitIntoStackMaxEx()

void SplitIntoStackMaxEx ( EntityAI destination_entity,
int slot_id )
protected

References EntityAI().

◆ StopInterpolation()

proto native void StopInterpolation ( )
private

Performs cleanup.

Important to call when interpolation run is finished.

◆ SwitchItemSelectionTexture()

void SwitchItemSelectionTexture ( EntityAI item,
string slot_name )
protected

References EntityAI().

◆ SwitchItemSelectionTextureEx()

void SwitchItemSelectionTextureEx ( EItemManipulationContext context,
Param par = null )
protected

◆ SwitchLight()

proto native void SwitchLight ( bool isOn)
protected

◆ TransferVariablesFloat()

void TransferVariablesFloat ( array< float > float_vars)
inlineprotected

Definition at line 3149 of file entityai.c.

References DeSerializeNumericalVars().

◆ TranslateSlotFromSelection()

bool TranslateSlotFromSelection ( string selection_name,
out int slot_id )
inlineprotected

Definition at line 4165 of file entityai.c.

◆ TryDelete()

bool TryDelete ( )
inlineprotected

◆ UnpairRemote()

void UnpairRemote ( )
protected

◆ UpdateNetSyncVariableFloat()

proto native void UpdateNetSyncVariableFloat ( string variableName,
float minValue = 0,
float maxValue = 0,
int precision = 1 )
protected

◆ UpdateNetSyncVariableInt()

proto native void UpdateNetSyncVariableInt ( string variableName,
float minValue = 0,
float maxValue = 0 )
protected

◆ UpdateWeight()

void UpdateWeight ( WeightUpdateType updateType = WeightUpdateType.FULL,
float weightAdjustment = 0 )
protected

◆ UseConfigInitTemperature()

bool UseConfigInitTemperature ( )
inlineprotected

Definition at line 2280 of file entityai.c.

References IsAnimal(), IsCorpse(), EntityAI::IsMan(), and IsZombie().

Referenced by InitTemperature().

◆ WriteVarsToCTX()

void WriteVarsToCTX ( ParamsWriteContext ctx)
inlineprotected

Writes to storage CTX.

Definition at line 3199 of file entityai.c.

References GetIsFrozen(), GetTemperature(), IsVariableSet(), m_VariablesMask, VARIABLE_TEMPERATURE, and Serializer::Write().

Field Documentation

◆ DEAD_REPLACE_DELAY

const int DEAD_REPLACE_DELAY = 250
private

Definition at line 123 of file entityai.c.

Referenced by EEKilled().

◆ DELETE_CHECK_DELAY

const int DELETE_CHECK_DELAY = 100
private

Definition at line 124 of file entityai.c.

Referenced by CheckForDestroy(), and TryDelete().

◆ m_AttachmentExclusionMaskChildren

◆ m_AttachmentExclusionMaskGlobal

◆ m_AttachmentExclusionSlotMap

ref map<int,ref set<int> > m_AttachmentExclusionSlotMap
private

◆ m_AttachmentsWithAttachments

ref array<EntityAI> m_AttachmentsWithAttachments
private

◆ m_AttachmentsWithCargo

ref array<EntityAI> m_AttachmentsWithCargo
private

Definition at line 126 of file entityai.c.

Referenced by EEInit(), EEItemAttached(), EEItemDetached(), EntityAI(), and GetAttachmentsWithCargo().

◆ m_BloodInfectionChanceCached

ref map<eAgents, float> m_BloodInfectionChanceCached
private

◆ m_CanDisplayWeight

bool m_CanDisplayWeight
protected

Definition at line 136 of file entityai.c.

Referenced by CanDisplayWeight(), and EntityAI().

◆ m_ComponentsBank

ref ComponentsBank m_ComponentsBank
private

◆ m_ConfigWeight

float m_ConfigWeight = ConfigGetInt("weight")
private

Definition at line 135 of file entityai.c.

Referenced by GetConfigWeightModified().

◆ m_DamageDisplayNameMap

ref map<int, string> m_DamageDisplayNameMap = new map<int, string>
private

Definition at line 131 of file entityai.c.

Referenced by GetEntityDamageDisplayNameMap(), and InitDamageZoneDisplayNameMapping().

◆ m_DamageZoneMap

ref DamageZoneMap m_DamageZoneMap
protected

Definition at line 130 of file entityai.c.

Referenced by GetEntityDamageZoneMap(), and InitDamageZoneMapping().

◆ m_DeathSyncSent

bool m_DeathSyncSent
private

Definition at line 108 of file entityai.c.

◆ m_DestructionBehaviourObj

ref DestructionEffectBase m_DestructionBehaviourObj
private

Definition at line 118 of file entityai.c.

Referenced by AttemptDestructionBehaviour(), and OnExplosionEffects().

◆ m_ElapsedSinceLastUpdate

float m_ElapsedSinceLastUpdate
protected

Definition at line 138 of file entityai.c.

Referenced by EntityAI(), OnCEUpdate(), and ProcessVariables().

◆ m_EM

◆ m_FreezeThawProgress

◆ m_HiddenSelectionsData

◆ m_Initialized

bool m_Initialized = false
protected

Definition at line 144 of file entityai.c.

Referenced by DeferredInit(), and IsInitialized().

◆ m_IsFrozen

bool m_IsFrozen
protected

◆ m_IsFrozenLocal

bool m_IsFrozenLocal
protected

Definition at line 168 of file entityai.c.

Referenced by OnVariablesSynchronized().

◆ m_KilledByHeadshot

bool m_KilledByHeadshot
private

Definition at line 109 of file entityai.c.

◆ m_KillerData

ref KillerData m_KillerData
private

Definition at line 120 of file entityai.c.

◆ m_LastUpdatedTime

float m_LastUpdatedTime
private

Definition at line 137 of file entityai.c.

Referenced by EEInventoryOut(), EntityAI(), and OnCEUpdate().

◆ m_OldLocation

ref InventoryLocation m_OldLocation
private

Definition at line 128 of file entityai.c.

◆ m_OnAttachmentReleaseLock

ref ScriptInvoker m_OnAttachmentReleaseLock
protected

Definition at line 196 of file entityai.c.

Referenced by GetOnAttachmentReleaseLock().

◆ m_OnAttachmentSetLock

ref ScriptInvoker m_OnAttachmentSetLock
protected

Definition at line 194 of file entityai.c.

Referenced by GetOnAttachmentSetLock().

◆ m_OnHitByInvoker

ref ScriptInvoker m_OnHitByInvoker
protected

Definition at line 198 of file entityai.c.

Referenced by EEHitBy(), and GetOnHitByInvoker().

◆ m_OnItemAddedIntoCargo

ref ScriptInvoker m_OnItemAddedIntoCargo
protected

Definition at line 180 of file entityai.c.

Referenced by EECargoIn(), and GetOnItemAddedIntoCargo().

◆ m_OnItemAttached

ref ScriptInvoker m_OnItemAttached
protected

Definition at line 176 of file entityai.c.

Referenced by EEItemAttached(), and GetOnItemAttached().

◆ m_OnItemDetached

ref ScriptInvoker m_OnItemDetached
protected

Definition at line 178 of file entityai.c.

Referenced by EEItemDetached(), and GetOnItemDetached().

◆ m_OnItemFlipped

ref ScriptInvoker m_OnItemFlipped
protected

Definition at line 186 of file entityai.c.

Referenced by GetOnItemFlipped().

◆ m_OnItemMovedInCargo

ref ScriptInvoker m_OnItemMovedInCargo
protected

Definition at line 184 of file entityai.c.

Referenced by EECargoMove(), and GetOnItemMovedInCargo().

◆ m_OnItemRemovedFromCargo

ref ScriptInvoker m_OnItemRemovedFromCargo
protected

Definition at line 182 of file entityai.c.

Referenced by EECargoOut(), and GetOnItemRemovedFromCargo().

◆ m_OnKilledInvoker

ref ScriptInvoker m_OnKilledInvoker
protected

Definition at line 200 of file entityai.c.

Referenced by EEKilled(), and GetOnKilledInvoker().

◆ m_OnReleaseLock

ref ScriptInvoker m_OnReleaseLock
protected

Definition at line 192 of file entityai.c.

Referenced by GetOnReleaseLock().

◆ m_OnSetLock

ref ScriptInvoker m_OnSetLock
protected

Definition at line 190 of file entityai.c.

Referenced by GetOnSetLock().

◆ m_OnViewIndexChanged

ref ScriptInvoker m_OnViewIndexChanged
protected

Definition at line 188 of file entityai.c.

Referenced by GetOnViewIndexChanged().

◆ m_OverheatProgress

float m_OverheatProgress
protected

◆ m_PendingDelete

bool m_PendingDelete = false
protected

Definition at line 143 of file entityai.c.

Referenced by Delete(), EEDelete(), and IsSetForDeletion().

◆ m_PreparedToDelete

bool m_PreparedToDelete = false
private

Definition at line 110 of file entityai.c.

Referenced by IsPreparedToDelete(), and SetPrepareToDelete().

◆ m_PreviousRoofTestTime

float m_PreviousRoofTestTime = 0
protected

Definition at line 139 of file entityai.c.

◆ m_RefresherViable

bool m_RefresherViable = false
private

Definition at line 111 of file entityai.c.

Referenced by IsRefresherSignalingViable(), and MaxLifetimeRefreshCalc().

◆ m_RoofAbove

bool m_RoofAbove = false
protected

Definition at line 113 of file entityai.c.

Referenced by IsRoofAbove(), and SetRoofAbove().

◆ m_TAC

ref TemperatureAccessComponent m_TAC
protected

Definition at line 165 of file entityai.c.

Referenced by InitItemVariables(), RefreshTemperatureAccess(), and SetTemperatureEx().

◆ m_TransportHitRegistered

bool m_TransportHitRegistered = false
protected

Definition at line 145 of file entityai.c.

Referenced by RegisterTransportHit().

◆ m_TransportHitVelocity

vector m_TransportHitVelocity
protected

Definition at line 146 of file entityai.c.

Referenced by RegisterTransportHit().

◆ m_UniversalTemperatureSource

UTemperatureSource m_UniversalTemperatureSource
protected

Definition at line 141 of file entityai.c.

Referenced by GetUniversalTemperatureSource(), and SetUniversalTemperatureSource().

◆ m_VarHeatPermeabilityCoef

float m_VarHeatPermeabilityCoef
protected

Definition at line 163 of file entityai.c.

Referenced by GetHeatPermeabilityCoef(), and InitItemVariables().

◆ m_VariablesMask

◆ m_VarTemperature

float m_VarTemperature
protected

◆ m_VarTemperatureFreezeThreshold

float m_VarTemperatureFreezeThreshold
protected

Definition at line 158 of file entityai.c.

Referenced by GetTemperatureFreezeThreshold(), and InitItemVariables().

◆ m_VarTemperatureFreezeTime

float m_VarTemperatureFreezeTime
protected

Definition at line 160 of file entityai.c.

Referenced by GetTemperatureFreezeTime(), and InitItemVariables().

◆ m_VarTemperatureInit

float m_VarTemperatureInit
protected

Definition at line 155 of file entityai.c.

Referenced by GetTemperatureInit(), InitItemVariables(), and InitTemperature().

◆ m_VarTemperatureMax

float m_VarTemperatureMax
protected

Definition at line 157 of file entityai.c.

Referenced by GetTemperatureMax(), and InitItemVariables().

◆ m_VarTemperatureMin

float m_VarTemperatureMin
protected

Definition at line 156 of file entityai.c.

Referenced by GetTemperatureMin(), and InitItemVariables().

◆ m_VarTemperatureOverheatTime

float m_VarTemperatureOverheatTime
protected

Definition at line 162 of file entityai.c.

Referenced by GetItemOverheatTime(), and InitItemVariables().

◆ m_VarTemperatureThawThreshold

float m_VarTemperatureThawThreshold
protected

Definition at line 159 of file entityai.c.

Referenced by GetTemperatureThawThreshold(), and InitItemVariables().

◆ m_VarTemperatureThawTime

float m_VarTemperatureThawTime
protected

Definition at line 161 of file entityai.c.

Referenced by GetTemperatureThawTime(), and InitItemVariables().

◆ m_ViewIndex

int m_ViewIndex = 0
protected

view index Item view index is used to setup which camera will be used in item view widget in inventory. With this index you can setup various camera angles for different item states (e.g. fireplace, weapons).

Definition at line 3716 of file entityai.c.

Referenced by SetViewIndex().

◆ m_Weight

float m_Weight
private

Definition at line 133 of file entityai.c.

◆ m_WeightDirty

bool m_WeightDirty = 1
private

Definition at line 112 of file entityai.c.

Referenced by ClearWeightDirty(), GetWeightEx(), and SetWeightDirty().

◆ m_WeightEx

float m_WeightEx
private

Definition at line 134 of file entityai.c.

Referenced by GetWeightEx().


The documentation for this class was generated from the following files: