Summary
DF Disable Weapon Zone – A high-performance, script-based safezone system that automatically disables weapon fire and melee within a custom radius using a specialized area-mesh entity.
Description
The DF Disable Weapon Zone mod provides mission creators and server administrators with a robust tool to create "No-Fire" areas. Unlike traditional trigger-heavy solutions, this mod uses a custom-coded entity with a sphere-query system, ensuring that players cannot discharge firearms or perform melee attacks while inside the designated perimeter.
Features
Automatic Weapon Blocking: Seamlessly sets NoFireTime and forces weapon safety for any player entering the zone.
Visual Area Mesh: Includes a built-in AreaMeshComponent to provide a clear visual boundary in the World Editor (and optionally in-game) for easy setup.
Multiplayer Optimized: Built with performance in mind. The script uses a timed heartbeat check (instead of every frame) to ensure minimal CPU impact, even with 100+ players on a server.
No Manual Toggling: The system is "self-clearing." Once a player leaves the radius, their weapon functionality is automatically restored after a short buffer period.
Vehicle Compatible: Designed to interact directly with the CharacterControllerComponent, affecting both infantry and players in exposed vehicle positions.
License
Arma Public License (APL)