View Single Post
Author Message
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-04-2013 , 21:56   [L4D & L4D2] Mini Gun Flamethrowers (1.8) [11-Jun-2022]
Reply With Quote #1




About:
  • Save and position them on maps.
  • Cvar chance to replace existing mini guns and machine guns on maps with the Flamethrower version.
  • Barrel heat effects and overheat effects, usage duration and cooldown cvars.
  • The auto-spawn data config is saved to l4d_mini_gun_fire.cfg in your servers \addons\sourcemod\data\ folder.



Related Plugins:


Thanks:


Admin Commands: (requires "z" flag)
PHP Code:
sm_mgfire         // Spawns a temporary Mini Gun at your crosshair. Usage: sm_mgfire <0|1> (0=.50 Cal / 1=Minigun).
sm_mgfire_save    // Spawns a Mini Gun at your crosshair and saves to config. Usage: sm_mgfire_save <0|1> (0=.50 Cal / 1=Minigun).
sm_mgfire_list    // Displays a list of Mini Guns spawned by the plugin and their locations.
sm_mgfire_del     // Removes the Mini Gun you are nearest to and deletes from the config if saved.
sm_mgfire_clear   // Removes all Mini Guns from the current map.
sm_mgfire_wipe    // Removes all Mini Guns from the current map and deletes them from the config. 


CVars:

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

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

// 0=Off, The chance out of 100 to make pre-existing miniguns on the map into Flamethrowers.
l4d_mini_gun_fire_change "25"

// How much damage against non-survivors per touch when fired. Triggered according to frequency cvar.
l4d_mini_gun_fire_damage "1"

// How often the damage trace fires, igniting entities etc. In seconds (lower = faster/more hits).
l4d_mini_gun_fire_frequency "0.1"

// How much damage against survivors per touch when fired. Triggered according to frequency cvar.
l4d_mini_gun_fire_friendly "1"

// 0.0=Off. How many seconds of constant use before the Flamethrower overheats.
l4d_mini_gun_fire_heat "6.0"

// How many seconds after overheating before allowing the Flamethrower to work again.
l4d_mini_gun_fire_heats "3.0"

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

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

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

// How far the flamethrower can burn entities.
l4d_mini_gun_fire_range "250"

// -1=All, 0=Off, other value randomly spawns that many from the config.
l4d_mini_gun_fire_random "-1"

// Mini Gun Fire plugin version.
l4d_mini_gun_fire_version 


Changes:
Code:
1.8 (11-Jun-2022)
    - Added a "heat" effect to the barrel when a Mini Gun Flamethrower is used.
    - Added cvars "l4d_mini_gun_fire_heat" and "l4d_mini_gun_fire_heats" to control usage duration and cooldown.
    - Changes to fix warnings when compiling on SourceMod 1.11.

1.7 (25-Aug-2021)
    - Fixed client not in game errors. Thanks to "HarryPotter" for reporting.

1.6 (01-Mar-2021)
    - Fixed "l4d_mini_gun_fire_friendly" value of "0" breaking damage to non-survivors. Thanks to "Xada" for reporting.

1.5 (30-Sep-2020)
    - Fixed compile errors on SM 1.11.

1.4 (15-May-2020)
    - Replaced "point_hurt" entity with "SDKHooks_TakeDamage" function.

1.3 (10-May-2020)
    - Extra checks to prevent "IsAllowedGameMode" throwing errors.
    - Various changes to tidy up code.

1.2 (01-Apr-2020)
    - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.

1.1.2 (28-Jun-2019)
    - Changed PrecacheParticle method.

1.1.1 (05-Sep-2018)
    - Added cvar "l4d_mini_gun_fire_friendly" for damage against survivors.
    - Change cvar "l4d_mini_gun_fire_damage" to only affect non-survivors.

1.1 (05-May-2018)
    - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.

1.0 (05-Aug-2013)
    - Initial release.


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

Updating from 1.1 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_mini_gun_flamethrower.sp - 530 views - 44.7 KB)
__________________

Last edited by Silvers; 06-10-2022 at 21:40.
Silvers is offline