Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] Molotov Shove (1.10) [01-Nov-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
3029
Plugin Version:
1.10
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    32 
    Plugin Description:
    Ignites infected when shoved by players holding molotovs.
    Old 06-20-2012 , 05:06   [L4D & L4D2] Molotov Shove (1.10) [01-Nov-2022]
    Reply With Quote #1

    Related Plugins:

    About:
    • Ignites infected who are shoved by survivors holding a molotov.


    Thanks:
    • JoBarfCreepy - For the "Molotov Shove" original idea and request.
    • alexip121093 - For the "Vomitjar Shove" idea and request.
    • Don't Fear The Reaper - For the "Pipebomb Shove" idea and request.
    • Crasher_3637 - For error reporting.


    Cvars:

    Saved to l4d_molotov_shove.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // 0=Plugin off, 1=Plugin on.
    l4d_molotov_shove_allow "1"

    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d_molotov_shove_modes ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d_molotov_shove_modes_off ""

    // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d_molotov_shove_modes_tog "0"

    // Which infected to affect: 1=Common, 2=Witch, 4=Smoker, 8=Boomer, 16=Hunter, 32=Spitter, 64=Jockey, 128=Charger, 256=Tank, 511=All.
    l4d_molotov_shove_infected "511"

    // Which key combination to use when shoving: 1=Shove key. 2=Reload + Shove keys.
    l4d_molotov_shove_keys "1"

    // 0=Infinite. How many times someone can use a molotov to ignite infected before it's removed by the remove cvar option.
    l4d_molotov_shove_limited "2"

    // 0=Infinite. How many times per round can someone use their molotov to ignite infected.
    l4d_molotov_shove_limit "0"

    // 0=Off. 1=Delete the entity when limit reached. 2=Explode on the ground when limit is reached.
    l4d_molotov_shove_remove "2"

    // These infected use l4d_molotov_shove_timeout, otherwise they burn forever. 0=None, 1=All, 2=Witch, 4=Smoker, 8=Boomer, 16=Hunter, 32=Spitter, 64=Jockey, 128=Charger, 256=Tank.
    l4d_molotov_shove_timed "256"

    // 0=Forever. How long should the infected be ignited for?
    l4d_molotov_shove_timeout "10.0"

    // Molotov Shove plugin version.
    l4d_molotov_shove_version 

    Changes:
    Code:
    1.10 (01-Nov-2022)
        - Added cvar "l4d_molotov_shove_keys" to optionally require holding "R" before shoving. Requested by "Iciaria".
        - Fixed breaking when shoving objects and not infected or players. Thanks to "Iciaria" for reporting.
    
    1.9 (28-Sep-2021)
        - Changed method of creating an explosive to prevent it being visible (still sometimes shows, but probably less).
    
    1.8 (05-Aug-2020)
        - Fixed not resetting when the Molotov breaks sometimes causing new Molotovs to instantly break.
        - Issue occurred when using the "l4d_molotov_shove_limited" cvar.
    
    1.7 (15-May-2020)
        - Fixed the dropped fire from an exploded Molotov not crediting the owner.
        - Replaced "point_hurt" entity with "SDKHooks_TakeDamage" function.
    
    1.6 (10-May-2020)
        - Added cvar "l4d_molotov_shove_limited" to limit how many times a Molotov can be used.
        - Added cvar "l4d_molotov_shove_remove" to remove or explode Molotov when reaching the limit.
        - Fixed cvar "l4d_molotov_shove_infected" not working for the Tank in L4D1.
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
    
    1.5 (05-May-2018)
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
        - Changed cvar "l4d_molotov_shove_modes_tog" now supports L4D1.
    
    1.4.1 (24-Mar-2018)
        - Added a couple checks to prevent errors being logged - Thanks to "Crasher_3637" for reporting.
    
    1.4 (03-Jul-2012)
        - Fixed errors by adding some checks - Thanks to "disawar1" for reporting.
    
    1.3 (02-Jul-2012)
        - Fixed errors logging when "m_flLifetime" was not found - Thanks to "disawar1" for reporting.
        - Fixed the Witch not following the "l4d_molotov_shove_timed" cvar setting.
        - No longer extinguishes players who are already on fire, when using the "l4d_molotov_shove_timeout" cvar.
    
    1.2 (30-Jun-2012)
        - Fixed the plugin not working in L4D1.
    
    1.1 (22-Jun-2012)
        - Added cvar "l4d_molotov_shove_timed" to control which infected use the following cvar.
        - Added cvar "l4d_molotov_shove_timeout" to set how long infected will burn for.
    
    1.0 (20-Jun-2012)
        - Initial release.

    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.


    Updating from 1.9 or older:
    • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_molotov_shove.sp - 803 views - 16.4 KB)
    __________________

    Last edited by Silvers; 11-01-2022 at 13:08.
    Silvers is offline
    JoBarfCreepy
    Member
    Join Date: Feb 2011
    Location: Next to Sweden and Norwa
    Old 06-20-2012 , 12:26   Re: [L4D & L4D2] Molotov Shove (1.0) [20-Jun-2012]
    Reply With Quote #2

    I'd like to reserve the right to call myself the first Left 4 Dead 2 player who killed a tank with a shoved molotov.
    All thanks to Silver.

    Last edited by JoBarfCreepy; 06-21-2012 at 17:00.
    JoBarfCreepy is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 06-20-2012 , 12:48   Re: [L4D & L4D2] Molotov Shove (1.0) [20-Jun-2012]
    Reply With Quote #3

    so.... where's vomitjar shove lol
    __________________
    alexip121093 is offline
    Send a message via MSN to alexip121093
    Elektramode
    Senior Member
    Join Date: Mar 2010
    Old 06-20-2012 , 15:08   Re: [L4D & L4D2] Molotov Shove (1.0) [20-Jun-2012]
    Reply With Quote #4

    Quote:
    Originally Posted by alexip121093 View Post
    so.... where's vomitjar shove lol
    Well, that would imply that you could only use the jar once, unlike the molotov which has a somehow constant burning flame.
    Elektramode is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 06-20-2012 , 18:35   Re: [L4D & L4D2] Molotov Shove (1.0) [20-Jun-2012]
    Reply With Quote #5

    Quote:
    Originally Posted by Elektramode View Post
    Well, that would imply that you could only use the jar once, unlike the molotov which has a somehow constant burning flame.
    Yeah , so maybe if you shove it. It breaks and the vomit hits the victim
    __________________
    alexip121093 is offline
    Send a message via MSN to alexip121093
    SyluxLockjaw100
    Senior Member
    Join Date: Jul 2010
    Location: Novaya Russia
    Old 06-21-2012 , 04:34   Re: [L4D & L4D2] Molotov Shove (1.0) [20-Jun-2012]
    Reply With Quote #6

    Works like a charm No bugs found.
    SyluxLockjaw100 is offline
    Visual77
    Veteran Member
    Join Date: Jan 2009
    Old 06-21-2012 , 04:55   Re: [L4D & L4D2] Molotov Shove (1.0) [20-Jun-2012]
    Reply With Quote #7

    Nice one Silvers.
    Visual77 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-22-2012 , 00:24   Re: [L4D & L4D2] Molotov Shove (1.0) [20-Jun-2012]
    Reply With Quote #8

    Quote:
    Originally Posted by alexip121093 View Post
    so.... where's vomitjar shove lol
    Quote:
    Originally Posted by Elektramode View Post
    Well, that would imply that you could only use the jar once, unlike the molotov which has a somehow constant burning flame.
    Quote:
    Originally Posted by alexip121093 View Post
    Yeah , so maybe if you shove it. It breaks and the vomit hits the victim
    All that is done



    Updated:

    You can now specify which infected burn forever and which burn for a certain amount of time.


    1.4 (03-Jul-2012)
    - Fixed errors by adding some checks - Thanks to "disawar1" for reporting.

    1.3 (02-Jul-2012)
    - Fixed errors logging when "m_flLifetime" was not found - Thanks to "disawar1" for reporting.
    - Fixed the Witch not following the "l4d_molotov_shove_timed" cvar setting.
    - No longer extinguishes players who are already on fire, when using the "l4d_molotov_shove_timeout" cvar.

    1.2 (30-Jun-2012)
    - Fixed the plugin not working in L4D1.

    1.1 (22-Jun-2012)
    - Added cvar "l4d_molotov_shove_timed" to control which infected use the following cvar.
    - Added cvar "l4d_molotov_shove_timeout" to set how long infected will burn for.
    __________________

    Last edited by Silvers; 07-03-2012 at 08:04.
    Silvers is offline
    dcx2
    Senior Member
    Join Date: Sep 2011
    Old 07-04-2012 , 21:16   Re: [L4D & L4D2] Molotov Shove (1.4) [03-Jul-2012]
    Reply With Quote #9

    This is amazing, thank you very much Silvers. Your work never ceases to amaze me.

    I have an idea for the general list of "shove-throw" plugins. Can you make it so you have to hold shove for e.g. 500ms (by cvar?), before the effect will activate?

    This way you can spam shove without using it, but then you can "force" it by holding it in.
    dcx2 is offline
    Sal Grosso
    Junior Member
    Join Date: Aug 2011
    Old 07-06-2012 , 08:42   Re: [L4D & L4D2] Molotov Shove (1.4) [03-Jul-2012]
    Reply With Quote #10

    How can I add an announce to chat to print about this new fuction? Sorry my english. BTW thanks for the plugin Silvers.
    Sal Grosso 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 08:04.


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