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

[L4D2] Leaker Boomer Enabler v1.6 [11-November-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Plugin ID:
7915
Plugin Version:
1.6
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
1 
Plugin Description:
Variant Boomer "Leaker" now back to game, can set speed, health, model see detail
Old 01-09-2022 , 10:13   [L4D2] Leaker Boomer Enabler v1.6 [11-November-2022]
Reply With Quote #1

about

The Leaker Boomer is game cutted content of Special Infected, wiki here
when he explode then drop fire on ground and make survivor deaf check attachment screenshot

i want to enable it on game again but i dont known how to detect, until today i seen silvers's post

ConVars

PHP Code:
// is leaker boomer spawn as boomette model
leaker_boomette "1"

// leaker boomer spawn chance, 17 is 17% mean spawn 1 in 6, cast to cvar 'boomer_leaker_chance
// Minimum: "0.000000"
// Maximum: "100.000000"
leaker_chance "17"

// leaker boomer health, charger is 600, 0:disable feature
leaker_health "600"

// game default leaker cannot be damage, set to fix it
leaker_can_damage "1"

// if boomer is not leaker, normalize it to male boomer model
leaker_normalize_model "1"

// if normalize model, chance to set l4d1 boomer, 0: disable l4d1 model
// Minimum: "0.000000"
// Maximum: "100.000000"
leaker_normalize_l4d1_chance "50"

// leaker movement speed multiplier, -1: game default, 0: cant move, 2: double speed, etc..
leaker_speed "-1"

// required 'Left 4 DHooks Direct': specify bot chance for boomer leaker, -1: not specify, 100: bot boomer certainly as leaker
// Minimum: "0.000000"
// Maximum: "100.000000"
leaker_chance_bot "-1"

// restrict Leaker can take damage by survivor only
leaker_restrict_survivor "1"

// damage of leaker causes scale 0.5: half -1: default
leaker_damage_scale "-1"

// fire the fake event let game known you killed a boomer 1:yes 0:no
leaker_events "1"

// range of stumbles when leaker exploded
leaker_stumble "200"

// when be stumbled then gets vomitted
leaker_stumble_vomit "0"

// lifetime of fire dropped by leaker, must less than inferno_flame_lifetime 0=disable fire
leaker_fire "15.0"

// extra explosion effects when leaker exploded
// 0=none 1=pipe bomb 2=molotov 3=GL grenade 4=spitter acid. requires left4dhooks
leaker_explosion "3" 
changelog
  • v1.0 just released
  • v1.1 fix leaker cannot be kill
  • v1.1.1 create fake kill event and add switch leaker can be damage
  • v1.1.2 leaker killing bug fix, now shold less performance usage; 1-19-22
  • v1.2 code clean thanks "Dragokas", add feature: 1. normalize the regular boomer to male model , 2. normal boomer chance to l4d1 model , 3. option to set leaker movement speed multiplier; 1-21-22
  • v1.2.1 Leaker spawn reset after plugin unload, suggestion from "HarryPotter"; 1-21-22
  • v1.3 option to specify bot chance, thanks "HarryPotter", now "Left 4 DHooks Direct" is required; 1-25-22
  • v1.3.1 improve better bot chance, thanks "HarryPotter"; 1-25-22
  • v1.3.2
    1. fix issue 'some very rare cases when keep taking damage to dead leaker cause loop death',
    2. fix issue 'wrong cvar bounds cause bot chance cant set -1',
    3. fake event now support death position,
    4. optional 'restrict only survivor can take damage to leaker'; 2-16-22
  • v1.3.3 now plugin can compile online, but bot chance specify feature still require 'Left 4 DHooks Direct'
  • v1.3.4 remove cvar listener to fixes bot chance not work; 24-2-22
  • v1.4 optional set leaker causes damage scale, optional fire the fake event let game known killed the boomer; 8-October-2022
  • v1.5 optional stumble or gets vomitted the survivors when leaker exploded, reference some code from '[L4D2] Stumble - Grenade Launcher'; 22-October-2022
  • v1.6

    1. new ConVar *_fire to control lifetime of fire dropped by leaker,
    2. new ConVar *_explosion to control extra explosion for leaker deathes,
    3. fix duplicate kill message thanks to Silvers; 11-November-2022
Attached Images
File Type: jpg 20220110014215.jpg (94.8 KB, 1026 views)
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_leaker_boomer.sp - 596 views - 15.6 KB)
__________________

Last edited by NoroHime; 11-10-2022 at 17:25. Reason: update
NoroHime is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 01-09-2022 , 13:48   Re: [L4D2] Leaker Boomer simple support
Reply With Quote #2

Quote:
v1.1 fix leaker cannot be kill
upload screenshot
v1.1.1 create fake kill event and add switch leaker can be damage
SDKHooks_TakeDamage cant cause damage
so i used ForcePlayerSuicide and make fake event
__________________

Last edited by NoroHime; 01-09-2022 at 14:03.
NoroHime is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-20-2022 , 09:36   Re: [L4D2] Leaker Boomer simple support
Reply With Quote #3

Quote:
Originally Posted by NoroHime View Post
SDKHooks_TakeDamage cant cause damage
so i used ForcePlayerSuicide and make fake event
Since 1.11.0.6775 new argument is added. Check if that can helps you with "death" event as well.

Congratulations with "new" infected introducing !
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 01-20-2022 at 09:52.
Dragokas is offline
plug344
Member
Join Date: Dec 2021
Old 01-11-2022 , 22:16   Re: [L4D2] Leaker Boomer Enable
Reply With Quote #4

good plugin!
plug344 is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 01-18-2022 , 16:00   Re: [L4D2] Leaker Boomer Enable v1.1.2 1-19-22
Reply With Quote #5

update
Quote:
v1.1.2 leaker killing bug fix, now shold less performance usage; 1-19-22
__________________
NoroHime is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 01-19-2022 , 09:34   Re: [L4D2] Leaker Boomer Enable v1.1.2 1-19-22
Reply With Quote #6

Very good plugin, I really like leaker boomer.
However I feel a little confusing, hard to tell this is boomer or leaker immediately.

Maybe you can add the Flashlight or the hat attached to leaker boomer body,
even simpler, make leaker boomer move faster or change the opacity of the leaker boomer to become closer to invisible.


I suggest spit "leaker_chance" convar into two for people who don't like to play leaker boomer.
PHP Code:
//Real player leaker boomer chane
"leaker_chance_real"

//AI player leaker boomer chane
"leaker_chance_AI" 
and better reset convar OnPluginEnd()
PHP Code:
public void OnPluginEnd() //trigger when plugin unloads
{
    
ResetConVar(FindConVar("boomer_leaker_chance"));

__________________

Last edited by HarryPotter; 01-19-2022 at 10:46.
HarryPotter is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 01-20-2022 , 14:01   Re: [L4D2] Leaker Boomer Enable v1.1.2 1-19-22
Reply With Quote #7

Quote:
Originally Posted by HarryPotter View Post
Very good plugin, I really like leaker boomer.
However I feel a little confusing, hard to tell this is boomer or leaker immediately.

Maybe you can add the Flashlight or the hat attached to leaker boomer body,
even simpler, make leaker boomer move faster or change the opacity of the leaker boomer to become closer to invisible.


I suggest spit "leaker_chance" convar into two for people who don't like to play leaker boomer.
PHP Code:
//Real player leaker boomer chane
"leaker_chance_real"

//AI player leaker boomer chane
"leaker_chance_AI" 
and better reset convar OnPluginEnd()
PHP Code:
public void OnPluginEnd() //trigger when plugin unloads
{
    
ResetConVar(FindConVar("boomer_leaker_chance"));

yea, for model point, i have better solution normalize they model, for chance spawn, i wasnt idea to control.. just control by game convar, now can config speed
__________________
NoroHime is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-20-2022 , 09:51   Re: [L4D2] Leaker Boomer Enable v1.1.2 1-19-22
Reply With Quote #8

I decided to overview a code a little bit.

1. Leaker_boomette - missing ConVar hook.
2. IsClientConnected is already include IsClientInGame, so the first one is redundant. Also, the last already guarantee that the client is valid, no IsValidEntity is required.
3.
Quote:
Code:
int health = GetClientHealth(victim) - RoundToFloor(damage);
		if (health > 0)
			SetEntityHealth(victim, health);
What is sense? Is that means double health decreasing (since the health already been decreased by that "damage" amount after hook finishes) ? In such case more "academic" would be damage *= 2.0 and return Plugin_Changed.

4. Also, executing AutoExecConfig after ConVar hook is set - is less effective, because in such case AutoExecConfig raise the hook and the hook callback potentially will be always called at least once if config contains modified value.

5. It is no reason to call a callback on OnConfigsExecuted, because you already hooked all ConVars. Putting ApplyCvars() inside end of OnPluginStart() is more efficient.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 01-20-2022 at 10:11.
Dragokas is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 01-20-2022 , 12:37   Re: [L4D2] Leaker Boomer Enable v1.1.2 1-19-22
Reply With Quote #9

Quote:
Originally Posted by Dragokas View Post
I decided to overview a code a little bit.

1. Leaker_boomette - missing ConVar hook.
2. IsClientConnected is already include IsClientInGame, so the first one is redundant. Also, the last already guarantee that the client is valid, no IsValidEntity is required.
3.

What is sense? Is that means double health decreasing (since the health already been decreased by that "damage" amount after hook finishes) ? In such case more "academic" would be damage *= 2.0 and return Plugin_Changed.

4. Also, executing AutoExecConfig after ConVar hook is set - is less effective, because in such case AutoExecConfig raise the hook and the hook callback potentially will be always called at least once if config contains modified value.

5. It is no reason to call a callback on OnConfigsExecuted, because you already hooked all ConVars. Putting ApplyCvars() inside end of OnPluginStart() is more efficient.
yea, i tried bypass param and also boomer cant be damage
1. sorry forgot it
2. thanks you expain i deleted InGame check, now
index & entity & connected check
3. by the convar description, leaker is invincible on game, they can only explode by self, anyway Just in case I chosen return plugin handled
4/5. yea i always choose handle all of them when I don't know game work process, but now known thank you
__________________

Last edited by NoroHime; 01-20-2022 at 12:38.
NoroHime is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 01-20-2022 , 13:25   Re: [L4D2] Leaker Boomer Enable v1.1.2 1-19-22
Reply With Quote #10

Quote:
Originally Posted by NoroHime View Post
2. thanks you expain i deleted InGame check, now
index & entity & connected check
You misinterpreted what Dragokas meant. IsClientInGame() includes IsClientConnected(), so you need to remove IsClientConnected() and keep IsClientInGame() instead.
__________________
Psyk0tik 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 13:39.


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