Skip to content

CoverLink

Class in Engine · Engine.CoverLink · native, placeable, config

Object › Actor › NavigationPoint › CoverLink

Using it from Lua
h7.find_all("CoverLink")            -- live instances
h7.find_class("Engine.CoverLink")   -- the class
h7.hook("Engine.CoverLink.AddCoverSlot", fn)

Constants

NameValue
1536.f
0.25f
0.85f
0.4f

Enums

ECoverAction

CA_Default = 0, CA_BlindLeft = 1, CA_BlindRight = 2, CA_LeanLeft = 3, CA_LeanRight = 4, CA_PopUp = 5, CA_BlindUp = 6, CA_PeekLeft = 7, CA_PeekRight = 8, CA_PeekUp = 9

ECoverDirection

CD_Default = 0, CD_Left = 1, CD_Right = 2, CD_Up = 3

ECoverLocationDescription

CoverDesc_None = 0, CoverDesc_InWindow = 1, CoverDesc_InDoorway = 2, CoverDesc_BehindCar = 3, CoverDesc_BehindTruck = 4, CoverDesc_OnTruck = 5, CoverDesc_BehindBarrier = 6, CoverDesc_BehindColumn = 7, CoverDesc_BehindCrate = 8, CoverDesc_BehindWall = 9, CoverDesc_BehindStatue = 10, CoverDesc_BehindSandbags = 11

ECoverType

CT_None = 0, CT_Standing = 1, CT_MidLevel = 2

EFireLinkID

FLI_FireLink = 0, FLI_RejectedFireLink = 1

Structs

CoverInfo

FieldType
LinkCoverLink
SlotIdxint

CoverReference

Struct extends ActorReference

FieldType
SlotIdxint

CoverSlot

FieldType
SlotOwnerPawn
SlotValidAfterTimefloat
ForceCoverTypeECoverType
CoverTypeECoverType
LocationDescriptionECoverLocationDescription
LocationOffsetvector
RotationOffsetrotator
Actionsarray<ECoverAction>
FireLinksarray<FireLink>
RejectedFireLinksarray<FireLink>
ExposedCoverPackedPropertiesarray
TurnTargetPackedPropertiesint
SlipRefsarray<SlotMoveRef>
OverlapClaimsListarray<CoverInfo>
bLeanLeftbool
bLeanRightbool
bForceCanPopUpbool
bCanPopUpbool
bCanMantlebool
bCanClimbUpbool
bForceCanCoverSlip_Leftbool
bForceCanCoverSlip_Rightbool
bCanCoverSlip_Leftbool
bCanCoverSlip_Rightbool
bCanSwatTurn_Leftbool
bCanSwatTurn_Rightbool
bEnabledbool
bAllowPopupbool
bAllowMantlebool
bAllowCoverSlipbool
bAllowClimbUpbool
bAllowSwatTurnbool
bForceNoGroundAdjustbool
bPlayerOnlybool
bPreferLeanOverPopupbool
bDestructiblebool
bSelectedbool
bFailedToFindSurfacebool
Defaults
bEnabled=TRUE
bCanMantle=TRUE
bCanCoverSlip_Left=TRUE
bCanCoverSlip_Right=TRUE
bCanSwatTurn_Left=TRUE
bCanSwatTurn_Right=TRUE
bCanClimbUp=FALSE
bAllowMantle=TRUE
bAllowCoverSlip=TRUE
bAllowPopup=TRUE
bAllowSwatTurn=TRUE
bAllowClimbUp=FALSE
TurnTargetPackedProperties=4294967296

CovPosInfo

FieldType
LinkCoverLink
LtSlotIdxint
RtSlotIdxint
LtToRtPctfloat
Locationvector
Normalvector
Tangentvector
Defaults
LtSlotIdx=-1
RtSlotIdx=-1
LtToRtPct=+0.f

DynamicLinkInfo

FieldType
LastTargetLocationVector
LastSrcLocationVector
FieldType
TargetActorCoverReference
ExposedScalebyte
FieldType
Interactionsarray
PackedProperties_CoverPairRefAndDynamicInfoint
bFallbackLinkbool
bDynamicIndexInitedbool

FireLinkItem

FieldType
SrcTypeECoverType
SrcActionECoverAction
DestTypeECoverType
DestActionECoverAction

SlotMoveRef

FieldType
PolyPolyReference
DestBasedPosition
Directionint

Properties

NameTypeNotes
AlignDistfloatconst
AutoCoverSlotIntervalfloatconst
bAutoAdjustbool
bAutoSortbool
bCircularbool
bClaimAllSlotsbool
bDebug_CoverGenbool
bool
bool
bDisabledbool
bDoAutoSlotDensityFixupbool
bDynamicCoverbool
bFractureOnTouchbool
bLoopedbool
bPlayerOnlybool
CircularOriginvectorconst
CircularRadiusfloatconst
Claimsarray<Pawn>
CrouchLeanOffsetVectorconst
DangerScalefloat
DynamicLinkInfosarray<DynamicLinkInfo>
GLOBAL_bUseSlotMarkersboolglobalconfig
InvalidateDistancefloat
LeanTraceDistfloat
LocationDescriptionECoverLocationDescriptionconst
MaxFireLinkDistfloat
MidHeightfloatconst
CoverLinkconst
PopupOffsetVectorconst
SlipDistfloatconst
Slotsarray<CoverSlot>
StandHeightfloatconst
StandingLeanOffsetVectorconst
TurnDistfloatconst

Functions

NameDeclaration
AddCoverSlotfinal native function int AddCoverSlot(vector SlotLocation, rotator SlotRotation, optional int SlotIdx = -1, optional bool bForceSlotUpdate, optional Scout Scout)
AllowLeftTransitionfinal simulated function bool AllowLeftTransition(int SlotIdx)
AllowRightTransitionfinal simulated function bool AllowRightTransition(int SlotIdx)
ApplyCheckpointRecordfunction ApplyCheckpointRecord(const out CheckpointRecord Record)
AutoAdjustSlotfinal native function bool AutoAdjustSlot(int SlotIdx, bool bOnlyCheckLeans)
BreakFracturedMeshessimulated function BreakFracturedMeshes(vector Origin, float Radius, float RBStrength, class<DamageType> DamageType)
Claimfinal simulated event bool Claim(Pawn NewClaim, int SlotIdx)
CreateCheckpointRecordfunction CreateCheckpointRecord(out CheckpointRecord Record)
FindSlotsfinal native simulated function bool FindSlots(vector CheckLocation, float MaxDistance, out int LeftSlotIdx, out int RightSlotIdx)
GetDebugAbbrevsimulated event string GetDebugAbbrev()
GetDebugStringfinal simulated event string GetDebugString(int SlotIdx)
GetFireLinkTargetCoverInfonative simulated function bool GetFireLinkTargetCoverInfo(int SlotIdx, int FireLinkIdx, out CoverInfo out_Info, optional EFireLinkID ArrayID)
GetFireLinkTonative function bool GetFireLinkTo(int SlotIdx, CoverInfo ChkCover, ECoverAction ChkAction, ECoverType ChkType, out int out_FireLinkIdx, out array out_Items)
GetLocationDescriptionfinal native simulated function ECoverLocationDescription GetLocationDescription(int SlotIdx)
GetSlotActionsfinal native function GetSlotActions(int SlotIdx, out array<ECoverAction> Actions)
GetSlotIdxToLeftfinal native simulated function int GetSlotIdxToLeft(int SlotIdx, optional int Cnt = 1)
GetSlotIdxToRightfinal native simulated function int GetSlotIdxToRight(int SlotIdx, optional int Cnt = 1)
GetSlotLocationfinal native simulated function vector GetSlotLocation(int SlotIdx, optional bool bForceUseOffset)
GetSlotRotationfinal native simulated function rotator GetSlotRotation(int SlotIdx, optional bool bForceUseOffset)
GetSlotViewPointfinal native simulated function vector GetSlotViewPoint(int SlotIdx, optional ECoverType Type, optional ECoverAction Action)
GetSwatTurnTargetnative simulated function bool GetSwatTurnTarget(int SlotIdx, int Direction, out CoverInfo out_Info)
HasFireLinkTonative function bool HasFireLinkTo(int SlotIdx, CoverInfo ChkCover, optional bool bAllowFallbackLinks)
IsEdgeSlotfinal native simulated function bool IsEdgeSlot(int SlotIdx, optional bool bIgnoreLeans)
IsEnabledfinal native function bool IsEnabled()
IsExposedTofinal native simulated function bool IsExposedTo(int SlotIdx, CoverInfo ChkSlot, out float out_ExposedScale)
IsLeftEdgeSlotfinal native simulated function bool IsLeftEdgeSlot(int SlotIdx, bool bIgnoreLeans)
IsRightEdgeSlotfinal native simulated function bool IsRightEdgeSlot(int SlotIdx, bool bIgnoreLeans)
IsStationarySlotfinal simulated function bool IsStationarySlot(int SlotIdx)
IsValidClaimfinal native function bool IsValidClaim(Pawn ChkClaim, int SlotIdx, optional bool bSkipTeamCheck, optional bool bSkipOverlapCheck)
IsValidClaimBetweenfinal native function bool IsValidClaimBetween(Pawn ChkClaim, int StartSlotIdx, int EndSlotIdx, optional bool bSkipTeamCheck, optional bool bSkipOverlapCheck)
NotifySlotOwnerCoverDisabledsimulated function NotifySlotOwnerCoverDisabled(int SlotIdx, optional bool bAIOnly)
OnModifyCoverfunction OnModifyCover(SeqAct_ModifyCover Action)
OnTogglefunction OnToggle(SeqAct_Toggle inAction)
PackFireLinkInteractionInfostatic native simulated function BYTE PackFireLinkInteractionInfo(ECoverType SrcType, ECoverAction SrcAction, ECoverType DestType, ECoverAction DestAction)
SetDisabledsimulated event SetDisabled(bool bNewDisabled)
SetInvalidUntilfinal simulated event SetInvalidUntil(int SlotIdx, float TimeToBecomeValid)
SetSlotEnabledsimulated event SetSlotEnabled(int SlotIdx, bool bEnable)
SetSlotPlayerOnlysimulated event SetSlotPlayerOnly(int SlotIdx, bool bInPlayerOnly)
ShutDownsimulated event ShutDown()
UnClaimfinal simulated event bool UnClaim(Pawn OldClaim, int SlotIdx, bool bUnclaimAll)
UnPackFireLinkInteractionInfostatic native simulated function UnPackFireLinkInteractionInfo(const BYTE PackedByte, out ECoverType SrcType, out ECoverAction SrcAction, out ECoverType DestType, out ECoverAction DestAction)

Default values

Slots(0)=(LocationOffset=(X=64.f))
AlignDist=36.f
StandHeight=160.f
MidHeight=70.f
AutoCoverSlotInterval=175.f
StandingLeanOffset=(X=0,Y=78,Z=69)
CrouchLeanOffset=(X=0,Y=70,Z=19)
PopupOffset=(X=0,Y=0,Z=70)
SlipDist=60.f
TurnDist=512.f
bAutoSort=TRUE
bAutoAdjust=TRUE
bSpecialMove=TRUE
bBuildLongPaths=FALSE
MaxFireLinkDist=2048.f
InvalidateDistance=64.f
DangerScale=2.f
bDebug_FireLinks=FALSE
bDebug_ExposedLinks=FALSE
bDestinationOnly=TRUE
LeanTraceDist=64.f
bDoAutoSlotDensityFixup=FALSE

Inherited

FromMembers
NavigationPoint58 properties, 19 functions
Actor156 properties, 262 functions
Object13 properties, 308 functions