Skip to content

Configure cover behavior

All cover settings are on the pawn's cover component. Open the pawn Blueprint (SandboxCharacter_Mover or SandboxCharacter_CMC in /GASPALS/Blueprints), select AC_CoverSystem in the Components panel, and use the Details panel under Cover. Compile and save the Blueprint, then press Play to try the change. The full list is in the Cover reference.

Change both pawns

The two sample pawns each have their own cover component. When you change a setting on one, change it on the other, or the Mover and CMC pawns will behave differently (press N in Play to switch pawns and compare). Child Blueprints of a pawn inherit its values except where they override them. Changing a default in AC_CoverSystem_Base does not reach components that already set their own value.

Recipes

Sticky cover only (button to take cover)

Walking into walls no longer takes cover; only the cover button does.

Setting Value
Enable Auto Cover off
Enable Sticky Cover on

Automatic cover only (no button)

Setting Value
Enable Auto Cover on
Enable Sticky Cover off

The cover button does nothing, no cover marker shows, and there are no cover runs or corner turns.

Sticky cover without cover runs

Setting Value
Enable Cover Run off

The cover button only takes cover within Sticky Cover Reach, and the marker only shows on cover it can take from where the character stands.

Cover only while crouching

Setting Value
Engage Rule WhileCrouched

Cover is taken and kept only while the crouch input is on (C); standing up leaves it, even behind low cover.

Keep a gap to the wall

The character rests touching the wall by default. To leave a gap (for bulky characters or poses that clip):

Setting Value
Wall Distance Stand Auto / Stand Sticky / Crouch Auto / Crouch Sticky Gap in cm between the capsule and the wall, per case.
Cover Hold Distance Keep it larger than the largest gap plus the capsule radius (about 30 cm on the Mover pawn, 40 cm on the CMC pawn), or cover drops.

Choose how the character faces

Four settings, one per case, each FaceWall, ShoulderToWall or BackToWall:

Setting Class default
Facing Stand Auto ShoulderToWall
Facing Stand Sticky BackToWall
Facing Crouch Auto FaceWall
Facing Crouch Sticky ShoulderToWall

With FaceWall, Character Rotation Right Shoulder and Left Shoulder (25 and -25 degrees) turn the character toward the camera side.

Make cover harder or easier to leave

Setting Effect
Cover Exit Input Dot How directly the input must point away from the wall (0.7 is more than 45 degrees away). Lower leaves more easily.
Cover Exit Delay Seconds of pushing away before soft cover is released.
Sticky Exit Input Dot / Sticky Exit Delay The same for sticky cover (0.9 and 0.35 s: deliberate).
Sticky Tap Time A cover button press shorter than this (0.25 s) is a tap: it leaves sticky cover. A longer press is a hold (cover run).
Sticky Reentry Cooldown Seconds after leaving cover before cover can grab the character again (0.5 s).

Snap to cover from farther away

Setting Effect
Sticky Cover Reach How far along the camera the cover button finds a wall (250 cm).
Cover Run Range Up to where the button runs to cover (1500 cm).
Cover Enter Distance How far soft cover reaches when walking into a wall (80 cm).
Cover Enter Input Dot How directly the move input must point into the wall to take soft cover (0.3). Higher needs a more direct push.

Tune the cover run arrival

The run slows down before it snaps into cover. If the character overshoots or slides along the wall, lower Cover Run Brake Decel (700) below what the pawn can brake, or raise Cover Run Arrive Distance (80 cm). Cover Run Arrive Speed (150 cm/s) is the speed at the snap. If long runs are cancelled before they arrive, raise Cover Run Max Time (2 s on top of the planned time).

Aim from cover

Goal Setting
Aiming always leaves cover Enable Cover Aim off
Step out to edges even when standing over low cover Cover Aim Keep Standing off
Fewer pose switches Raise Cover Aim Min Pose Time, Cover Aim Blocked Delay and Cover Aim Return Delay
Tall or short characters Cover Aim Muzzle Height Stand (145) and Crouch (95): muzzle height above the capsule bottom
Thick walls Cover Aim Cover Depth: hits this deep behind the cover face count as the cover itself
See what it does Cover Aim Debug prints every pose change and draws the target; Enable Debug draws the cover traces

Pose lowering

Setting Effect
Cover Lower Max Stand / Max Crouch The most the pelvis is lowered, in cm (10 and 15). 0 turns lowering off.
Cover Lower Head Clearance How far under the cover top the head should end up (5 cm).
Cover Lower Settle Tolerance How close to its cover distance the character must be before the pelvis lowers (10 cm). Larger lowers earlier, while the character still slides to the wall.

Camera in cover

Goal Setting
No camera raise behind low cover and no push past wall ends Enable Cover Camera Offsets off
Keep the camera on the player's shoulder at wall ends Enable Cover Shoulder Switch off

The offsets themselves are camera rigs; see Camera system.

Cover marker

Goal Setting
No marker Show Cover Marker off
Your own marker Cover Marker Widget Class (any User Widget), Cover Marker Draw Size (100 x 12) and Cover Marker Wall Offset (3 cm)

Or edit W_CoverMarker (/GASPALS/Systems/CoverSystem/Widgets) to restyle the default marker for every pawn.

First person

Setting Options
First Person Sticky Cover SwitchToThirdPerson (default) or Disabled
First Person Auto Cover MovementOnly (default) or Disabled

Separate keys for sticky cover and the cover run

Both input actions are on Q. To give the cover run its own key, change the IA_CoverRun mapping in IMC_Sandbox (see Add or rebind inputs). The sticky key then only takes and leaves sticky cover, and the run key runs to the targeted cover when held past Sticky Tap Time.

Movement speeds in cover

On the Mover pawn, cover speeds belong to the Cover movement mode: Walk Speed 150, Run Speed and Sprint Speed 250 cm/s in the class defaults of BP_MovementMode_Cover (/GASPALS/Blueprints/MovementModes). On the CMC pawn, cover uses the pawn's Walk Speeds (or Crouch Speeds when crouched); see Movement. The cover run sprints with the normal sprint speed on both pawns.

Turning cover off

Turn off Enable Cover on the component. Everything else stays in place, so you can turn it back on per pawn. See System switches for what the pawn does without cover.