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

[L4D2] Charger Impact Explosion v1.1.1 [11-November-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Plugin ID:
8258
Plugin Version:
1.1.1
Plugin Category:
All
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
make explosion when Charger charging impacts something
Old 10-29-2022 , 17:34   [L4D2] Charger Impact Explosion v1.1.1 [11-November-2022]
Reply With Quote #1

about
  • make explosion when charger end the charge just easy thing
  • i dont known why nobody do this yet, and idea and some code from [L4D & L4D2] Tank's Burning Rock
  • then if i doing Slow Motion at this moment everything will be cool
  • optional explosion methods propane / pipe bomb / molotov
  • trigger can has cooldown

ConVar

PHP Code:
// extra explosion particle 1=yes 0=no
charger_explosion_particle "1"

// cooldown(seconds) to make explosion ability again (per charger) 0=no cd -1=same as z_charge_interval
charger_explosion_cooldown "-1"

// method to make explosion 1=propane 2=pipe bomb 3=molotov (2 and 3 requires left4dhooks)
charger_explosion_explosion "1" 

changelog
  • v1.0 just releases; 30-October-2022
  • v1.0.1 fix some code entity operation issue, thanks Silvers teaching; 30-October-2022 (2nd time)
  • v1.0.2 maybe fix some entity operation issue; 31-October-2022
  • v1.1
    new ConVar *_explosion to control method to make explosion:
    propane / pipe bomb / molotov, if encounter crashes during use propane then use another to instead.(requires left4dhooks),
    new ConVar *_cooldown to control cooldown of explosion ability trigger,
    fix some entity operation, a lot changes from Silvers, thanks again; 31-October-2022
  • v1.1.1 fix charger death under charging also trigger explosion; 11-November-2022

Installation
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_charger_explosion.sp - 481 views - 7.0 KB)
__________________

Last edited by NoroHime; 11-10-2022 at 15:12.
NoroHime is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 10-30-2022 , 04:14   Re: [L4D2] Charger Impact Explosion v1.0.1 [30-October-2022]
Reply With Quote #2

PHP Code:
L 10/30/2022 16:13:14Info (map "c2m2_fairgrounds") (file "D:\Left 4 Dead 2 Test Server\left4dead2\addons\sourcemod\logs\errors_20221030.log")
L 10/30/2022 16:13:14: [SMException reportedEntity 13 (13is not a CBaseEntity
L 10
/30/2022 16:13:14: [SMBlamingl4d2_charger_explosion.smx
L 10
/30/2022 16:13:14: [SMCall stack trace:
L 10/30/2022 16:13:14: [SM]   [0AcceptEntityInput
L 10
/30/2022 16:13:14: [SM]   [1Line 84l4d2_charger_explosion.sp::OnChargeEnd
L 10
/30/2022 16:13:23: [SMException reportedEntity 12 (12is not a CBaseEntity
L 10
/30/2022 16:13:23: [SMBlamingl4d2_charger_explosion.smx
L 10
/30/2022 16:13:23: [SMCall stack trace:
L 10/30/2022 16:13:23: [SM]   [0AcceptEntityInput
L 10
/30/2022 16:13:23: [SM]   [1Line 84l4d2_charger_explosion.sp::OnChargeEnd
L 10
/30/2022 16:13:40: [SMException reportedEntity 14 (14is not a CBaseEntity
L 10
/30/2022 16:13:40: [SMBlamingl4d2_charger_explosion.smx
L 10
/30/2022 16:13:40: [SMCall stack trace:
L 10/30/2022 16:13:40: [SM]   [0AcceptEntityInput
L 10
/30/2022 16:13:40: [SM]   [1Line 84l4d2_charger_explosion.sp::OnChargeEnd 
There is a propane tank I can pick up after charger impact, what?
__________________

Last edited by HarryPotter; 10-30-2022 at 04:17.
HarryPotter is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 10-30-2022 , 12:07   Re: [L4D2] Charger Impact Explosion v1.0.1 [30-October-2022]
Reply With Quote #3

im also encounter this problem, anyway im keep testing this, maybe entity break should use next frame
update 1.0.2
__________________

Last edited by NoroHime; 10-30-2022 at 12:16.
NoroHime is offline
dr_lex
Member
Join Date: Dec 2014
Old 10-30-2022 , 14:12   Re: [L4D2] Charger Impact Explosion v1.0.2 [31-October-2022]
Reply With Quote #4

it's funny, but a couple of weeks ago I made a supercharger on the server with the same effect)
Quote:
L 10/21/2022 - 09:56:19: [SM] [609] AcceptEntityInput
L 10/21/2022 - 09:56:19: [SM] [610] Line 706, E:\Sources\sources\l4d2_hx_monsterboss.sp::Bo om
L 10/21/2022 - 09:56:19: [SM] [611] Line 690, E:\Sources\sources\l4d2_hx_monsterboss.sp::Ev ent_ChargerChargeEnd
The problem with the error is that the charger_charge_and event can be triggered more than once. And it turns out that your effect will cause the server to crash, and the accelerator will not display an error

As a tip, make sure that the charger_charge_and event does not trigger the effect more than once
__________________

Last edited by dr_lex; 10-30-2022 at 14:14.
dr_lex is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 10-31-2022 , 09:25   Re: [L4D2] Charger Impact Explosion v1.1 [31-October-2022]
Reply With Quote #5

update

Quote:
ConVar
PHP Code:
// cooldown(seconds) to make explosion ability again (per charger) 0=no cd -1=same as z_charge_interval
charger_explosion_cooldown "-1"

// method to make explosion 1=propane 2=pipe bomb 3=molotov (2 and 3 requires left4dhooks)
charger_explosion_explosion "1" 

changelog
  • v1.1
    new ConVar *_explosion to control method to make explosion:
    propane / pipe bomb / molotov, if encounter crashes during use propane then use another to instead.(requires left4dhooks),
    new ConVar *_cooldown to control cooldown of explosion ability trigger,
    fix some entity operation, a lot changes from Silvers, thanks again; 31-October-2022

Installation
__________________
NoroHime is offline
dr_lex
Member
Join Date: Dec 2014
Old 11-01-2022 , 09:47   Re: [L4D2] Charger Impact Explosion v1.1 [31-October-2022]
Reply With Quote #6

Lite version
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_charger_explosion_lite.sp - 197 views - 2.5 KB)
__________________

Last edited by dr_lex; 11-01-2022 at 09:54.
dr_lex is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 11-10-2022 , 15:13   Re: [L4D2] Charger Impact Explosion v1.1.1 [11-November-2022]
Reply With Quote #7

update
Quote:
v1.1.1 fix charger death under charging also trigger explosion; 11-November-2022
__________________

Last edited by NoroHime; 11-10-2022 at 15:13.
NoroHime is offline
Franco20
Member
Join Date: Nov 2022
Old 02-16-2023 , 21:19   Re: [L4D2] Charger Impact Explosion v1.1.1 [11-November-2022]
Reply With Quote #8

His plugin fails when the charger rams a survivor and crashes.
Franco20 is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 09-20-2023 , 07:32   Re: [L4D2] Charger Impact Explosion v1.1.1 [11-November-2022]
Reply With Quote #9

I'm borrowing this code for a tank to explode on death, so I hope all relevant bugs were fixed.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Reply


Thread Tools
Display Modes

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 15:39.


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