View Single Post
Author Message
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
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 - 840 views - 16.4 KB)
__________________

Last edited by Silvers; 11-01-2022 at 13:08.
Silvers is offline