Description
This plugin allows Special Infected (SI) to open and close doors.
Features
- Allow enabling/disabling for bots.
- Allow setting which SI can interact with doors.
- Allow setting the maximum distance to interact with doors.
- Allow setting a cooldown to interact again with the same door.
- Allow setting which type of door should be allowed to interact (normal/saferoom).
- Allow setting if it should only open or close doors (split in client/bot/tongue).
- Allow Smoker to open the door with its tongue.
- Allow setting how far a Smoker can open a door with its tongue.
- Allow setting to display a particle tongue when Smoker interacts with its tongue.
- Ignore locked doors.
Cvars
A configuration file named "
l4d_si_door_use.cfg" will automatically be created for you upon the first run in the "
\cfg\sourcemod\" folder.
PHP Code:
// Allow SI bots to open/close doors when in range.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_si_door_use_bots "1"
// Interval in seconds to check bots to open/close doors.
// -
// Default: "0.5"
// Minimum: "0.100000"
l4d_si_door_use_bots_interval "0.5"
// Cooldown to open/close the same door again.
// -
// Default: "2.0"
// Minimum: "0.000000"
l4d_si_door_use_cooldown "2.0"
// How far a special infected can be to open/close a door.
// -
// Default: "100.0"
// Minimum: "0.000000"
l4d_si_door_use_distance "100.0"
// Which state of the door should be allowed to clients.
// 1 = Only close doors, 2 = Only open doors, 3 = Both.
// -
// Default: "3"
// Minimum: "1.000000"
// Maximum: "3.000000"
l4d_si_door_use_door_state "3"
// Which state of the door should be allowed to bots.
// 1 = Only close doors, 2 = Only open doors, 3 = Both.
// -
// Default: "2"
// Minimum: "1.000000"
// Maximum: "3.000000"
l4d_si_door_use_door_state_bots "2"
// Which state of the door should be allowed with tongue.
// 1 = Only close doors, 2 = Only open doors, 3 = Both.
// -
// Default: "3"
// Minimum: "1.000000"
// Maximum: "3.000000"
l4d_si_door_use_door_state_tongue "3"
// Which type of door should SI be allowed to interact (open/close).
// 1 = Normal Door (prop_door_rotating), 2 = Saferoom Door (prop_door_rotating_checkpoint), 3 = Both.
// -
// Default: "3"
// Minimum: "1.000000"
// Maximum: "3.000000"
l4d_si_door_use_door_type "3"
// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_si_door_use_enable "1"
// Which special infected should be able to open/close doors.
// 1 = SMOKER, 2 = BOOMER, 4 = HUNTER, 8 = SPITTER, 16 = JOCKEY, 32 = CHARGER, 64 = TANK.
// Add numbers greater than 0 for multiple options.
// Example: "127", enables command chase for all SI.
// -
// Default: "127"
// Minimum: "0.000000"
// Maximum: "127.000000"
l4d_si_door_use_si "127"
// Allow the Smoker to open/close the door using its tongue ability.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_si_door_use_smoker_ability "1"
// How far a Smoker can be to open/close a door with a tongue.
// 0 = No distance check.
// -
// Default: "750.0"
// Minimum: "0.000000"
l4d_si_door_use_smoker_distance "750.0"
// How long (in seconds) the tongue particle should be visible.
// 0 = OFF.
// -
// Default: "1.0"
// Minimum: "0.000000"
l4d_si_door_use_tongue_particle "1.0"
Related Game Cvars
- tongue_range => How far a smoker can shoot his tongue. (default: 750)
Admin Commands
- sm_print_cvars_l4d_si_door_use => Print the plugin related cvars and their respective values to the console. (z flag required)
Change Log
Notes
- When bots are enabled they will interact with a door every time they are near it, respecting the cooldown.
- Doors in the AJAR state have an "Open" behavior.
- To make SI open/close the door to the correct side is necessary to change the SI to the survivor team first and then back to the infected team. (probably because of some logic in the engine)
Known Issues
- The doors only open/close in a single direction.
Related Plugins
Post Reply
- Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.
Installation
- Put the "l4d_si_door_use.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.