Raised This Month: $ Target: $400
 0% 

[L4D/2] TankDoorFix


Post New Thread Reply   
 
Thread Tools Display Modes
Author
disawar1
AlliedModders Donor
Join Date: Aug 2011
Location: Russian
Plugin ID:
3866
Plugin Version:
1.4
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    17 
    Plugin Description:
    Attempts to fix the bug in which doors do not break although the tank is punching at them.
    Old 09-01-2013 , 13:07   Re: [L4D/2] TankDoorFix
    Reply With Quote #1

    There is one reason why it shouldn't work. m_zombieClass prop returns 5 for tank in l4d not 8.
    Your plugin checks only ordinary hinged doors (prop_door_rotating) safe room use special variant of prop_door_rotating (prop_door_rotating_checkpoint) so players still can blocks tank in start/end safe areas. If you make my changes plugin will be checks both type of doors and support l4d.

    You can use following code to check l4d/l4d2 tank if you want.
    PHP Code:
    bool:IsPlayerTank(client)
    {
        return 
    GetEntProp(clientProp_Send"m_zombieClass") == (IsLeft4Dead() ? 8);
    }

    bool:IsLeft4Dead()
    {
        static 
    iGame = -1;

        if (
    iGame == -1){

            
    decl String:sGameFolder[32];
            
    GetGameFolderName(sGameFolder32);
            
    iGame StrEqual(sGameFolder"left4dead");
        }

        return 
    iGame;

    __________________

    Last edited by disawar1; 09-01-2013 at 13:20.
    disawar1 is offline
    Dr. Greg House
    Professional Troll,
    Part-Time Asshole
    Join Date: Jun 2010
    Old 09-01-2013 , 13:20   Re: [L4D/2] TankDoorFix
    Reply With Quote #2

    Quote:
    Originally Posted by disawar1 View Post
    [...]Your plugin checks only ordinary hinged doors (prop_door_rotating) safe room use special variant of prop_door_rotating (prop_door_rotating_checkpoint) so players still can blocks tank in start/end safe areas. If you make my changes plugin will be checks both type of doors and support l4d.[...]
    My plugin's purpose is to fix a bug. I am not going to add any game features, especially not any game-breaking stuff. That door is made out of reinforced steel and if the tank is really foolishly enough to let himself get lured into the end safe area (this cannot work for start safe areas because you cannot close the door and a tank does not spawn until the round started/door is opened) the player has just, well, lost.
    I will fix the l4d issue though.

    Last edited by Dr. Greg House; 09-01-2013 at 13:32.
    Dr. Greg House 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 23:17.


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