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

[L4D1 & L4D2] Tank Rock Ignition [v1.1.0 | 17-April-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
6541
Plugin Version:
1.1.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    16 
    Plugin Description:
    Ignites the rock thrown by the Tank when he is on fire
    Old 04-26-2019 , 10:03   [L4D1 & L4D2] Tank Rock Ignition [v1.1.0 | 17-April-2021]
    Reply With Quote #1

    About

    I made this plugin to add a fire effect to the Tank throwing rock when he is on fire or when the rock is hit by fire damage.

    Similar to [L4D & L4D2] Tank's Burning Rock plugin by panxiaohai, but has other features.

    Description

    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"

    // Enable/Disable the plugin.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_tank_rock_ignition_enable "1"

    // 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


    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!

    Related Plugins

    Post Reply
    • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

    Installation
    • Put the "l4d_tank_rock_ignition.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_tank_rock_ignition.sp - 653 views - 18.8 KB)
    __________________

    Last edited by Marttt; 01-15-2023 at 12:18.
    Marttt is offline
    theproperson
    Member
    Join Date: Feb 2017
    Old 04-27-2019 , 02:15   Re: [L4D & L4D2] Tank Rock Ignition [v1.0.0 | 26-April-2019]
    Reply With Quote #2

    I would suggest looking at the code used in https://forums.alliedmods.net/showthread.php?p=2097674
    to have an idea on how to light survivors on fire with a damage over time effect. It was done here with particles to display survivors on fire.
    theproperson is offline
    TiTz
    Member
    Join Date: Jan 2020
    Old 03-11-2020 , 15:19   Re: [L4D & L4D2] Tank Rock Ignition [v1.0.0 | 26-April-2019]
    Reply With Quote #3

    Quote:
    To Do

    Create a damage over time on the survivor hitted by an ignited rock.
    Add a fire particule to the survivor hitted by an ignited rock.
    Make gascans/propane tanks/oxygen tanks explode on hit.
    Ignite other world entities on hit by an ignited rock.
    This is a great plugin - Had it on the server for a while now!

    Looking at the To Do list ... these would be good additions.
    TiTz is offline
    larrybrains
    Senior Member
    Join Date: May 2017
    Old 03-21-2020 , 15:51   Re: [L4D & L4D2] Tank Rock Ignition [v1.0.0 | 26-April-2019]
    Reply With Quote #4

    I have a question that is unrelated to your plugin. In your example video, how did you get the tank to stand still and only throw rocks instead of coming after you?
    larrybrains is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 03-21-2020 , 19:43   Re: [L4D & L4D2] Tank Rock Ignition [v1.0.0 | 26-April-2019]
    Reply With Quote #5

    No problem, these are the cvars that I usually use to test (and record the video).
    • z_tank_speed 1
    • tank_throw_min_interval 1
    • bot_mimic 1
    __________________

    Last edited by Marttt; 04-17-2021 at 21:29.
    Marttt is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 03-27-2020 , 16:16   Re: [L4D & L4D2] Tank Rock Ignition [v1.0.0 | 26-April-2019]
    Reply With Quote #6

    larrybrains

    Quote:
    sm_cvar tank_throw_min_interval 0
    sm_cvar tank_throw_allow_range 1
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 12-10-2021 , 15:21   Re: [L4D1 & L4D2] Tank Rock Ignition [v1.1.0 | 17-April-2021]
    Reply With Quote #7

    you can add explode like create gascan and explode now
    __________________
    NoroHime is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 12-10-2021 , 20:43   Re: [L4D1 & L4D2] Tank Rock Ignition [v1.1.0 | 17-April-2021]
    Reply With Quote #8

    Already have a plugin that does that and is mentioned in the main post twice:
    [L4D & L4D2] Tank's Burning Rock by panxiaohai
    __________________

    Last edited by Marttt; 12-10-2021 at 20:54.
    Marttt is offline
    ZBzibing
    Senior Member
    Join Date: Dec 2012
    Old 12-13-2021 , 11:53   Re: [L4D1 & L4D2] Tank Rock Ignition [v1.1.0 | 17-April-2021]
    Reply With Quote #9

    I had a revision of a version long ago.
    The stones thrown by the tank can explode.
    If the burning tank is thrown out, it will fall on the stone, creating a sea of fire area
    __________________
    Please forgive, If I'm not describing it accurately. I use google translate
    Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:
    ZBzibing is offline
    yzybb
    Member
    Join Date: Jul 2020
    Old 06-04-2023 , 12:26   Re: [L4D1 & L4D2] Tank Rock Ignition [v1.1.0 | 17-April-2021]
    Reply With Quote #10

    Sometimes, we ignite the tank and then turn back. The tank disappears from our view for a period of time, and soon it catches up with us again. However, at this point, there is no animation of fire on the tank's body, but there is still fire damage, and the stones thrown are still carrying fire. Perhaps it's a bug in this plugin?

    Last edited by yzybb; 06-04-2023 at 12:28.
    yzybb 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 15:15.


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