AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Charger Impact Explosion v1.1.1 [11-November-2022] (https://forums.alliedmods.net/showthread.php?t=340163)

NoroHime 10-29-2022 17:34

[L4D2] Charger Impact Explosion v1.1.1 [11-November-2022]
 
9 Attachment(s)
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

HarryPotter 10-30-2022 04:14

Re: [L4D2] Charger Impact Explosion v1.0.1 [30-October-2022]
 
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?
https://i.imgur.com/M3Nipm6.png

NoroHime 10-30-2022 12:07

Re: [L4D2] Charger Impact Explosion v1.0.1 [30-October-2022]
 
im also encounter this problem, anyway im keep testing this, maybe entity break should use next frame
update 1.0.2

dr_lex 10-30-2022 14:12

Re: [L4D2] Charger Impact Explosion v1.0.2 [31-October-2022]
 
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

NoroHime 10-31-2022 09:25

Re: [L4D2] Charger Impact Explosion v1.1 [31-October-2022]
 
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

dr_lex 11-01-2022 09:47

Re: [L4D2] Charger Impact Explosion v1.1 [31-October-2022]
 
1 Attachment(s)
Lite version

NoroHime 11-10-2022 15:13

Re: [L4D2] Charger Impact Explosion v1.1.1 [11-November-2022]
 
update
Quote:

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

Franco20 02-16-2023 21:19

Re: [L4D2] Charger Impact Explosion v1.1.1 [11-November-2022]
 
His plugin fails when the charger rams a survivor and crashes.

eyal282 09-20-2023 07:32

Re: [L4D2] Charger Impact Explosion v1.1.1 [11-November-2022]
 
I'm borrowing this code for a tank to explode on death, so I hope all relevant bugs were fixed.


All times are GMT -4. The time now is 00:34.

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