Turning systems on and off¶
Every GASPALS system can be turned off on a pawn without touching its graphs, and some of them can be removed from the pawn completely. The systems don't reference each other's classes: they ask each other for state through small interfaces, so a system that is off (or missing) simply answers "inactive" and the others carry on.
The switches¶
Each system component has a bEnable<System> setting in its General category, on by default. Select the component on your pawn (not the class default: a pawn keeps the value of its own component) and untick it.
The switch is read when the game starts. It is not meant to be toggled during play.
| System | Setting | Off means |
|---|---|---|
| Camera | AC_CameraSystem > Enable Camera System | A fixed third-person view with the default style and shoulder. The perspective, style and shoulder keys do nothing, there is no crosshair, and the ragdoll no longer changes the view. The camera itself (Gameplay Camera, camera asset and director, including the crouch, cover and in-air offsets) keeps working. |
| First person | AC_FirstPersonSystem > Enable First Person | FirstPerson is removed from the available perspectives (the perspective key skips it) and no first-person meshes are built. |
| Cover | AC_CoverSystem > Enable Cover | No cover. At a low wall, jump mantles instead of the cover vault. |
| Traversal | AC_TraversalLogic > Enable Traversal | No vaults, hurdles or mantles: jump is a plain jump. In cover, jump does nothing (the cover vault is a traversal action). |
| Equipment | AC_EquipmentSystem > Enable Equipment | Nothing in hand, even if an item is selected on the component, and the equipment keys do nothing. |
| Overlay | AC_OverlaySystem > Enable Overlay | The default overlay pose and body; the overlay keys do nothing. |
| Ragdoll | AC_RagdollSystem > Enable Ragdoll | The ragdoll key does nothing, and nothing else can start a ragdoll on that pawn. |
| Takedowns and shoves | AC_InteractionSystem > Enable Character Interactions | Left Button and E start no takedown or shove from that pawn (its character can still be the target of one). |
| Debug tools | AC_DebugTools > Enable Debug Tools | Fly, the demo shot, spawn / rotate and teleport do nothing. |
Third-person only
For a third-person-only game, turn off Enable First Person (or delete AC_FirstPersonSystem, see below), or remove FirstPerson from the camera's Allowed Perspectives.
Removing a component from your pawn¶
These components can be deleted from a pawn (or left out of your own pawn) without breaking anything:
| Component | Without it |
|---|---|
AC_EquipmentSystem | Nothing can be held. |
AC_OverlaySystem | The character Anim Blueprint's default layers. |
AC_FirstPersonSystem | No first person: the perspective key skips it. Items still attach in third person. |
AC_RagdollSystem | No ragdoll. |
AC_InteractionSystem | No takedowns or shoves: without aim, Left Button does nothing and E only uses a bench. With aim held, both keys still run the debug tools. |
AC_DebugTools | No debug tools. |
AC_VisualOverrideManager | No visual override on that pawn: M changes nothing there, and the camera and equipment use the pawn's own mesh. |
AC_FoleyEvents | No foley from the pawn (jump, land and the slide loop play nothing). Animation foley notifies still play their sound, without attenuation, and the ragdoll component plays no sound. |
The sample pawns reach these components only through small pawn functions, most of them in the GASPALS > Integration category: Equipment_Initialize, Overlay_Initialize, FirstPerson_InitializePrimitives, UpdateFirstPersonVisuals, GetVisualFirstPersonMesh, Ragdoll_Initialize, Ragdoll_RequestGetUp, Interaction_Initialize, Foley_PlayEvent, Ragdoll_OnModeChanged and Ragdoll_WriteInputs (Mover pawn), and Ragdoll_IsActive (CMC pawn). Each one finds the component by class and does nothing when it isn't there. The ragdoll, interaction and debug tools components handle their own input, and the player controller's teleport (J) checks for AC_DebugTools itself. Follow the same pattern in your own pawn: never use the component variable directly for these systems, or the pawn stops compiling when the component is deleted.
The camera, cover and traversal components stay on the pawn: the pawn's movement and animation functions read them directly. Use their switches instead. The Gameplay Camera is the pawn's only camera: it has no spring arm or Camera component to delete.
How the systems talk to each other¶
Each system has one interface, named after it and kept in its folder (BPI_CameraSystem in CameraSystem, and so on). A system finds the one it needs on its owner ("the first component that implements this interface"), so it works with any component that implements it, and gets the inactive answer when there is none or when that system is switched off.
| Interface | Implemented by | Asked by |
|---|---|---|
BPI_CameraSystem | AC_CameraSystem | Cover (first-person cover camera, aim, shoulder), first person (is the view first person), traversal |
BPI_CameraSystemListener | AC_FirstPersonSystem | Called by the camera after every perspective change |
BPI_FirstPersonSystem | AC_FirstPersonSystem | Camera (camera bone, first-person availability), camera director (scale rig), equipment (create and remove the item's first-person copies) |
BPI_FirstPersonCharacter | BP_RetargetedCharacter_Base | First person (the character's first-person setup) |
BPI_VisualOverride | BP_RetargetedCharacter_Base | The pawn and first person (the character's body mesh) |
BPI_CoverSystem | AC_CoverSystem_Base (both cover components) | Camera director (cover camera offsets) |
BPI_TraversalSystem | AC_TraversalLogic | Cover |
BPI_EquipmentSystem | AC_EquipmentSystem | Ragdoll (which get-up to play), first-person Anim Blueprint (ADS, hand targets, motion profile) |
BPI_OverlaySystem | AC_OverlaySystem | Equipment (re-link the stance when the hands are empty) |
BPI_RagdollSystem | AC_RagdollSystem_Mover and AC_RagdollSystem_CMC | Camera (is the character ragdolling), debug tools (shot), the TriggerRagdoll anim notify (start a ragdoll, push a bone), the pawns' jump input (get up: RequestGetUp; the Character pawn through its Ragdoll_RequestGetUp) |
BPI_RagdollSystemListener | AC_CameraSystem, AIC_NPC_SmartObject | Called by the ragdoll component when the ragdoll starts or ends, on the pawn's components and its controller (ragdoll perspective; the NPC controller stops its behavior while ragdolled) |
BPI_SandboxCharacter_Pawn | both sample pawns | Teleport (TeleportCharacter, used by the debug tools), plus the pawn functions the animation and systems read |
The listener interfaces are separate because they are implemented by another system's component (the first-person system listens to the camera, the camera to the ragdoll); a listener must not be mistaken for the system itself.
BPI_FirstPersonCharacter and BPI_VisualOverride are not system interfaces: the retargeted character actor implements them, and the pawn and its first-person system ask the active character through them.
BPFL_GASPALS > Get Ragdoll System returns the actor's ragdoll component (the one that implements BPI_RagdollSystem), else the actor itself when it implements the interface (a custom pawn), else None. To make the debug shot and the ragdoll notify work on your own pawn, add the ragdoll component that matches its movement (or implement BPI_RagdollSystem on your own component), and TeleportCharacter from BPI_SandboxCharacter_Pawn for the teleport and rotate tools. Implement its RequestGetUp too to support the get-up keys (X or Space while ragdolling on a floor); unimplemented, it returns false and the keys do nothing.
The camera keeps a list of listeners rather than looking for them: AC_FirstPersonSystem registers itself when the game starts. If you add your own first-person or camera-driven component, implement BPI_CameraSystemListener and register it with RegisterCameraListener.