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

[L4D1 & L4D2] Witch Guard (performance fork)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Plugin ID:
8207
Plugin Version:
1.4.10-B
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Witch killer will put witch's body on his back
    Old 09-29-2022 , 07:23   [L4D1 & L4D2] Witch Guard (performance fork)
    Reply With Quote #1

    Description:
    This is refactored code of original work by panxiaohai + manually added some features from Marttt's fork, aimed to make it as fast (performance optimized) and crash-safe as possible.

    Contains some features, which not exist in above fork.
    Same vice versa, doesn't contain some feature you can find in Marttt fork.
    Read ChangeLog for details.
    NEW:

    - API
    Spoiler


    Dependency:
    - (optional) ThirdPersonShoulder_Detect by Lux

    Settings (ConVars):
    Can be found in: cfg/sourcemod/l4d_witch_guard.cfg
    PHP Code:
    // 0: random pose, 1: best pose, 2: specific pose (uses pose_onback cvars)
    l4d_witch_guard_bestpose_onback "0"

    // 0: random pose, 1: best pose, 2: specific pose (uses pose_down cvars)
    l4d_witch_guard_bestpose_ondown "1"

    // 0: off, 1-82: default witch pose while on back. (l4d_witch_guard_bestpose_onback must be: 2)
    l4d_witch_guard_pose_onback ""

    // 0: off, 1-82: default witch pose while down. (l4d_witch_guard_bestpose_onback must be: 2)
    l4d_witch_guard_pose_down ""

    // attack damage, 1.0: normal [0.1, 1.0]
    l4d_witch_guard_damage "1.0"

    // attack range
    l4d_witch_guard_range "600.0"

    // gun count
    l4d_witch_guard_gun_count "1"

    // 0: do not shot on back, 1: shot
    l4d_witch_guard_shotonback "0"

    // Enables/Disables other clients to steal(pick up) a Witch from other owners while on the ground. 0 = Disable, 1 = Enable.
    l4d_witch_guard_steal "0"

    // Show/Hide the sprite indicating which Witch in the ground is from the owner. 0 = Hide, 1 = Show.
    l4d_witch_guard_spriteowner "1"

    // Prioritize human players. 0 = Disable, 1 = Enable.
    l4d_witch_guard_prioritize_human_players "0"

    // Give witch to a random player if the killer already has one. 0 = Disable, 1 = Enable.
    l4d_witch_guard_give_random "0"

    // Show witch on back when some third-person actions happen? 0 = Disable (can increase performance), 1 = Enable.
    l4d_witch_guard_detect_thirdperson "1"

    // Enable this plugin? 0 = No, 1 = Yes.
    l4d_witch_guard_enable "1"

    // Weapon type given to the witch. 0 = Random, 1 = Assault Rifle, 2 = Hunting Rifle, 3 = Auto Shotgun.
    l4d_witch_guard_weapon_type "0" 
    Supported games:
    - L4D1
    - L4D2

    Warning: Don't forget to remove the old plugin witch_guard_l4d.smx, if you update (he has different name!)


    ChangeLog


    Credits:
    - @panxiaohai - original author
    - @Marttt - for amazing additions in his fork
    - @Lux - for third person detection plugin.
    - @Mr. GameOver - for third person detection (in L4D1).
    Donate
    Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
    - Patreon
    - BitCoin
    - Ю.Money
    Attached Files
    File Type: zip WitchGuard2.zip (46.7 KB, 495 views)
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 09-29-2022 at 07:25.
    Dragokas is offline
    ZBzibing
    Senior Member
    Join Date: Dec 2012
    Old 11-21-2022 , 07:05   Re: [L4D1 & L4D2] Witch Guard (performance fork)
    Reply With Quote #2

    1.Does it have guardians to kill infected and damage to tanks goes to the owner?
    2.Can each person limit the number of guardians
    __________________
    Please forgive, If I'm not describing it accurately. I use google translate
    Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:

    Last edited by ZBzibing; 11-21-2022 at 07:08.
    ZBzibing is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 11-21-2022 , 15:20   Re: [L4D1 & L4D2] Witch Guard (performance fork)
    Reply With Quote #3

    1. No.
    2. No, it's global. I think I hardcoded the number of max guardians in this line (max: 32):
    Code:
    if ( WitchGuardCount >= MaxClients )
    		return -1;
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Jasf
    New Member
    Join Date: Jan 2023
    Old 09-27-2023 , 04:03   Re: [L4D1 & L4D2] Witch Guard (performance fork)
    Reply With Quote #4

    Now how can you put a witch on the ground. Ctrl+E does not work
    Jasf is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 09-27-2023 , 13:10   Re: [L4D1 & L4D2] Witch Guard (performance fork)
    Reply With Quote #5

    Same as in original plugin. Press and hold E.
    Ctrl + E shouldn't work. It is reserved hotkey for CPR.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    guyguyga
    Junior Member
    Join Date: Sep 2011
    Old 03-31-2024 , 10:06   Re: [L4D1 & L4D2] Witch Guard (performance fork)
    Reply With Quote #6

    Could you add a command to spawn it without killing the witch? It'd be cool to start a map with one
    guyguyga 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:07.


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