This plugin will ignite and give extra damage to the rock thrown by the Tank when the rock is on fire.
Features
Allow igniting the rock always / only when the tank is on fire / when the rock is hit by fire damage.
Allow setting which types of rock (rock, trunk, etc) are allowed to ignite.
Allow setting a damage bonus when hit by an igniting tank rock.
Allow configuring how long the burning effect should last in the rock and in the client victim.
Preview
Cvars
A configuration file named "l4d_tank_rock_ignition.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.
PHP Code:
// Should the Tank rock always start on fire?
// 0 = Ignite the rock only if the Tank is set on fire, 1 = Always ignite the rocks.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_tank_rock_ignition_always "0"
// Allow igniting the rock in the air after it has been thrown.
// This option will ignite the rock if it is hit by incendiary ammunition or if it go through the fire.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_tank_rock_ignition_burn_on_air "1"
// Damage bonus % multiplier for Tank rocks on fire.
// Example: "10" gives +10% damage from an ignited rock.
// 0 = OFF.
// -
// Default: "10.0"
// Minimum: "-100.000000"
l4d_tank_rock_ignition_dmg_multiplier "10.0"
// How long (in seconds) the rock will be set on fire.
// 0 = OFF.
// -
// Default: "60.0"
// Minimum: "0.000000"
l4d_tank_rock_ignition_fire_duration "60.0"
// Which models can be ignited.
// 0 = NONE, 1 = ROCK, 2 = TRUNK, 4 = UNKNOWN.
// Add numbers greater than 0 for multiple options.
// Example: "3", enables for "ROCK" (1) and "TRUNK" (2).
// -
// Default: "3"
// Minimum: "1.000000"
// Maximum: "7.000000"
l4d_tank_rock_ignition_model_type "3"
// How long (in seconds) the victim will be set on fire after being hit by a rock.
// 0 = OFF.
// -
// Default: "2.0"
// Minimum: "0.000000"
l4d_tank_rock_ignition_victim_fire_duration "2.0"
// Rocks ignore fire damage, otherwise, it loses HP over time when on fire.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_tank_rock_ignore_fire_damage "1"
Admin Commands
sm_print_cvars_l4d_tank_rock_ignition => Print the plugin related cvars and their respective values to the console. (z flag required)
Change Log
Spoiler
1.1.0 (17-April-2021)
- New version released.
- Fixed some hook errors. (thanks "Shadowart" for reporting)
1.0.0 (26-April-2019)
- Initial release.
Notes
A ignited rock does not give damage over time to a survivor when hit (as is, game design), but does to infected.
A ignited rock does not explode gascans/propane tanks/oxygen tanks.
To Do
Create damage over time on the survivor hit by an ignited rock.
Add a fire particle to the survivor hit by an ignited rock.
Make gascans/propane tanks/oxygen tanks explode on hit.
Ignite other world entities on hit by an ignited rock.
Thank you!
KadabraZz - for the request and testing in his server.