12월 무료 콘텐츠를 공개합니다!

Stamina, Hunger and Thirst System

Kevin Razmus - 2015/11/11
14
별 5개 중 3.43개(평점 14개)
  • 50%
  • 14%
  • 0%
  • 0%
  • 36%

Hooks up to running, jumping, and any action to deplete stamina. A great addition for your game!

  • 지원 플랫폼
  • 지원 엔진 버전
    4.8 - 4.16
  • 다운로드 유형
    전체 프로젝트
    이 제품은 언리얼 엔진 프로젝트 전체 폴더와 함께 환경 설정 파일, 콘텐츠 파일 및 .uproject 파일을 포함하고 있으며 새로운 프로젝트를 생성할 때 템플릿으로 사용할 수 있습니다.
Overview: youtube.com/watch?v=WS_Mmo0OCpU

Implementation Tutorial: youtube.com/watch?v=_IP1BuoDJSw

Playable HTML5 Demo: numberfiveone.com/games/stamina

We've created a simple to use 100% blueprint stamina, hunger, and thirst
system. The example project shows how to add the system to your actions
that deplete stamina continuously or with a single point subtraction.

Deplete stamina, thirst, or hunger while doing certain actions. For
example, while running both stamina and thirst can be depleted. To regain
stamina it could cost both thirst and hunger.

Hunger and thirst are also depleted over time. By default it will deplete a
certain amount of points every 10 seconds of game play.

Easily configure running, jumping, or even swinging an axe to deplete
stamina, thirst, and hunger.

A stamina system is just what you need for your game!

By popular demand we have added an example of how to implement crouch and
prone functionality. Using replicated variables and transition states you
can now smoothly crouch and lay down in the prone position.

기술적 세부사항

Features:
- Multiplayer Support
- Easily change HUD (colors, size, etc.)
- Fully commented blueprints
- Easy blueprint migration

Includes:
- 5 Blueprints, including: StaminaHungerSystem Component, Character
Blueprint, Player Controller, HUD, and Game Mode
- 3 ENUM's, uncluding: StaminaTypes, HungerThirstTypes, and Camera Modes
- 2 2D Blendspace's, including: Standing walk/run and Crouched walk
- UMG Stamina, Hunger, Thirst, and Health bars
- Example crouch and prone states (Uses Anim Starter Pack)
- Example random player start location spawn
- Example camera toggle between first and third person perspectives

Changelog:
v1.0.8
- Removed deprecated methods for engine compatibility

v1.0.7
- Removed deprecated methods for engine compatibility

v1.0.6
- Improved game mode spawn for code migration
- Switched some macros to pure functions
- Added ApplyDamage
- Added death state and animation

v1.0.5
- Fixed private variable issue
- Improved code for migration

v1.0.4
- Added crouch and prone examples
- Added 2D blendspace examples
- Added prone speed change to "SetMovementSpeed"
- Fixed stamina only draining when moving forward
- Fixed bug with crouch bool reversed on server
- Fixed crouch walk speed not changing issue

v1.0.3
- Added hunger system
- Added thirst system

v1.0.2
- Moved core functions to Actor Component

v1.0.1
- Initial release

Intended Platform: Desktop