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

[L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6898
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Overrides special infected targeting incapacitated players.
    Unapprover:
    Reason for Unapproving:
    Unapproved by request of author
    Old 01-13-2020 , 17:20   [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
    Reply With Quote #1

    THIS PLUGIN IS OBSOLETE. USE THIS INSTEAD: [L4D & L4D2] Target Override



    Related Plugins:

    About:
    • Blocks specified Special Infected from targeting incapacitated players.
    • Does not account for line of sight which would need constant inefficient trace rays.
    • Trace rays could be fired every half a second or so. Only request if really needed.


    Cvars:

    Saved to l4d_target_patch.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // 0=Plugin off, 1=Plugin on.
    l4d_target_patch_allow "1"

    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d_target_patch_modes ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d_target_patch_modes_off ""

    // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d_target_patch_modes_tog "0"

    // Block these Special Infected from targeting incapped players: 1=Smoker, 2=Boomer, 4=Hunter, 8=Tank, 15=All. Add numbers together.
    l4d_target_patch_targets "12"

    // Target Patch plugin version.
    l4d_target_patch_version 


    Changes:
    Code:
    1.1 (14-Jan-2020)
        - Fixed invalid entity. Thanks to "Venom1777" for reporting.
    
    1.0 (13-Jan-2020)
        - Initial release.


    Requirements:

    Installation:
    DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires DHooks!
    1. Download the .smx file and put into your servers \addons\sourcemod\plugins folder.
    2. Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.
    __________________

    Last edited by Silvers; 03-23-2020 at 10:27.
    Silvers is offline
    Venom1777
    Junior Member
    Join Date: Oct 2019
    Old 01-14-2020 , 00:29   Re: [L4D] Target Patch - Ignore Incapped (1.0) [13-Jan-2020]
    Reply With Quote #2

    nfo (map "l4d_airport01_greenhouse") (file "errors_20200113.log")
    L 01/13/2020 - 22:55:43: [SM] Exception reported: Entity -1 (-1) is invalid
    L 01/13/2020 - 22:55:43: [SM] Blaming: l4d_target_patch.smx
    L 01/13/2020 - 22:55:43: [SM] Call stack trace:
    L 01/13/2020 - 22:55:43: [SM] [0] GetEntProp
    L 01/13/2020 - 22:55:43: [SM] [1] Line 251, C:\Servers\L4D\left4dead\addons\sourcemod\scr ipting\l4d_target_patch.sp::ChooseVictimPost
    L 01/13/2020 - 22:55:43: [SM] Exception reported: Entity -1 (-1) is invalid
    L 01/13/2020 - 22:55:43: [SM] Blaming: l4d_target_patch.smx
    L 01/13/2020 - 22:55:43: [SM] Call stack trace:
    L 01/13/2020 - 22:55:43: [SM] [0] GetEntProp
    L 01/13/2020 - 22:55:43: [SM] [1] Line 251, C:\Servers\L4D\left4dead\addons\sourcemod\scr ipting\l4d_target_patch.sp::ChooseVictimPost
    L 01/13/2020 - 22:55:43: [SM] Exception reported: Entity -1 (-1) is invalid
    L 01/13/2020 - 22:55:43: [SM] Blaming: l4d_target_patch.smx
    Venom1777 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 01-14-2020 , 07:22   Re: [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
    Reply With Quote #3

    Thanks, fixed. I often intentionally avoid fully validating things, so I can see exactly what values the game is chucking out and where a stricter check is required.
    __________________
    Silvers is offline
    ReCreator
    Member
    Join Date: Nov 2017
    Location: Ukraine,Kyiv
    Old 01-16-2020 , 16:29   Re: [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
    Reply With Quote #4

    Could you force Tank attack incapped player when he get vomited
    __________________
    Sorry for my pure English...
    ReCreator is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 01-20-2020 , 04:26   Re: [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
    Reply With Quote #5

    Quote:
    Originally Posted by ReCreator View Post
    Could you force Tank attack incapped player when he get vomited
    In l4d1, if a player get vomited, Tank would only attack him no matter incapped or not
    __________________
    HarryPotter is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 01-20-2020 , 05:00   Re: [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
    Reply With Quote #6

    Nice plugin, I always want this.
    works in l4d1 windows and linux


    I downloaded and modified function, here is my thought.
    In l4d1, Tank would still target survivor no matter he is pinned by smoker & hunter, which is very annoying in versus mode.
    so I add some codes below, tank will now ignore incapped or pinned players.
    Spoiler


    well. not perfect for me, tank would still change target if someone(non-incapped && non-pinned) get vomited.
    Does anyone know how to tell player is on vomited effect?
    __________________

    Last edited by HarryPotter; 01-20-2020 at 05:18.
    HarryPotter is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 01-20-2020 , 08:38   Re: [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
    Reply With Quote #7

    Quote:
    Originally Posted by fbef0102 View Post
    Does anyone know how to tell player is on vomited effect?
    "m_isIT"
    __________________
    Silvers is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 01-20-2020 , 13:53   Re: [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
    Reply With Quote #8

    Nice plugin, works well.

    Just first deceitful feeling about wrong functionality when tank is attacking incapped player because he is lies too close to the tank's way to another player.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 01-21-2020 , 06:39   Re: [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
    Reply With Quote #9

    Quote:
    Originally Posted by Silvers View Post
    "m_isIT"
    Got it!
    I already make special infected only target the nearest survivor who is not incapped,pinned, or hanging from ledge.
    Ignore vomit effect, meaning tank finally won't change target to someone who get vomited.

    Spoiler
    __________________

    Last edited by HarryPotter; 01-21-2020 at 06:48.
    HarryPotter is offline
    jamalsheref2
    Senior Member
    Join Date: May 2017
    Old 02-17-2020 , 20:35   Re: [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
    Reply With Quote #10

    what about fixing the ai hunters from targeting a pounce or smoked survivor in l4d1.

    Last edited by jamalsheref2; 02-17-2020 at 20:37.
    jamalsheref2 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 14:10.


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