DeathCaptureTheFlagMode class
Death Capture The Flag game mode (team-based).
CaptureTheFlagMode where every roast of an enemy scores a point for the team too. A capture is worth a point plus one for every enemy player, and then everybody dies and starts over. The flags themselves are handled by the host the same way as in Capture The Flag. The first team to reach the score wins.
Base classes
- class CaptureTheFlagMode
- Capture The Flag game mode.
Public functions
- auto GetMode() const -> MpGameMode override
- Returns the game mode identifier.
- auto OwnsRoundLogic() const -> bool override
- Returns whether this mode computes its own win condition (CheckGameEnds).
- auto CheckGameEnds(IGameModeContext& ctx) -> GameEndResult override
- Checks whether the round should end now, and who won.
-
auto GetRoundScore(IGameModeContext& ctx,
Actors::
Player* player) -> std:: uint32_t override - Returns the ranking metric of the specified player (kills / laps / treasure / ...).
Function documentation
bool Jazz2:: Multiplayer:: GameModes:: DeathCaptureTheFlagMode:: OwnsRoundLogic() const override
Returns whether this mode computes its own win condition (CheckGameEnds).
Returns true once the mode owns its win-condition check. While false — used during the staged migration — the host runs its legacy win-condition logic for this mode instead. Level-exit (OnLevelExitReached), respawn (DecideRespawn) and the HUD (OnDrawHUD) are always driven by the mode regardless of this flag.