CoverLink¶
Class in Engine · Engine.CoverLink · native, placeable, config
Object › Actor › NavigationPoint › CoverLink
Using it from Lua
Constants¶
| Name | Value |
|---|---|
COVERLINK_DangerDist | 1536.f |
COVERLINK_EdgeCheckDot | 0.25f |
COVERLINK_EdgeExposureDot | 0.85f |
COVERLINK_ExposureDot | 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
| Field | Type |
|---|---|
Link | CoverLink |
SlotIdx | int |
CoverReference
Struct extends ActorReference
| Field | Type |
|---|---|
SlotIdx | int |
CoverSlot
| Field | Type |
|---|---|
SlotOwner | Pawn |
SlotValidAfterTime | float |
ForceCoverType | ECoverType |
CoverType | ECoverType |
LocationDescription | ECoverLocationDescription |
LocationOffset | vector |
RotationOffset | rotator |
Actions | array<ECoverAction> |
FireLinks | array<FireLink> |
RejectedFireLinks | array<FireLink> |
ExposedCoverPackedProperties | array |
TurnTargetPackedProperties | int |
SlipRefs | array<SlotMoveRef> |
OverlapClaimsList | array<CoverInfo> |
bLeanLeft | bool |
bLeanRight | bool |
bForceCanPopUp | bool |
bCanPopUp | bool |
bCanMantle | bool |
bCanClimbUp | bool |
bForceCanCoverSlip_Left | bool |
bForceCanCoverSlip_Right | bool |
bCanCoverSlip_Left | bool |
bCanCoverSlip_Right | bool |
bCanSwatTurn_Left | bool |
bCanSwatTurn_Right | bool |
bEnabled | bool |
bAllowPopup | bool |
bAllowMantle | bool |
bAllowCoverSlip | bool |
bAllowClimbUp | bool |
bAllowSwatTurn | bool |
bForceNoGroundAdjust | bool |
bPlayerOnly | bool |
bPreferLeanOverPopup | bool |
bDestructible | bool |
bSelected | bool |
bFailedToFindSurface | bool |
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=4294967296CovPosInfo
| Field | Type |
|---|---|
Link | CoverLink |
LtSlotIdx | int |
RtSlotIdx | int |
LtToRtPct | float |
Location | vector |
Normal | vector |
Tangent | vector |
Defaults
LtSlotIdx=-1
RtSlotIdx=-1
LtToRtPct=+0.fDynamicLinkInfo
| Field | Type |
|---|---|
LastTargetLocation | Vector |
LastSrcLocation | Vector |
ExposedLink
| Field | Type |
|---|---|
TargetActor | CoverReference |
ExposedScale | byte |
FireLink
| Field | Type |
|---|---|
Interactions | array |
PackedProperties_CoverPairRefAndDynamicInfo | int |
bFallbackLink | bool |
bDynamicIndexInited | bool |
FireLinkItem
| Field | Type |
|---|---|
SrcType | ECoverType |
SrcAction | ECoverAction |
DestType | ECoverType |
DestAction | ECoverAction |
SlotMoveRef
| Field | Type |
|---|---|
Poly | PolyReference |
Dest | BasedPosition |
Direction | int |
Properties¶
| Name | Type | Notes |
|---|---|---|
AlignDist | float | const |
AutoCoverSlotInterval | float | const |
bAutoAdjust | bool | |
bAutoSort | bool | |
bCircular | bool | |
bClaimAllSlots | bool | |
bDebug_CoverGen | bool | |
bDebug_ExposedLinks | bool | |
bDebug_FireLinks | bool | |
bDisabled | bool | |
bDoAutoSlotDensityFixup | bool | |
bDynamicCover | bool | |
bFractureOnTouch | bool | |
bLooped | bool | |
bPlayerOnly | bool | |
CircularOrigin | vector | const |
CircularRadius | float | const |
Claims | array<Pawn> | |
CrouchLeanOffset | Vector | const |
DangerScale | float | |
DynamicLinkInfos | array<DynamicLinkInfo> | |
GLOBAL_bUseSlotMarkers | bool | globalconfig |
InvalidateDistance | float | |
LeanTraceDist | float | |
LocationDescription | ECoverLocationDescription | const |
MaxFireLinkDist | float | |
MidHeight | float | const |
NextCoverLink | CoverLink | const |
PopupOffset | Vector | const |
SlipDist | float | const |
Slots | array<CoverSlot> | |
StandHeight | float | const |
StandingLeanOffset | Vector | const |
TurnDist | float | const |
Functions¶
| Name | Declaration |
|---|---|
AddCoverSlot | final native function int AddCoverSlot(vector SlotLocation, rotator SlotRotation, optional int SlotIdx = -1, optional bool bForceSlotUpdate, optional Scout Scout) |
AllowLeftTransition | final simulated function bool AllowLeftTransition(int SlotIdx) |
AllowRightTransition | final simulated function bool AllowRightTransition(int SlotIdx) |
ApplyCheckpointRecord | function ApplyCheckpointRecord(const out CheckpointRecord Record) |
AutoAdjustSlot | final native function bool AutoAdjustSlot(int SlotIdx, bool bOnlyCheckLeans) |
BreakFracturedMeshes | simulated function BreakFracturedMeshes(vector Origin, float Radius, float RBStrength, class<DamageType> DamageType) |
Claim | final simulated event bool Claim(Pawn NewClaim, int SlotIdx) |
CreateCheckpointRecord | function CreateCheckpointRecord(out CheckpointRecord Record) |
FindSlots | final native simulated function bool FindSlots(vector CheckLocation, float MaxDistance, out int LeftSlotIdx, out int RightSlotIdx) |
GetDebugAbbrev | simulated event string GetDebugAbbrev() |
GetDebugString | final simulated event string GetDebugString(int SlotIdx) |
GetFireLinkTargetCoverInfo | native simulated function bool GetFireLinkTargetCoverInfo(int SlotIdx, int FireLinkIdx, out CoverInfo out_Info, optional EFireLinkID ArrayID) |
GetFireLinkTo | native function bool GetFireLinkTo(int SlotIdx, CoverInfo ChkCover, ECoverAction ChkAction, ECoverType ChkType, out int out_FireLinkIdx, out array |
GetLocationDescription | final native simulated function ECoverLocationDescription GetLocationDescription(int SlotIdx) |
GetSlotActions | final native function GetSlotActions(int SlotIdx, out array<ECoverAction> Actions) |
GetSlotIdxToLeft | final native simulated function int GetSlotIdxToLeft(int SlotIdx, optional int Cnt = 1) |
GetSlotIdxToRight | final native simulated function int GetSlotIdxToRight(int SlotIdx, optional int Cnt = 1) |
GetSlotLocation | final native simulated function vector GetSlotLocation(int SlotIdx, optional bool bForceUseOffset) |
GetSlotRotation | final native simulated function rotator GetSlotRotation(int SlotIdx, optional bool bForceUseOffset) |
GetSlotViewPoint | final native simulated function vector GetSlotViewPoint(int SlotIdx, optional ECoverType Type, optional ECoverAction Action) |
GetSwatTurnTarget | native simulated function bool GetSwatTurnTarget(int SlotIdx, int Direction, out CoverInfo out_Info) |
HasFireLinkTo | native function bool HasFireLinkTo(int SlotIdx, CoverInfo ChkCover, optional bool bAllowFallbackLinks) |
IsEdgeSlot | final native simulated function bool IsEdgeSlot(int SlotIdx, optional bool bIgnoreLeans) |
IsEnabled | final native function bool IsEnabled() |
IsExposedTo | final native simulated function bool IsExposedTo(int SlotIdx, CoverInfo ChkSlot, out float out_ExposedScale) |
IsLeftEdgeSlot | final native simulated function bool IsLeftEdgeSlot(int SlotIdx, bool bIgnoreLeans) |
IsRightEdgeSlot | final native simulated function bool IsRightEdgeSlot(int SlotIdx, bool bIgnoreLeans) |
IsStationarySlot | final simulated function bool IsStationarySlot(int SlotIdx) |
IsValidClaim | final native function bool IsValidClaim(Pawn ChkClaim, int SlotIdx, optional bool bSkipTeamCheck, optional bool bSkipOverlapCheck) |
IsValidClaimBetween | final native function bool IsValidClaimBetween(Pawn ChkClaim, int StartSlotIdx, int EndSlotIdx, optional bool bSkipTeamCheck, optional bool bSkipOverlapCheck) |
NotifySlotOwnerCoverDisabled | simulated function NotifySlotOwnerCoverDisabled(int SlotIdx, optional bool bAIOnly) |
OnModifyCover | function OnModifyCover(SeqAct_ModifyCover Action) |
OnToggle | function OnToggle(SeqAct_Toggle inAction) |
PackFireLinkInteractionInfo | static native simulated function BYTE PackFireLinkInteractionInfo(ECoverType SrcType, ECoverAction SrcAction, ECoverType DestType, ECoverAction DestAction) |
SetDisabled | simulated event SetDisabled(bool bNewDisabled) |
SetInvalidUntil | final simulated event SetInvalidUntil(int SlotIdx, float TimeToBecomeValid) |
SetSlotEnabled | simulated event SetSlotEnabled(int SlotIdx, bool bEnable) |
SetSlotPlayerOnly | simulated event SetSlotPlayerOnly(int SlotIdx, bool bInPlayerOnly) |
ShutDown | simulated event ShutDown() |
UnClaim | final simulated event bool UnClaim(Pawn OldClaim, int SlotIdx, bool bUnclaimAll) |
UnPackFireLinkInteractionInfo | static 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¶
| From | Members |
|---|---|
| NavigationPoint | 58 properties, 19 functions |
| Actor | 156 properties, 262 functions |
| Object | 13 properties, 308 functions |