Overview
The BP_DemoCharacter Blueprint extends the Unreal Engine Character class to implement a player character with sprinting capabilities, radiation protection mechanics via a helmet, and a Geiger counter tool positioned relative to the camera. This Blueprint manages player input, character movement states, and visual/audio feedback related to radiation protection and tool usage.
Variables
IsSprinting
- Type: Boolean (Replicated with notification)
- Purpose: Tracks whether the character is currently sprinting.
- Usage: Written to in the EventGraph and replicated to synchronize sprint status across server and clients.
- Related Functions:
OnRep_IsSprinting
handles changes to this variable to update movement speed.
Components Relevant to IA_ToolFocus and Protection
- FirstPersonCamera (CameraComponent): The player’s viewpoint camera; used as a reference for positioning tools.
- SpringArm_Tool (SpringArmComponent): Likely used to offset and control the position of attached tools relative to the camera.
- GeigerCounter (ChildActorComponent): The radiation detection tool, positioned in front of the camera for player interaction.
- Helmet (StaticMeshComponent): The protective helmet mesh that can be toggled visible/invisible and animated.
- HelmetAnim (Timeline or Animation Component): Controls the animation of the helmet’s position and rotation during protection toggling.