Raised This Month: $51 Target: $400
 12% 

[L4D] Incap Tank punch fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DrThunder
Member
Join Date: May 2009
Plugin ID:
967
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Unapprover:
    Reason for Unapproving:
    Author not responding anymore to Antithasys request to fix things in the topic.
    Old 06-30-2009 , 12:42   [L4D] Incap Tank punch fix
    Reply With Quote #1

    This fixes the Incap Tank punch. As it works now, if a punch is going to incap a survivor they just get incapped with out getting hit back. This makes it so they get hit into the air then incapped.
    Attached Files
    File Type: sp Get Plugin or Get Source (TankPunch.sp - 2654 views - 797 Bytes)
    File Type: smx TankPunch.smx (3.3 KB, 819 views)
    DrThunder is offline
    Icettiflow
    Senior Member
    Join Date: Jan 2009
    Old 06-30-2009 , 12:54   Re: [L4D] Incap Tank punch fix
    Reply With Quote #2

    Really?

    I might give this a try.
    Icettiflow is offline
    bman87
    Senior Member
    Join Date: Dec 2008
    Location: Michigan
    Old 06-30-2009 , 13:38   Re: [L4D] Incap Tank punch fix
    Reply With Quote #3

    Sounds interesting. confirmed working? I will try this later
    bman87 is offline
    Thraka
    AlliedModders Donor
    Join Date: Aug 2005
    Old 06-30-2009 , 13:40   Re: [L4D] Incap Tank punch fix
    Reply With Quote #4

    Installed it. I'll let u know.
    Thraka is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 06-30-2009 , 16:03   Re: [L4D] Incap Tank punch fix
    Reply With Quote #5

    Seen from code this catches all player_incapitated events, checks whether the cause was tank_claw, and, if that is the case, sets player_incapitated 0 and their health to 1 for 0.4 seconds. After that timer they are set player_incapitated 1 and their health to 300.

    This gives me following questions:

    Why 1 health? What if theres a fire, and the Survivor gets damaged during the 0.4 seconds, does that mean death or just incap?

    Also, some servers might not use the default 300 as incapped Survivor health. I suggest reading the convar survivor_incap_health instead.
    AtomicStryker is offline
    bman87
    Senior Member
    Join Date: Dec 2008
    Location: Michigan
    Old 06-30-2009 , 16:28   Re: [L4D] Incap Tank punch fix
    Reply With Quote #6

    Quote:
    Originally Posted by AtomicStryker View Post
    Seen from code this catches all player_incapitated events, checks whether the cause was tank_claw, and, if that is the case, sets player_incapitated 0 and their health to 1 for 0.4 seconds. After that timer they are set player_incapitated 1 and their health to 300.

    This gives me following questions:

    Why 1 health? What if theres a fire, and the Survivor gets damaged during the 0.4 seconds, does that mean death or just incap?

    Also, some servers might not use the default 300 as incapped Survivor health. I suggest reading the convar survivor_incap_health instead.
    I think that since they are not really "incaped" when they have 1hp, I think fire would just drop them into incap mode right in the fire. Which is not necessarily a bad thing ;)

    This is just theory not tested.
    bman87 is offline
    bman87
    Senior Member
    Join Date: Dec 2008
    Location: Michigan
    Old 06-30-2009 , 16:30   Re: [L4D] Incap Tank punch fix
    Reply With Quote #7

    Also, would this cause a double incap? or still count as one. It would suck to be hit into B&W when you shouldn't have.
    bman87 is offline
    DrThunder
    Member
    Join Date: May 2009
    Old 06-30-2009 , 18:20   Re: [L4D] Incap Tank punch fix
    Reply With Quote #8

    checked if it causes a double incap and no it doesn't. I also checked what happens if the incap happens in fire and all is good. I also checked to see what happens if the incap happens when black and white and all is good there too. As for the 300 incap health, I wrote this for my server and I use the standard health. If you want it different go ahead and change it.
    DrThunder is offline
    olj
    Veteran Member
    Join Date: Jun 2009
    Old 06-30-2009 , 19:07   Re: [L4D] Incap Tank punch fix
    Reply With Quote #9

    WOW. Really useful. I hate when i hit survivors and instead of flying off the roof, they fall on the ground right near you, that really sux. Will test it tomorrow.
    olj is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 07-01-2009 , 03:27   Re: [L4D] Incap Tank punch fix
    Reply With Quote #10

    Works beautifully.
    AtomicStryker 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 06:28.


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