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

[L4D2] Smart Witch


Post New Thread Reply   
 
Thread Tools Display Modes
Author
LinLinLin
Senior Member
Join Date: Sep 2021
Plugin ID:
8521
Plugin Version:
1.0.0
Plugin Category:
All
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Witch will continue to kill the other survivor when the target is incap or dead
    Old 08-01-2023 , 19:30   [L4D2] Smart Witch
    Reply With Quote #1

    Introduce:
    • Long times ago panxiaohai has made a plugin called evil witch. It let the witch kill the other survivor when target down or incap. It is intresting but there is a problem that if someone add a witch mod in his addons. It is likely to crash his client when it facing the witch.
    • Code show that the logic in evil witch is that when target down it remove the witch entity and create a new witch. When the player counts is large it remove and create to quickly which i think cause the situation of crash client.
    • This plugins use SDKCall to change witch target instead.
    • Witch now will chase the person closet to her after she kill or incap her target.
    • Click image for larger version

Name:	NF}GV`3160}~6K(R@[V)L(4.jpg
Views:	625
Size:	64.6 KB
ID:	201271

    Cvar:
    • only one cvar.
    Code:
    "l4d2_witch_killincap", "0", "witch kill the incap target before changing the other one.[0=close, 1=open]"
    How to use:
    • Download the "witch_attack.txt" to sourcemod/gamedata folder.
    • Download the plugins to sourcemod/plugins floder.
    Attached Files
    File Type: sp Get Plugin or Get Source (miuwiki_smartwitch.sp - 577 views - 7.3 KB)
    File Type: txt witch_attack.txt (647 Bytes, 378 views)

    Last edited by LinLinLin; 08-01-2023 at 19:45.
    LinLinLin is offline
    ioioio
    New Member
    Join Date: Mar 2023
    Old 08-05-2023 , 07:10   Re: [L4D2] Smart Witch
    Reply With Quote #2

    clean code & good job!
    ioioio is offline
    Xenorvya
    Junior Member
    Join Date: May 2022
    Old 08-05-2023 , 07:18   Re: [L4D2] Smart Witch
    Reply With Quote #3

    This is a nice plugin, but isn't this the same thing as "Relentless Witch" but without a way to control the range?
    https://forums.alliedmods.net/showthread.php?p=1621505

    Last edited by Xenorvya; 08-05-2023 at 07:19.
    Xenorvya is offline
    LinLinLin
    Senior Member
    Join Date: Sep 2021
    Old 08-05-2023 , 09:41   Re: [L4D2] Smart Witch
    Reply With Quote #4

    Yes, you are right. Most of the logic is the same i think. Both of them use "Infected::OnHitByVomitJar" function to change the target.
    I make this plugins for the reason that someone tell me the problem mentioned in introduce. Should i remove this post?
    I forget to check if forums has the same plugins before upload to forums, sorry about that.

    Last edited by LinLinLin; 08-05-2023 at 09:48.
    LinLinLin is offline
    Shao
    Senior Member
    Join Date: Jan 2015
    Old 08-06-2023 , 11:20   Re: [L4D2] Smart Witch
    Reply With Quote #5

    Is it possible to use something else than "Infected::OnHitByVomitJar"? Not sure if it's actually the cause but in some cases the witch randomly ends up mauled by commons for no particular reasons when she is triggered then goes back into a resting stage, in some cases commons just maul her period.

    That's with the Relentless Witch plugin.
    Shao is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 08-07-2023 , 14:59   Re: [L4D2] Smart Witch
    Reply With Quote #6

    Quote:
    Originally Posted by Shao View Post
    Is it possible to use something else than "Infected::OnHitByVomitJar"? Not sure if it's actually the cause but in some cases the witch randomly ends up mauled by commons for no particular reasons when she is triggered then goes back into a resting stage, in some cases commons just maul her period.

    That's with the Relentless Witch plugin.
    https://forums.alliedmods.net/showpo...48&postcount=9
    __________________
    HarryPotter is offline
    Jasonex
    Junior Member
    Join Date: Aug 2023
    Old 09-09-2023 , 09:19   Re: [L4D2] Smart Witch
    Reply With Quote #7

    Hi guys, I just need help because of this error. After the update of Left 4 Dead 2, this is showing now. This is not from the plugin, this error is from Common Witch. I do not get any plugins from Witch

    L 09/09/2023 - 21:12:17: [BugFixes] WitchAttack created for client JasoneX.
    L 09/09/2023 - 21:12:17: [BugFixes] WitchAttack char=2.
    L 09/09/2023 - 21:12:17: [BugFixes] WitchAttack created for client JasoneX.
    L 09/09/2023 - 21:12:17: [BugFixes] WitchAttack char=2.
    L 09/09/2023 - 21:12:17: [BugFixes] WitchAttack created for client JasoneX.
    L 09/09/2023 - 21:12:17: [BugFixes] WitchAttack char=2.
    L 09/09/2023 - 21:12:17: [BugFixes] WitchAttack created for client JasoneX.
    L 09/09/2023 - 21:12:17: [BugFixes] WitchAttack char=2.
    L 09/09/2023 - 21:12:17: [BugFixes] WitchAttack created for client JasoneX.
    L 09/09/2023 - 21:12:17: [BugFixes] WitchAttack char=2.

    How do I fix this error?

    Last edited by Jasonex; 09-09-2023 at 09:32.
    Jasonex is offline
    KadabraZz
    Senior Member
    Join Date: May 2020
    Old 09-15-2023 , 22:22   Re: [L4D2] Smart Witch
    Reply With Quote #8

    Would it be possible to add an option to recover the witch's life when she changes targets?
    KadabraZz is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 09-21-2023 , 09:20   Re: [L4D2] Smart Witch
    Reply With Quote #9

    @Jasonex, it's not the error. It's debug messages from the extension.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas 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 11:27.


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