![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
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< int > | GetAttachmentExclusionInitSlotValue (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< EntityAI > | GetAttachmentsWithAttachments () |
| array< EntityAI > | GetAttachmentsWithCargo () |
| 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, string > | GetEntityDamageDisplayNameMap () |
| 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< string > | GetSuitableFinisherHitComponents () |
| 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< float > | GetVariablesFloat () |
| 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) |
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< int > | GetAttachmentExclusionMaskAll (int slotId) |
| Slot-specific, children (attachments), and additional (state etc.) masks combined. | |
| set< int > | GetAttachmentExclusionMaskChildren () |
| Mask value coming from the item's attachments. | |
| set< int > | GetAttachmentExclusionMaskGlobal () |
| Global mask value, independent of slot-specific behavior! | |
| set< int > | GetAttachmentExclusionMaskSlot (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. | |
|
inlineprivate |
Definition at line 250 of file entityai.c.
|
inlineprotected |
to help with item staging exclusions
Definition at line 4440 of file entityai.c.
References m_AttachmentExclusionMaskGlobal.
|
inlineprotected |
Definition at line 2335 of file entityai.c.
References GetTemperature(), and SetTemperature().
|
protected |
|
inlineprotected |
if we want to filter
Definition at line 4627 of file entityai.c.
Referenced by AdjustExclusionAccessPropagation(), and CheckExclusionAccessCondition().
|
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().
|
inlineprotected |
Called when entity is being loaded from DB or Storage (after all children loaded).
Definition at line 1391 of file entityai.c.
|
inlineprotected |
Definition at line 1657 of file entityai.c.
References EntityAI(), InventoryLocation::GetType(), GameConstants::INVENTORY_MAX_REACHABLE_DEPTH_ATT, and InventoryLocation::IsValid().
Definition at line 1049 of file entityai.c.
References ErrorEx, GetDestructionBehaviour(), IsDestructionBehaviour(), and m_DestructionBehaviourObj.
Referenced by EEHealthLevelChanged().
|
inlineprotected |
Definition at line 525 of file entityai.c.
References EnumTools::EnumToString(), g_Game, GetType(), m_BloodInfectionChanceCached, and string::ToLower().
|
inlineprotected |
Definition at line 1800 of file entityai.c.
|
inlineprotected |
Definition at line 1792 of file entityai.c.
|
inlineprotected |
Definition at line 812 of file entityai.c.
References IsSetForDeletion().
|
inlineprotected |
Definition at line 761 of file entityai.c.
|
inlineprotected |
Definition at line 1530 of file entityai.c.
References EntityAI().
|
inlineprotected |
Definition at line 1517 of file entityai.c.
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().
Definition at line 630 of file entityai.c.
Method which returns message why object can't be placed at given position.
Definition at line 636 of file entityai.c.
Definition at line 508 of file entityai.c.
References EntityAI(), and IsSkinned().
|
inlineprotected |
returns current splitability
Definition at line 672 of file entityai.c.
Definition at line 749 of file entityai.c.
References dBodyIsActive(), EntityAI(), and EntityAI::IsMan().
|
inlineprotected |
Definition at line 1522 of file entityai.c.
References EntityAI(), and GetInventory().
Definition at line 1512 of file entityai.c.
References EntityAI().
|
inlineprotected |
Definition at line 1755 of file entityai.c.
References CanDisplayAttachmentSlot(), GameInventory::GetAttachmentSlotId(), GameInventory::GetAttachmentSlotsCount(), and GetInventory().
Definition at line 1776 of file entityai.c.
Definition at line 1747 of file entityai.c.
References InventorySlots::GetShowForSlotId().
Definition at line 1737 of file entityai.c.
References InventorySlots::GetShowForSlotId(), InventorySlots::GetSlotIdFromString(), and Debug::LogWarning().
|
inlineprotected |
Definition at line 1784 of file entityai.c.
References GetInventory().
|
inlineprotected |
'displayWeight' in item config
Definition at line 473 of file entityai.c.
References m_CanDisplayWeight.
Returns if item can be dropped out from this entity.
Definition at line 2132 of file entityai.c.
References EntityAI().
|
inlineprotected |
Definition at line 2530 of file entityai.c.
References CanHaveTemperature(), GetTemperatureFreezeThreshold(), GetTemperatureMax(), GetTemperatureMin(), and GetTemperatureThawThreshold().
Referenced by SetFrozen(), and SetTemperatureEx().
|
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().
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().
|
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().
Definition at line 1456 of file entityai.c.
References EntityAI().
Definition at line 1568 of file entityai.c.
References EntityAI().
Definition at line 1468 of file entityai.c.
References EntityAI(), and IsHologram().
Definition at line 1579 of file entityai.c.
References EntityAI(), and IsHologram().
Definition at line 1706 of file entityai.c.
References EntityAI(), and IsHologram().
Definition at line 1444 of file entityai.c.
References CheckAttachmentReceiveExclusion(), and EntityAI().
Definition at line 1550 of file entityai.c.
References CargoBase::CanReceiveItemIntoCargo(), EntityAI(), GameInventory::GetCargo(), and GetInventory().
Definition at line 1652 of file entityai.c.
References EntityAI().
Definition at line 1484 of file entityai.c.
References EntityAI(), GameInventory::GetCurrentInventoryLocation(), GetInventory(), InventoryLocation::GetSlot(), GameInventory::GetSlotLock(), and InventoryLocation::IsValid().
Definition at line 1608 of file entityai.c.
References EntityAI().
Definition at line 1717 of file entityai.c.
References EntityAI().
Definition at line 1619 of file entityai.c.
References EntityAI().
Definition at line 1728 of file entityai.c.
References EntityAI().
Definition at line 1695 of file entityai.c.
References EntityAI().
|
inlineprotected |
Definition at line 2173 of file entityai.c.
References EntityAI().
Definition at line 1590 of file entityai.c.
References CargoBase::CanSwapItemInCargo(), EntityAI(), GameInventory::GetCargo(), and GetInventory().
Definition at line 1474 of file entityai.c.
References EntityAI().
Definition at line 3840 of file entityai.c.
|
inlineprotected |
Definition at line 3841 of file entityai.c.
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().
|
inlineprotected |
Definition at line 4605 of file entityai.c.
References AdjustExclusionAccessCondition().
Referenced by IsExclusionFlagPresentRecursive().
|
inlineprotected |
special propagation contition
Definition at line 4633 of file entityai.c.
References AdjustExclusionAccessPropagation(), and InventorySlots::INVALID.
Referenced by ClearExclusionValueRecursive(), and PropagateExclusionValueRecursive().
|
inlineprotected |
Definition at line 835 of file entityai.c.
References CALL_CATEGORY_SYSTEM, DELETE_CHECK_DELAY, g_Game, IsPrepareToDelete(), and TryDelete().
|
protected |
Roof check for entity, limited by time (anti-spam solution).
Definition at line 4488 of file entityai.c.
References CheckExclusionAccessPropagation(), EntityAI(), GetHierarchyParent(), GetInventory(), InventoryLocation::GetSlot(), and m_AttachmentExclusionMaskChildren.
Referenced by EEItemDetached().
|
protected |
|
inlineprotected |
to help with item staging exclusions
Definition at line 4447 of file entityai.c.
References m_AttachmentExclusionMaskGlobal.
|
inlineprotected |
Definition at line 1539 of file entityai.c.
References EntityAI().
References EntityAI().
DEPRECATED - for legacy purposes.
Definition at line 457 of file entityai.c.
|
inlineprotected |
Definition at line 451 of file entityai.c.
|
protected |
CreateComponent.
Definition at line 316 of file entityai.c.
References GetComponent().
Referenced by EntityAI().
|
inlineprotected |
Definition at line 1104 of file entityai.c.
References DeleteSafe(), ECE_OBJECT_SWAP, EntityAI(), g_Game, GetDeadItemName(), GetOrientation(), GetPosition(), KeepHealthOnReplace(), and RF_ORIGINAL.
Referenced by EEKilled().
|
inlineprotected |
Definition at line 3335 of file entityai.c.
References COMP_TYPE_ETITY_DEBUG, and GetComponent().
|
inlineprotected |
Definition at line 3325 of file entityai.c.
References COMP_TYPE_ETITY_DEBUG, GetComponent(), and Shape.
|
inlineprotected |
Definition at line 3330 of file entityai.c.
References COMP_TYPE_ETITY_DEBUG, and GetComponent().
|
inlineprotected |
Definition at line 3350 of file entityai.c.
References COMP_TYPE_ETITY_DEBUG, and GetComponent().
Definition at line 3340 of file entityai.c.
References COMP_TYPE_ETITY_DEBUG, GetComponent(), and Shape.
|
inlineprotected |
Definition at line 3345 of file entityai.c.
References COMP_TYPE_ETITY_DEBUG, and GetComponent().
|
inlineprivate |
|
inlineprotected |
Delete this object in next frame.
void Definition at line 774 of file entityai.c.
References m_PendingDelete.
Referenced by DeleteSafe().
|
inlineprotected |
Definition at line 780 of file entityai.c.
References CALL_CATEGORY_SYSTEM, and g_Game.
|
inlineprotected |
Definition at line 786 of file entityai.c.
References Delete(), g_Game, and GetHierarchyRootPlayer().
Referenced by DeathUpdate(), DeleteSave(), and TryDelete().
|
inlineprotected |
Definition at line 802 of file entityai.c.
References DeleteSafe().
Definition at line 3254 of file entityai.c.
References Math::Round(), SetFreezeThawProgress(), SetFrozen(), SetTemperatureDirect(), and VARIABLE_TEMPERATURE.
|
protected |
|
inlineprotected |
Definition at line 566 of file entityai.c.
|
inlineprotected |
Do the roof check when placing this?
Definition at line 642 of file entityai.c.
|
inlineprotected |
Definition at line 1022 of file entityai.c.
References SetWeightDirty().
|
inlineprotected |
Definition at line 1208 of file entityai.c.
References EntityAI(), m_OnItemAddedIntoCargo, and SetWeightDirty().
|
inlineprotected |
Definition at line 1234 of file entityai.c.
References EntityAI(), and m_OnItemMovedInCargo.
|
inlineprotected |
Definition at line 1221 of file entityai.c.
References EntityAI(), m_OnItemRemovedFromCargo, and SetWeightDirty().
|
inlineprotected |
Called right before object deleting.
Definition at line 934 of file entityai.c.
References EntityAI(), GetInventory(), m_EM, and m_PendingDelete.
Definition at line 1027 of file entityai.c.
References AttemptDestructionBehaviour(), EntityAI(), GetHierarchyParent(), OnDamageDestroyed(), and GameConstants::STATE_RUINED.
|
inlineprotected |
Definition at line 1117 of file entityai.c.
References component, EntityAI(), and m_OnHitByInvoker.
|
inlineprotected |
Definition at line 1127 of file entityai.c.
References component, and EntityAI().
|
inlineprotected |
Called upon object creation.
Definition at line 900 of file entityai.c.
References GameInventory::AttachmentCount(), CanHaveTemperature(), GameInventory::EEInit(), EntityAI(), g_Game, GameInventory::GetAttachmentFromIndex(), GameInventory::GetAttachmentSlotsCount(), GameInventory::GetCargo(), GetInventory(), InitTemperature(), m_AttachmentsWithAttachments, m_AttachmentsWithCargo, and MaxLifetimeRefreshCalc().
References EntityAI().
Definition at line 1010 of file entityai.c.
References EntityAI(), g_Game, GetInventory(), m_LastUpdatedTime, and GameInventory::ResetFlipCargo().
Definition at line 1133 of file entityai.c.
References COMP_TYPE_COUNT, EntityAI(), GameInventory::GetAttachmentSlotsCount(), GameInventory::GetCargo(), GetHierarchyRootPlayer(), InventorySlots::GetSlotIdFromString(), m_AttachmentsWithAttachments, m_AttachmentsWithCargo, m_ComponentsBank, m_EM, m_OnItemAttached, PropagateExclusionValueRecursive(), and SetWeightDirty().
Definition at line 1173 of file entityai.c.
References ClearExclusionValueRecursive(), COMP_TYPE_COUNT, EntityAI(), GetHierarchyRootPlayer(), InventorySlots::GetSlotIdFromString(), m_AttachmentsWithAttachments, m_AttachmentsWithCargo, m_ComponentsBank, m_EM, m_OnItemDetached, and SetWeightDirty().
|
inlineprotected |
Definition at line 962 of file entityai.c.
References EntityAI(), Error(), OnItemAttachmentSlotChanged(), OnItemLocationChanged(), OnWasAttached(), and OnWasDetached().
|
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().
|
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.
|
inlineprotected |
Called when entity is being created as new by CE/ Debug.
Definition at line 1386 of file entityai.c.
|
protected |
Called from 'IEntity.RemoveChild' or 'IEntity.AddChild' when hierarchy changes.
References EntityAI().
|
protected |
Called from 'IEntity.AddChild'.
References EntityAI().
|
private |
|
private |
Enables the smoothing in interpolation.
|
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().
Definition at line 3282 of file entityai.c.
References COMP_TYPE_COUNT, and m_ComponentsBank.
|
protected |
Definition at line 1847 of file entityai.c.
References EntityAI(), GameInventory::FindAttachment(), g_Game, GetInventory(), InventorySlots::GetSlotIdFromString(), and InventorySlots::INVALID.
|
inlineprotected |
Definition at line 711 of file entityai.c.
|
private |
|
private |
|
inlineprotected |
Definition at line 4699 of file entityai.c.
Get attached entity by config type name.
Definition at line 2117 of file entityai.c.
References GameInventory::AttachmentCount(), EntityAI(), GameInventory::GetAttachmentFromIndex(), and GetInventory().
Get attached entity by type.
Definition at line 2101 of file entityai.c.
References GameInventory::AttachmentCount(), EntityAI(), GameInventory::GetAttachmentFromIndex(), and GetInventory().
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().
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().
|
inlineprivate |
Mask value coming from the item's attachments.
Definition at line 4535 of file entityai.c.
References m_AttachmentExclusionMaskChildren.
Referenced by HasInternalExclusionConflicts().
|
inlineprivate |
Global mask value, independent of slot-specific behavior!
Definition at line 4529 of file entityai.c.
References m_AttachmentExclusionMaskGlobal.
Referenced by HasInternalExclusionConflicts().
Specific slot behavior.
Definition at line 4523 of file entityai.c.
References m_AttachmentExclusionSlotMap.
Referenced by GetAttachmentExclusionMaskAll(), HasInternalExclusionConflicts(), and InitLegacySlotExclusionValuesDerived().
|
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.
Definition at line 692 of file entityai.c.
References m_AttachmentsWithAttachments.
Definition at line 687 of file entityai.c.
References m_AttachmentsWithCargo.
|
inlineprotected |
Definition at line 4006 of file entityai.c.
|
private |
|
inlineprotected |
Definition at line 4010 of file entityai.c.
|
inlineprivate |
Definition at line 336 of file entityai.c.
|
private |
|
inlineprotected |
Definition at line 2761 of file entityai.c.
Definition at line 2736 of file entityai.c.
|
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().
|
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.
Definition at line 322 of file entityai.c.
References m_ComponentsBank.
Referenced by CreateComponent(), DebugBBoxDelete(), DebugBBoxDraw(), DebugBBoxSetColor(), DebugDirectionDelete(), DebugDirectionDraw(), DebugDirectionSetColor(), GetCompBS(), and GetCompEM().
|
inlineprotected |
Definition at line 3530 of file entityai.c.
References GetWetWeightModifier(), and m_ConfigWeight.
specifically for cooking system, to get heat source target temperatures
Definition at line 2478 of file entityai.c.
|
staticprivate |
|
staticprivate |
Returns FOV of current camera object.
FOV of current camera object
|
inlineprotected |
Definition at line 1094 of file entityai.c.
Referenced by DeathUpdate().
|
inlineprotected |
Definition at line 3643 of file entityai.c.
References SAT_DEBUG_ACTION.
|
inlineprotected |
Definition at line 3320 of file entityai.c.
|
inlineprotected |
Definition at line 3296 of file entityai.c.
References string::Empty, GetCompEM(), GetEconomyProfile(), ComponentEnergyManager::GetEnergySource(), GetLifetime(), GetWeightEx(), ComponentEnergyManager::IsSwitchedOn(), ComponentEnergyManager::IsWorking(), and Object.
|
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().
|
inlineprotected |
Definition at line 3804 of file entityai.c.
References GetType(), Debug::LogError(), and vector::Zero.
|
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().
|
inlineprivate |
Definition at line 341 of file entityai.c.
|
private |
|
private |
|
protected |
Get economy item profile (if assigned, otherwise null).
Referenced by GetDebugText(), and MaxLifetimeRefreshCalc().
Definition at line 467 of file entityai.c.
References m_DamageDisplayNameMap.
|
inlineprotected |
Definition at line 462 of file entityai.c.
References m_DamageZoneMap.
|
private |
|
inlineprotected |
on server only
Definition at line 2513 of file entityai.c.
References m_FreezeThawProgress.
Referenced by SerializeNumericalVars().
|
private |
|
private |
|
inlineprotected |
Returns temperature change speed multiplier for this item and all its children (multiplicative interaction).
Definition at line 2487 of file entityai.c.
References m_VarHeatPermeabilityCoef.
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.
|
inlineprotected |
Returns the hiddenSelectionsTextures array from the object's config.
Definition at line 2802 of file entityai.c.
References m_HiddenSelectionsData.
|
inlineprotected |
Definition at line 2787 of file entityai.c.
References m_HiddenSelectionsData.
|
inlineprotected |
Returns the hiddenSelectionsMaterials array from the object's config.
Definition at line 2820 of file entityai.c.
References m_HiddenSelectionsData.
|
inlineprotected |
Returns the hiddenSelectionsTextures array from the object's config.
Definition at line 2811 of file entityai.c.
References m_HiddenSelectionsData.
|
inlineprivate |
should the item's icon be hidden in any part of the inventory?
Definition at line 307 of file entityai.c.
Definition at line 886 of file entityai.c.
References GetHierarchyParent().
|
protected |
Returns direct parent of current entity.
References EntityAI().
Referenced by ClearExclusionValueRecursive(), EEHealthLevelChanged(), GetHierarchyLevel(), IncreaseLifetimeUp(), IsExclusionFlagPresentRecursive(), IsInventoryVisible(), IsLockedInSlot(), PropagateExclusionValueRecursive(), and SetWeightDirty().
|
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().
|
protected |
Returns root of current hierarchy cast to Man.
Referenced by DeleteSafe(), EEItemAttached(), EEItemDetached(), IgnoreOutOfReachCondition(), IsSlotReserved(), and OnBinLoadItemsDropped().
|
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().
|
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().
Definition at line 3580 of file entityai.c.
References GameInventory::AttachmentCount(), GameInventory::GetAttachmentFromIndex(), GameInventory::GetCargo(), GetInventory(), CargoBase::GetItem(), and CargoBase::GetItemCount().
Referenced by GetWeightSpecialized().
|
inlineprotected |
Definition at line 4159 of file entityai.c.
|
inlineprotected |
Definition at line 3976 of file entityai.c.
|
inlineprotected |
Definition at line 2535 of file entityai.c.
References m_IsFrozen.
Referenced by SerializeNumericalVars(), and WriteVarsToCTX().
|
inlineprotected |
Definition at line 2670 of file entityai.c.
References m_OverheatProgress.
|
inlineprotected |
if undefined, max temperature used as default
Definition at line 2654 of file entityai.c.
References GetTemperatureMax().
|
inlineprotected |
any configured value >= 0 will simulate overheating
Definition at line 2660 of file entityai.c.
References m_VarTemperatureOverheatTime.
Referenced by CanItemOverheat(), and HandleItemOverheating().
|
protected |
Get remaining economy lifetime (seconds).
Referenced by GetDebugText().
|
protected |
Get max economy lifetime per instance - default is from DB (seconds).
|
private |
|
inlineprotected |
Returns liquid throughput coeficient.
Definition at line 3971 of file entityai.c.
References LIQUID_THROUGHPUT_DEFAULT.
|
inlineprotected |
Definition at line 2729 of file entityai.c.
|
inlineprotected |
value is related to EMeleeTargetType
Definition at line 3811 of file entityai.c.
|
private |
get near plane of camera
|
inlineprotected |
Definition at line 1311 of file entityai.c.
References m_OnAttachmentReleaseLock.
|
inlineprotected |
Definition at line 1304 of file entityai.c.
References m_OnAttachmentSetLock.
|
inlineprotected |
Definition at line 1318 of file entityai.c.
References m_OnHitByInvoker.
|
inlineprotected |
Definition at line 1255 of file entityai.c.
References m_OnItemAddedIntoCargo.
|
inlineprotected |
Definition at line 1241 of file entityai.c.
References m_OnItemAttached.
|
inlineprotected |
Definition at line 1248 of file entityai.c.
References m_OnItemDetached.
|
inlineprotected |
Definition at line 1276 of file entityai.c.
References m_OnItemFlipped.
|
inlineprotected |
Definition at line 1269 of file entityai.c.
References m_OnItemMovedInCargo.
|
inlineprotected |
Definition at line 1262 of file entityai.c.
References m_OnItemRemovedFromCargo.
|
inlineprotected |
Definition at line 1325 of file entityai.c.
References m_OnKilledInvoker.
|
inlineprotected |
Definition at line 1297 of file entityai.c.
References m_OnReleaseLock.
|
inlineprotected |
Definition at line 1290 of file entityai.c.
References m_OnSetLock.
|
inlineprotected |
Definition at line 1283 of file entityai.c.
References m_OnViewIndexChanged.
|
protected |
References EntityAI().
Returns blocks of bits of persistence id of this entity. This id stays the same even after server restart.
|
inlineprotected |
Definition at line 2244 of file entityai.c.
|
inlineprotected |
Definition at line 2256 of file entityai.c.
|
inlineprotected |
Definition at line 2261 of file entityai.c.
|
inlineprotected |
Definition at line 2251 of file entityai.c.
|
inlineprotected |
Definition at line 2273 of file entityai.c.
|
private |
|
protected |
Remotely controlled devices helpers.
|
inlineprotected |
Definition at line 3641 of file entityai.c.
Definition at line 516 of file entityai.c.
References m_BloodInfectionChanceCached.
|
inlineprotected |
Definition at line 1838 of file entityai.c.
References GameInventory::GetAttachmentSlotsCount(), and GetInventory().
|
private |
|
private |
|
inlineprotected |
Definition at line 2753 of file entityai.c.
Definition at line 3798 of file entityai.c.
References GetType(), and Debug::LogError().
Definition at line 2268 of file entityai.c.
|
inlineprotected |
Definition at line 2457 of file entityai.c.
References m_VarTemperature.
|
inlineprotected |
Definition at line 2492 of file entityai.c.
References m_VarTemperatureFreezeThreshold.
|
inlineprotected |
Definition at line 2502 of file entityai.c.
References m_VarTemperatureFreezeTime.
|
inlineprotected |
Definition at line 2462 of file entityai.c.
References m_VarTemperatureInit.
|
inlineprotected |
Definition at line 2472 of file entityai.c.
References m_VarTemperatureMax.
Referenced by CanFreeze(), CanHaveTemperature(), GetItemOverheatThreshold(), InitItemVariables(), SetTemperatureDirect(), SetTemperatureEx(), and SetTemperatureMax().
|
inlineprotected |
Definition at line 2467 of file entityai.c.
References m_VarTemperatureMin.
Referenced by CanFreeze(), CanHaveTemperature(), InitItemVariables(), SetTemperatureDirect(), and SetTemperatureEx().
|
inlineprotected |
Definition at line 2497 of file entityai.c.
References m_VarTemperatureThawThreshold.
|
inlineprotected |
Definition at line 2507 of file entityai.c.
References m_VarTemperatureThawTime.
|
inlineprotected |
Definition at line 4176 of file entityai.c.
References m_UniversalTemperatureSource.
Referenced by IsUniversalTemperatureSource().
|
inlineprotected |
Definition at line 4186 of file entityai.c.
References GetPosition().
Definition at line 3154 of file entityai.c.
References CachedObjectsArrays::ARRAY_FLOAT, and SerializeNumericalVars().
|
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().
|
inlineprotected |
Definition at line 3548 of file entityai.c.
References GetWeightEx().
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().
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().
|
inlineprotected |
Definition at line 2184 of file entityai.c.
|
inlineprotected |
Definition at line 2199 of file entityai.c.
|
protected |
|
inlinestaticprotected |
Definition at line 2216 of file entityai.c.
References GameConstants::STATE_DAMP, GameConstants::STATE_DRENCHED, GameConstants::STATE_SOAKING_WET, and GameConstants::STATE_WET.
|
inlineprotected |
Definition at line 2189 of file entityai.c.
|
inlineprotected |
Definition at line 2194 of file entityai.c.
|
inlineprotected |
Definition at line 3525 of file entityai.c.
References GetWetLevel(), and CfgGameplayHandler::GetWetnessWeightModifiers().
Referenced by GetConfigWeightModified().
|
inlineprotected |
Definition at line 2556 of file entityai.c.
References Math::Clamp(), GetTemperature(), GetTemperatureFreezeTime(), GetTemperatureThawTime(), Math::Lerp(), m_FreezeThawProgress, TemperatureData::m_InterpolatedFraction, m_IsFrozen, TemperatureData::m_UpdateTimeCoef, TemperatureData::m_UpdateTimeInfo, Math::Max(), SetFreezeThawProgress(), SetFrozen(), SetTemperatureDirect(), GameConstants::TEMP_COEF_COOLING_GLOBAL, GameConstants::TEMPERATURE_FREEZETHAW_ACCELERATION_COEF, GameConstants::TEMPERATURE_FREEZETHAW_LEGACY_COEF, GameConstants::TEMPERATURE_RATE_AVERAGE_ABS, GameConstants::TEMPERATURE_SENSITIVITY_THRESHOLD, GameConstants::TEMPERATURE_TIME_FREEZE_MIN, and GameConstants::TEMPERATURE_TIME_THAW_MIN.
Referenced by SetTemperatureEx().
|
inlineprotected |
Definition at line 2698 of file entityai.c.
References Math::Clamp(), GetItemOverheatTime(), Math::Lerp(), TemperatureData::m_InterpolatedFraction, m_OverheatProgress, TemperatureData::m_UpdateTimeInfo, Math::Max(), SetItemOverheatProgress(), GameConstants::TEMPERATURE_RATE_AVERAGE_ABS, and GameConstants::TEMPERATURE_TIME_OVERHEAT_MIN.
Referenced by SetTemperatureEx().
|
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().
|
inlineprotected |
Definition at line 4005 of file entityai.c.
|
inlineprotected |
Definition at line 4009 of file entityai.c.
IsComponentExist.
Definition at line 352 of file entityai.c.
References m_ComponentsBank.
Referenced by GetCompBS(), GetCompEM(), and 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().
|
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.
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().
|
inlineprotected |
Definition at line 2237 of file entityai.c.
|
protected |
Turnable Valve behaviour.
|
inlineprotected |
Definition at line 2204 of file entityai.c.
References GetWetMax(), and GetWetMin().
|
inlineprotected |
used as script-side override of distance for specific height checks
Definition at line 648 of file entityai.c.
|
inlineprotected |
used as script-side override of start pos for specific height checks
Definition at line 654 of file entityai.c.
|
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().
|
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().
|
inlineprotected |
Definition at line 1808 of file entityai.c.
References g_Game, and GetHierarchyRootPlayer().
|
protected |
Reset economy lifetime to default (seconds).
Referenced by 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().
|
inlineprivate |
Definition at line 4218 of file entityai.c.
References GetInventory(), InitGlobalExclusionValues(), InitInherentSlotExclusionMap(), InitLegacyConfigExclusionValues(), m_AttachmentExclusionMaskChildren, m_AttachmentExclusionMaskGlobal, and m_AttachmentExclusionSlotMap.
Referenced by OnInventoryInit().
|
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().
|
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().
|
protected |
override to init part of the mask, independent of slot-specific behavior
Referenced by InitAttachmentExclusionValues().
|
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().
|
inlineprivate |
Definition at line 255 of file entityai.c.
References CanHaveTemperature(), Math::Clamp(), g_Game, GetTemperatureMax(), GetTemperatureMin(), m_FreezeThawProgress, m_TAC, m_VarHeatPermeabilityCoef, m_VarTemperatureFreezeThreshold, m_VarTemperatureFreezeTime, m_VarTemperatureInit, m_VarTemperatureMax, m_VarTemperatureMin, m_VarTemperatureOverheatTime, m_VarTemperatureThawThreshold, m_VarTemperatureThawTime, MAX, RegisterNetSyncVariableBool(), and RegisterNetSyncVariableFloat().
|
inlineprotected |
Definition at line 4258 of file entityai.c.
References InitLegacyExclusionCheck(), InitLegacySlotExclusionValuesDerived(), and InitLegacySlotExclusionValuesImplicit().
Referenced by InitAttachmentExclusionValues().
|
inlineprotected |
Definition at line 4270 of file entityai.c.
References m_AttachmentExclusionMaskGlobal, and m_AttachmentExclusionSlotMap.
Referenced by InitLegacyConfigExclusionValues().
|
inlineprotected |
Definition at line 4352 of file entityai.c.
References GetAttachmentExclusionMaskSlot(), GetInventory(), GameInventory::GetSlotId(), GameInventory::GetSlotIdCount(), and SetAttachmentExclusionMaskSlot().
Referenced by InitLegacyConfigExclusionValues().
|
inlineprotected |
adding base one-directional relations between headgear, masks, eyewear, and headstraps (exception)
Definition at line 4298 of file entityai.c.
References GetAttachmentExclusionInitSlotValue(), GetInventory(), GameInventory::GetSlotId(), GameInventory::GetSlotIdCount(), and SetAttachmentExclusionMaskSlot().
Referenced by InitLegacyConfigExclusionValues().
|
inlineprotected |
Definition at line 2285 of file entityai.c.
References EntityAI(), g_Game, GetHierarchyRoot(), GetTemperature(), GetTemperatureFreezeThreshold(), EntityAI::IsMan(), m_VarTemperatureInit, SetFrozen(), SetTemperatureDirect(), and UseConfigInitTemperature().
Referenced by EEInit().
|
inlineprotected |
Definition at line 2443 of file entityai.c.
References GetTemperature().
Referenced by SetTemperatureEx().
Interpolation between camera instances (current camera becomes targetCamera at the end of interpolation).
| targetCamera | to which camera we want to interpolate |
| time | true interpolation time |
| type | 0 = without dynamics 1 = first half - acceleration, second half deceleration 2 = first third - acceleration, second third - linear movement, last third - deceleration |
|
private |
Is this camera active?
true if this camera is active
|
inlineprotected |
Definition at line 729 of file entityai.c.
Referenced by UseConfigInitTemperature().
|
inlineprotected |
Definition at line 571 of file entityai.c.
|
inlineprotected |
Definition at line 1685 of file entityai.c.
|
inlineprotected |
Definition at line 576 of file entityai.c.
|
inlineprivate |
Definition at line 346 of file entityai.c.
|
inlineprotected |
is this container empty or not, checks both cargo and attachments
Definition at line 660 of file entityai.c.
References GetInventory(), and HasAnyCargo().
|
private |
|
inlineprotected |
Definition at line 717 of file entityai.c.
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().
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().
|
private |
|
inlineprotected |
on server only
Definition at line 2519 of file entityai.c.
References m_FreezeThawProgress.
Referenced by ProcessVariables().
|
inlineprotected |
returns item behaviour of item (more in ItemBase)
Definition at line 3823 of file entityai.c.
|
inlineprotected |
Definition at line 1690 of file entityai.c.
|
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.
|
inlineprotected |
Definition at line 744 of file entityai.c.
|
inlineprivate |
Definition at line 301 of file entityai.c.
References m_Initialized.
|
staticprivate |
Checks if the current interpolation reached it's end.
|
inlineprotected |
Definition at line 719 of file entityai.c.
References GetHierarchyParent(), and GetParent().
|
inlineprotected |
Definition at line 2665 of file entityai.c.
References m_OverheatProgress.
|
inlineprotected |
Definition at line 1886 of file entityai.c.
References EntityAI(), GetHierarchyParent(), GetInventory(), and InventoryLocation::GetSlot().
|
inlineprotected |
Definition at line 4694 of file entityai.c.
|
inlineprotected |
returns item behaviour of item (more in ItemBase)
Definition at line 3829 of file entityai.c.
|
protected |
|
inlineprotected |
Definition at line 724 of file entityai.c.
|
inlineprotected |
Definition at line 829 of file entityai.c.
References m_PreparedToDelete.
Referenced by IsSetForDeletion().
|
inlineprotected |
Definition at line 843 of file entityai.c.
|
inlineprivate |
Definition at line 380 of file entityai.c.
References m_RefresherViable.
|
protected |
|
inlineprotected |
Definition at line 698 of file entityai.c.
References m_RoofAbove.
|
inlineprotected |
Definition at line 3849 of file entityai.c.
Definition at line 2768 of file entityai.c.
References Error(), and g_Game.
Referenced by SetTemperature(), SetTemperatureDirect(), and SetTemperatureEx().
|
inlineprotected |
Definition at line 807 of file entityai.c.
References IsPendingDeletion(), IsPreparedToDelete(), and m_PendingDelete.
Referenced by CanBeActionTarget().
|
inlineprotected |
Skinning.
Definition at line 497 of file entityai.c.
References GetCompBS().
Referenced by CanBeSkinnedWith().
|
inlineprotected |
returns just the configured 'canBeSplit' bool
Definition at line 666 of file entityai.c.
|
inlineprotected |
Definition at line 2747 of file entityai.c.
|
inlineprotected |
Definition at line 1829 of file entityai.c.
Final evaluation just before the target item is actually ignited. Evaluated on Server.
Definition at line 612 of file entityai.c.
References EntityAI().
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().
|
inlineprotected |
returns item behaviour of item (more in ItemBase)
Definition at line 3835 of file entityai.c.
|
inlineprotected |
Universal Temperature Sources Helpers.
Definition at line 4171 of file entityai.c.
References GetUniversalTemperatureSource().
'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().
|
private |
|
inlineprotected |
Definition at line 734 of file entityai.c.
Referenced by UseConfigInitTemperature().
|
inlineprotected |
Definition at line 739 of file entityai.c.
|
inlineprotected |
Definition at line 1099 of file entityai.c.
|
inlineprotected |
Definition at line 3179 of file entityai.c.
References ItemVariableFlags::FLOAT, Serializer::Read(), and ReadVarsFromCTX().
Referenced by OnStoreLoad().
Definition at line 2088 of file entityai.c.
References EntityAI().
Definition at line 2074 of file entityai.c.
References EntityAI(), and GetInventory().
Definition at line 2007 of file entityai.c.
References EntityAI(), and GetInventory().
Definition at line 1943 of file entityai.c.
References EntityAI(), and GetInventory().
Definition at line 1977 of file entityai.c.
References EntityAI(), and GetInventory().
|
inlineprotected |
Definition at line 1910 of file entityai.c.
References EntityAI(), and GetInventory().
|
inlineprotected |
Definition at line 2039 of file entityai.c.
References EntityAI(), and GetInventory().
|
inlineprotected |
Definition at line 2023 of file entityai.c.
References EntityAI(), and GetInventory().
|
inlineprotected |
Definition at line 1959 of file entityai.c.
References EntityAI(), and GetInventory().
|
inlineprotected |
Definition at line 1989 of file entityai.c.
References EntityAI(), and GetInventory().
|
inlineprotected |
Definition at line 1925 of file entityai.c.
References EntityAI(), and GetInventory().
|
inlineprotected |
Definition at line 2055 of file entityai.c.
References GetInventory().
LogWarning.
Definition at line 485 of file entityai.c.
References GetType(), and Debug::LogWarning().
|
private |
Orientation change by lookAt point.
| targetPos | where to look at |
|
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().
|
inlineprotected |
Definition at line 3657 of file entityai.c.
References GetSingleInventoryItemWeightEx(), GetType(), GetWeightEx(), Debug::Log(), and ToString().
|
protected |
Called when some attachment of this parent is ruined. Called on server and client side.
References EntityAI().
|
protected |
Referenced by TryDelete().
|
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().
|
protected |
|
inlineprotected |
Central economy calls this function whenever going over all the entities.
Definition at line 3866 of file entityai.c.
References g_Game, m_ElapsedSinceLastUpdate, m_LastUpdatedTime, and ProcessVariables().
|
protected |
|
protected |
|
protected |
Called when the health gets to the min value, 'oldLevel' is previous health level, 'oldLevel' -1 means this entity was just spawned.
|
inlineprotected |
Definition at line 3321 of file entityai.c.
|
inlineprotected |
Definition at line 3322 of file entityai.c.
|
inlineprotected |
Definition at line 3907 of file entityai.c.
References CFG_MAGAZINESPATH, CFG_VEHICLESPATH, CFG_WEAPONSPATH, g_Game, GetInventory(), path, and x.
|
inlineprotected |
Definition at line 3902 of file entityai.c.
References OnDebugSpawn.
|
inlineprotected |
Energy manager event: Called when energy was added on this device. ALWAYS CALL super.OnEnergyAdded() !!!
Definition at line 3462 of file entityai.c.
|
inlineprotected |
Energy manager event: Called when energy was consumed on this device. ALWAYS CALL super.OnEnergyConsumed() !!!
Definition at line 3459 of file entityai.c.
|
inlineprotected |
Definition at line 943 of file entityai.c.
References g_Game, m_DestructionBehaviourObj, and Object.
|
protected |
Referenced by OnVariablesSynchronized().
|
protected |
|
protected |
|
inlineprotected |
Executed on Server when this item ignites some target item.
Definition at line 588 of file entityai.c.
References EntityAI().
|
inlineprotected |
Executed on Server when this item failed to ignite target item.
Definition at line 600 of file entityai.c.
References EntityAI().
|
inlineprotected |
Executed on Server when some item ignited this one.
Definition at line 594 of file entityai.c.
References EntityAI().
|
inlineprotected |
Executed on Server when some item failed to ignite this one.
Definition at line 606 of file entityai.c.
References EntityAI().
|
inlineprotected |
Energy manager event: Object's initialization. Energy Manager is fully initialized by this point.
Definition at line 3456 of file entityai.c.
|
inlineprotected |
Definition at line 894 of file entityai.c.
References InitAttachmentExclusionValues().
|
inlineprotected |
Energy manager event: Called when this device is plugged into some energy source.
Definition at line 3444 of file entityai.c.
References EntityAI().
|
inlineprotected |
Energy manager event: Called when this device is UNPLUGGED from the energy source.
Definition at line 3447 of file entityai.c.
References EntityAI().
|
protected |
References EntityAI().
|
protected |
Referenced by SetItemOverheatProgress().
|
protected |
note, that the deltaTime could be reverse-calculated and not totally accurate
Referenced by SetItemOverheatProgress().
|
protected |
override to implement desired overheat behavior on entity
Referenced by SetItemOverheatProgress().
|
inlineprotected |
Called when this item enters cargo of some container.
Definition at line 1334 of file entityai.c.
References EntityAI(), and m_EM.
|
inlineprotected |
Called when this item moves within cargo of some container.
Definition at line 1347 of file entityai.c.
References EntityAI().
|
inlineprotected |
Energy manager event: When something is UNPLUGGED from this device.
Definition at line 3453 of file entityai.c.
References EntityAI().
|
inlineprotected |
Energy manager event: When something is plugged into this device.
Definition at line 3450 of file entityai.c.
References EntityAI().
|
protected |
|
protected |
|
protected |
|
inlineprotected |
Called when this item exits cargo of some container.
Definition at line 1341 of file entityai.c.
References EntityAI().
|
inlineprotected |
Definition at line 3465 of file entityai.c.
References g_Game, GetCompBS(), and Serializer::Read().
|
inlineprotected |
Called when data is loaded from persistence (on server side).
Definition at line 2989 of file entityai.c.
References LoadVariables(), m_EM, and Serializer::Read().
|
inlineprotected |
Engine calls this function to collect data from entity to store for persistence (on server side).
Definition at line 2925 of file entityai.c.
References EntityAI(), m_EM, SaveVariables(), and Serializer::Write().
|
inlineprotected |
Energy manager event: Called when the device is switched OFF.
Definition at line 3441 of file entityai.c.
|
inlineprotected |
Energy manager event: Called when the device is switched on.
Definition at line 3438 of file entityai.c.
|
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().
References EntityAI().
Definition at line 1817 of file entityai.c.
References EntityAI(), and SetInvisibleRecursive().
|
protected |
|
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.
|
inlineprotected |
Energy manager event: Called only once when this device starts doing its work.
Definition at line 3429 of file entityai.c.
|
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.
|
protected |
References EntityAI().
|
inlineprotected |
Should return false if you want to disable hologram rotation.
Definition at line 582 of file entityai.c.
|
protected |
Definition at line 2083 of file entityai.c.
References EntityAI().
Put item into as attachment.
Definition at line 2067 of file entityai.c.
References EntityAI(), g_Game, and GetInventory().
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().
Put item into into cargo.
Definition at line 1936 of file entityai.c.
References EntityAI(), g_Game, and GetInventory().
|
inlineprotected |
Put item into into cargo on specific cargo location.
Definition at line 1970 of file entityai.c.
References EntityAI(), g_Game, and GetInventory().
|
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().
|
inlineprotected |
Definition at line 2032 of file entityai.c.
References EntityAI(), g_Game, and GetInventory().
|
inlineprotected |
Definition at line 2016 of file entityai.c.
References EntityAI(), g_Game, and GetInventory().
|
inlineprotected |
Definition at line 1952 of file entityai.c.
References EntityAI(), g_Game, and GetInventory().
|
inlineprotected |
Definition at line 1982 of file entityai.c.
References EntityAI(), g_Game, and GetInventory().
|
inlineprotected |
Definition at line 1918 of file entityai.c.
References EntityAI(), g_Game, and GetInventory().
|
inlineprotected |
Definition at line 2048 of file entityai.c.
References g_Game, and GetInventory().
|
inlineprotected |
Definition at line 3981 of file entityai.c.
References g_Game, CfgGameplayHandler::GetDisableBaseDamage(), and CfgGameplayHandler::GetDisableContainerDamage().
Definition at line 3963 of file entityai.c.
References EntityAI(), g_Game, and MELEE_ITEM_DAMAGE.
|
inlineprotected |
Definition at line 3878 of file entityai.c.
References CanHaveTemperature(), EntityAI(), g_Game, GetHierarchyRoot(), GetTemperature(), IsFreezeThawProgressFinished(), IsSelfAdjustingTemperature(), m_ElapsedSinceLastUpdate, SetTemperatureEx(), and GameConstants::TEMP_COEF_WORLD.
Definition at line 4471 of file entityai.c.
References CheckExclusionAccessPropagation(), EntityAI(), GetHierarchyParent(), GetInventory(), InventoryLocation::GetSlot(), and m_AttachmentExclusionMaskChildren.
Referenced by EEItemAttached().
|
inlineprotected |
Reads from storage CTX.
Definition at line 3212 of file entityai.c.
References m_VariablesMask, Serializer::Read(), SetFrozen(), SetTemperatureDirect(), and VARIABLE_TEMPERATURE.
|
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.
|
protected |
Referenced by EntityAI(), and InitItemVariables().
|
protected |
|
protected |
Referenced by EntityAI(), and InitItemVariables().
|
protected |
Referenced by EntityAI().
|
protected |
|
inlineprotected |
Definition at line 4086 of file entityai.c.
References dBodyApplyImpulse(), GetVelocity(), m_TransportHitRegistered, m_TransportHitVelocity, and Human::PhysicsGetLinkedEntity().
|
protected |
|
protected |
|
protected |
|
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.
|
inlineprotected |
Definition at line 1089 of file entityai.c.
|
inlineprotected |
Definition at line 3161 of file entityai.c.
References ItemVariableFlags::FLOAT, m_VariablesMask, Serializer::Write(), and WriteVarsToCTX().
Referenced by OnStoreSave().
Definition at line 3240 of file entityai.c.
References GetFreezeThawProgress(), GetIsFrozen(), IsVariableSet(), m_VariablesMask, m_VarTemperature, and VARIABLE_TEMPERATURE.
Definition at line 2093 of file entityai.c.
References EntityAI().
Definition at line 2078 of file entityai.c.
References EntityAI(), and GetInventory().
Definition at line 2011 of file entityai.c.
References EntityAI(), and GetInventory().
Definition at line 1947 of file entityai.c.
References EntityAI(), and GetInventory().
|
inlineprotected |
Definition at line 1914 of file entityai.c.
References EntityAI(), and GetInventory().
|
inlineprotected |
Definition at line 2043 of file entityai.c.
References EntityAI(), and GetInventory().
|
inlineprotected |
Definition at line 2027 of file entityai.c.
References EntityAI(), and GetInventory().
|
inlineprotected |
Definition at line 1963 of file entityai.c.
References EntityAI(), and GetInventory().
|
inlineprotected |
Definition at line 1993 of file entityai.c.
References EntityAI(), and GetInventory().
|
inlineprotected |
Definition at line 1929 of file entityai.c.
References EntityAI(), and GetInventory().
|
inlineprotected |
Definition at line 2059 of file entityai.c.
References GetInventory().
|
private |
Sets this camera as active.
|
protected |
|
private |
|
private |
|
inlineprotected |
Definition at line 502 of file entityai.c.
References GetCompBS().
|
inlineprotected |
Definition at line 4454 of file entityai.c.
References m_AttachmentExclusionMaskGlobal.
sets values for specific slot
Definition at line 4461 of file entityai.c.
References ErrorEx, and m_AttachmentExclusionSlotMap.
Referenced by InitInherentSlotExclusionMap(), InitLegacySlotExclusionValuesDerived(), and InitLegacySlotExclusionValuesImplicit().
Definition at line 4004 of file entityai.c.
|
private |
Definition at line 4008 of file entityai.c.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Depth of Field settings.
| distance | DOF distance parameter |
| blur | DOF blur parameter |
|
private |
Field of View settings.
| fov | FOV angle in radians |
|
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().
|
inlineprotected |
Definition at line 4704 of file entityai.c.
|
inlineprotected |
Definition at line 2540 of file entityai.c.
References CanFreeze(), m_IsFrozen, OnFreezeStateChangeServer(), SetFreezeThawProgress(), and SetSynchDirty().
Referenced by DeSerializeNumericalVars(), HandleFreezingProgression(), InitTemperature(), ReadVarsFromCTX(), and SetTemperatureMax().
|
private |
|
private |
|
inlineprotected |
Definition at line 4012 of file entityai.c.
References GameInventory::AttachmentCount(), EntityAI(), GameInventory::FindAttachment(), GameInventory::GetAttachmentSlotId(), GameInventory::GetAttachmentSlotsCount(), GetInventory(), and SetInvisibleRecursive().
Referenced by OnWasDetached(), and SetInvisibleRecursive().
Definition at line 2675 of file entityai.c.
References Math::Clamp(), m_OverheatProgress, OnItemOverheat(), OnItemOverheatEnd(), and OnItemOverheatStart().
Referenced by HandleItemOverheating().
|
protected |
Set (override) remaining economy lifetime (seconds).
|
protected |
Set (override) max economy lifetime per entity instance (seconds).
|
private |
|
private |
set near plane of camera
| nearPlane | clamped internally to 0.01m |
Change material in hiddenSelections.
Change texture in hiddenSelections.
|
inlineprotected |
Definition at line 4200 of file entityai.c.
References GetRemotelyActivatedItemBehaviour(), and RemotelyActivatedItemBehaviour::SetPersistentPairID().
|
protected |
|
inlineprotected |
Definition at line 824 of file entityai.c.
References m_PreparedToDelete.
|
private |
|
protected |
|
protected |
|
protected |
|
private |
|
protected |
|
inlineprotected |
Definition at line 703 of file entityai.c.
References m_RoofAbove.
Simple hidden selection state; 0 == hidden.
|
private |
|
protected |
|
protected |
|
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().
|
protected |
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().
Definition at line 2308 of file entityai.c.
References Math::Clamp(), GetTemperatureMax(), GetTemperatureMin(), IsServerCheck(), m_VarTemperature, SetVariableMask(), and VARIABLE_TEMPERATURE.
Referenced by DeSerializeNumericalVars(), HandleFreezingProgression(), InitTemperature(), ReadVarsFromCTX(), SetTemperatureEx(), and SetTemperatureMax().
|
inlineprotected |
sets temperature, handles base overheating and freezing state progression logics
CanFreeze
Definition at line 2342 of file entityai.c.
References CanFreeze(), CanHaveTemperature(), CanItemOverheat(), Math::Clamp(), GetItemOverheatThreshold(), GetTemperature(), GetTemperatureFreezeThreshold(), GetTemperatureMax(), GetTemperatureMin(), GetTemperatureThawThreshold(), HandleFreezingProgression(), HandleItemOverheating(), InterpolateTempData(), IsServerCheck(), Debug::Log(), TemperatureData::m_AdjustedTarget, m_IsFrozen, m_TAC, m_VarTemperature, and SetTemperatureDirect().
Referenced by ProcessVariables(), and SetTemperature().
|
inlineprotected |
presumably for debug purposes?
Definition at line 2451 of file entityai.c.
References GetTemperature(), GetTemperatureFreezeThreshold(), GetTemperatureMax(), SetFrozen(), and SetTemperatureDirect().
|
inlineprotected |
Definition at line 4181 of file entityai.c.
References m_UniversalTemperatureSource.
|
inlineprotected |
Definition at line 3134 of file entityai.c.
References g_Game, m_VariablesMask, and SetSynchDirty().
Referenced by SetTemperatureDirect().
|
inlineprotected |
Sets item preview index.
Definition at line 3719 of file entityai.c.
References g_Game, m_ViewIndex, and SetSynchDirty().
|
private |
|
inlineprotected |
Definition at line 3559 of file entityai.c.
References DumpStack(), GetHierarchyParent(), m_WeightDirty, and Print().
Referenced by EEAmmoChanged(), EECargoIn(), EECargoOut(), EEItemAttached(), and EEItemDetached().
|
protected |
|
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().
|
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().
|
inlineprotected |
Definition at line 4074 of file entityai.c.
References GetPosition(), SEffectManager::PlaySound(), and EffectSound::SetAutodestroy().
|
inlineprotected |
Definition at line 4062 of file entityai.c.
References GetPosition(), SEffectManager::PlaySound(), and EffectSound::SetAutodestroy().
|
inlineprotected |
Definition at line 4080 of file entityai.c.
References GetPosition(), SEffectManager::PlaySound(), and EffectSound::SetAutodestroy().
|
inlineprotected |
Definition at line 4068 of file entityai.c.
References GetPosition(), SEffectManager::PlaySound(), and EffectSound::SetAutodestroy().
Definition at line 2164 of file entityai.c.
References ECE_PLACE_ON_SURFACE, EntityAI(), RF_DEFAULT, InventoryLocation::SetGround(), and SpawnEntity().
Definition at line 2153 of file entityai.c.
References ECE_PLACE_ON_SURFACE, EntityAI(), Math3D::MatrixIdentity4(), RF_DEFAULT, InventoryLocation::SetGround(), and SpawnEntity().
Referenced by SpawnInInventoryOrGroundPos().
|
inlineprotected |
Definition at line 2137 of file entityai.c.
References GameInventory::CreateInInventory(), EntityAI(), and SpawnEntityOnGroundPos().
References EntityAI().
References EntityAI().
|
private |
Performs cleanup.
Important to call when interpolation run is finished.
References EntityAI().
|
protected |
|
protected |
Definition at line 3149 of file entityai.c.
References DeSerializeNumericalVars().
Definition at line 4165 of file entityai.c.
|
inlineprotected |
Definition at line 848 of file entityai.c.
References CALL_CATEGORY_SYSTEM, DELETE_CHECK_DELAY, DeleteSafe(), g_Game, IsPrepareToDelete(), Debug::Log(), OnBeforeTryDelete(), and TryDelete().
Referenced by CheckForDestroy(), and TryDelete().
|
protected |
|
protected |
|
protected |
|
protected |
|
inlineprotected |
Definition at line 2280 of file entityai.c.
References IsAnimal(), IsCorpse(), EntityAI::IsMan(), and IsZombie().
Referenced by InitTemperature().
|
inlineprotected |
Writes to storage CTX.
Definition at line 3199 of file entityai.c.
References GetIsFrozen(), GetTemperature(), IsVariableSet(), m_VariablesMask, VARIABLE_TEMPERATURE, and Serializer::Write().
|
private |
Definition at line 123 of file entityai.c.
Referenced by EEKilled().
|
private |
Definition at line 124 of file entityai.c.
Referenced by CheckForDestroy(), and TryDelete().
|
private |
Definition at line 116 of file entityai.c.
Referenced by ClearExclusionValueRecursive(), GetAttachmentExclusionMaskAll(), GetAttachmentExclusionMaskChildren(), InitAttachmentExclusionValues(), and PropagateExclusionValueRecursive().
|
private |
Definition at line 115 of file entityai.c.
Referenced by AddSingleExclusionValueGlobal(), ClearSingleExclusionValueGlobal(), GetAttachmentExclusionMaskAll(), GetAttachmentExclusionMaskGlobal(), InitAttachmentExclusionValues(), InitLegacyExclusionCheck(), and SetAttachmentExclusionMaskGlobal().
Definition at line 114 of file entityai.c.
Referenced by GetAttachmentExclusionMaskSlot(), InitAttachmentExclusionValues(), InitLegacyExclusionCheck(), and SetAttachmentExclusionMaskSlot().
Definition at line 127 of file entityai.c.
Referenced by EEInit(), EEItemAttached(), EEItemDetached(), EntityAI(), and GetAttachmentsWithAttachments().
Definition at line 126 of file entityai.c.
Referenced by EEInit(), EEItemAttached(), EEItemDetached(), EntityAI(), and GetAttachmentsWithCargo().
Definition at line 202 of file entityai.c.
Referenced by CacheSkinningBloodInfectionChance(), EntityAI(), and GetSkinningBloodInfectionChance().
|
protected |
Definition at line 136 of file entityai.c.
Referenced by CanDisplayWeight(), and EntityAI().
|
private |
Definition at line 312 of file entityai.c.
Referenced by DeleteComponent(), EEItemAttached(), EEItemDetached(), EOnFrame(), GetComponent(), and HasComponent().
|
private |
Definition at line 135 of file entityai.c.
Referenced by GetConfigWeightModified().
Definition at line 131 of file entityai.c.
Referenced by GetEntityDamageDisplayNameMap(), and InitDamageZoneDisplayNameMapping().
|
protected |
Definition at line 130 of file entityai.c.
Referenced by GetEntityDamageZoneMap(), and InitDamageZoneMapping().
|
private |
Definition at line 108 of file entityai.c.
|
private |
Definition at line 118 of file entityai.c.
Referenced by AttemptDestructionBehaviour(), and OnExplosionEffects().
|
protected |
Definition at line 138 of file entityai.c.
Referenced by EntityAI(), OnCEUpdate(), and ProcessVariables().
|
private |
Definition at line 313 of file entityai.c.
Referenced by EEDelete(), EEItemAttached(), EEItemDetached(), EEOnAfterLoad(), GetCompEM(), IsIgnited(), OnMovedInsideCargo(), OnStoreLoad(), OnStoreSave(), and OnVariablesSynchronized().
|
protected |
Definition at line 169 of file entityai.c.
Referenced by GetFreezeThawProgress(), HandleFreezingProgression(), InitItemVariables(), IsFreezeThawProgressFinished(), and SetFreezeThawProgress().
|
private |
Definition at line 121 of file entityai.c.
Referenced by EntityAI(), GetHiddenSelectionIndex(), GetHiddenSelections(), GetHiddenSelectionsData(), GetHiddenSelectionsMaterials(), and GetHiddenSelectionsTextures().
|
protected |
Definition at line 144 of file entityai.c.
Referenced by DeferredInit(), and IsInitialized().
|
protected |
Definition at line 167 of file entityai.c.
Referenced by GetIsFrozen(), HandleFreezingProgression(), OnVariablesSynchronized(), SetFrozen(), and SetTemperatureEx().
|
protected |
Definition at line 168 of file entityai.c.
Referenced by OnVariablesSynchronized().
|
private |
Definition at line 109 of file entityai.c.
|
private |
Definition at line 120 of file entityai.c.
|
private |
Definition at line 137 of file entityai.c.
Referenced by EEInventoryOut(), EntityAI(), and OnCEUpdate().
|
private |
Definition at line 128 of file entityai.c.
|
protected |
Definition at line 196 of file entityai.c.
Referenced by GetOnAttachmentReleaseLock().
|
protected |
Definition at line 194 of file entityai.c.
Referenced by GetOnAttachmentSetLock().
|
protected |
Definition at line 198 of file entityai.c.
Referenced by EEHitBy(), and GetOnHitByInvoker().
|
protected |
Definition at line 180 of file entityai.c.
Referenced by EECargoIn(), and GetOnItemAddedIntoCargo().
|
protected |
Definition at line 176 of file entityai.c.
Referenced by EEItemAttached(), and GetOnItemAttached().
|
protected |
Definition at line 178 of file entityai.c.
Referenced by EEItemDetached(), and GetOnItemDetached().
|
protected |
Definition at line 186 of file entityai.c.
Referenced by GetOnItemFlipped().
|
protected |
Definition at line 184 of file entityai.c.
Referenced by EECargoMove(), and GetOnItemMovedInCargo().
|
protected |
Definition at line 182 of file entityai.c.
Referenced by EECargoOut(), and GetOnItemRemovedFromCargo().
|
protected |
Definition at line 200 of file entityai.c.
Referenced by EEKilled(), and GetOnKilledInvoker().
|
protected |
Definition at line 192 of file entityai.c.
Referenced by GetOnReleaseLock().
|
protected |
Definition at line 190 of file entityai.c.
Referenced by GetOnSetLock().
|
protected |
Definition at line 188 of file entityai.c.
Referenced by GetOnViewIndexChanged().
|
protected |
Definition at line 171 of file entityai.c.
Referenced by GetItemOverheatProgress(), HandleItemOverheating(), IsItemOverheated(), and SetItemOverheatProgress().
|
protected |
Definition at line 143 of file entityai.c.
Referenced by Delete(), EEDelete(), and IsSetForDeletion().
|
private |
Definition at line 110 of file entityai.c.
Referenced by IsPreparedToDelete(), and SetPrepareToDelete().
|
protected |
Definition at line 139 of file entityai.c.
|
private |
Definition at line 111 of file entityai.c.
Referenced by IsRefresherSignalingViable(), and MaxLifetimeRefreshCalc().
|
protected |
Definition at line 113 of file entityai.c.
Referenced by IsRoofAbove(), and SetRoofAbove().
|
protected |
Definition at line 165 of file entityai.c.
Referenced by InitItemVariables(), RefreshTemperatureAccess(), and SetTemperatureEx().
|
protected |
Definition at line 145 of file entityai.c.
Referenced by RegisterTransportHit().
|
protected |
Definition at line 146 of file entityai.c.
Referenced by RegisterTransportHit().
|
protected |
Definition at line 141 of file entityai.c.
Referenced by GetUniversalTemperatureSource(), and SetUniversalTemperatureSource().
|
protected |
Definition at line 163 of file entityai.c.
Referenced by GetHeatPermeabilityCoef(), and InitItemVariables().
|
protected |
Definition at line 151 of file entityai.c.
Referenced by IsVariableSet(), ReadVarsFromCTX(), RemoveItemVariable(), SaveVariables(), SerializeNumericalVars(), SetVariableMask(), and WriteVarsToCTX().
|
protected |
Definition at line 154 of file entityai.c.
Referenced by GetTemperature(), SerializeNumericalVars(), SetTemperatureDirect(), and SetTemperatureEx().
|
protected |
Definition at line 158 of file entityai.c.
Referenced by GetTemperatureFreezeThreshold(), and InitItemVariables().
|
protected |
Definition at line 160 of file entityai.c.
Referenced by GetTemperatureFreezeTime(), and InitItemVariables().
|
protected |
Definition at line 155 of file entityai.c.
Referenced by GetTemperatureInit(), InitItemVariables(), and InitTemperature().
|
protected |
Definition at line 157 of file entityai.c.
Referenced by GetTemperatureMax(), and InitItemVariables().
|
protected |
Definition at line 156 of file entityai.c.
Referenced by GetTemperatureMin(), and InitItemVariables().
|
protected |
Definition at line 162 of file entityai.c.
Referenced by GetItemOverheatTime(), and InitItemVariables().
|
protected |
Definition at line 159 of file entityai.c.
Referenced by GetTemperatureThawThreshold(), and InitItemVariables().
|
protected |
Definition at line 161 of file entityai.c.
Referenced by GetTemperatureThawTime(), and InitItemVariables().
|
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().
|
private |
Definition at line 133 of file entityai.c.
|
private |
Definition at line 112 of file entityai.c.
Referenced by ClearWeightDirty(), GetWeightEx(), and SetWeightDirty().
|
private |
Definition at line 134 of file entityai.c.
Referenced by GetWeightEx().