REFERENCESUBSYSTEMS AND LIBRARIES
UCFDebugModeSubsystem
The debug mode of one local player: a free camera, a Slate overlay of tools and buttons, and a blocking input component while it is on. Anything that changes the world goes through the player's ACFDebugRelay, so the server decides.
Functions
Whether the mode is on for this player.
Enters the mode when it is off, exits it when it is on.
Turns the mode on: spawns the free camera, shows the overlay and starts blocking the pawn's input. Does nothing when already on or the player has no controller, viewport or camera manager.
Turns the mode off: destroys the camera, removes the overlay and restores the input and cursor state. Does nothing when off.
The tool settings the menu edits.
Whether the player holds the aim button (right mouse): the camera flies and the crosshair tool is armed.
The body the tools act on; null when none is selected or it was destroyed.
Selects the body the tools act on. A dent delta-v outside the new target's profile range is clamped into it.
Selects the next body in this world for Step > 0, the previous for Step < 0, wrapping around. With no target, a step forward lands on the first body and a step back on the last.
The next crosshair fire picks a body, then the tool that was active comes back.
Reads the current target for the menu; bValid is false when there is no target.
Whether the server accepts this player's world-changing tools: always for the server's own player, for a client only while Crushform.DebugMode.AllowClients is 1.
Asks the server to hit the target with a damage preset. Does nothing without a target.
Asks the server to repair the target. Does nothing without a target.
Asks the server to wash all dirt off the target. Does nothing without a target.
Asks the server to fill the target's dirt with a preset at the menu's dirt amount. Does nothing without a target.
Asks the server to drop the target from the menu's height, optionally upside down. Does nothing without a target.
Asks the server to repair and wash every deformable body in the world, clear debris and respawn the props.
Asks the server to respawn the world's breakable trees and fence units.
Asks the server to clear the loose debris on every machine.
Whether the world is paused, by any means.
Asks the server to pause or unpause the world. The pause is held for this player and lifts when they unpause or leave the mode.
Asks the server to run one frame of a paused world and pause again.
The world's time dilation, 1 for normal speed.
Asks the server to set the world's time dilation, 1 for normal speed.
The world is paused and this player's relay holds the pause (ACFDebugRelay::DoesHoldPause).
The integer value of a console variable by name; -1 when it is not registered.
Sets a console variable to an integer value (set by console). Does nothing when it is not registered.
Called by the camera every frame, on a paused world too.
Called by the camera when it ends play. Safe in any order with Exit().