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

[L4D2] Pin Protection (v1.1, 2013 October 12)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
dcx2
Senior Member
Join Date: Sep 2011
Plugin ID:
3702
Plugin Version:
0.9
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows jockeys and smokers to protect their pin from other infected by pressing crouch
    Old 06-19-2013 , 22:28   [L4D2] Pin Protection (v1.1, 2013 October 12)
    Reply With Quote #1

    DESCRIPTION

    If you are a jockey or a smoker, and you're pinning someone, press and hold crouch to prevent any other infected from stealing your pin. This effect is achieved by temporarily making the game think the survivor is also pinned by a hunter, and no one can steal a pin from a hunter.

    There are two "glitches" to this. As the jockey, when protecting your pin you will be unable to move. As the smoker, protecting an incapacitated victim will cause the survivor to die more slowly (5 dps instead of 17dps)


    CVARS

    l4d2_pinprot_enable (default 3):
    --Enable bit flag (add together)
    --1=Jockeys can protect pins, 2=Smokers can protect pins


    UPDATES

    V1.1
    - Fixed invalid attacker bug

    v1.0
    - Fixed bug if bot replaced player or player replaced bot while a pin was being protected
    - Added enable flag so that infected classes can have protection enabled individually
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_pin_protection.sp - 991 views - 6.2 KB)
    __________________

    Last edited by dcx2; 10-12-2013 at 01:44.
    dcx2 is offline
    eric0279
    AlliedModders Donor
    Join Date: May 2007
    Old 09-25-2013 , 22:37   Re: [L4D2] Pin Protection (v0.9, 2013 June 19)
    Reply With Quote #2

    Quote:
    L 09/26/2013 - 02:47:19: [SM] Native "GetEntPropEnt" reported: Entity 9 (9) is invalid
    L 09/26/2013 - 02:47:19: [SM] Displaying call stack trace for plugin "l4d2_pin_protection.smx":
    L 09/26/2013 - 02:47:19: [SM] [0] Line 78, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::OnPlay erRunCmd()
    L 09/26/2013 - 02:47:19: [SM] Native "GetEntPropEnt" reported: Entity 9 (9) is invalid
    L 09/26/2013 - 02:47:19: [SM] Displaying call stack trace for plugin "l4d2_pin_protection.smx":
    L 09/26/2013 - 02:47:19: [SM] [0] Line 78, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::OnPlay erRunCmd()
    L 09/26/2013 - 02:47:19: [SM] Native "GetEntPropEnt" reported: Entity 9 (9) is invalid
    L 09/26/2013 - 02:47:19: [SM] Displaying call stack trace for plugin "l4d2_pin_protection.smx":
    L 09/26/2013 - 02:47:19: [SM] [0] Line 78, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::OnPlay erRunCmd()
    L 09/26/2013 - 02:47:19: [SM] Native "GetEntPropEnt" reported: Entity 9 (9) is invalid
    L 09/26/2013 - 02:47:19: [SM] Displaying call stack trace for plugin "l4d2_pin_protection.smx":
    L 09/26/2013 - 02:47:19: [SM] [0] Line 78, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::OnPlay erRunCmd()
    L 09/26/2013 - 02:47:19: [SM] Native "GetEntPropEnt" reported: Entity 9 (9) is invalid
    L 09/26/2013 - 02:47:19: [SM] Displaying call stack trace for plugin "l4d2_pin_protection.smx":
    L 09/26/2013 - 02:47:19: [SM] [0] Line 78, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::OnPlay erRunCmd()
    L 09/26/2013 - 02:47:19: [SM] Native "GetEntPropEnt" reported: Entity 9 (9) is invalid
    L 09/26/2013 - 02:47:19: [SM] Displaying call stack trace for plugin "l4d2_pin_protection.smx":
    L 09/26/2013 - 02:47:19: [SM] [0] Line 78, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::OnPlay erRunCmd()
    L 09/26/2013 - 02:47:19: [SM] Native "GetEntPropEnt" reported: Entity 9 (9) is invalid
    L 09/26/2013 - 02:47:19: [SM] Displaying call stack trace for plugin "l4d2_pin_protection.smx":
    L 09/26/2013 - 02:47:19: [SM] [0] Line 78, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::OnPlay erRunCmd()
    L 09/26/2013 - 02:47:19: [SM] Native "GetEntPropEnt" reported: Entity 9 (9) is invalid
    L 09/26/2013 - 02:47:19: [SM] Displaying call stack trace for plugin "l4d2_pin_protection.smx":
    L 09/26/2013 - 02:47:19: [SM] [0] Line 78, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::OnPlay erRunCmd()
    L 09/26/2013 - 02:47:19: [SM] Native "GetEntPropEnt" reported: Entity 9 (9) is invalid
    L 09/26/2013 - 02:47:19: [SM] Displaying call stack trace for plugin "l4d2_pin_protection.smx":
    L 09/26/2013 - 02:47:19: [SM] [0] Line 78, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::OnPlay erRunCmd()
    L 09/26/2013 - 02:53:58: Error log file session closed.
    Thanks
    eric0279 is offline
    dcx2
    Senior Member
    Join Date: Sep 2011
    Old 09-26-2013 , 01:12   Re: [L4D2] Pin Protection (v0.9, 2013 June 19)
    Reply With Quote #3

    Uhh...weird. Can you provide any context for this error? I see the line and understand why the error was generated, but I'm not sure what chain of events could lead to it, and I want to make sure any fix I make doesn't just cover up a problem.

    The frame you press IN_DUCK, if you have a smoker or jockey victim, I glitch the hunter attacker and store that victim, otherwise I set the victim to 0. If the stored victim is not 0, I check for: not holding duck, client has died, or smoker/jockey no longer has a victim. If any of those conditions are true, I clear the hunter attacker glitch and the stored victim value.

    About the only thing I can think of that might trip this sequence up is if someone took control or lost control of a survivor being pinned, while that survivor was subject to pin protection. None of the conditions would be true, but the survivor being pinned would change, meaning the old value would become invalid, but my code wouldn't notice.
    __________________
    dcx2 is offline
    eric0279
    AlliedModders Donor
    Join Date: May 2007
    Old 09-26-2013 , 07:48   Re: [L4D2] Pin Protection (v0.9, 2013 June 19)
    Reply With Quote #4

    No idea, I can not help you .... It is looking at the logs I've seen these errors
    eric0279 is offline
    dcx2
    Senior Member
    Join Date: Sep 2011
    Old 10-04-2013 , 01:16   Re: [L4D2] Pin Protection (v1.0, 2013 October 4)
    Reply With Quote #5

    Version bump

    I have fixed this error, as it turns out I was right, the problem was due bot/player swaps while being protected. Thank you for the feedback eric! Not only did you help me fix this plugin, but as it turns out, the Jockey Jump plugin also had a similar problem during bot/player swaps.

    I have also added an enable cvar.
    __________________
    dcx2 is offline
    eric0279
    AlliedModders Donor
    Join Date: May 2007
    Old 10-04-2013 , 15:03   Re: [L4D2] Pin Protection (v1.0, 2013 October 4)
    Reply With Quote #6

    same error dcx2 :
    Quote:
    L 10/04/2013 - 20:01:52: SourceMod error session started
    L 10/04/2013 - 20:01:52: Info (map "l4d2_daybreak01_hotel") (file "errors_20131004.log")
    L 10/04/2013 - 20:01:52: [SM] Native "GetEntPropEnt" reported: Entity 1 (1) is invalid
    L 10/04/2013 - 20:01:52: [SM] Displaying call stack trace for plugin "l4d2_pin_protection.smx":
    L 10/04/2013 - 20:01:52: [SM] [0] Line 187, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::GetSmo kerJockeyVictim()
    L 10/04/2013 - 20:01:52: [SM] [1] Line 148, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::Remove Protection()
    L 10/04/2013 - 20:01:52: [SM] [2] Line 87, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::Event_ PlayerBotReplace()
    L 10/04/2013 - 20:02:02: Error log file session closed.
    L 10/04/2013 - 20:040: SourceMod error session started
    L 10/04/2013 - 20:040: Info (map "l4d2_daybreak01_hotel") (file "errors_20131004.log")
    L 10/04/2013 - 20:040: [SM] Native "GetEntPropEnt" reported: Entity 1 (1) is invalid
    L 10/04/2013 - 20:040: [SM] Displaying call stack trace for plugin "l4d2_pin_protection.smx":
    L 10/04/2013 - 20:040: [SM] [0] Line 187, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::GetSmo kerJockeyVictim()
    L 10/04/2013 - 20:040: [SM] [1] Line 148, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::Remove Protection()
    L 10/04/2013 - 20:040: [SM] [2] Line 87, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::Event_ PlayerBotReplace()
    L 10/04/2013 - 20:05:24: Error log file session closed.
    L 10/04/2013 - 20:07:51: SourceMod error session started
    L 10/04/2013 - 20:07:51: Info (map "l4d2_daybreak01_hotel") (file "errors_20131004.log")
    L 10/04/2013 - 20:07:51: [SM] Native "GetEntPropEnt" reported: Entity 1 (1) is invalid
    L 10/04/2013 - 20:07:52: [SM] Displaying call stack trace for plugin "l4d2_pin_protection.smx":
    L 10/04/2013 - 20:07:52: [SM] [0] Line 187, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::GetSmo kerJockeyVictim()
    L 10/04/2013 - 20:07:52: [SM] [1] Line 148, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::Remove Protection()
    L 10/04/2013 - 20:07:52: [SM] [2] Line 87, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::Event_ PlayerBotReplace()
    L 10/04/2013 - 20:09:02: Error log file session closed.
    L 10/04/2013 - 20:129: SourceMod error session started
    L 10/04/2013 - 20:129: Info (map "l4d2_daybreak01_hotel") (file "errors_20131004.log")
    L 10/04/2013 - 20:129: [SM] Native "GetEntPropEnt" reported: Entity 1 (1) is invalid
    L 10/04/2013 - 20:129: [SM] Displaying call stack trace for plugin "l4d2_pin_protection.smx":
    L 10/04/2013 - 20:129: [SM] [0] Line 187, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::GetSmo kerJockeyVictim()
    L 10/04/2013 - 20:129: [SM] [1] Line 148, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::Remove Protection()
    L 10/04/2013 - 20:129: [SM] [2] Line 87, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::Event_ PlayerBotReplace()
    L 10/04/2013 - 20:192: Error log file session closed.
    L 10/04/2013 - 20:24:48: SourceMod error session started
    L 10/04/2013 - 20:24:48: Info (map "c9m1_alleys") (file "errors_20131004.log")
    L 10/04/2013 - 20:24:48: [SM] Native "GetEntPropEnt" reported: Entity 1 (1) is invalid
    L 10/04/2013 - 20:24:48: [SM] Displaying call stack trace for plugin "l4d2_pin_protection.smx":
    L 10/04/2013 - 20:24:48: [SM] [0] Line 187, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::GetSmo kerJockeyVictim()
    L 10/04/2013 - 20:24:48: [SM] [1] Line 148, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::Remove Protection()
    L 10/04/2013 - 20:24:48: [SM] [2] Line 87, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::Event_ PlayerBotReplace()
    L 10/04/2013 - 201:50: Error log file session closed.
    L 10/04/2013 - 20:52:09: SourceMod error session started
    L 10/04/2013 - 20:52:09: Info (map "l4d2_daybreak01_hotel") (file "errors_20131004.log")
    L 10/04/2013 - 20:52:09: [SM] Native "GetEntPropEnt" reported: Entity 1 (1) is invalid
    L 10/04/2013 - 20:52:09: [SM] Displaying call stack trace for plugin "l4d2_pin_protection.smx":
    L 10/04/2013 - 20:52:09: [SM] [0] Line 187, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::GetSmo kerJockeyVictim()
    L 10/04/2013 - 20:52:09: [SM] [1] Line 148, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::Remove Protection()
    L 10/04/2013 - 20:52:09: [SM] [2] Line 87, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::Event_ PlayerBotReplace()
    L 10/04/2013 - 20:53:11: Error log file session closed.
    L 10/04/2013 - 20:57:51: SourceMod error session started
    L 10/04/2013 - 20:57:51: Info (map "l4d2_daybreak03_bridge") (file "errors_20131004.log")
    L 10/04/2013 - 20:57:51: [SM] Native "GetEntPropEnt" reported: Entity 1 (1) is invalid
    L 10/04/2013 - 20:57:51: [SM] Displaying call stack trace for plugin "l4d2_pin_protection.smx":
    L 10/04/2013 - 20:57:51: [SM] [0] Line 187, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::GetSmo kerJockeyVictim()
    L 10/04/2013 - 20:57:51: [SM] [1] Line 148, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::Remove Protection()
    L 10/04/2013 - 20:57:51: [SM] [2] Line 87, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_pin_protection.sp::Event_ PlayerBotReplace()
    L 10/04/2013 - 20:57:59: Error log file session closed.
    eric0279 is offline
    dcx2
    Senior Member
    Join Date: Sep 2011
    Old 10-04-2013 , 15:12   Re: [L4D2] Pin Protection (v1.0, 2013 October 4)
    Reply With Quote #7

    That's actually a different error. Any clues as to how you generated this error?

    I know what I can do to stop it, but again, I'd like to make sure I'm not just covering up a problem.
    __________________
    dcx2 is offline
    eric0279
    AlliedModders Donor
    Join Date: May 2007
    Old 10-04-2013 , 17:08   Re: [L4D2] Pin Protection (v1.0, 2013 October 4)
    Reply With Quote #8

    No idea how the error is generated because I'm not on the server when it happens, sorry...
    eric0279 is offline
    dcx2
    Senior Member
    Join Date: Sep 2011
    Old 10-12-2013 , 01:45   Re: [L4D2] Pin Protection (v1.1, 2013 October 12)
    Reply With Quote #9

    Version bump; this error has been fixed.
    __________________
    dcx2 is offline
    eric0279
    AlliedModders Donor
    Join Date: May 2007
    Old 10-13-2013 , 13:05   Re: [L4D2] Pin Protection (v1.1, 2013 October 12)
    Reply With Quote #10

    Work, thank
    eric0279 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 04:49.


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