Raised This Month: $410 Target: $400
 102% 

[L4D & L4D2] Tank Rock Ignition [v1.0.0 | 26-April-2019]


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

    About

    I made this plugin to add a fire effect to the Tank throwing rock when he is on fire,
    this one is pretty similar to the plugin [L4D & L4D2] Tank's Burning Rock by panxiaohai,
    but has other features.

    Description

    This plugin will ignite and give an extra damage to the rock thrown by the Tank when he is on fire.

    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 start always on fire?. 0 = Ignite the rock only if the Tank is set on fire, 1 = Always throw ignited rocks.
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_tank_rock_ignition_always "0"

    // Allows to ignite 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"

    // How long (in seconds) after the Tank began to thrown the rock the plugin should check that the Tank is set on fire to ignite the rock, if it is not already on fire. 0 = OFF.
    // -
    // Default: "2.2"
    // Minimum: "0.000000"
    l4d_tank_rock_ignition_check_on_throw "2.2"

    // Damage multiplier for Tank rocks on fire.
    // Example: "1.1" gives +10% damage from an ignited rock.
    // -
    // Default: "1.1"
    // Minimum: "0.000000"
    l4d_tank_rock_ignition_damage_multiplier "1.1"

    // Enables/Disables the plugin. 0 = Plugin OFF, 1 = Plugin ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_tank_rock_ignition_enabled "1"

    // How long (in seconds) the rock will be set on fire. 0 = OFF.
    // -
    // Default: "120.0"
    // Minimum: "0.000000"
    l4d_tank_rock_ignition_fire_duration "120.0"

    // Turn off the plugin in these game modes, separate by commas (no spaces). Empty = none.
    // Known values: coop,realism,versus,survival,scavenge,teamversus,teamscavenge,
    // mutation[1-20],community[1-6],gunbrain,l4d1coop,l4d1vs,holdout,dash,shootzones.
    // -
    // Default: ""
    l4d_tank_rock_ignition_gamemodes_off ""

    // Turn on the plugin in these game modes, separate by commas (no spaces). Empty = all.
    // Known values: coop,realism,versus,survival,scavenge,teamversus,teamscavenge,
    // mutation[1-20],community[1-6],gunbrain,l4d1coop,l4d1vs,holdout,dash,shootzones.
    // -
    // Default: ""
    l4d_tank_rock_ignition_gamemodes_on ""

    // Turn on the plugin in these game modes.
    // Known values: 0 = all, 1 = coop, 2 = survival, 4 = versus, 8 = scavenge.
    // Add numbers greater than 0 for multiple options.
    // Example: "3", enables for "coop" (1) and "survival" (2).
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "15.000000"
    l4d_tank_rock_ignition_gamemodes_toggle "0"

    // Which models can be ignited.
    // Known values: 1 = rock, 2 = trunk, 4 = unknown model.
    // 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" 
    Admin Commands

    PHP Code:
    sm_l4d_tank_rock_ignition_print_cvars // Prints the plugin related cvars and their respective values to the console. (needs "z" flag). 
    Change Log

    Spoiler


    Notes
    • A ignited rock gets destroyed faster, since it takes damage over time when set on fire.
    • 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 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.

    Thank you!

    Related Plugins

    Post Reply
    • Any feedbacks, 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 - 785 views - 28.6 KB)
    __________________

    Last edited by Marttt; 04-26-2019 at 20:33. Reason: v1.0.0
    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
    Marttt
    Senior Member
    Join Date: Jan 2019
    Old 03-11-2020 , 16:05   Re: [L4D & L4D2] Tank Rock Ignition [v1.0.0 | 26-April-2019]
    Reply With Quote #4

    Thanks! Actually I already did the TO-DO list but I need to do more tests, maybe in the following weeks, I upload a new version.
    __________________
    Marttt is offline
    larrybrains
    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 #5

    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
    Senior Member
    Join Date: Jan 2019
    Old 03-21-2020 , 19:43   Re: [L4D & L4D2] Tank Rock Ignition [v1.0.0 | 26-April-2019]
    Reply With Quote #6

    No problem, just set the cvar "z_tank_speed" to 1, since the survivor is away, he will try to use his throw ability.
    __________________
    Marttt is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine
    Old 03-27-2020 , 16:16   Re: [L4D & L4D2] Tank Rock Ignition [v1.0.0 | 26-April-2019]
    Reply With Quote #7

    larrybrains

    Quote:
    sm_cvar tank_throw_min_interval 0
    sm_cvar tank_throw_allow_range 1
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D1 fun (Bloody Witch)
    [My plugins] [My tools] [GitHub] [Articles]
    Dragokas 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 17:27.


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