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

[L4D & L4D2] Mini Gun Flamethrowers (1.8) [11-Jun-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
3814
Plugin Version:
1.8
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Save and auto-spawn the mini guns: .50 Calibre or L4D1 Mini Gun and makes them into Flamethrowers.
    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 - 499 views - 44.7 KB)
    __________________

    Last edited by Silvers; 06-10-2022 at 21:40.
    Silvers is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 08-05-2013 , 00:17   Re: [L4D & L4D2] Mini Gun Flamethrowers [05-Aug-2013]
    Reply With Quote #2

    I don't play L4D but this looks really cool.

    Very nice!
    Sreaper is offline
    gilmon
    Senior Member
    Join Date: Feb 2011
    Location: China
    Old 08-05-2013 , 06:46   Re: [L4D & L4D2] Mini Gun Flamethrowers [05-Aug-2013]
    Reply With Quote #3

    if you can mix this one.. https://forums.alliedmods.net/showthread.php?p=1531345 (also please notice there's some bug and no more support there)

    that will be very excellent!

    Last edited by gilmon; 08-05-2013 at 06:52.
    gilmon is offline
    Send a message via MSN to gilmon
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-05-2013 , 15:20   Re: [L4D & L4D2] Mini Gun Flamethrowers [05-Aug-2013]
    Reply With Quote #4

    Uhm no, the author is still active, they can fix their own stuff.
    __________________
    Silvers is offline
    mrelfire
    Member
    Join Date: May 2010
    Old 06-09-2014 , 03:15   Re: [L4D & L4D2] Mini Gun Flamethrowers (1.0) [05-Aug-2013]
    Reply With Quote #5

    I have
    Plugin failed to compile! Please try contacting the author.
    any ideas please ?
    mrelfire is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-10-2014 , 11:26   Re: [L4D & L4D2] Mini Gun Flamethrowers (1.0) [05-Aug-2013]
    Reply With Quote #6

    Nothing changed, this seems to be an issue with the forum.
    __________________
    Silvers is offline
    PepeZukas
    Member
    Join Date: Oct 2015
    Location: Banana Republic
    Old 11-26-2016 , 19:56   Re: [L4D & L4D2] Mini Gun Flamethrowers (1.0) [05-Aug-2013]
    Reply With Quote #7

    Is it possible to increase the size of the graphic flame?
    PepeZukas is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 11-27-2016 , 08:50   Re: [L4D & L4D2] Mini Gun Flamethrowers (1.0) [05-Aug-2013]
    Reply With Quote #8

    Quote:
    Originally Posted by PepeZukas View Post
    Is it possible to increase the size of the graphic flame?
    Nope, they're particles which have a set shape/size etc
    __________________
    Silvers is offline
    jking
    AlliedModders Donor
    Join Date: Jan 2012
    Old 07-27-2018 , 22:45   Re: [L4D & L4D2] Mini Gun Flamethrowers (1.0) [05-Aug-2013]
    Reply With Quote #9

    Quote:
    Originally Posted by Silvers View Post
    Nope, they're particles which have a set shape/size etc
    Silvers, question related to this, is it possible to add a cvar for particles and glow, similar to that of Extinguisher's below?

    Flamethrower particles and glow. 0=Flame type A, 1=Flame type B, 2=Type A + Light, 3=Type B + Light.
    jking is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 07-29-2018 , 15:30   Re: [L4D & L4D2] Mini Gun Flamethrowers (1.0) [05-Aug-2013]
    Reply With Quote #10

    Quote:
    Originally Posted by jking View Post
    Silvers, question related to this, is it possible to add a cvar for particles and glow, similar to that of Extinguisher's below?

    Flamethrower particles and glow. 0=Flame type A, 1=Flame type B, 2=Type A + Light, 3=Type B + Light.
    There is only 1 particle for idle and 1 for in-use and no dynamic light when it's being used. Unless you're requesting a light feature? The problem is the particles want to rise upwards and none of the flame particle effects are very long to extend out like a flamethrower, that's why it's fixed how it is.
    __________________
    Silvers 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 02:29.


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