The Proximity Turret Detector mod V1.7, for 7 Days to Die shows on-screen markers for nearby turrets, with labels displaying their type, distance, status, and stats, all customizable via a config file. The Proximity Turret Detector mod enhances gameplay in 7 Days to Die by providing on-screen markers and labels for nearby turrets, helping players stay aware of turret locations, statuses, and stats. It supports both entity-based turrets (like Junk Sledge and Junk Ranged) and block-based turrets (like Shotgun and SMG turrets), making it easier to manage defenses or avoid threats in the game.
Key Features:
Turret Detection and On-Screen Markers:
Detects turrets within a configurable radius (default: 15 meters) around the player.
Displays on-screen markers for detected turrets using the junk_turret icon, with labels showing the turret type, distance, and status (e.g., Shotgun: 10.5m [Off]).
Supports both entity-based turrets (Junk Sledge, Junk Ranged) and block-based turrets (Shotgun, SMG).
Dynamic Label Updates:
Labels update dynamically as the player moves, showing the changing distance to each turret (e.g., Shotgun: 10.5m [Off] updates to Shotgun: 9.8m [Off]).
When a turret is within a close-range radius (default: 5 meters) and powered on, the label also shows ammo count and health (e.g., Shotgun: 4.5m [On, A:50, H:100]).
Configurable Settings:
The mod uses a config.json file for customization, allowing users to adjust:
ToggleKey: The key to enable/disable the detector (default: Keypad 8).
DetectionRadius: The radius within which turrets are detected (default: 15 meters).
CloseRangeRadius: The radius within which additional stats (ammo, health) are shown (default: 5 meters).
LabelUpdateInterval: How often the labels update (default: 0.1 seconds, or 10 times per second).
ScanInterval: How often the mod scans for new or removed turrets (default: 30 seconds).
ShowOffScreenMarkers: Whether to show markers for turrets that are off-screen (default: true).
Performance Optimization:
Separates heavy operations (scanning for new turrets) from light operations (updating labels) to ensure smooth performance.
Scans for new or removed turrets every ScanInterval seconds (default: 30 seconds) to reduce performance impact.
Updates labels every LabelUpdateInterval seconds (default: 0.1 seconds) for smooth, real-time distance updates without overloading the game.
Logging and Debugging:
Logs turret detections, NavObject registrations, and removals for debugging purposes (e.g., [ProximityTurretDetector] Detected Shotgun Turret (block) at X: 382.0, Y: 35.0, Z: 522.0 [Off]).
Reduced log noise by only logging “Generated block ID …” messages when a new block turret is detected, avoiding repetitive messages for the same turrets.
Reliability Fixes:
Uses long for block turret IDs to prevent duplicates and ensure unique identification.
Properly handles turret removal when they’re out of range or destroyed, preventing blinking or missing markers.
Correctly positions markers at the right height (using Vector3.up * 0.5f) and ensures icons are consistent.
How It Works:
The mod patches the EntityPlayerLocal.Update method using Harmony to run its logic every frame.
When enabled (via the toggle key), it scans for turrets within the detection radius and registers them as NavObjects for on-screen display.
It updates the labels of these NavObjects in real-time as the player moves, showing the turret type, distance, and status (plus ammo and health when applicable).
The mod can be toggled on/off, and all settings are configurable via the config.json file.
Example Output:
With the detector enabled, you might see on-screen labels like:
Junk Sledge: 12.3m [On]
Shotgun: 7.8m [Off]
SMG: 4.2m [On, A:50, H:100] (when within 5 meters and the turret is on)
Technical Details:
Written in C# using the Harmony library for patching.
Compatible with 7 Days to Die (tested as of March 29, 2025).
Uses the game’s NavObject system to display markers, ensuring integration with the game’s existing UI.
Disclaimer:
By using this mod, you acknowledge that TechFreq is not responsible for any issues, crashes, or conflicts caused by its use.
Use at your own risk. Please backup your game files before installing any type of mod.
Thanks for downloading and enjoy!
Installation:
Make sure harmony mod exist in the mod directory as it’s required.
Download the mod files, Extract Mod files.
Please backup your world, save, and or game files.
Place them in your Mods directory of your 7 Days to Die Game.
EAC must be disabled, although i hope in the future that can be changed, as for now DLLS are not EAC supported however XML has no issue, unfortunately this is a dll modification.
THIS IS CLIENT SIDE ONLY but maybe perhaps this is also, server side and client side compatibility?
No further setup needed. Enjoy!
CREDITS:
Thanks to TechFreq & A.I, ChatGPT or Microsoft CoPilot A.I or Grok AI from Twitter or X, for helping me create the modlet, aswell as with very little modding knowledge for the game and learning as i go i couldn’t do this without it and overall brainstorming and or the modding community.
I’d very much appreciate it and or any feedback for the mod(s) aswell
Social Media:
If you appreciate ‘TechFreqs’ work and want to show support, use this donation link, although not necessary. Kofi Page: https://ko-fi.com/techfreq
I appreciate it in general for just checking out the mod posts, sharing and enjoying any of the mods in itself. Thank you again! and Happy gaming!
Love this mod? Got feedback or ideas or need to troubleshoot?
Chill with us on Discord for game chat, memes, and even more mod updates!
Join the TechFreq Pretty Rad Squad Server! https://discord.com/invite/SQCnGjNUhw
As for TechFreqs music, it’s royalty-free music to use in your projects or for casual listening!
Source music files are available feel free to ask away, available in the discord! or for more content! TechFreqs Socials: https://beacons.ai/techfreq
Checkout the behind-the-scenes vibes today! Thank you again for checking out the mod post.
DOWNLOAD from ModsFire (Support me via this link) (12 KB)
DOWNLOAD from Mega (12 KB)
Credits: TechFreq
If you have any questions or have any problems/bugs, please use the support link (Discord, Forum Topic, GitHub Issues, etc.) in the post. If there is no support link in the post, please use the comments section.