Warning
This plugin is unmaintained since Torn Banner's acquisition of the game.
Prevents doors from being blocked by:
- Players standing in the way
- Players spamming +use on them
- NPCs closing them
- Weapons and other physics props
When a door is jammed it will briefly appear translucent and allow players to walk thru it.
door-protect.demo.mp4
- Update to Sourcemod 1.11.6826 or higher
- Grab the latest ZIP from releases
- Extract its contents into
addons/sourcemod
- Refresh your loaded plugins (
sm plugins refresh
orsm plugins load nmrih-door-protect
)
CVars are saved and read from cfg/plugin.doorprotect.cfg
-
sm_door_use_rate
(Default:0.3
)- Rate (in seconds) at which players are allowed to input +use on doors
-
sm_door_max_use_count
(Default:4
)- A door will become ghost-like if it's prevented from opening this many times
-
sm_door_max_block_seconds
(Default:1.5
)- A door will become ghost-like if it's blocked by an object for this many seconds
-
sm_ghost_door_revert_after_seconds
(Default:4
)- A ghost-like door will attempt to revert back to its default properties after this many seconds. If a player is in the way, it will wait till they step out.
-
sm_ghost_door_opacity
(Default:120
)- Transparency value for ghost-like doors, 255 is fully opaque