Raised This Month: $32 Target: $400
 8% 

[L4D1 & L4D2] SI Doors Use [v1.0.2 | 16-July-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
8010
Plugin Version:
1.0.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    67 
    Plugin Description:
    Allow special infecteds to open/close doors
    Old 03-20-2022 , 13:00   [L4D1 & L4D2] SI Doors Use [v1.0.2 | 16-July-2022]
    Reply With Quote #1

    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

    Spoiler


    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.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_si_door_use.sp - 488 views - 32.9 KB)
    __________________

    Last edited by Marttt; 02-19-2023 at 22:05.
    Marttt is offline
    Toranks
    Senior Member
    Join Date: Dec 2021
    Location: Spain
    Old 03-20-2022 , 16:26   Re: [L4D1 & L4D2] SI Doors Use [v1.0.0 | 20-March-2022]
    Reply With Quote #2

    I like this plugin as I have this plugin that allows you to lock doors. I imagine it will detect them as blocked as you say.
    https://forums.alliedmods.net/showthread.php?p=2691335
    Why haven't you included the witch, by the way?
    Toranks is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 03-20-2022 , 18:23   Re: [L4D1 & L4D2] SI Doors Use [v1.0.0 | 20-March-2022]
    Reply With Quote #3

    Witches are not clients and aren't playable SI, so I didn't prioritize.
    To make it compatible with witches as well would need to rewrite a lot of stuff.
    Anyway, thanks for the suggestion, maybe in the future, I'll try to add support to it.
    I don't have much time free nowadays.
    __________________

    Last edited by Marttt; 07-16-2022 at 21:24.
    Marttt is offline
    kazya3
    Member
    Join Date: Aug 2019
    Location: CN
    Old 04-05-2022 , 00:41   Re: [L4D1 & L4D2] SI Doors Use [v1.0.1 | 21-March-2022]
    Reply With Quote #4

    Nice job! In the past, i used the Ai-Hard-Si plugin and the hunter's behaviour became a little strange when he spawn behind the door, the hunter just stuck behind the door then survivors walk past. I think he should destroy the door. This plugin seems solve the problem.

    Last edited by kazya3; 04-05-2022 at 00:41.
    kazya3 is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 07-16-2022 , 21:24   Re: [L4D1 & L4D2] SI Doors Use [v1.0.2 | 16-July-2022]
    Reply With Quote #5

    Plugin Updated (1.0.2)

    Code:
    1.0.2 (16-July-2022)
        - Fixed doors not opening/closing in the AJAR state.
        - Fixed (workaround) doors not opening/closing to the right side for infected.
    __________________

    Last edited by Marttt; 07-16-2022 at 21:24.
    Marttt is offline
    choppledpickusfungus
    Junior Member
    Join Date: Dec 2022
    Location: in a cardboard box
    Old 12-17-2022 , 17:09   Re: [L4D1 & L4D2] SI Doors Use [v1.0.2 | 16-July-2022]
    Reply With Quote #6

    Can you add a cvar to make chargers open doors with their charge?
    choppledpickusfungus is offline
    Mika Misori
    Senior Member
    Join Date: Sep 2022
    Old 04-22-2023 , 12:58   Re: [L4D1 & L4D2] SI Doors Use [v1.0.2 | 16-July-2022]
    Reply With Quote #7

    Quote:
    Originally Posted by Marttt View Post
    Plugin Updated (1.0.2)
    Suggestion:
    A witch can also open the door.

    Jesus, that's what's missing in the game right now. Players just close the door on the witch and she can't do anything, neither open it nor break it...

    Please, is there any way to add such a feature? Maybe make it so that when the witch touches the door, the door opens or breaks immediately?
    Mika Misori is offline
    noto3
    Member
    Join Date: Jan 2021
    Old 07-28-2023 , 17:21   Re: [L4D1 & L4D2] SI Doors Use [v1.0.2 | 16-July-2022]
    Reply With Quote #8

    Possible to add an option to make it only for the admin flag?
    noto3 is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 17:32.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode