Pawns and Anim Blueprints reference¶
The two sample pawns, their character Anim Blueprints, the visual override manager, the debug tools component, the smart object (bench) interaction component and the demo spawner.
How to read these tables
Settings are the values you tune: select the component in your pawn Blueprint (or open the asset) and look in the Details panel under the category shown. Runtime state is written by the system while it runs; read it, do not set it. Functions marked pure have no execution pins. The descriptions are the same as the Details panel tooltips. Default is the class default; where a sample pawn sets a different value on its component, the description says so ().
SandboxCharacter_Mover¶
/GASPALS/Blueprints/SandboxCharacter_Mover · parent Pawn · implements MoverInputProducerInterface, BPI_SandboxCharacter_Pawn_C, BPI_ModularSystems_C
Settings¶
Debug¶
| Variable | Type | Default | Description |
|---|---|---|---|
Speed HistorySpeedHistory | Array of Float | ||
Debug AngleDebugAngle | Float | 0 |
Default¶
| Variable | Type | Default | Description |
|---|---|---|---|
Targetable ActorsTargetableActors | Array of Actor ref | ||
Targeted ActorTargetedActor | Actor ref | ||
Sliding Audio ComponentSlidingAudioComponent | AudioComponent ref |
GASPALS > Input¶
| Variable | Type | Default | Description |
|---|---|---|---|
Input Mapping ContextsInputMappingContexts | Map of InputMappingContext ref | IMC_Sandbox, 0 | Input mapping contexts added for the owning player when the pawn is possessed (SetupInput), each with its priority (higher wins on shared keys). Default IMC_Sandbox at 0. Swap in your own context, or add one, without editing the graph. Empty: no keys are mapped and a warning is shown unless bWarnIfNoInputMappingContexts is off. |
Warn if No Input Mapping ContextsbWarnIfNoInputMappingContexts | Boolean | true | Show a warning on screen and in the log when InputMappingContexts is empty. Turn it off when the game adds its own mapping contexts. Default true. |
GASPALS > Input > Hold Toggle¶
| Variable | Type | Default | Description |
|---|---|---|---|
Toggle CrouchbToggleCrouch | Boolean | true | Crouch input: true = toggle (press to crouch, press again to stand), false = hold (crouch while the button is held). Default true. |
Toggle WalkbToggleWalk | Boolean | true | Walk input: true = toggle, false = hold (walk while the button is held). Ignored while sprinting. Default true. |
Toggle SprintbToggleSprint | Boolean | false | Sprint input: false = hold (sprint while the button is held), true = toggle. Default false. |
Toggle AimbToggleAim | Boolean | false | Aim input: false = hold (aim while the button is held), true = toggle. Default false. |
Toggle StrafebToggleStrafe | Boolean | true | Strafe input: true = toggle, false = hold (strafe while the button is held). Default true. |
GASPALS > Movement > Sprint¶
| Variable | Type | Default | Description |
|---|---|---|---|
Sprint Max Angle from FacingSprintMaxAngleFromFacing | Vector | (60, 95.74, 95.74) | While strafing, sprint only when the movement input is within this angle (degrees) of the orientation intent. One value per DDCvar.StrafeStyle: X = style 0 (60), Y = style 1 (95.7), Z = style 2 (95.7). The defaults match the old dot thresholds 0.5 / -0.1. |
GASPALS > Strafe¶
| Variable | Type | Default | Description |
|---|---|---|---|
Auto Strafe EnabledbAutoStrafeEnabled | Boolean | false | Auto-strafe: in third person, top-down and side-scroller the pawn strafes while there is look input and returns to OrientToMovement AutoStrafeDelay seconds after it stops. Off by default. |
Auto Strafe DelayAutoStrafeDelay | Float | 1 | Seconds without look input before auto-strafe returns to OrientToMovement (bAutoStrafeEnabled). |
Input¶
| Variable | Type | Default | Description |
|---|---|---|---|
Player Input StatePlayerInputState | S_PlayerInputState | (replicated) | |
Jump Just PressedJump_JustPressed | Boolean | false | |
Last Control RotationLastControlRotation | Rotator | (0, 0, 0) | |
Control Rotation RateControlRotationRate | Float | 0 | |
Smoothed Analog Input AmountSmoothedAnalogInputAmount | Float | 1 |
Mover¶
| Variable | Type | Default | Description |
|---|---|---|---|
Mover Default Inputs Pre SimMoverDefaultInputs_PreSim | CharacterDefaultInputs | ||
Mover Custom Inputs Pre SimMoverCustomInputs_PreSim | S_MoverCustomInputs | ||
Mover Default Inputs Post SimMoverDefaultInputs_PostSim | CharacterDefaultInputs | ||
Mover Custom Inputs Post SimMoverCustomInputs_PostSim | S_MoverCustomInputs | ||
Movement Mode MapMovementModeMap | Map of Name | walking, E_MovementMode::NewEnumerator4, falling, E_MovementMode::NewEnumerator5, sliding, E_MovementMode::NewEnumerator6, traversing, E_MovementMode::NewEnumerator7, ragdoll, E_MovementMode::NewEnumerator9, flying, E_MovementMode::NewEnumerator10, Cover, E_MovementMode::NewEnumerator4 | |
Cached Movement ModeCachedMovementMode | Name | ||
Floor NormalFloorNormal | Vector | (0, 0, 0) | |
Floor LocationFloorLocation | Vector | (0, 0, 0) | |
Has FloorHasFloor | Boolean | false | |
Based Movement DeltaBasedMovementDelta | Transform | ||
Movement Mode Last FrameMovementModeLastFrame | Name | ||
Initial TransformInitialTransform | Transform |
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
DebugDraws | S_MoverCustomInputs angles are integers in hundredths (perf pass, network precision): back to degrees with x 0.01. S_MoverCustomInputs angles are integers in hundredths (perf pass, network precision): back to degrees with x 0.01. | ||
Get_AimRay | Origin (Vector), Direction (Vector), Point (Vector), bHit (Boolean), Planar (Vector), TraceChannel (ETraceTypeQuery), TraceDistance (Float) | The pawn's aim ray for systems that need it (cover targeting and aim from cover): Origin, Direction, the aimed Point, whether it hit (bHit), the flattened Planar direction, and the TraceChannel / TraceDistance it uses. The sample pawns forward their AC_CameraSystem crosshair aim. A pawn without an implementation returns zeros: cover then finds no target. (BPI_SandboxCharacter_Pawn) | |
Get_MMIAnimContexts | AnimContexts (Array of Object ref) | Anim instances of the participants of the current takedown or shove (multi-character motion matching); empty when none. (BPI_SandboxCharacter_Pawn) | |
Get_MMIResult | Result (PoseSearchBlueprintResult) | ||
Get_MovementModeName | ModeName (Name) | The name of the pawn's current movement mode (Mover mode names). CMC pawns return Walking, Falling, Flying, Swimming, Custom or None, or the name last passed to Set_MovementModeByName while the pawn is still in the mode it mapped to (Traversing while flying). (BPI_SandboxCharacter_Pawn) | |
Get_PropertiesForAnimation | ReturnValue (S_CharacterPropertiesForAnimation) | Cover split: bIsCharacterInCover is read from AC_CoverSystem_Base. Cover state for the ABP (bIsCharacterInCover). Aiming rotation: the live control rotation for the local player (the Mover input is a frame old, so the weapon trailed the view); the simulated input otherwise. | |
Get_PropertiesForCamera | ReturnValue (S_CharacterPropertiesForCamera) | ||
Get_PropertiesForRagdoll | ReturnValue (S_RagdollProperties) | ||
Get_PropertiesForTraversal | ReturnValue (S_CharacterPropertiesForTraversal), ReturnValue_Capsule_21_D1F3797D47A5FB49C3DFAE8FAB15AFCC (CapsuleComponent ref), ReturnValue_Mesh_15_D47797BD4F40417B966E3BB7E0AC62D3 (SkeletalMeshComponent ref), ReturnValue_MotionWarping_18_C9F4AD1440C92128F649A7BA8B49094B (MotionWarpingComponent ref), ReturnValue_MovementMode_22_F39395024EEBA400FBE9FB8AE0EF7350 (E_MovementMode), ReturnValue_Gait_12_9093F6E14192D37D2F0223B94E64FF71 (E_Gait), ReturnValue_Speed_26_C6C3500C4C3030A343948F80DFD60AEE (Float) | ||
ProduceInput | SimTimeMs (Integer) | InputCmdResult (MoverInputCmdContext) | Cover (Mover), bandwidth: the cover input is only added while entering cover (bInCover) or in the Cover mode (bIsCharacterInCover), so the exit frame still carries it. Out of cover it is left out: readers treat a missing struct as not in cover. |
Ragdoll_Initialize | ParentPawn (Pawn ref), ParentMesh (SkeletalMeshComponent ref), ParentCapsule (CapsuleComponent ref) | ||
Ragdoll_OnModeChanged | PreviousMovementModeName (Name), NewMovementModeName (Name) | ||
Ragdoll_RequestGetUp | bHandled (Boolean) | ||
Ragdoll_WriteInputs | InCmd (MoverInputCmdContext), MoveInput (Vector) | OutCmd (MoverInputCmdContext) | |
Set_GravityOverride | bOverrideGravity (Boolean), GravityAcceleration (Vector) | bHandled (Boolean) | Overrides the pawn's gravity with GravityAcceleration (cm/s2, world space; zero = no gravity) while bOverrideGravity is true; false restores the normal gravity. CMC pawns use only the Z part, as a Gravity Scale. Returns true when handled. (BPI_SandboxCharacter_Pawn) |
Set_MovementModeByName | ModeName (Name) | bHandled (Boolean) | Switches the pawn to the movement mode named ModeName (Mover mode names: Walking, Falling, Flying, Traversing). Mover pawns queue the mode; CMC pawns map Walking to Walking, Flying and Traversing to Flying, anything else to Falling. Returns true when handled. (BPI_SandboxCharacter_Pawn) |
TeleportCharacter | NewTransform (Transform), bOffset (Boolean) | bHandled (Boolean) | Moves the pawn to NewTransform, or by it when bOffset is true. Returns true when handled. (BPI_SandboxCharacter_Pawn) |
UpdateFirstPersonVisuals | Tells the first-person system which body is shown: the visual override's child actor, else the pawn (SetActiveBody with SkeletalMesh_FP). | ||
Update_ControlRotationRate | |||
Update_FloorValues | |||
Update_SlidingAudio | |||
Update_SmoothedAnalogInputAmount | |||
Update_TargetedActor | |||
IsMoving (pure) | ReturnValue (Boolean) | True when the pawn has velocity and move input. | |
UpdatePawnRotation | First person: the pawn yaw follows the controller, except during a traversal. | ||
GetCameraMovementMode (pure) | MovementMode (E_MovementMode) | Movement mode passed to the camera (S_CharacterPropertiesForCamera.MovementMode): the real mode when AC_CameraSystem.bPassMovementModeToCamera is on (Mover: its movement mode map; CMC: Ragdoll, Traversing, InAir or OnGround), else OnGround. | |
Equipment_Initialize | ParentPawn (Pawn ref), ParentMesh_TP (SkeletalMeshComponent ref), ParentMesh_FP (SkeletalMeshComponent ref), AttachMesh_TP (SkeletalMeshComponent ref), AttachMesh_FP (SkeletalMeshComponent ref) | InitializeSystem on the equipment component when the pawn has one (deletable). | |
FirstPerson_InitializePrimitives | InitializePrimitives on the first-person component when the pawn has one (deletable). | ||
GetVisualFirstPersonMesh | Mesh (SkeletalMeshComponent ref) | The first-person lead mesh of the first-person system, else the pawn mesh (no first-person component). | |
Foley_PlayEvent | Event (GameplayTag), Params (S_FoleyEventParams) | AudioComponent (AudioComponent ref) | PlayFoleyEvent on the foley component when the pawn has one (deletable); returns its audio component, else None. |
Interaction_Initialize | ParentPawn (Pawn ref), ParentMesh (SkeletalMeshComponent ref), ParentCapsule (CapsuleComponent ref) | InitializeSystem on the interaction component (takedowns and shoves) when the pawn has one (deletable). | |
Overlay_Initialize | ParentMesh (SkeletalMeshComponent ref) | InitializeSystem on the overlay component when the pawn has one (deletable). | |
GetVisualMeshes (pure) | Mesh_TP (SkeletalMeshComponent ref), Mesh_FP (SkeletalMeshComponent ref) | The meshes the systems should follow: the third-person mesh of the active visual override (or the pawn's) and the first-person mesh of the first-person system. | |
GetVisualThirdPersonMesh | Mesh (SkeletalMeshComponent ref) | The third-person mesh the player sees: the visual override's body (BPI_VisualOverride), else its first skeletal mesh, else the pawn mesh. | |
SetupCamera | On possession (Possessed_Client): stores the player controller, then activates the Gameplay Camera for it as the view target. | ||
SetupInput | Adds the pawn's InputMappingContexts (with their priorities) to the controlling player's Enhanced Input subsystem. Prints a warning when the list is empty. | ||
CacheInputsFromMover | |||
CustomTeleport | Transform (Transform), Offset (Boolean), UpdateInitialTransform (Boolean) | ||
Get_AimingRotation (pure) | ReturnValue (Rotator) | ||
Get_CurrentMovementMode (pure) | ReturnValue (E_MovementMode) | ||
Get_Gait (pure) | ReturnValue (E_Gait) | ||
Get_MoveInput (pure) | ReturnValue (Vector) | ||
Get_MovementDirectionAndOffset (pure) | MovementDirection (E_MovementDirection), RotationOffset (Float) | ||
Get_MovementDirectionFromThresholds (pure) | Thresholds (S_MovementDirectionThresholds), Direction (Float) | ReturnValue (E_MovementDirection) | |
Get_MovementDirectionThresholds (pure) | ReturnValue (S_MovementDirectionThresholds), ReturnValue_FL_3_747C69604F939E7EFF347D97BBD8A811 (Float), ReturnValue_FR_5_790F2C4742CB53A5585DBFAF660F9CF0 (Float), ReturnValue_BL_7_630ADC5A4B6C3AF9DA182E816EDB311B (Float), ReturnValue_BR_9_67DF35F84900050330F770A709E84CF7 (Float) | ||
Get_OrientationIntent (pure) | ReturnValue (Vector) | ||
Get_RotationMode (pure) | ReturnValue (E_RotationMode) | ||
Get_Speed (pure) | ReturnValue (Float) | ||
On_BasedMovementApplied | TransformDelta (Transform), TimeStep (MoverTimeStep) | ||
On_MovementModeChanged_PostFinalize | PreviousMovementModeName (Name), NewMovementModeName (Name) | Entering Ragdoll: ragdoll cosmetics on every machine (Ragdoll_ApplyEnter), then the ragdoll listeners (the camera) are told. | |
On_MovementPostFinalize | SyncState (MoverSyncState), AuxState (MoverAuxStateContext) | ||
On_PreSimulateTick | TimeStep (MoverTimeStep), InputCmd (MoverInputCmdContext) | ||
CanDoTraversal (pure) | ReturnValue (Boolean) | ||
GetTraversalCheckInputs (pure) | ReturnValue (S_TraversalCheckInputs), ReturnValue_TraceForwardDirection_5_84E06003419F502C44036B9424B39047 (Vector), ReturnValue_TraceForwardDistance_2_07F489F3465D510BFC123689985564DC (Float), ReturnValue_TraceOriginOffset_7_2757E2FF43A7611D7F46EE9AAA15F8C0 (Vector), ReturnValue_TraceEndOffset_15_35E488F2478DA8D4D7E69FB93494661B (Vector), ReturnValue_TraceRadius_10_FF044CA546FFD12BAA4D4E93460A273A (Float), ReturnValue_TraceHalfHeight_12_019A16DE47BB8535C3C0CF8AA6E355EB (Float) |
Events¶
OnCoverVaultReady_Traverse: custom event.UpdateInputState_Server(PlayerInputState (S_PlayerInputState)): Server RPC, reliable.Event Possessed_Client: Client RPC, reliable.
SandboxCharacter_CMC¶
/GASPALS/Blueprints/SandboxCharacter_CMC · parent Character · implements BPI_SandboxCharacter_Pawn_C, BPI_ModularSystems_C
Settings¶
GASPALS > Input¶
| Variable | Type | Default | Description |
|---|---|---|---|
Input Mapping ContextsInputMappingContexts | Map of InputMappingContext ref | IMC_Sandbox, 0 | Input mapping contexts added for the owning player when the pawn is possessed (SetupInput), each with its priority (higher wins on shared keys). Default IMC_Sandbox at 0. Swap in your own context, or add one, without editing the graph. Empty: no keys are mapped and a warning is shown unless bWarnIfNoInputMappingContexts is off. |
Warn if No Input Mapping ContextsbWarnIfNoInputMappingContexts | Boolean | true | Show a warning on screen and in the log when InputMappingContexts is empty. Turn it off when the game adds its own mapping contexts. Default true. |
GASPALS > Input > Hold Toggle¶
| Variable | Type | Default | Description |
|---|---|---|---|
Toggle CrouchbToggleCrouch | Boolean | true | Crouch input: true = toggle (press to crouch, press again to stand), false = hold (crouch while the button is held). Default true. |
Toggle WalkbToggleWalk | Boolean | true | Walk input: true = toggle, false = hold (walk while the button is held). Ignored while sprinting. Default true. |
Toggle SprintbToggleSprint | Boolean | false | Sprint input: false = hold (sprint while the button is held), true = toggle. Default false. |
Toggle AimbToggleAim | Boolean | false | Aim input: false = hold (aim while the button is held), true = toggle. Default false. |
Toggle StrafebToggleStrafe | Boolean | true | Strafe input: true = toggle, false = hold (strafe while the button is held). Default true. |
GASPALS > Movement > CMC¶
| Variable | Type | Default | Description |
|---|---|---|---|
Gait Max AccelerationGaitMaxAcceleration | Vector | (800, 800, 300) | Max acceleration per gait (cm/s2). X = Walk, Y = Run, Z = Sprint at full speed: while sprinting the value ramps from Y to Z over SprintAccelerationSpeedRange. Default (800, 800, 300). |
Sprint Acceleration Speed RangeSprintAccelerationSpeedRange | Vector2D | (300, 700) | Ground speed range (cm/s) over which the sprint acceleration ramps from the Run value to the Sprint value of GaitMaxAcceleration. Default (300, 700). |
Gait Ground FrictionGaitGroundFriction | Vector | (5, 5, 3) | Ground friction per gait. X = Walk, Y = Run, Z = Sprint at full speed: while sprinting it ramps from Y to Z over SprintGroundFrictionSpeedRange. Default (5, 5, 3). |
Sprint Ground Friction Speed RangeSprintGroundFrictionSpeedRange | Vector2D | (0, 500) | Ground speed range (cm/s) over which the sprint ground friction ramps from the Run value to the Sprint value of GaitGroundFriction. Default (0, 500). |
Braking DecelerationBrakingDeceleration | Vector2D | (500, 2000) | Braking deceleration (cm/s2). X = while there is movement input, Y = when stopping (no input), also used in cover and during a cover run. Default (500, 2000). |
Stopping Braking FrictionStoppingBrakingFriction | Float | 3 | Braking friction while the character has no acceleration (stopping); 0 while accelerating. Default 3. |
Falling Rotation RateFallingRotationRate | Float | 200 | Yaw rotation rate (deg/s) while falling. On the ground the rate is -1 (instant). Default 200. |
GASPALS > Movement > Slide¶
| Variable | Type | Default | Description |
|---|---|---|---|
Enable SlidebEnableSlide | Boolean | true | Sprint, then crouch, to slide: the slide starts when crouched on the ground above Slide Enter Speed, out of cover and ragdoll, after Slide Cooldown. Off: crouching at speed only brakes to the crouch speed. |
Slide Enter SpeedSlideEnterSpeed | Float | 380 | Ground speed (cm/s) above which crouching starts a slide. 380 as the Mover Slide mode: running (about 375) does not slide, sprinting does. |
Slide Exit SpeedSlideExitSpeed | Float | 200 | The slide ends once the ground speed (cm/s) drops to this, or when the character stands up or leaves the ground. |
Slide CooldownSlideCooldown | Float | 0.75 | Seconds after a slide starts or ends before another slide can start (stops crouch spam from chaining slides). |
Slide Initial Boost TimeSlideInitialBoostTime | Float | 0.2 | Seconds of initial boost at the start of a slide (max speed Slide Initial Boost Speed, acceleration Slide Initial Boost Acceleration). |
Slide Initial Boost SpeedSlideInitialBoostSpeed | Float | 800 | Max speed (cm/s) during the initial boost. |
Slide Initial Boost AccelerationSlideInitialBoostAcceleration | Float | 2000 | Acceleration (cm/s2) during the initial boost. |
Slide After Boost AccelerationSlideAfterBoostAcceleration | Float | 300 | Acceleration (cm/s2) after the boost (steering toward the input while sliding). |
Slide Shallow Slope AngleSlideShallowSlopeAngle | Float | 10 | Slope (degrees) where downhill speed starts (Slide Shallow Slope Speed) and uphill braking starts rising from Slide Flat Ground Deceleration. Flatter ground uses Slide Flat Ground Speed. |
Slide Steep Slope AngleSlideSteepSlopeAngle | Float | 40 | Slope (degrees) at which downhill speed reaches Slide Steep Slope Speed and uphill braking reaches Slide Steep Slope Deceleration. |
Slide Flat Ground SpeedSlideFlatGroundSpeed | Float | 100 | Max speed (cm/s) on flat ground or uphill after the boost: the slide brakes down toward it. |
Slide Shallow Slope SpeedSlideShallowSlopeSpeed | Float | 500 | Max speed (cm/s) downhill at Slide Shallow Slope Angle. |
Slide Steep Slope SpeedSlideSteepSlopeSpeed | Float | 800 | Max speed (cm/s) downhill at Slide Steep Slope Angle and steeper. |
Slide Flat Ground DecelerationSlideFlatGroundDeceleration | Float | 500 | Braking deceleration (cm/s2) on flat ground and downhill. |
Slide Steep Slope DecelerationSlideSteepSlopeDeceleration | Float | 2000 | Braking deceleration (cm/s2) uphill at Slide Steep Slope Angle and steeper. |
Slide Ground FrictionSlideGroundFriction | Float | 1 | Ground friction while sliding: low values keep the slide direction and steer slowly toward the input (the Mover slide steers the same way). CMC only. |
GASPALS > Movement > Sprint¶
| Variable | Type | Default | Description |
|---|---|---|---|
Sprint Max Angle from FacingSprintMaxAngleFromFacing | Float | 50 | Unless the character orients to movement, sprint only when the movement input is within this angle (degrees) of the facing direction. Default 50. |
GASPALS > Strafe¶
| Variable | Type | Default | Description |
|---|---|---|---|
Auto Strafe EnabledbAutoStrafeEnabled | Boolean | false | Third person: strafe (face the camera direction) while the player looks around, back to orient-to-movement AutoStrafeDelay seconds after the look input stops. Only matters while strafe is toggled off (the CMC pawn starts strafing). Same setting as on the Mover pawn. Default false. |
Auto Strafe DelayAutoStrafeDelay | Float | 1 | Seconds after the last look input before auto-strafe lets the character orient to movement again. Default 1. |
GASPALS > Targeting¶
| Variable | Type | Default | Description |
|---|---|---|---|
Target Lock Interp SpeedTargetLockInterpSpeed | Float | 10 | How fast the character turns toward a locked target (RInterpTo speed). Default 10. |
Input¶
| Variable | Type | Default | Description |
|---|---|---|---|
Movement Stick ModeMovementStickMode | E_AnalogStickBehavior | Fixed Speed - Single Gait | |
Analog Walk/ Run ThresholdAnalogWalk/RunThreshold | Float | 0.7 | |
Character Input StateCharacterInputState | S_PlayerInputState | (replicated) |
Movement¶
| Variable | Type | Default | Description |
|---|---|---|---|
Strafe Speed Map CurveStrafeSpeedMapCurve | CurveFloat ref | Curve_StrafeSpeedMap | |
Gait | E_Gait | Run | |
Walk SpeedsWalkSpeeds | Vector | (200, 180, 150) | X = Forward Speed, Y = Strafe Speed, Z = Backwards Speed |
Run SpeedsRunSpeeds | Vector | (500, 350, 300) | X = Forward Speed, Y = Strafe Speed, Z = Backwards Speed |
Sprint SpeedsSprintSpeeds | Vector | (700, 700, 700) | X = Forward Speed, Y = Strafe Speed, Z = Backwards Speed |
Walk Speeds DemoWalkSpeeds_Demo | Vector | (165, 165, 165) | X = Forward Speed, Y = Strafe Speed, Z = Backwards Speed |
Run Speeds DemoRunSpeeds_Demo | Vector | (375, 375, 375) | X = Forward Speed, Y = Strafe Speed, Z = Backwards Speed |
Sprint Speeds DemoSprintSpeeds_Demo | Vector | (600, 600, 600) | X = Forward Speed, Y = Strafe Speed, Z = Backwards Speed |
Crouch SpeedsCrouchSpeeds | Vector | (225, 200, 180) | X = Forward Speed, Y = Strafe Speed, Z = Backwards Speed |
Just LandedJustLanded | Boolean | false | |
Land VelocityLandVelocity | Vector | (0, 0, 0) | |
Using Attribute Based Root MotionUsingAttributeBasedRootMotion | Boolean | false |
Movement > Simulated¶
| Variable | Type | Default | Description |
|---|---|---|---|
Was Moving on Ground Last Frame SimulatedWasMovingOnGroundLastFrame_Simulated | Boolean | true | |
Last Update VelocityLastUpdateVelocity | Vector | (0, 0, 0) |
Runtime state (3 variables)
| Variable | Type | Default | Description |
|---|---|---|---|
Auto Strafe Delta SecondsAutoStrafeDeltaSeconds | Float | 0 | Time since the last look input (auto-strafe timer, owner only). |
Targetable ActorsTargetableActors | Array of Actor ref | Actors that can be locked on, added and removed through the pawn interface AddTarget / RemoveTarget (TargetDummy does this on overlap). | |
Targeted ActorTargetedActor | Actor ref | The nearest targetable actor; the character turns toward it (ApplyTargetLockRotation) and the camera uses its Strafe rigs. |
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
CalculateMovementDirection (pure) | DirectionX (Vector), DirectionY (Vector) | Right and forward directions of the gameplay camera, flattened to yaw, for camera-relative movement input. | |
Get_AimRay | Origin (Vector), Direction (Vector), Point (Vector), bHit (Boolean), Planar (Vector), TraceChannel (ETraceTypeQuery), TraceDistance (Float) | The pawn's aim ray for systems that need it (cover targeting and aim from cover): Origin, Direction, the aimed Point, whether it hit (bHit), the flattened Planar direction, and the TraceChannel / TraceDistance it uses. The sample pawns forward their AC_CameraSystem crosshair aim. A pawn without an implementation returns zeros: cover then finds no target. (BPI_SandboxCharacter_Pawn) | |
Get_MMIAnimContexts | AnimContexts (Array of Object ref) | Anim instances of the participants of the current takedown or shove (multi-character motion matching); empty when none. (BPI_SandboxCharacter_Pawn) | |
Get_MMIResult | Result (PoseSearchBlueprintResult) | ||
Get_MovementModeName | ModeName (Name) | The name of the pawn's current movement mode (Mover mode names). CMC pawns return Walking, Falling, Flying, Swimming, Custom or None, or the name last passed to Set_MovementModeByName while the pawn is still in the mode it mapped to (Traversing while flying). (BPI_SandboxCharacter_Pawn) | |
Get_PropertiesForAnimation | ReturnValue (S_CharacterPropertiesForAnimation) | Sliding while a slide is active (the CMC has no slide mode). | |
Get_PropertiesForCamera | ReturnValue (S_CharacterPropertiesForCamera) | ||
Get_PropertiesForRagdoll | ReturnValue (S_RagdollProperties) | ||
Get_PropertiesForTraversal | ReturnValue (S_CharacterPropertiesForTraversal), ReturnValue_Capsule_21_D1F3797D47A5FB49C3DFAE8FAB15AFCC (CapsuleComponent ref), ReturnValue_Mesh_15_D47797BD4F40417B966E3BB7E0AC62D3 (SkeletalMeshComponent ref), ReturnValue_MotionWarping_18_C9F4AD1440C92128F649A7BA8B49094B (MotionWarpingComponent ref), ReturnValue_MovementMode_22_F39395024EEBA400FBE9FB8AE0EF7350 (E_MovementMode), ReturnValue_Gait_12_9093F6E14192D37D2F0223B94E64FF71 (E_Gait), ReturnValue_Speed_26_C6C3500C4C3030A343948F80DFD60AEE (Float) | ||
IsMoving (pure) | ReturnValue (Boolean) | True when the pawn has velocity and acceleration. | |
Set_GravityOverride | bOverrideGravity (Boolean), GravityAcceleration (Vector) | bHandled (Boolean) | Overrides the pawn's gravity with GravityAcceleration (cm/s2, world space; zero = no gravity) while bOverrideGravity is true; false restores the normal gravity. CMC pawns use only the Z part, as a Gravity Scale. Returns true when handled. (BPI_SandboxCharacter_Pawn) |
Set_MovementModeByName | ModeName (Name) | bHandled (Boolean) | Switches the pawn to the movement mode named ModeName (Mover mode names: Walking, Falling, Flying, Traversing). Mover pawns queue the mode; CMC pawns map Walking to Walking, Flying and Traversing to Flying, anything else to Falling. Returns true when handled. (BPI_SandboxCharacter_Pawn) |
TeleportCharacter | NewTransform (Transform), bOffset (Boolean) | bHandled (Boolean) | Moves the pawn to NewTransform, or by it when bOffset is true. Returns true when handled. (BPI_SandboxCharacter_Pawn) |
UpdateFirstPersonVisuals | Tells the first-person system which body is shown: the visual override's child actor, else the pawn (SetActiveBody with SkeletalMesh_FP). | ||
GetCameraMovementMode (pure) | MovementMode (E_MovementMode) | Movement mode passed to the camera (S_CharacterPropertiesForCamera.MovementMode): the real mode when AC_CameraSystem.bPassMovementModeToCamera is on (Mover: its movement mode map; CMC: Ragdoll, Traversing, InAir or OnGround), else OnGround. | |
Equipment_Initialize | ParentPawn (Pawn ref), ParentMesh_TP (SkeletalMeshComponent ref), ParentMesh_FP (SkeletalMeshComponent ref), AttachMesh_TP (SkeletalMeshComponent ref), AttachMesh_FP (SkeletalMeshComponent ref) | InitializeSystem on the equipment component when the pawn has one (deletable). | |
FirstPerson_InitializePrimitives | InitializePrimitives on the first-person component when the pawn has one (deletable). | ||
GetVisualFirstPersonMesh | Mesh (SkeletalMeshComponent ref) | The first-person lead mesh of the first-person system, else the pawn mesh (no first-person component). | |
Foley_PlayEvent | Event (GameplayTag), Params (S_FoleyEventParams) | AudioComponent (AudioComponent ref) | PlayFoleyEvent on the foley component when the pawn has one (deletable); returns its audio component, else None. |
Interaction_Initialize | ParentPawn (Pawn ref), ParentMesh (SkeletalMeshComponent ref), ParentCapsule (CapsuleComponent ref) | InitializeSystem on the interaction component (takedowns and shoves) when the pawn has one (deletable). | |
Overlay_Initialize | ParentMesh (SkeletalMeshComponent ref) | InitializeSystem on the overlay component when the pawn has one (deletable). | |
Ragdoll_Initialize | ParentPawn (Pawn ref), ParentMesh (SkeletalMeshComponent ref), ParentCapsule (CapsuleComponent ref) | InitializeSystem on the ragdoll component when the pawn has one (deletable). | |
Ragdoll_IsActive (pure) | bIsRagdolling (Boolean) | True while the ragdoll component ragdolls; false without one. | |
Ragdoll_RequestGetUp | bHandled (Boolean) | Asks AC_RagdollSystem to get up (RequestGetUp: only while ragdolling on a floor). Class lookup, so the pawn still compiles when the component is deleted. False without the component. | |
GetVisualMeshes (pure) | Mesh_TP (SkeletalMeshComponent ref), Mesh_FP (SkeletalMeshComponent ref) | The meshes the systems should follow: the third-person mesh of the active visual override (or the pawn's) and the first-person mesh of the first-person system. | |
GetVisualThirdPersonMesh | Mesh (SkeletalMeshComponent ref) | The third-person mesh the player sees: the visual override's body (BPI_VisualOverride), else its first skeletal mesh, else the pawn mesh. | |
GetCharacterMovementModeName (pure) | ModeName (Name) | The Character Movement mode as a Mover mode name: Walking (also NavWalking), Falling, Flying, Swimming, Custom or None. Used by Get_MovementModeName and Set_MovementModeByName. | |
SetupCamera | On possession (Possessed_Client): stores the player controller, then activates the Gameplay Camera for it as the view target. | ||
SetupInput | Adds the pawn's InputMappingContexts (with their priorities) to the controlling player's Enhanced Input subsystem. Prints a warning when the list is empty. | ||
UpdateAutoStrafe | Owner only: runs the auto-strafe timer from look input and replicates CharacterInputState.IsAutoStrafing when it changes. | ||
ApplyTargetLockRotation | With a target and out of cover: turns the CMC rotation modes off and rotates the actor toward the target at TargetLockInterpSpeed. | ||
UpdateTargetedActor | Picks the nearest of TargetableActors as TargetedActor and marks it with a debug cone. | ||
GetMovementInputScaleValue (pure) | Input (Vector2D) | ReturnValue (Vector2D) | |
CalculateBrakingDeceleration (pure) | ReturnValue (Float) | Braking deceleration: Braking Deceleration X while accelerating outside cover, Y when stopping or in cover. Reads the CharacterMovement current acceleration (the last move) on every machine: the server only knows the last move, so the owner reading its pending input braked differently on the first move without input and got a correction on every stop. Last move's acceleration, the same on every machine (the server has no pending input). | |
CalculateBrakingFriction (pure) | ReturnValue (Float) | StoppingBrakingFriction while not accelerating, else 0. | |
CalculateGroundFriction (pure) | ReturnValue (Float) | Ground friction for the current gait from GaitGroundFriction (sprint ramps over SprintGroundFrictionSpeedRange). | |
CalculateMaxAcceleration (pure) | ReturnValue (Float) | Max acceleration for the current gait from GaitMaxAcceleration (sprint ramps over SprintAccelerationSpeedRange). | |
CalculateMaxCrouchSpeed (pure) | ReturnValue (Float) | ||
CalculateMaxSpeed (pure) | ReturnValue (Float) | ||
CanSprint (pure) | ReturnValue (Boolean) | ||
GetDesiredGait (pure) | ReturnValue (E_Gait) | Full input: the owner's own value; the server and other machines use the one the owner sent (they have no stick input). | |
GetLocalFullMovementInput | bFullInput (Boolean) | Owner only: whether the movement input counts as full (Run / Sprint) or partial (Walk). DDCvar.AnalogInputStyle 0 = always full (single gait), 1 = full above Analog Walk/Run Threshold; without the console variable, Movement Stick Mode decides (the Walk / Run modes compare the stick with the threshold). | |
HasMovementInputVector (pure) | ReturnValue (Boolean) | ||
SyncFullMovementInput | Owner only: computes the full-input flag and sends it to the server (ServerSetFullMovementInput) when it changes, so the server picks the same gait (max speed) on the same move. | ||
UpdateMovement_PreCMC | Cover: Sprint during a cover run (the run flag reaches the server through the cover RPC). Otherwise walk while standing in cover; crouching and sprinting keep their gait. | ||
UpdateRotation_PreCMC | Every tick before the CMC: rotation mode per perspective, FallingRotationRate while falling, and the fixed-camera aim rotation for top-down / side-scroller. | ||
UpdatedMovementSimulated | OldVelocity (Vector) | ||
ApplySlideMovementSettings | While sliding, on every machine, at the end of UpdateMovement_PreCMC: crouched max speed (boost speed, else flat / downhill speed from the slope), acceleration (boost or after-boost), braking deceleration from the slope (uphill brakes harder) and Slide Ground Friction. | ||
GetSlideSlopeAngle (pure) | Angle (Float) | Slope of the floor along the horizontal velocity, in degrees: negative downhill, positive uphill, 0 on flat ground (as the Mover Slide mode). | |
IsSlideActive (pure) | bActive (Boolean) | Sliding: the owner's own state, the replicated one elsewhere. | |
IsSlideBoostActive (pure) | bActive (Boolean) | In the initial slide boost: the owner's own state, the replicated one elsewhere. | |
SyncSlideState | Owner only: sends the slide and boost flags to the server (ServerSetSlideState) when they change. | ||
UpdateSlideAudio | Every machine: starts the looping slide foley when a slide starts, sets its Speed parameter, fades it out when the slide ends. | ||
UpdateSlideState | Owner only, every frame before UpdateMovement_PreCMC: starts the slide (crouched on the ground above Slide Enter Speed, not in cover or ragdoll, cooldown done) and ends it (standing up, leaving the ground, or at Slide Exit Speed; with sprint held the character also stands up, as on the Mover pawn), times the boost and sends changes to the server (SyncSlideState). | ||
GetTraversalCheckInputs (pure) | ReturnValue (S_TraversalCheckInputs), ReturnValue_TraceForwardDirection_5_84E06003419F502C44036B9424B39047 (Vector), ReturnValue_TraceForwardDistance_2_07F489F3465D510BFC123689985564DC (Float), ReturnValue_TraceOriginOffset_7_2757E2FF43A7611D7F46EE9AAA15F8C0 (Vector), ReturnValue_TraceEndOffset_15_35E488F2478DA8D4D7E69FB93494661B (Vector), ReturnValue_TraceRadius_10_FF044CA546FFD12BAA4D4E93460A273A (Float), ReturnValue_TraceHalfHeight_12_019A16DE47BB8535C3C0CF8AA6E355EB (Float) | Cover: in cover, trace toward the wall (-CoverNormal) instead of the actor forward, so a vault from cover finds the wall the character leans on. |
Events¶
On Request Interact(event dispatcher, Instigating Actor (Actor ref)): no description.OnRemoteCoverStateApplied_Event: custom event.Custom OnLanded Event(LandVelocity (Vector)): custom event.PreCMCTick: custom event.Custom OnJumped Event(GroundSpeedBeforeJump (Float)): custom event.OnCharacterMovementUpdated_Event(DeltaSeconds (Float), OldLocation (Vector), OldVelocity (Vector)): custom event.UpdateInputState_Server(CharacterInputState (S_PlayerInputState)): Server RPC, reliable.ServerSetFullMovementInput(bFullInput (Boolean)): Server RPC, reliable.Event Possessed_Client: Client RPC, reliable.OnCoverVaultReady_Event: custom event.ServerSetSlideState(bNewSliding (Boolean), bNewBoost (Boolean)): Server RPC, reliable.
SandboxCharacter_Mover_ABP¶
/GASPALS/Blueprints/SandboxCharacter_Mover_ABP · parent AnimInstance · implements BPI_SandboxCharacter_ABP_C, ALI_OverlayBody_C, ALI_OverlayPose_C, ALI_GameLayer_C
Only the GASPALS additions are listed. The Game Animation Sample variables and functions of this Anim Blueprint (motion matching, trajectory, foot placement, state machine) are internal to the locomotion setup.
Settings¶
GASPALS > Anim > Aim¶
| Variable | Type | Default | Description |
|---|---|---|---|
Camera PropertiesCameraProperties | S_CharacterPropertiesForCamera | Camera state of the owning pawn (perspective and related values) for the first-person and aim logic. | |
AO ClampedAO_Clamped | Vector2D | (0, 0) | Aim offset (yaw, pitch) with the yaw clamped to +-60 degrees. |
Aim Smoothing Time LocalAimSmoothingTime_Local | Float | 0 | Aim offset spring time (s) on the machine that controls the pawn. 0 (default) = no smoothing: the weapon follows the view in the same frame. Above 0 the aim offset trails the camera, which shows as the weapon stepping after each mouse step when turning slowly. |
Aim Smoothing Time RemoteAimSmoothingTime_Remote | Float | 0.2 | Aim offset spring time (s) on other machines (server copies, simulated proxies), where the aim arrives in network steps. Longer hides the steps. |
GASPALS > Anim > Curves¶
| Variable | Type | Default | Description |
|---|---|---|---|
Curve Layering Hand LCurve_Layering_Hand_L | Float | 0 | Layering_Hand_L curve of the current pose (overlay hand blend). |
Curve Layering Hand RCurve_Layering_Hand_R | Float | 0 | Layering_Hand_R curve of the current pose (overlay hand blend). |
Curve Disable CR Aim Offset YawCurve_Disable_CR_AimOffset_Yaw | Boolean | false | True when the disable_cr_aimoffset_yaw curve is 0, i.e. the Control Rig aim offset may use yaw. |
Curve Disable CR Aim Offset PitchCurve_Disable_CR_AimOffset_Pitch | Boolean | false | True when the disable_cr_aimoffset_pitch curve is 0, i.e. the Control Rig aim offset may use pitch. |
Curve Enable Hand IK LCurve_Enable_HandIK_L | Float | 0 | Enable_HandIK_L curve of the current pose: left hand IK weight. |
Curve Enable Hand IK RCurve_Enable_HandIK_R | Float | 0 | Enable_HandIK_R curve of the current pose: right hand IK weight. |
GASPALS > Anim > Features¶
| Variable | Type | Default | Description |
|---|---|---|---|
Enable Foot PinningbEnableFootPinning | Boolean | false | Foot pinning allowed this frame (Procedural AllowFootPinning). |
Enable Slope WarpingbEnableSlopeWarping | Boolean | false | Slope warping allowed this frame (Procedural AllowSlopeWarping). |
GASPALS > Anim > References¶
| Variable | Type | Default | Description |
|---|---|---|---|
Parent PawnParentPawn | Pawn ref | The pawn that owns this Anim Blueprint (cached). | |
Equipment ComponentEquipmentComponent | AC_EquipmentSystem ref | The pawn's equipment system, looked up lazily for the hand IK targets. |
GASPALS > Animation > Trajectory¶
| Variable | Type | Default | Description |
|---|---|---|---|
Trajectory Sampling RateTrajectorySamplingRate | Integer | 20 | Simulation steps per second used by the Mover trajectory predictor (motion matching trajectory, 1.5 s look-ahead). Each step runs the current movement mode's GenerateMove, so the cost grows linearly: 60 = about 92 Walking-mode runs per pawn per frame, 20 (default) = 32. Clamped to at least 10. Higher values barely change the prediction (measured: +0.5 s error 41 cm at 60 vs 44 cm at 20). |
GASPALS > First Person > Root Offset¶
| Variable | Type | Default | Description |
|---|---|---|---|
First Person Max Root Yaw LagFirstPersonMaxRootYawLag | Float | 60 | First person: maximum yaw the root may lag behind the view (from the pawn's AC_FirstPersonSystem), used by the offset root. |
Runtime state (2 variables)
| Variable | Type | Default | Description |
|---|---|---|---|
Just TeleportedbJustTeleported | Boolean | false | True on the frame the pawn was teleported, to reset the procedural foot and offset nodes. |
Is CrouchingbIsCrouching | Boolean | false | True while the pawn's stance is Crouch (set every update in Update_GASPALS). |
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
Get_InteractionAnimContexts | Result (PoseSearchBlueprintResult) | AnimContexts (Array of Object ref) | Anim contexts of the current takedown or shove from the pawn (Get_MMIAnimContexts), else the ones in Result. |
Update_GASPALS | GASPALS per-frame values: hand layering and hand IK curves, aim offset disable curves, foot pinning and slope warping switches, teleport flag. | ||
Update_CoverLower | Game thread: ask the pawn cover component how far to lower the pelvis (GetCoverLowerAmount, adapts to the cover height) and store it in CoverLower for CR_Humanoid_CoverLower. 0 without a cover component. | ||
UpdateEquipmentComponent | Finds the owning pawn's AC_EquipmentSystem while EquipmentComponent is unset (the component cannot be found at animation initialize), so hand IK and held item data work. Does nothing once set or when the pawn has no equipment component. | ||
Get_OffsetRootMaxRotationError (pure) | ReturnValue (Float) | First person: how far (degrees) the Offset Root Bone may keep the body turned away from the capsule (FirstPersonMaxRootYawLag), so a fast camera turn drags the body along instead of showing its back. -1 (no limit) in other perspectives. | |
Update_FirstPersonSettings | Copies FirstPersonMaxRootYawLag from the owner AC_FirstPersonSystem (game thread, every update). |
SandboxCharacter_CMC_ABP¶
/GASPALS/Blueprints/SandboxCharacter_CMC_ABP · parent AnimInstance · implements BPI_InteractionTransform_C, BPI_SandboxCharacter_ABP_C, ALI_OverlayBody_C, ALI_OverlayPose_C, ALI_GameLayer_C
Only the GASPALS additions are listed. The Game Animation Sample variables and functions of this Anim Blueprint (motion matching, trajectory, foot placement, state machine) are internal to the locomotion setup.
Settings¶
GASPALS¶
| Variable | Type | Default | Description |
|---|---|---|---|
Parent PawnParentPawn | Pawn ref | The pawn that owns this Anim Blueprint (cached). | |
Camera PropertiesCameraProperties | S_CharacterPropertiesForCamera | Camera state of the owning pawn (perspective and related values) for the first-person and aim logic. | |
AO ClampedAO_Clamped | Vector2D | (0, 0) | Aim offset (yaw, pitch) with the yaw clamped to +-60 degrees. |
Is CrouchingbIsCrouching | Boolean | false | True while the pawn's stance is Crouch (set every update in Update_GASPALS). |
GASPALS > Anim > Aim¶
| Variable | Type | Default | Description |
|---|---|---|---|
Aim Smoothing Time LocalAimSmoothingTime_Local | Float | 0 | Aim offset spring time (s) on the machine that controls the pawn. 0 (default) = no smoothing: the weapon follows the view in the same frame. Above 0 the aim offset trails the camera, which shows as the weapon stepping after each mouse step when turning slowly. |
Aim Smoothing Time RemoteAimSmoothingTime_Remote | Float | 0.2 | Aim offset spring time (s) on other machines (server copies, simulated proxies), where the aim arrives in network steps. Longer hides the steps. |
GASPALS > Anim > Interaction¶
| Variable | Type | Default | Description |
|---|---|---|---|
Enable MMI IKEnable_MMI_IK | Boolean | false | True while a takedown or shove montage plays: the Procedural layer blends in the interaction hand IK. |
MMI ConstraintsMMI_Constraints | Array of PoseSearchConstraint | Pose search constraints of the current interaction (Update_InteractionConstraints). | |
MMI IK Hand L AlphaMMI_IK_Hand L Alpha | Float | 0 | Left hand IK alpha from the interaction constraints. |
MMI IK Hand L TargetMMI_IK_Hand L Target | Transform | Left hand IK target from the interaction constraints, relative to the mesh. | |
MMI IK Hand R AlphaMMI_IK_Hand R Alpha | Float | 0 | Right hand IK alpha from the interaction constraints. |
MMI IK Hand R TargetMMI_IK_Hand R Target | Transform | Right hand IK target from the interaction constraints, relative to the mesh. | |
MMIResult | PoseSearchBlueprintResult | The pawn's current interaction result (Get_MMIResult), read every update. | |
PSIA | PoseSearchInteractionAsset ref | Interaction asset of the current interaction result. |
GASPALS > Curves¶
| Variable | Type | Default | Description |
|---|---|---|---|
Curve Layering Hand LCurve_Layering_Hand_L | Float | 0 | Layering_Hand_L curve of the current pose (overlay hand blend). |
Curve Layering Hand RCurve_Layering_Hand_R | Float | 0 | Layering_Hand_R curve of the current pose (overlay hand blend). |
Curve Enable Hand IK LCurve_Enable_HandIK_L | Float | 0 | Enable_HandIK_L curve of the current pose: left hand IK weight. |
Curve Enable Hand IK RCurve_Enable_HandIK_R | Float | 0 | Enable_HandIK_R curve of the current pose: right hand IK weight. |
Curve Disable CR Aim Offset YawCurve_Disable_CR_AimOffset_Yaw | Boolean | false | True when the disable_cr_aimoffset_yaw curve is 0, i.e. the Control Rig aim offset may use yaw. |
Curve Disable CR Aim Offset PitchCurve_Disable_CR_AimOffset_Pitch | Boolean | false | True when the disable_cr_aimoffset_pitch curve is 0, i.e. the Control Rig aim offset may use pitch. |
GASPALS > First Person > Root Offset¶
| Variable | Type | Default | Description |
|---|---|---|---|
First Person Max Root Yaw LagFirstPersonMaxRootYawLag | Float | 60 | First person only: the most (degrees) the body may lag behind the camera yaw. Small turns still play turn-in-place animations with planted feet; faster turns drag the body along so it never shows its back. Read by Get_OffsetRootMaxRotationError (Offset Root Bone Max Rotation Error). |
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
Update_GASPALS | GASPALS per-frame values: hand layering and hand IK curves, aim offset disable curves. | ||
Update_CoverLower | Game thread: ask the pawn cover component how far to lower the pelvis (GetCoverLowerAmount, adapts to the cover height) and store it in CoverLower for CR_Humanoid_CoverLower. 0 without a cover component. | ||
Get_InteractionAnimContexts | Result (PoseSearchBlueprintResult) | AnimContexts (Array of Object ref) | Anim contexts of the current takedown or shove from the pawn (Get_MMIAnimContexts), else the ones in Result. |
Update_InteractionConstraints | Interaction hand IK: while the takedown or shove montage plays, updates the pose search constraints and the hand IK targets and alphas used by the Procedural graph. | ||
UpdateEquipmentComponent | Finds the owning pawn's AC_EquipmentSystem while EquipmentComponent is unset (the component cannot be found at animation initialize), so hand IK and held item data work. Does nothing once set or when the pawn has no equipment component. | ||
Get_OffsetRootMaxRotationError (pure) | ReturnValue (Float) | First person: how far (degrees) the Offset Root Bone may keep the body turned away from the capsule (FirstPersonMaxRootYawLag), so a fast camera turn drags the body along instead of showing its back. -1 (no limit) in other perspectives. | |
Update_FirstPersonSettings | Copies FirstPersonMaxRootYawLag from the owner AC_FirstPersonSystem (game thread, every update). |
AC_VisualOverrideManager¶
/GASPALS/Blueprints/AC_VisualOverrideManager · parent ActorComponent
Settings¶
Default¶
| Variable | Type | Default | Description |
|---|---|---|---|
Visual OverrideVisualOverride | Actor class | Character currently shown (replicated; OnRep_VisualOverride applies it on clients). (replicated (RepNotify)) |
GASPALS > Characters > General¶
| Variable | Type | Default | Description |
|---|---|---|---|
Default Visual OverrideDefaultVisualOverride | Actor soft class | This pawn's own character: a BP_RetargetedCharacter_* class shown instead of the mannequin (None = the pawn's UEFN mannequin). Used when bFollowGlobalVisualOverride is off, when the game mode is not GM_Sandbox, or when the sandbox index (DDCvar.VisualOverride) is -1. Instance editable, so placed pawns and NPCs can differ. | |
Follow Global Visual OverridebFollowGlobalVisualOverride | Boolean | true | Follow the sandbox character selection (GM_Sandbox's VisualOverrides_Soft list indexed by DDCvar.VisualOverride, cycled with M): every following pawn shows the same character. Off: this pawn always shows DefaultVisualOverride. |
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
ApplyDefaultVisualOverride | On the server, loads DefaultVisualOverride into VisualOverride (it replicates). Clients do nothing: they get the server's value. | ||
ApplyVisualOverride | Sets VisualOverride as the class of every child actor component tagged VisualOverride, hides the pawn's own body (that component's attach parent) when a class is set, then re-initializes the modular systems. | ||
FindAndApplyVisualOverride | When the pawn follows the sandbox selection (UsesGlobalVisualOverride), loads the GM_Sandbox VisualOverrides_Soft entry chosen by DDCvar.VisualOverride; else applies DefaultVisualOverride. | ||
UsesGlobalVisualOverride (pure) | bUsesGlobal (Boolean) | True when this pawn takes the sandbox character: bFollowGlobalVisualOverride is on, the game mode is GM_Sandbox (or a child) and DDCvar.VisualOverride names a character in its list. Pure. |
Events¶
OnDataDrivenCVarChanged(CVarName (String)): custom event.LoadVisualOverride(AssetClass (Object soft class)): custom event.
BPI_VisualOverride¶
/GASPALS/Blueprints/BPI_VisualOverride · parent Interface
Implemented by a visual override (retargeted character): its body mesh, for the camera, the equipment and first person.
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
GetVisualBodyMesh | BodyMesh (SkeletalMeshComponent ref) | The body mesh of this visual override (the mesh the player sees, retargeted from the pawn). Camera and equipment attach to it; the first-person system copies it. None = the first skeletal mesh component is used. |
BP_RetargetedCharacter_Base¶
/GASPALS/Blueprints/RetargetedCharacters/BP_RetargetedCharacter_Base · parent Actor · implements BPI_FirstPersonCharacter_C, BPI_VisualOverride_C
Parent of the retargeted characters (Manny, Quinn, Kellan).
Settings¶
| Variable | Type | Default | Description |
|---|---|---|---|
First Person SetupFirstPersonSetup | PDA_FirstPersonSetup ref | This character's first-person setup (PDA_FirstPersonSetup: meshes, retargeter, camera and head bone, eye offset). The pawn's first-person system reads it through BPI_FirstPersonCharacter while this character is the active visual override. Set it on each child (DA_FirstPersonSetup_ |
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
GetFirstPersonSetup | Setup (PDA_FirstPersonSetup ref) | This body's first-person setup (meshes, retargeter, camera and head bone, eye offset). The pawn's first-person system builds the first-person meshes from it while this actor is the active visual override. None = reuse the body mesh with the head hidden. (BPI_FirstPersonCharacter) | |
GetVisualBodyMesh | BodyMesh (SkeletalMeshComponent ref) | The body mesh of this visual override (the mesh the player sees, retargeted from the pawn). Camera and equipment attach to it; the first-person system copies it. None = the first skeletal mesh component is used. (BPI_VisualOverride) |
AC_PreCMCTick¶
/GASPALS/Blueprints/AC_PreCMCTick · parent ActorComponent
Settings¶
| Variable | Type | Default | Description |
|---|---|---|---|
As CBP Sandbox Character | SandboxCharacter_CMC ref |
Events¶
Tick(event dispatcher): no description.
AC_PostABPTick¶
/GASPALS/Blueprints/AC_PostABPTick · parent ActorComponent
Events¶
Tick(event dispatcher): no description.
AC_DebugTools¶
/GASPALS/Systems/DebugTools/AC_DebugTools · parent ActorComponent
Settings¶
Debug Tools > Demo¶
| Variable | Type | Default | Description |
|---|---|---|---|
Shot Trace DistanceShotTraceDistance | Float | 100000 | Length of the demo shot trace from the view (cm). |
Shot ImpulseShotImpulse | Float | 2500 | Impulse applied to the hit bone of the ragdolled character. |
Spawn Trace DistanceSpawnTraceDistance | Float | 1000 | Reach of the spawn / rotate trace from the view (cm); no hit spawns at the trace end. |
Max Spawned CharactersMaxSpawnedCharacters | Integer | 3 | Spawned characters kept alive; the oldest is destroyed beyond this. |
Debug Tools > General¶
| Variable | Type | Default | Description |
|---|---|---|---|
Enable Debug ToolsbEnableDebugTools | Boolean | true | Master switch: when off, the shot, spawn / rotate, teleport and debug fly inputs do nothing. |
Debug Tools > Teleport¶
| Variable | Type | Default | Description |
|---|---|---|---|
Teleport Max DistanceTeleportMaxDistance | Float | 10000 | Reach of the teleport-to-view-target trace (cm). |
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
GetAim | Origin (Vector), Direction (Vector) | Aim ray of the owner: its camera child component's location and forward vector, or the pawn's eyes when it has none. | |
RequestOwnerRotate | Bumps DemoRotateRequests; OnRep turns the owner on every machine (directly on a listen server host). | ||
RotateDemoTarget | Target (Pawn ref) | Turns a pawn 90 degrees: a remote player asks its owner through RequestOwnerRotate, others through BPI_SandboxCharacter_Pawn.TeleportCharacter (offset). | |
Shoot | Demo shot (LMB while aiming): reads the local aim and asks the server to trace it (Server_Shoot). | ||
ShootFrom | TraceStart (Vector), TraceDirection (Vector) | Server: traces from TraceStart along TraceDirection; a hit character is ragdolled with ShotImpulse at the hit bone. | |
SpawnOrRotate | Demo spawn / rotate (E while aiming): reads the local aim and asks the server to act on it (Server_SpawnOrRotate). | ||
SpawnOrRotateFrom | ViewLocation (Vector), ViewDirection (Vector) | Server: rotates the character under the aim by 90 degrees, or spawns a character at the hit floor (the oldest is destroyed past MaxSpawnedCharacters). | |
GetOwnerCharacterMovement (pure) | CharacterMovement (CharacterMovementComponent ref) | The owner CharacterMovementComponent (CMC pawns), or None. | |
ToggleCharacterMovementFly | Owners that don't handle BPI_SandboxCharacter_Pawn's mode functions (called by ToggleDebugFly): switches the CharacterMovementComponent to Flying, or to Falling when already flying, with an on-screen print. Runs on the local machine only. | ||
ToggleDebugFly | Z: asks the owner through BPI_SandboxCharacter_Pawn (Get_MovementModeName, Set_MovementModeByName) to switch between the Flying mode and Falling, with an on-screen print. An owner that doesn't handle the call (no pawn interface) goes through ToggleCharacterMovementFly. Does nothing when bEnableDebugTools is off. Runs on the local machine only. | ||
GetOwnerPawn (pure) | OwnerPawn (Pawn ref) | The owning pawn. | |
IsOwnerAiming (pure) | bIsAiming (Boolean) | True while the owner aims (BPI_SandboxCharacter_Pawn.Get_PropertiesForAnimation > InputState.WantsToAim). Aiming turns LMB into Shoot and E into SpawnOrRotate. | |
TeleportToTarget | bTeleported (Boolean) | J: teleports the owner to the point under the view, up to TeleportMaxDistance. Returns false when the tools are off. |
Events¶
Server_Shoot(TraceStart (Vector), TraceDirection (Vector)): Server RPC, reliable.Server_SpawnOrRotate(ViewLocation (Vector), ViewDirection (Vector)): Server RPC, reliable.
AC_SmartObjectAnimation¶
/GASPALS/Blueprints/SmartObjects/AC_SmartObjectAnimation · parent ActorComponent
Settings¶
Default¶
| Variable | Type | Default | Description |
|---|---|---|---|
Owner Skeletal Mesh | SkeletalMeshComponent ref | ||
Incoming Animation Payload | SmartObjectAnimationPayload | ||
Corrent Loop Count | Integer | 0 | |
Warp Target Name | Name | SmartObject | |
Ignore Character Movement Server Corrections | Boolean | false | |
Character Movement Component | CharacterMovementComponent ref | ||
Smart Object Selection Inputs | SmartObjectSelectionInputs | ||
Smart Object Selection Outputs | SmartObjectSelectionOutputs | ||
State Tree ComponentStateTreeComponent | StateTreeComponent ref | ||
Player Is InteractingPlayerIsInteracting | Boolean | false | |
Current Transform | Transform |
GASPALS > Interaction > Trace¶
| Variable | Type | Default | Description |
|---|---|---|---|
Interaction Trace Start DistanceInteractionTraceStartDistance | Float | 15 | Where the interaction box trace starts, in cm in front of the pawn (IA_Interact). Default 15. |
Interaction Trace End DistanceInteractionTraceEndDistance | Float | 200 | Where the interaction box trace ends, in cm in front of the pawn: the reach for smart objects such as the bench. Default 200. |
Interaction Trace Half ExtentInteractionTraceHalfExtent | Vector | (1, 64, 86) | Half size of the interaction box in cm (X forward, Y side, Z up), oriented with the pawn. Default (1, 64, 86): a thin box as wide and tall as the character. |
Interaction Object TypesInteractionObjectTypes | Array of EObjectTypeQuery | ObjectTypeQuery1 | Object types the interaction box trace looks for. Default WorldStatic (the bench). Add the types your interactable actors use. |
GASPALS > Smart Object > First Person¶
| Variable | Type | Default | Description |
|---|---|---|---|
First Person View Follows BodybFirstPersonViewFollowsBody | Boolean | true | First person, while using a smart object: the view turns with the body (sit down, stand up) instead of staying on the world direction it had. |
First Person Look Yaw LimitFirstPersonLookYawLimit | Float | 100 | First person, while using a smart object: the most the view can turn away from the body, in degrees, each side. 0 = no limit. |
First Person Exit Recenter SpeedFirstPersonExitRecenterSpeed | Float | 5 | First person: during the exit montage the view eases back to the body facing at this interp speed, so the body does not snap to the view when first person takes the body rotation back. 0 = off. |
Player Smart Object Interaction¶
| Variable | Type | Default | Description |
|---|---|---|---|
Claim Handle | SmartObjectClaimHandle | ||
Claimed Handle Actor Reference | Actor ref |
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
Cache Necessary Data | |||
Evaluate Distance and Motion Match | Destination (Transform), ProxyTable (ProxyTable ref) | Result (AnimMontage ref), Cost (Float), StartTime (Float) | |
NPC Approach Angle and Distance (pure) | Destination (Transform) | Distance (Float), Angle (Float) | |
Set Ignore Character Movement Correction | Ignore Corrections (Boolean) | ||
Set Ignore Collision State | bShouldIgnore (Boolean), Other Actor (Actor ref) | ||
Try Add Warp Target | |||
GetFirstPersonViewYaw (pure) | ControlYaw (Float), BodyYaw (Float), BodyYawDelta (Float), bRecenter (Boolean) | ViewYaw (Float) | First-person view yaw while using a smart object: the control yaw plus the body turn of this frame (when bFirstPersonViewFollowsBody), kept within FirstPersonLookYawLimit of the body yaw. bRecenter (the exit montage) eases it back to the body yaw at FirstPersonExitRecenterSpeed. |
StartSmartObjectMontage | Montage (AnimMontage ref), PlayRate (Float), StartingPosition (Float) | Side hook: plays the smart object montage on the owner. AC_SmartObjectAnimation_Mover (Play Montage on the Mover actor) and AC_SmartObjectAnimation_CMC (Play Montage on the mesh) override it and call HandleSmartObjectMontageStarted, HandleSmartObjectMontageBlendOut and HandleSmartObjectMontageNotify from the montage callbacks. Here (no side class) it prints a warning, ends the player's interaction and finishes the montage step at once. | |
IsUsingSmartObject (pure) | bUsingSmartObject (Boolean) | True while the player uses a smart object: from the interaction start until the last smart object montage (the exit) stops playing. The pawns read it to keep the body on the montage facing in first person. | |
UpdateFirstPersonView | bFirstPersonView (Boolean) | Per-frame first-person view update for the locally controlled player: while using a smart object in first person, the control rotation follows the body turn and its yaw stays within the limit around the body. Called by the pawn after its rotation update. | |
Find Closest Free Slot | Smart Object with Empty Slots (Array of SmartObjectRequestResult), SmartObject (Actor ref) | SlotToClaim (SmartObjectSlotHandle), SlotReadyForClaim (Boolean) |
Events¶
Owner Montage Finished(event dispatcher): no description.PlayMontage_Multi(Animation Payload (SmartObjectAnimationPayload)): Multicast RPC, reliable.On Montage Finished Requested: custom event.SetIgnoreActorState(bShouldIgnore (Boolean), Other Actor (Actor ref)): custom event.SetIgnoreState_Multi(bShouldIgnore (Boolean), Other Actor (Actor ref)): Multicast RPC, reliable.HandleSmartObjectMontageStarted: custom event.HandleSmartObjectMontageBlendOut: custom event.PlaySmartObjectMontage(Incoming Animation Payload (SmartObjectAnimationPayload), Ignore Character Movement Server Corrections (Boolean)): custom event.HandleSmartObjectMontageNotify(NotifyName (Name)): custom event.
BP_DemoSpawner¶
/GASPALS/Blueprints/Demo/BP_DemoSpawner · parent Actor
Settings¶
| Variable | Type | Default | Description |
|---|---|---|---|
Preferred SidePreferredSide | E_DemoPawnSide | Mover | Side whose pawn this spawner spawns: the pawn it stands for in the level. When that pawn class does not load (a one-side install), the other side's pawn spawns instead (logged once). |
Mover Pawn Class SoftMoverPawnClass_Soft | Pawn soft class | Pawn class spawned for the Mover side. A soft reference, so a project without the Mover pawn still opens the level: the class is checked when the spawner starts. | |
CMCPawn Class SoftCMCPawnClass_Soft | Pawn soft class | Pawn class spawned for the CMC side. A soft reference, so a project without the CMC pawn still opens the level: the class is checked when the spawner starts. | |
AIController ClassAIControllerClass | AIController class | AI controller the spawned pawn gets (AIC_NPC_SmartObject for an NPC that uses the benches). None: the pawn's own AI Controller Class (a plain AIController on both sample pawns, no AI logic). | |
Spawn Collision HandlingSpawnCollisionHandling | ESpawnActorCollisionHandlingMethod | ESpawnActorCollisionHandlingMethod::AlwaysSpawn | What happens when the pawn would overlap something at this transform. AlwaysSpawn (default) spawns it where the spawner stands, as the placed demo pawns did. |
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
GetOtherPawnClass_Soft (pure) | SoftPawnClass (Pawn soft class) | The pawn class of the side PreferredSide doesn't name: the fallback. | |
GetPreferredPawnClass_Soft (pure) | SoftPawnClass (Pawn soft class) | PreferredSide's pawn class: MoverPawnClass_Soft or CMCPawnClass_Soft. | |
LoadDemoPawnClass | PawnClass (Pawn class) | The pawn class to spawn: PreferredSide's class when it loads (BFL_HelpfulFunctions.LoadPawnClass_Soft), else the other side's (logged by ReportPreferredPawnClassMissing), else None (WarnNoPawnClass). | |
ReportPreferredPawnClassMissing | MissingPath (String), SpawnedPath (String) | One log line when PreferredSide's pawn class does not load (not in this project) and the other side's pawn spawns instead. | |
SpawnAIController | Pawn (Pawn ref) | Gives Pawn an AI controller as a placed pawn gets one: sets its AI Controller Class to AIControllerClass when that is set (else keeps the pawn's own), then SpawnDefaultController. Spawned pawns need this: both sample pawns possess AI only when placed in the world. | |
SpawnDemoPawn | Server only, at BeginPlay: spawns the class LoadDemoPawnClass returns at this spawner's transform with SpawnCollisionHandling, then gives the pawn its AI controller through SpawnDefaultController (AIControllerClass when set, else the pawn's own). Spawns nothing when no class loads. | ||
WarnNoPawnClass | Orange on-screen warning (30 s) and a log line when neither pawn class loads: nothing spawns. Spawners with the same two paths share one on-screen line. |