Explosive Barrel Husks

If you liked this item, please rate it up on Steam Workshop page.

Author: Pinhead Larry

Last revision: 25 Oct, 2024 at 06:16 UTC

File size: 10.43 KB

On Steam Workshop

Description:

When shooting an explosive barrel prop, a burned husk of the barrel will shoot up in the air, exploding on next impact or if shot down. Extra flaming debris particles are generated during this process.

Fairly optimized and adds minimal stress to the server. Many settings can be configured to adjust specific behavior or to further reduce lag.

Small gas can props will also generate extra debris (optional), but only the default barrel will spawn the husk.

Barrel Husk Variables
Default
Min
Max
barrelhusk_husk_horizontal_force

Maximum horizontal spread force when the husk is created

250
0
10000
barrelhusk_husk_upward_force_min

Maximum vertical spread force when the husk is created

750
0
10000
barrelhusk_husk_upward_force_max

Minimum vertical spread force when the husk is created

1000
0
10000
barrelhusk_husk_angular_force

Maximum angular force applied when the husk is created

400
0
10000
barrelhusk_husk_explosion_magnitude

This is correlated to radius and damage of the husk explosion

40
1
1024
barrelhusk_husk_health

Damage the husk can take until it explodes early

25
1
10000
barrelhusk_husk_impact_explosion_time

Seconds after the creation of the husk until it can explode from an impact

1
0
10
barrelhusk_husk_impact_explosion_threshold

Force required for an impact to cause the husk to explode

100
1
10000
barrelhusk_husk_impact_explosion_threshold_override

Force required for an impact to cause the husk to explode even when it is younger than barrelhusk_husk_impact_explosion_time

8000
1
1000000

Explosion Debris Variables
Default
Min
Max
barrelhusk_explosion_debris_enable

Will small debris spawn from the barrel/husk explosion?

True
0
1
barrelhusk_explosion_debris_lifetime_min

Min lifetime of explosion debris

0.15
0
100
barrelhusk_explosion_debris_lifetime_max

Max lifetime of explosion debris

3
0
100
barrelhusk_explosion_debris_horizontal_force

Horizontal spread force of explosion debris

500
0
10000
barrelhusk_explosion_debris_vertical_force_min

Min upward force of explosion debris

250
0
10000
barrelhusk_explosion_debris_vertical_force_max

Max upward force of explosion debris

500
0
10000
barrelhusk_explosion_debris_count

Number of small debris spawned upon barrel/husk explosions

15
1
50

Other Variables
Default
Min
Max
barrelhusk_infinite_husks

ENABLE AT RISK OF SERIOUS LAG! Infinite recursive spawning from each barrel explosion

False
0
1
barrelhusk_gascan_debris_enable

Gas can prop (gascan001a and propane_tank001a) explosions will spawn debris

True
0
1

Inspired by explosive barrel behavior from Superfighters Deluxe https://store.steampowered.com/app/855860/Superfighters_Deluxe/

https://steamcommunity.com/sharedfiles/filedetails/?id=3354316439