Left4Dhooks [REQUIRED]
The plugin when the cvar is set to 1 blocks players from spawning near safe room door, preventing them from exploiting a bug that allows them to "teleport" to inside.
There is only one cvar, which is "l4d2_anti_breach".
When the cvar is set to 0, the plugin is disabled.
When the cvar is set to 1 ( or above... ), the plugin is enabled.
Changelog:
Code:
V1.0 ( 15/5/2017 ):
Plugin released.
V1.1 ( 16/5/2017 ):
Removed the game data file and replaced it to blocking spawn. Thanks!
Changed minimum distance from a constant value to be proportionate to the speed of the player.
V1.2 ( 20/5/2017 ):
Fixed something problematic with the code ( infinite looping... )
V1.3 ( 21/5/2017 ):
Optimization of code
V1.4 ( 25/3/2024 )
Reliance on Left4Dhooks for even more optimized code.
Other than tutorials, I took some of the code from these locations:
1. Locating all entities that exist from
Silvers' response to my question.
1. The classname of the safe room door from
l4d_loading.
Please comment if you find any problems with the plugin.
This plugin is slightly abandoned as I cannot find issues with it, take a look here for one that its editor said it is better:
https://forums.alliedmods.net/showpo...3&postcount=23