Raised This Month: $85 Target: $400
 21% 

[L4D] L4D Tank announce and lock door (v1.0.7, 2020-03-28)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
finishlast
Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Plugin ID:
6966
Plugin Version:
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 03-05-2020 , 14:11   [L4D] L4D Tank announce and lock door (v1.0.7, 2020-03-28)
    Reply With Quote #1

    Description:
    This plugin announces tank spawns and locks the safehouse door until the tank is dead.

    ATM L4D1 vs only. (For Coop just add the final map names)

    Feature:
    It makes rushers who try to skip the tank look really dump... when they try to open the safehouse door...

    CVAR/Command list:
    none

    Changelog:
    2020-03-05 (v1.0.3)
    * Initial release.
    2020-03-06 (v1.0.4)
    * added l4d_vs_smalltown03_ranchhouse to "is final map" check because churchguy door would open after tank kill...
    2020-03-28 (v1.0.7)
    * added a workaround for the multiple tanks error, so it only announce the 1st tank and opens the door when all tanks are dead. It will not announce the second tank on final or when they get spawned via other addons

    Installation instructions:
    Click 'Get Plugin' button, place SMX in the sourcemod plugins folder. Or compile it yourself.

    Dependencies:
    None

    Bugs:
    I am unable to keep track of tanks when they spawn and then loose control. Added an if statement in 1.0.7 as a temporary fix. When a tank spawns and gives control to player and then loose control etc the tank_spawn event is fired everytime and that would cause the announcement to happen like everytime the tank pass control to player etc. I need a way to only announce the initial spawn af every individual tank. ATM I am lost how to track them though, I wish there was some ID that stays the same for this single tank object no matter if AI or human plays it.

    Plans:
    Fix the bug mentioned above.
    Should check for l4d2 zombie class 8 to make it l4d2 compatible.
    The list of the final maps should be in a cfg file and l4d2 final maps should be added but currently I'm too stupid to do it though.

    Credits:
    Based on code from:
    * [L4D / L4D2] Lockdown System | 1.7 [Final] : Jan. 30, 2019 |
    * https://forums.alliedmods.net/showthread.php?t=281305
    * Aya Supay for making the code look great again
    * MasterMind420 for providing a fix to check for all kinds of ending checkpoint doors
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_tank_announce_lock_door_v1.0.7.sp - 95 views - 5.0 KB)
    __________________

    Last edited by finishlast; 04-21-2020 at 14:09.
    finishlast is offline
    timonenluca
    Member
    Join Date: Apr 2020
    Location: Europe
    Old 04-22-2020 , 17:56   Re: [L4D] L4D Tank announce and lock door (v1.0.7, 2020-03-28)
    Reply With Quote #2

    Really usefull, Would love to see L4D2 support! So i can give it a try.
    timonenluca is offline
    Lider99
    Member
    Join Date: Mar 2020
    Location: Uzbekistan
    Old 05-10-2020 , 14:23   Re: [L4D] L4D Tank announce and lock door (v1.0.7, 2020-03-28)
    Reply With Quote #3

    Hello,
    such errors appeared
    Quote:
    L 05/10/2020 - 22:49:06: [SM] Exception reported: Entity 523 (523) is not a CBaseEntity
    L 05/10/2020 - 22:49:06: [SM] Blaming: door.smx
    L 05/10/2020 - 22:49:06: [SM] Call stack trace:
    L 05/10/2020 - 22:49:06: [SM] [0] AcceptEntityInput
    L 05/10/2020 - 22:49:06: [SM] [1] Line 116, plugin.sp::ControlDoor
    L 05/10/2020 - 22:49:06: [SM] [2] Line 77, plugin.sp::Event_PlayerSpawn
    L 05/10/2020 - 22:52:44: [SM] Exception reported: Entity 523 (523) is invalid
    L 05/10/2020 - 22:52:44: [SM] Blaming: door.smx
    L 05/10/2020 - 22:52:44: [SM] Call stack trace:
    L 05/10/2020 - 22:52:44: [SM] [0] FindDataMapInfo
    L 05/10/2020 - 22:52:44: [SM] [1] Line 523, include/entity.inc::HasEntProp
    L 05/10/2020 - 22:52:44: [SM] [2] Line 127, plugin.sp::ControlDoor
    L 05/10/2020 - 22:52:44: [SM] [3] Line 99, plugin.sp::Event_PlayerDeath
    L 05/10/2020 - 22:59:21: Error log file session closed.

    Last edited by Lider99; 05-10-2020 at 16:12.
    Lider99 is offline
    ZBzibing
    Member
    Join Date: Dec 2012
    Old 06-01-2020 , 17:54   Re: [L4D] L4D Tank announce and lock door (v1.0.7, 2020-03-28)
    Reply With Quote #4

    Great, always looking for this feature!

    Is it possible to set the birthplace of tanks and witches
    ZBzibing is offline
    finishlast
    Member
    Join Date: Nov 2018
    Location: In Reno with the vitamin
    Old 06-17-2020 , 05:55   Re: [L4D] L4D Tank announce and lock door (v1.0.7, 2020-03-28)
    Reply With Quote #5

    Quote:
    Originally Posted by Lider99 View Post
    Hello,
    such errors appeared
    Strange, unfortunatelly I am a total noob when it come to these kinds of entity errors.

    Is this happening on stock or custom campaigns?
    Or a particular map!?
    __________________

    Last edited by finishlast; 06-17-2020 at 06:00.
    finishlast is offline
    finishlast
    Member
    Join Date: Nov 2018
    Location: In Reno with the vitamin
    Old 06-17-2020 , 06:00   Re: [L4D] L4D Tank announce and lock door (v1.0.7, 2020-03-28)
    Reply With Quote #6

    Quote:
    Originally Posted by ZBzibing View Post
    Great, always looking for this feature!

    Is it possible to set the birthplace of tanks and witches
    With Sourcemod everything is possible.
    There are a other plugins messing with tanks and witches.
    MB you can request a plugin where you can put individual spawn points and amounts an a per map cfg basis.

    That would be indeed cool to spawn tanks and witches on some unusual places.
    __________________
    finishlast is offline
    Reply


    Thread Tools
    Display Modes

    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 10:01.


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