← Back to Assets

ZionTPS • Stats Module

Available

Health and stamina gameplay systems for ZionTPS.

Overview

Key Features

Health System

Add a flexible runtime health system to your player.

  • Configurable maximum health
  • Damage support
  • Healing support
  • Health change events
  • Easy UI integration
  • Simple hooks for enemy attacks, hazards and gameplay logic

Stamina System

Control player actions using a configurable stamina resource.

  • Sprint stamina drain
  • Jump stamina cost
  • Roll stamina cost
  • Automatic stamina regeneration
  • Configurable regeneration delay
  • Exhaustion detection
  • Prevent sprinting while exhausted

When stamina runs out, sprinting is automatically disabled until enough stamina has recovered.

HUD Support

ZionTPS Stats includes optional HUD setup for displaying health and stamina in-game.

  • Health bar
  • Stamina bar
  • Runtime value updates
  • UI Toolkit HUD support
  • uGUI fallback support
  • Wizard-assisted HUD creation

The setup wizard can create the HUD for you, making it quick to test and integrate.

Setup Wizard

The included setup wizard helps you install and configure the module without manually wiring everything together.

The wizard can help with:

  • Selecting your player
  • Creating or assigning a StatsConfig asset
  • Setting up the health and stamina system
  • Creating the HUD
  • Reviewing the setup before applying changes

This makes the module much easier to add to new or existing ZionTPS scenes.

Event-Driven Architecture

The module uses events so other systems can react to stat changes without being tightly coupled.

Example uses:

  • Update health and stamina UI
  • Trigger low stamina warnings
  • Play damage effects
  • Disable abilities while exhausted
  • Connect enemy attacks or hazards
  • Extend into RPG-style systems

This keeps the module lightweight, flexible and easy to expand.

Designed for ZionTPS

ZionTPS Stats integrates with key ZionTPS locomotion actions:

  • Sprinting
  • Jumping
  • Rolling
  • Character movement states

Stamina costs, regeneration values and health settings are configurable through ScriptableObject settings.

Modular and Extendable

The Stats Module is designed to stay focused, clean and easy to modify.

You can use it as-is, or extend it with additional gameplay stats such as:

  • Mana
  • Armour
  • Hunger
  • Thirst
  • Status effects
  • Damage types
  • RPG attributes

It provides a useful starting point without forcing a full RPG framework into your project.

Developer Friendly

  • Clean runtime code
  • Lightweight architecture
  • ScriptableObject-based configuration
  • Event-driven design
  • Optional HUD setup
  • Editor setup wizard
  • Designed for maintainability
  • Built for modern Unity projects

Perfect For

  • Third-person action games
  • RPG systems
  • Survival games
  • Combat systems
  • Ability and skill systems
  • Prototypes needing quick health and stamina
  • ZionTPS-based projects

Requirements

  • Unity 6 or later
  • ZionTPS Third Person Controller

Summary

ZionTPS Stats Module adds a focused health and stamina layer to ZionTPS, giving your character configurable damage, healing, sprint stamina, action costs, regeneration and HUD support.

It is lightweight, modular and easy to extend, making it ideal for developers who want to build gameplay systems on top of ZionTPS without starting from scratch.

Technical details

  • Configurable max health, damage, healing, and health change events
  • Sprint drain, jump cost, roll cost, regeneration, delay, and exhaustion detection
  • Automatic sprint lockout while exhausted until stamina recovers
  • Optional HUD support with health/stamina bars and runtime value updates
  • UI Toolkit HUD support with uGUI fallback
  • Wizard-assisted setup for player, StatsConfig, systems, and HUD
  • Event-driven hooks for UI, VFX, hazards, enemies, and gameplay logic
  • Designed for ZionTPS sprint, jump, roll, and movement state integration
  • ScriptableObject-based configuration for tuning and maintainability
  • Unity 6+ and ZionTPS Third Person Controller required