AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D1 & L4D2] Witch Guard (performance fork) (https://forums.alliedmods.net/showthread.php?t=339749)

Dragokas 09-29-2022 07:23

[L4D1 & L4D2] Witch Guard (performance fork)
 
1 Attachment(s)
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

ZBzibing 11-21-2022 07:05

Re: [L4D1 & L4D2] Witch Guard (performance fork)
 
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

Dragokas 11-21-2022 15:20

Re: [L4D1 & L4D2] Witch Guard (performance fork)
 
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;


Jasf 09-27-2023 04:03

Re: [L4D1 & L4D2] Witch Guard (performance fork)
 
Now how can you put a witch on the ground. Ctrl+E does not work

Dragokas 09-27-2023 13:10

Re: [L4D1 & L4D2] Witch Guard (performance fork)
 
Same as in original plugin. Press and hold E.
Ctrl + E shouldn't work. It is reserved hotkey for CPR.

guyguyga 03-31-2024 10:06

Re: [L4D1 & L4D2] Witch Guard (performance fork)
 
Could you add a command to spawn it without killing the witch? It'd be cool to start a map with one


All times are GMT -4. The time now is 15:20.

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