Publisher | Golem Kin Games |
---|---|
File size | 6.18MB |
Number of files | 26 |
Latest version | 1 |
Latest release date | 2024-11-13 09:33:15 |
First release date | 2024-11-13 09:33:15 |
Supported Unity versions | 2018.4.2 or higher |
Stealth Detection System – The Ultimate Template for Creating Stealth Game AI
The Stealth Detection System is a comprehensive template designed to bring lifelike stealth mechanics to your game’s NPCs. Perfect for creating stealth, survival, and tactical games, this system enables NPCs to realistically detect, track, and respond to player actions based on sight and sound. With configurable states like Patrol, Suspicious, Investigate, and Alert, you can deliver immersive, responsive AI that reacts dynamically to the player’s presence.
Core Features:
- Visual Detection: Define custom fields of view, detection angles, and distances to allow NPCs to spot players. The visual detection parameters ensure NPCs can only see players within realistic limits, creating suspenseful stealth gameplay.
- Auditory Detection: Configure NPCs to react to player-generated noise within a customizable sound detection radius. NPCs will detect footsteps, movement, and other player sounds, enhancing the tension and challenge for players.
- Patrol Pathing: NPCs can be set to patrol along waypoints, creating realistic patrol routes that players must observe and avoid. Customize the speed and stopping threshold at each waypoint to create unique patrol behaviors for each NPC.
- Multi-State AI: NPCs smoothly transition between Patrol, Suspicious, Investigate, and Alert states, adjusting behavior based on the player’s proximity, actions, and environmental factors. Each state is configurable, allowing for unique reactions depending on the detection level.
- Investigate Timeout: Limit the time an NPC will spend searching for the player in the Investigate state before giving up and returning to patrol. This feature keeps NPCs from staying in the Investigate state indefinitely, allowing for more dynamic encounters.
- Delayed Investigation: Add a configurable delay after the NPC loses sight of the player, during which they’ll remain alert before transitioning back to their normal routine. This delay provides a realistic cooldown before resuming patrol or searching behavior.
- Customizable Detection Modifiers: Tweak detection parameters based on lighting, player movement, and environmental cover. These modifiers make NPC detection more realistic and allow players to strategize around light and shadow.
- View Range Indicator: Optional UI component to visually display the NPC’s detection range and angle, providing clear feedback for players and debugging.
- Debugging Tools: Use Scene view gizmos and detailed debug logs to visualize detection areas, sound radii, and state transitions. The debugging tools make it easy to set up and fine-tune NPC behaviors.
Perfect for Developers Looking to Build Stealth or Tactical GamesThe Stealth Detection System is designed for developers who want to create suspenseful, strategic gameplay where players must avoid detection. This system can be used in a wide range of games, from classic stealth titles to survival horror games where NPCs hunt for players based on sound and sight cues.
System Requirements:
- Unity 2020 or newer
- Compatible with Universal Render Pipeline (URP) and High Definition Render Pipeline (HDRP)
Example Use Cases:
- Stealth Games: NPC guards that follow patrols, become suspicious of noises, investigate suspicious activities, and chase players if detected.
- Survival Horror: Enemies that react to sounds made by players, creating tense encounters where players must avoid detection.
- Tactical Games: AI that can detect and pursue players based on strategic visibility and auditory cues, encouraging players to use tactics to remain hidden.