class ConstructionBase
ConstructionBase › ConstructionBasic
Constructors 2
void ConstructionBase(EntityAI parent)void ~ConstructionBase()Constants 18
protected static const int MAX_MATERIAL_PILES = 64safety cap for material pile spawning
static const float REPAIR_MATERIAL_PERCENTAGE = 0.15static const float DECONSTURCT_MATERIAL_LOSS = 0.2static const float DEFAULT_DECAY_RATE = -1.0HP/s change
static const float DEFAULT_DECAY_THRESHOLD = 0.3Percentage of max health where the decay stops
static const float DEFAULT_DECAY_RATE_COEF = 1.0Default decay speed coef
static const float SANDSTORM_DECAY_RATE_COEF = 1.5Sandstorm decay speed coef
static const float ITEM_FALL_MARGIN_TOP_DEFAULT = 0.5top (+Y) margin for unmatched parts, covers collision boxes undershooting the part's support surface
static const float ITEM_FALL_MARGIN_TOP_ROOF = 0.5top margin for roof/ceiling parts, tune per category as needed
static const float ITEM_FALL_MARGIN_TOP_WALL = 0.5static const float ITEM_FALL_MARGIN_TOP_WINDOW = 0.5static const float ITEM_FALL_MARGIN_TOP_DOOR = 0.5static const float ITEM_FALL_HEIGHT_DIFF_TOLERANCE = 0.3static const float ITEM_FALL_MARGIN_SIDE_WALL = 0.3XZ side margin for wall parts, covers entities leaning against the inner/outer wall faces
static const int MAX_ITEM_FALL_DEBUG_WAVES = 8DIAG_DEVELOPERsafety cap for cascade waves in the item falling debug
static const int ITEM_FALL_DEBUG_QUERY_INTERVAL = 3DIAG_DEVELOPERrequery the item fall cascade every N frames, cached shapes are re-aimed in between
static const int ITEM_FALL_DEBUG_STALE_FRAMES = 3DIAG_DEVELOPERframes without a targeting refresh before the debug shapes of a construction are cleaned up
static const float ITEM_FALL_DEBUG_FRECAM_RAY_DIST = 100.0DIAG_DEVELOPERraycast distance for the free camera item fall debug part lookup
Members 30
protected ConstructionDataTypeHolder m_TypeLevelHolderprotected ref map<string, ref ConstructionPart> m_ConstructionPartsprotected ref array<ConstructionPart> m_ConstructionPartArrayINSTANCED construction part data;
Show 12 more
, EEInitConstruction(), GetBaseConstructionPart(), GetConstructionPartArray(), GetConstructionPartsToBuild(), GetConstructionPartsUnableToBuild(), UpdateConstructionParts(), UpdatePhysics(), UpdateUtilityParts(), UpdateVisuals(), Rebuilding.HandleStoreLoad(), Rebuilding.InitBaseStateDeferred(), and Rebuilding.SetAllPartsFromSyncData()protected ref array<ConstructionPart> m_BuiltConstructionPartArraybuilt parts array
protected EntityAI m_EntityParentShow 46 more
, AddToConstructedParts(), CanRepairPart(), ConstructionBase(), ConstructionDirectionCheck(), ConstructionInsiderBoxCheck(), CreateCollisionTrigger(), DestroyMaterialsServer(), DismantlePartServerEx(), DrawDebugCollisionBox(), DrawDebugInsideTestBox(), DrawItemFallDebugPartBox(), DropEssentialAttachments(), DropNonUsableMaterialsServer(), EEInitConstruction(), GetCollisionBoxData(), GetItemFallDetectionBoxData(), GetRequiredParts(), HasMaterialWithQuantityAttached(), HideConstructionPart(), HideConstructionPartPhysics(), InitVisuals(), IsColliding(), IsCollidingEx(), ItemFall(), MaterialIsRuined(), ProcessConstructionDecay(), ProcessOnPartBuiltServer(), ProcessOnPartDestroyedServer(), ProcessOnPartDismantledServer(), QueryItemFallDebugPart(), ReceiveMaterialsServer(), RemoveFromConstructedParts(), SetLockOnAttachedMaterials(), SetParent(), ShowConstructionPart(), ShowConstructionPartPhysics(), TakeMaterialsServer(), UpdateConstructionParts(), UpdateItemFallDebugPartBoxMatrix(), UpdateNavmesh(), UpdatePhysics(), UpdateVisuals(), Rebuilding.DestroyPartServer(), Rebuilding.HandleStoreLoad(), Rebuilding.OnConstructionDoorCloseStart(), and Rebuilding.OnConstructionDoorOpenStart()protected bool m_AnyPartBuildableByHandsprotected bool m_UpdateUtilityPartsprotected ref ArrowManagerBase m_ArrowManagerConstructionprotected Shape m_CollisionBoxDIAG_DEVELOPERprotected Shape m_PlayerInsideTestCylinderDIAG_DEVELOPERprotected ref array<Shape> m_InsideTestBoxesDIAG_DEVELOPERShow 2 more
, DestroyDebugInsideTestBoxes(), and DrawDebugInsideTestBox()protected ref array<Shape> m_ItemFallDebugBoxesDIAG_DEVELOPERShow 2 more
, UpdateItemFallDebugCascade(), and UpdateItemFallDebugVisuals()protected ref array<Shape> m_ItemFallAffectedDebugBoxesDIAG_DEVELOPERShow 3 more
, ResetItemFallDebugVisuals(), UpdateItemFallDebugCascade(), and UpdateItemFallDebugVisuals()protected ref array<ConstructionBase> m_ItemFallDebugQueueConstructionsDIAG_DEVELOPERprotected ref array<string> m_ItemFallDebugQueuePartsDIAG_DEVELOPERprotected ref map<int, int> m_ItemFallDebugProcessedDIAG_DEVELOPERprotected ref array<string> m_ItemFallDebugLinesDIAG_DEVELOPERShow 1 more
, UpdateItemFallDebugVisuals()protected ref array<string> m_ItemFallDebugWaveLinesDIAG_DEVELOPERprotected ref array<Object> m_ItemFallDebugAffectedDIAG_DEVELOPERprotected ref array<Object> m_ItemFallDebugResultsDIAG_DEVELOPERprotected string m_ItemFallDebugPartNameDIAG_DEVELOPERprotected bool m_ItemFallDebugHasDataDIAG_DEVELOPERprotected int m_ItemFallDebugFrameCounterDIAG_DEVELOPERprotected ref array<ConstructionBase> m_ItemFallDebugBoxConstructionsDIAG_DEVELOPERShow 2 more
, UpdateItemFallDebugCascade(), and UpdateItemFallDebugVisuals()protected ref array<string> m_ItemFallDebugBoxPartsDIAG_DEVELOPERShow 2 more
, UpdateItemFallDebugCascade(), and UpdateItemFallDebugVisuals()protected ref array<int> m_ItemFallDebugBoxWavesDIAG_DEVELOPERShow 2 more
, UpdateItemFallDebugCascade(), and UpdateItemFallDebugVisuals()protected ref array<Object> m_ItemFallDebugAffectedCacheDIAG_DEVELOPERShow 2 more
, UpdateItemFallDebugCascade(), and UpdateItemFallDebugVisuals()protected ref array<int> m_ItemFallDebugAffectedWavesDIAG_DEVELOPERShow 2 more
, UpdateItemFallDebugCascade(), and UpdateItemFallDebugVisuals()protected int m_ItemFallDebugLastTickDIAG_DEVELOPERprotected ConstructionBoxTrigger m_ConstructionBoxTriggerDeprecated
Methods 114
override void EEInitConstruction()protected void Cleanup()Show 2 more
, m_ConstructionParts, and m_InsideTestBoxesprotected void SetParent(EntityAI parent)override ArrowManagerBase GetArrowManagerConstruction()protected void HandleSyncDataBuild(ConstructionPart part)protected void HandleSyncDataDismantle(ConstructionPart part)protected void HandleSyncDataDestroy(ConstructionPart part)protected bool UpdatePartSyncStateLocal(ConstructionPart part)Returns 'true' if part state was locally changed
void AddToConstructedParts(string part_name)Show 10 more
, Object.GetDebugName(), ConstructionPart.GetPartName(), array.Insert(), LogManager.IsBaseBuildingLogEnable(), EntityAI.IsInitialized(), ConstructionPart.PlayConstructionEffects(), ConstructionPart.SetBuiltState(), ConstructionPart.TryQueueUtilityPartsUpdate(), m_BuiltConstructionPartArray, and m_EntityParentvoid RemoveFromConstructedParts(string part_name)Show 9 more
, ConstructionPart.GetPartName(), LogManager.IsBaseBuildingLogEnable(), EntityAI.IsInitialized(), ConstructionPart.PlayConstructionEffects(), array.RemoveItem(), ConstructionPart.SetBuiltState(), ConstructionPart.TryQueueUtilityPartsUpdate(), m_BuiltConstructionPartArray, and m_EntityParentnew build part method
new dismantle part method
void DestroyPartServer(Man player, string part_name, int action_id, bool destroyed_by_connected_part = false)destroy part method
void DestroyConnectedParts(string part_name)Show 3 more
, ExceptionCheck(), GetValidDepenentPartsArray(), and LogManager.IsBaseBuildingLogEnable()void HandleEntityFalling(string partName)when supporting part is removed, entities resting on or against it should be made to fall
Show 20 more
, dBodyActive(), dBodyIsActive(), GetBoxCenter(), GetCollisionBoxSize(), Object.GetOrientation(), IEntity.GetPhysics(), Object.GetPosition(), Object.GetPosition(), Physics.GetSimulationState(), array.Insert(), CGame.IsBoxCollidingGeometry(), Class.IsInherited(), Object.IsPendingDeletion(), Object.ModelToWorld(), EntityAI.OnItemFallRebuilding(), InventoryItem.ThrowPhysically(), ITEM_FALL_HEIGHT_DIFF_TOLERANCE, m_EntityParent, vector.Up, and vector.Zerooverride void ProcessConstructionDecay(float dTime)Handles decay for constructed parts, if enabled
Show 10 more
, DamageSystem.GetDamageZoneFromComponentName(), Object.GetHealth(), Object.GetMaxHealth(), ConstructionPart.GetPartDecayRate(), ConstructionPart.GetPartDecayThreshold(), ConstructionPart.GetPartName(), ConstructionPart.IsBuilt(), Object.SetHealth(), m_ConstructionParts, and m_EntityParentprotected float GetCurrentDecayCoef()Show 2 more
, DEFAULT_DECAY_RATE_COEF, and SANDSTORM_DECAY_RATE_COEFarray<ConstructionPart> GetConstructionPartArray()override bool CanUseHandConstruction()Show 3 more
, ConstructionBasic.OnHealthLevelChanged(), string.ToLower(), and GameConstants.STATE_RUINEDExceptions from 'dependent parts' hierarchy are handled here
Show 11 more
, EntityAI.GetInvulnerabilityTypeString(), HandleSyncDataBuild(), ConstructionPart.IsUtilityPart(), ConstructionPart.OnBeforeBuildServer(), ConstructionPart.OnBuiltServer(), EntityAI.ProcessInvulnerabilityCheck(), Object.SetAllowDamage(), Object.SetHealthMax(), EntityAI.SetSynchDirty(), UpdatePartSyncStateLocal(), and m_EntityParentvoid ProcessOnPartDestroyedServer(Man player, string part_name, int action_id, bool destroyed_by_connected_part = false)void InitVisuals()init ConstructionPart visuals
Show 2 more
, UpdateVisuals(), and m_EntityParentvoid UpdateSpecificPartVisuals(ConstructionPart part)update SPECIFIC ConstructionPart visuals
Show 1 more
, ShowConstructionPart()void UpdateVisuals()update ALL ConstructionPart visuals. Use only if the update queue system won't cut it.
Show 1 more
, StaticFlagPole.FullyBuild()void UpdateSpecificPartPhysics(ConstructionPart part)update SPECIFIC part's physics
Show 1 more
, ShowConstructionPartPhysics()void UpdatePhysics()update ALL parts physics. Sets hide first, then shows the rest. Use only if the update queue system won't cut it.
protected void UpdateConstructionParts()Parse type data and create part instance data objects
Show 21 more
, map.Clear(), CreatePartInstanceObject(), ConstructionPart.GetBuildIndicationTypeMask(), EntityAIType.GetConstructionDataHolderBasic(), ConstructionDataTypeHolder.GetConstructionPartTypeDataArray(), ConstructionPartTypeData.GetCustomInstanceType(), GetDefaultPartInstanceTypename(), Object.GetEntityType(), ConstructionPartTypeData.GetPartName(), ConstructionPart.InitAdditionalPartInstanceInfo(), ConstructionPartTypeData.InitPivotData(), array.Insert(), map.Insert(), new PartInstanceInitData(), ConstructionPart.SetPartTypeData(), m_AnyPartBuildableByHands, m_BuiltConstructionPartArray, m_ConstructionPartArray, m_ConstructionParts, m_EntityParent, and PartInstanceInitData.m_ParentEntprotected ConstructionPart CreatePartInstanceObject(typename partTypename)protected typename GetDefaultPartInstanceTypename()Override on lower implements to create desired part types
protected void QueueFullUpdateParts(array<ConstructionPart> changedParts)map<string, ref ConstructionPart> GetConstructionParts()ConstructionPart GetConstructionPart(string part_name)bool CanBuildPartEx(string partName, ConstructionPartBuildData data)data based variant of CanBuildPart, allows extending the check without changing the released signature
Simplified condition for utility (non-)parts
void QueueUpdateUtilityParts()bool UpdateUtilityParts()returns 'true' if changed
void GetConstructionPartsToBuild(string mainPartName, out array<ConstructionPart> constructionParts, ConstructionPartBuildData data)data based variant of GetConstructionPartsToBuild, allows extending the check without changing the released signature
void GetConstructionPartsUnableToBuild(string actionComponentName, out array<ConstructionPart> constructionParts, ItemBase tool, out string realConstructionTarget, bool useTool)Show 3 more
, ConstructionPart.GetPartName(), array.Insert(), and m_ConstructionPartArrayConstructionPart GetBaseConstructionPart()checks if construction part has all the required parts built
Show 1 more
, m_ConstructionPartsShow 1 more
, RebuildingSpawner.RebuildAllWoodenPartsFiltered()checks if construction part has all the required support
ConstructionPart GetConstructionPartToDismantle(string part_name, ItemBase tool)Show 10 more
, GetConstructionPart(), HasDependentPart(), IsPartConstructed(), ConstructionDebug.ResetDismantlePartData(), ConstructionDebug.SetCanDismantlePartData(), SupportRemovalCheck(), ConstructionDismantleDebugData.constructed, ConstructionDismantleDebugData.hasDependents, ConstructionDismantleDebugData.partName, and ConstructionDismantleDebugData.supportStatechecks if construction part has dependent part (that is already built) because of which it cannot be dismantled
Show 1 more
, m_BuiltConstructionPartArrayChecks if all supports would hold on part removal. Returns 'false' if some would fail
Returns 'true' if the part is load-bearing for other built parts (explicit requirement dependencies; Rebuilding adds the support system and requirement variants), such parts skip their own item falling
bool CanRepairPart(string partName, ItemBase tool = null, PlayerBase player = null, bool facingCheck = false)Show 13 more
, PlayerBase.GetConstructionActionData(), GetConstructionPart(), DamageSystem.GetDamageZoneFromComponentName(), Object.GetHealthLevel(), Human.GetInputController(), HasMaterials(), CGame.IsDedicatedServer(), EntityAI.IsFacingCamera(), EntityAI.IsFacingPlayerEx(), ConstructionActionData.SetTargetPart(), m_EntityParent, GameConstants.STATE_PRISTINE, and GameConstants.STATE_RUINEDbool ConstructionInsiderBoxCheck(PlayerBase player, ConstructionPart part)Check character positioning with a box check (character must be inside at least one of the defined boxes)
Show 25 more
, DestroyDebugInsideTestBoxes(), Debug.DrawCylinder(), DrawDebugInsideTestBox(), DiagMenu.GetBool(), ConstructionPart.GetExcluderBoxDataArray(), ConstructionPart.GetInsiderBoxDataArray(), Object.GetOrientation(), ConstructionPart.GetPartName(), Object.GetPosition(), IEntity.GetTransform(), Math3D.IntersectCylinderOBB(), vector.Lerp(), Math3D.MatrixIdentity4(), Object.ModelToWorld(), ConstructionDebug.SetInsideboxCheckDebugData(), Shape.SetMatrix(), Math3D.YawPitchRollMatrix(), ConstructionPartExcluderBoxData.m_Angle, m_EntityParent, m_InsideTestBoxes, ConstructionPartExcluderBoxData.m_Max, ConstructionPartInsiderBoxData.m_Max, ConstructionPartExcluderBoxData.m_Min, ConstructionPartInsiderBoxData.m_Min, and m_PlayerInsideTestCylinderbool ConstructionDirectionCheck(PlayerBase player, ConstructionPart part, EConstructionDirCheckType type)Show 2 more
, MiscGameplayFunctions.MemPointDirectionalCheck(), and m_EntityParentConstructionPart GetConstructionPartToDestroy(string part_name)protected void ShowConstructionPart(string part_name)Animates AnimationSource. Use on server only, AUTO-SYNCED
protected void HideConstructionPart(string part_name)Animates AnimationSource. Use on server only, AUTO-SYNCED
void ShowConstructionPartPhysics(string part_name)sets physics LOCALLY
void HideConstructionPartPhysics(string part_name)sets physics LOCALLY
returns true if part constructed
Show 14 more
, CanDestroyPart(), CanDismantlePart(), HasConflictPart(), HasRequiredPart(), OnHealthLevelChanged(), Land_WaterWell_Brick.GetLiquidSourceType(), Land_WaterWell_Brick.GetWaterSourceObjectType(), Rebuilding.HasRequiredPart(), TerritoryFlag.CanDisplayAttachmentCategory(), TerritoryFlag.CanReceiveAttachment(), Watchtower.CanDisplayAttachmentCategory(), Watchtower.CanDisplayAttachmentSlot(), Watchtower.CheckSlotVerticalDistance(), and Watchtower.UpdateVisuals()bool HasMaterialsEx(string part_name, bool repairing = false, out string slotName = "", out float requiredQuantity = 0.0)returns true if materials to build the part are available
Show 11 more
, GetConstructionPart(), ConstructionActionData.GetFastConstructionMode(), ConstructionPart.GetMaterialsData(), CGame.GetPlayer(), HasMaterialWithQuantityAttached(), CGame.IsClient(), CGame.IsMultiplayer(), Math.Max(), ConstructionMaterialData.m_MaterialQuantity, ConstructionMaterialData.m_MaterialSlotName, and REPAIR_MATERIAL_PERCENTAGEShow 1 more
, m_EntityParentShow 17 more
, Math.Floor(), GetConstructionPart(), GameInventory.GetCurrentInventoryLocation(), EntityAI.GetInventory(), EntityAI.GetInventory(), ConstructionPart.GetMaterialsData(), InventoryLocation.GetSlot(), new InventoryLocation(), Math.Max(), CGame.ObjectDelete(), GameInventory.SetSlotLock(), m_EntityParent, ConstructionMaterialData.m_MaterialLockable, ConstructionMaterialData.m_MaterialQuantity, ConstructionMaterialData.m_MaterialSlotName, ConstructionMaterialData.m_SkipOnRepair, and REPAIR_MATERIAL_PERCENTAGEShow 14 more
, GetConstructionPart(), GameInventory.GetCurrentInventoryLocation(), Object.GetDebugName(), EntityAI.GetInventory(), EntityAI.GetInventory(), ConstructionPart.GetMaterialsData(), InventoryLocation.GetSlot(), new InventoryLocation(), LogManager.IsBaseBuildingLogEnable(), CGame.ObjectDelete(), GameInventory.SetSlotLock(), m_EntityParent, ConstructionMaterialData.m_MaterialLockable, and ConstructionMaterialData.m_MaterialSlotNameShow 21 more
, GameInventory.FindAttachment(), string.Format(), GetConstructionPart(), GameInventory.GetCurrentInventoryLocation(), Object.GetDebugName(), EntityAI.GetInventory(), EntityAI.GetInventory(), ConstructionPart.GetMaterialsData(), new InventoryLocation(), ConstructionPart.IsBase(), LogManager.IsBaseBuildingLogEnable(), MoveMaterialAttachmentToGround(), CGame.ObjectDelete(), GameInventory.SetSlotLock(), InventorySlots.INVALID, m_EntityParent, ConstructionMaterialData.m_MaterialLockable, ConstructionMaterialData.m_MaterialQuantity, ConstructionMaterialData.m_MaterialSlotID, ConstructionMaterialData.m_MaterialSlotName, and ConstructionMaterialData.m_SkipOnDismantleprotected void MoveMaterialAttachmentToGround(notnull EntityAI parent, Man player, notnull ItemBase attachment, notnull InventoryLocation invloc, string partName)The method does not care about the amount of materials that should be returned based on the cached quantity in the ConstructionMaterialData struct. If we start using this method for e.g. drop of materials that are not attached and locked to the construction parent then we need to change the method to handle the quantity accordingly
Show 20 more
, CGame.CreateObjectEx(), EntityAI.Delete(), ErrorEx(), string.Format(), Object.GetHealth(), Object.GetMemoryPointPos(), Object.GetPosition(), Object.GetPosition(), ItemBase.GetQuantity(), ItemBase.GetTargetQuantityMax(), Object.GetType(), Object.MemoryPointExists(), CGame.ObjectModelToWorld(), Object.PlaceOnSurface(), Object.SetHealth(), ItemBase.SetQuantity(), Math.Sin(), Vector(), Math.DEG2RAD, and MAX_MATERIAL_PILESDrop other, non-material attachments tied to the construction part
Show 14 more
, GetConstructionPart(), ConstructionPart.GetEssentialAttachmentSlots(), EntityAI.GetInventory(), Object.GetMemoryPointPos(), Object.GetPosition(), Object.GetPosition(), InventorySlots.GetSlotIdFromString(), ConstructionPart.HasEssentialAttachmentSlots(), CGame.IsMultiplayer(), Math3D.MatrixIdentity4(), Object.MemoryPointExists(), Object.ModelToWorld(), GameInventory.SetSlotLock(), and m_EntityParentShow 13 more
, GetConstructionPart(), GameInventory.GetCurrentInventoryLocation(), Object.GetDebugName(), EntityAI.GetInventory(), EntityAI.GetInventory(), ConstructionPart.GetMaterialsData(), InventoryLocation.GetSlot(), new InventoryLocation(), LogManager.IsBaseBuildingLogEnable(), GameInventory.SetSlotLock(), m_EntityParent, ConstructionMaterialData.m_MaterialLockable, and ConstructionMaterialData.m_MaterialSlotNameShow 2 more
, ConstructionPart.GetDismantleActionTypeMask(), and Object.GetType()ConstructionMaterialType GetMaterialType(string part_name)bool IgnoreHouseCollisions()Whether House entities are skipped in the part collision check. Rebuildable buildings are static, so a part may legitimately overlap a House placed touching the rebuilt one (map authoring decision).
bool IsCollidingEx(CollisionCheckData check_data)Collision check for building part
Show 31 more
, array.Count(), array.Count(), array.Count(), DestroyDebugCollisionBox(), DrawDebugCollisionBox(), array.Get(), DiagMenu.GetBool(), GetBoxCenter(), GetCollisionBoxData(), GetCollisionBoxSize(), ConstructionPart.GetCollisionData(), GetConstructionPart(), CfgGameplayHandler.GetDisableIsCollidingCheck(), Object.GetOrientation(), Object.GetType(), IgnoreHouseCollisions(), array.Insert(), array.Insert(), array.InsertAll(), CGame.IsBoxCollidingGeometry(), EntityAI.IsIgnoredByConstruction(), Object.ModelToWorld(), ConstructionDebug.ResetCollisionPrintoutData(), ConstructionDebug.SetCollisionPrintoutData(), Vector(), CollisionCheckData.m_AdditionalExcludes, m_CollisionBox, m_EntityParent, CollisionCheckData.m_PartName, CollisionCheckData.m_PrimaryGeometry, and CollisionCheckData.m_SecondaryGeometryShow 2 more
, ItemFall(), and QueryItemFallDebugPart()Outputs item fall detection box minMax from the part's collision box, in MODELSPACE coordinates, inflated by the part category margins so entities resting on or leaning against the part are covered
Show 1 more
, UpdateItemFallDebugVisuals()XZ side/bottom/top margins of the item fall detection box, matched by part name category (case-insensitive substring)
Show 2 more
, ItemFall(), and QueryItemFallDebugPart()protected void DrawDebugCollisionBox(vector min_max[2], int color)DIAG_DEVELOPERShow 3 more
, Shape.SetMatrix(), m_CollisionBox, and m_EntityParentprotected void DestroyDebugCollisionBox()DIAG_DEVELOPERprotected void DrawDebugInsideTestBox(vector min, vector max, int color, vector rotAngles = "0 0 0")DIAG_DEVELOPERShow 5 more
, Object.ModelToWorld(), Shape.SetMatrix(), Math3D.YawPitchRollMatrix(), m_EntityParent, and m_InsideTestBoxesprotected void DestroyDebugInsideTestBoxes()DIAG_DEVELOPERvoid InitItemFallDebugState()DIAG_DEVELOPERallocates the reusable item falling debug state, only when the debug is actually used
Show 11 more
, m_ItemFallDebugAffectedWaves, m_ItemFallDebugBoxConstructions, m_ItemFallDebugBoxes, m_ItemFallDebugBoxParts, m_ItemFallDebugBoxWaves, m_ItemFallDebugLines, m_ItemFallDebugProcessed, m_ItemFallDebugQueueConstructions, m_ItemFallDebugQueueParts, m_ItemFallDebugResults, and m_ItemFallDebugWaveLinesvoid UpdateItemFallDebugVisuals(string partName)DIAG_DEVELOPERdraws the item fall detection boxes of the cascade triggered by a part and highlights the entities that would be made to fall
Show 39 more
, array.Count(), Shape.Destroy(), Shape.Destroy(), DiagMenu.GetBool(), GetConstructionPart(), ConstructionDebug.GetItemFallDebugTick(), GetItemFallDetectionBoxData(), IEntity.GetTransform(), InitItemFallDebugState(), array.Insert(), PartSupportsOtherParts(), ConstructionDebug.RegisterItemFallDebug(), array.Remove(), array.Remove(), array.Remove(), array.Remove(), array.Remove(), array.Remove(), array.Remove(), ConstructionDebug.ResetItemFallDebugData(), ResetItemFallDebugVisuals(), ConstructionDebug.SetItemFallDebugData(), Shape.SetMatrix(), ConstructionPart.TriggersItemFall(), UpdateItemFallDebugCascade(), UpdateItemFallDebugPartBoxMatrix(), ITEM_FALL_DEBUG_QUERY_INTERVAL, m_ItemFallAffectedDebugBoxes, m_ItemFallDebugAffectedCache, m_ItemFallDebugAffectedWaves, m_ItemFallDebugBoxConstructions, m_ItemFallDebugBoxes, m_ItemFallDebugBoxParts, m_ItemFallDebugBoxWaves, m_ItemFallDebugFrameCounter, m_ItemFallDebugHasData, m_ItemFallDebugLastTick, m_ItemFallDebugLines, and m_ItemFallDebugPartNamevoid UpdateItemFallDebugCascade(string partName)DIAG_DEVELOPERdebug helper: requeries the full item fall cascade of a part and reconciles the cached shapes and panel data, existing shapes are kept and re-aimed so they do not flicker, new ones are created and stale ones dropped
Show 64 more
, map.Clear(), array.Clear(), array.Clear(), array.Clear(), ClearItemFallDebugShapes(), map.Contains(), array.Count(), array.Count(), array.Count(), array.Count(), array.Count(), Shape.Destroy(), Shape.Destroy(), EntityAI.DestroyOnFall(), DrawDebugAffectedEntity(), DrawItemFallDebugPartBox(), string.Format(), IEntity.GetID(), GetItemFallDebugDroppedCount(), Object.GetType(), array.Insert(), array.Insert(), array.Insert(), array.Insert(), array.Insert(), array.Insert(), array.Insert(), array.Insert(), map.Insert(), array.Insert(), array.Insert(), array.Insert(), array.Insert(), array.Insert(), array.Insert(), array.Insert(), array.Insert(), ItemFallDebugEnqueueBbbParts(), QueryItemFallDebugPart(), array.Remove(), array.Remove(), array.Remove(), array.Remove(), array.Remove(), array.Remove(), array.Remove(), ConstructionDebug.SetItemFallDebugData(), m_ItemFallAffectedDebugBoxes, m_ItemFallDebugAffected, m_ItemFallDebugAffectedCache, m_ItemFallDebugAffectedWaves, m_ItemFallDebugBoxConstructions, m_ItemFallDebugBoxes, m_ItemFallDebugBoxParts, m_ItemFallDebugBoxWaves, m_ItemFallDebugHasData, m_ItemFallDebugLines, m_ItemFallDebugPartName, m_ItemFallDebugProcessed, m_ItemFallDebugQueueConstructions, m_ItemFallDebugQueueParts, m_ItemFallDebugResults, m_ItemFallDebugWaveLines, and MAX_ITEM_FALL_DEBUG_WAVESdebug helper: creates this part's fall box (wave colored) into the given shape list, returns 'true' when a box was created
Show 4 more
, IEntity.GetTransform(), array.Insert(), Shape.SetMatrix(), and m_EntityParentvoid UpdateItemFallDebugPartBoxMatrix(Shape box)DIAG_DEVELOPERdebug helper: re-aims a cached part box at the current parent transform
void QueryItemFallDebugPart(string partName, array<Object> results, array<Object> affected)DIAG_DEVELOPERdebug helper: same non proxy box query and filters the server side ItemFall method uses, fills the given affected list
Show 15 more
, array.Clear(), dBodyIsActive(), GetBoxCenter(), GetCollisionBoxSize(), GetItemFallDetectionBoxData(), Object.GetOrientation(), IEntity.GetPhysics(), Object.GetPosition(), Object.GetPosition(), Physics.GetSimulationState(), array.Insert(), CGame.IsBoxCollidingGeometry(), Object.ModelToWorld(), ITEM_FALL_HEIGHT_DIFF_TOLERANCE, and m_EntityParentint GetItemFallDebugWaveColor(int wave)DIAG_DEVELOPERcolor of the fall box and affected entity highlight for a cascade wave
int GetItemFallDebugDroppedCount(BaseBuildingBase bbb)DIAG_DEVELOPERdebug helper: how many items are dropped when a falling base building deconstructs (attachments + cargo, plus the construction kit if foldable)
Show 2 more
, EntityAI.GetInventory(), and CargoBase.GetItemCount()void ItemFallDebugEnqueueBbbParts(BaseBuildingBase bbb, array<ConstructionBase> queueConstructions, array<string> queueParts)DIAG_DEVELOPERdebug helper: queues the built parts of a deconstructing base building for the next cascade wave
Show 6 more
, GetElement(), ConstructionPart.GetPartName(), array.Insert(), array.Insert(), ConstructionPart.IsBuilt(), and ConstructionPart.IsUtilityPart()protected void DrawDebugAffectedEntity(Object obj, int wave)DIAG_DEVELOPERhighlights an entity that would be affected by the item falling cascade, wave colored
int GetItemFallDebugLastTick()DIAG_DEVELOPERlast diag tick in which the debugged part was still targeted, used by the ConstructionDebug sweep
void ClearItemFallDebugShapes()DIAG_DEVELOPERdebug helper: destroys all cached debug shapes and clears the parallel shape data lists
void ResetItemFallDebugVisuals()DIAG_DEVELOPERdestroys the item fall debug shapes and clears all cached debug state, called when the debugged part is no longer targeted
Show 18 more
, m_ItemFallAffectedDebugBoxes, m_ItemFallDebugAffected, m_ItemFallDebugAffectedCache, m_ItemFallDebugAffectedWaves, m_ItemFallDebugBoxConstructions, m_ItemFallDebugBoxes, m_ItemFallDebugBoxParts, m_ItemFallDebugBoxWaves, m_ItemFallDebugFrameCounter, m_ItemFallDebugHasData, m_ItemFallDebugLastTick, m_ItemFallDebugLines, m_ItemFallDebugPartName, m_ItemFallDebugProcessed, m_ItemFallDebugQueueConstructions, m_ItemFallDebugQueueParts, m_ItemFallDebugResults, and m_ItemFallDebugWaveLinesprotected void DestroyDebugItemFallBox()DIAG_DEVELOPERShow 3 more
, Shape.Destroy(), m_ItemFallAffectedDebugBoxes, and m_ItemFallDebugBoxesShow 14 more
, array.Get(), GetBoxCenter(), GetCollisionBoxData(), GetCollisionBoxSize(), ConstructionPart.GetCollisionData(), GetConstructionPart(), CfgGameplayHandler.GetDisableIsCollidingCheck(), Object.GetOrientation(), array.Insert(), CGame.IsBoxCollidingGeometry(), EntityAI.IsIgnoredByConstruction(), Object.ModelToWorld(), Vector(), and m_EntityParentvoid DestroyCollisionTrigger()bool IsTriggerColliding()