How dprlive/raid4 works
RAID 4 is a UE5, 1–4 player third-person multiplayer boss-raid game. The principal flow is players joining a LAN session, selecting a character, then entering combat against AI-controlled enemies. The source tree also shows data-driven character stats, skills, buffs, detection, animation, and HUD systems. The graph combines documented capabilities with relationships visible in the supplied source index and excerpts; unsampled gameplay wiring is left dashed or omitted.
Main entry points: R4CharacterBase.h Characters · R4GameInstance.cpp Game instance · R4AIController.cpp AI controller · BTService_CalculateAggro.cpp Aggro service
Components 26
Lobby and Match
- Main menu
Source/Raid4/UI/MainMenu/R4MainMenuWidget.cpp - Session entry
Source/Raid4/UI/MainMenu/R4SessionEntryWidget.cpp - Game instance
Source/Raid4/Game/R4GameInstance.cpp - Lobby game mode
Source/Raid4/Game/R4LobbyGameMode.h - Character picker
Source/Raid4/UI/CharacterPick/R4CharacterPickerWidget.cpp - Player controller
Source/Raid4/Controller/R4PlayerController.cpp - Pick game mode
Source/Raid4/Game/R4CharacterPickGameModeInterface.h - Raid game mode
Source/Raid4/Game/R4GameMode.h
Combat Systems
- Characters
Source/Raid4/Character/R4CharacterBase.h - Player skills
Source/Raid4/Skill/Player - Enemy skills
Source/Raid4/Skill/NonPlayer - Buff system
Source/Raid4/Buff/R4BuffManageComponent.cpp - Combat detection
Source/Raid4/Detect/Detector - Animation skills
Source/Raid4/Skill/R4AnimSkillBase.cpp - In-game HUD
Source/Raid4/UI/HUD/R4InGameHUDWidget.cpp - Damage interface
Source/Raid4/Damage/R4DamageReceiveInterface.h - Animation interface
Source/Raid4/Animation/R4AnimationInterface.h - Animation utilities
Source/Raid4/Util/UtilAnimation.h
Enemy AI
- AI controller
Source/Raid4/Controller/R4AIController.cpp - Aggro service
Source/Raid4/AI/BTService/BTService_CalculateAggro.cpp - Behavior tasks
Source/Raid4/AI/BTTask - Character AI interface
Source/Raid4/AI/R4CharacterAIInterface.h
Data and Runtime
- Data tables
Source/Raid4/Manager/DataTableManager.cpp - Character rows
Source/Raid4/Data/Character - Object pool
Source/Raid4/Core/ObjectPool/ObjectPool.cpp
Other components
- Players
Connections 23
- Players → Main menu: browse
- Main menu → Session entry: show sessions
- Session entry → Game instance: use session
Source/Raid4/UI/MainMenu/R4SessionEntryWidget.cpp - Players → Character picker: choose character
- Character picker → Player controller: request pick
- Player controller → Pick game mode: routes request
Source/Raid4/Controller/R4PlayerController.cpp - Lobby game mode → Game instance: lobby lifecycle
Source/Raid4/Game/R4GameInstance.cpp - Raid game mode → Characters: spawn for combat
- Characters → Player skills: use skills
- Characters → Enemy skills: use skills
- Characters → Buff system: receive buffs
- Characters → Combat detection: detect targets
- Animation skills → Animation interface: uses
Source/Raid4/Skill/R4AnimSkillBase.cpp - Animation skills → Animation utilities: uses
Source/Raid4/Skill/R4AnimSkillBase.cpp - Characters → In-game HUD: update status
- AI controller → Damage interface: binds death event
Source/Raid4/Controller/R4AIController.cpp - Aggro service → Character AI interface: reads aggro
Source/Raid4/AI/BTService/BTService_CalculateAggro.cpp - Aggro service → Characters: checks targets
Source/Raid4/AI/BTService/BTService_CalculateAggro.cpp - AI controller → Aggro service: runs behavior tree
- AI controller → Behavior tasks: runs behavior tree
- Game instance → Data tables: initializes
Source/Raid4/Game/R4GameInstance.cpp - Game instance → Object pool: initializes
Source/Raid4/Game/R4GameInstance.cpp - Data tables → Character rows: loads rows
Source/Raid4/Manager/DataTableManager.cpp