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

[L4D & L4D2] Mini Gun Spawner (1.9) [11-Dec-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
2745
Plugin Version:
1.9
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    37 
    Plugin Description:
    Auto-spawns the Mini Guns .50 Calibre or L4D1 Mini Gun.
    Old 12-30-2011 , 22:02   [L4D & L4D2] Mini Gun Spawner (1.9) [11-Dec-2022]
    Reply With Quote #1

    • Save and auto-spawn the mini guns: .50 Calibre or L4D1 Mini Gun.
    • Highly Recommend using with alexip121093's "Spawn & Movable Machine Gun": http://forums.alliedmods.net/showthread.php?t=154557
    • The auto-spawn data config is saved to l4d_mini_gun.cfg in your servers \addons\sourcemod\data\ folder.



    Related Plugins:


    Thanks:


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


    CVars:

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

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

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

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d_mini_gun_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_modes_tog "0"

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

    // Mini Gun plugin version.
    l4d_mini_gun_version 


    Changes:
    Code:
    1.9 (11-Dec-2022)
        - Various changes to tidy up code.
    
    1.8 (10-May-2020)
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
        - Various changes to tidy up code.
    
    1.7 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.6 (05-May-2018)
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
        - Changed cvar "l4d_mini_gun_modes_tog" now supports L4D1.
        - Removed unused particle which showed a single error line in L4D1.
    
    1.5 (21-Jul-2013)
        - Removed Sort_Random work-around. This was fixed in SourceMod 1.4.7, all should update or spawning issues will occur.
    
    1.4 (23-Jun-2012)
        - Fixed a stupid mistake which created entities and never deleted them.
    
    1.3 (10-May-2012)
        - Added cvar "l4d_mini_gun_modes_off" to control which game modes the plugin works in.
        - Added cvar "l4d_mini_gun_modes_tog" same as above, but only works for L4D2.
    
    1.2 (14-Jan-2012)
        - Increased the max number of spawns to 48.
    
    1.1 (31-Dec-2011)
        - Removed useless code.
    
    1.0 (31-Dec-2011)
        - Initial release.


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

    Updating from 1.2 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.sp - 550 views - 24.4 KB)
    __________________

    Last edited by Silvers; 08-08-2023 at 06:00.
    Silvers is offline
    SyluxLockjaw100
    Senior Member
    Join Date: Jul 2010
    Location: Novaya Russia
    Old 12-31-2011 , 01:13   Re: [L4D & L4D2] Mini Gun Spawner (1.0) [31-Dec-2011]
    Reply With Quote #2

    Wow nice! Finally no more building them in Stipper,thanks alot of this.
    SyluxLockjaw100 is offline
    disawar1
    AlliedModders Donor
    Join Date: Aug 2011
    Location: Russian
    Old 12-31-2011 , 17:06   Re: [L4D & L4D2] Mini Gun Spawner (1.1) [31-Dec-2011]
    Reply With Quote #3

    oh dear my flowers ^ ^ )
    __________________
    disawar1 is offline
    chatyak
    Senior Member
    Join Date: Aug 2011
    Old 01-30-2012 , 01:27   Re: [L4D & L4D2] Mini Gun Spawner (1.2) [14-Jan-2011]
    Reply With Quote #4

    Where does it spawn these or how does it work exactly? I haven't found a plugin that will give survivors a mini gun that they can carry around and use.
    chatyak is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 01-30-2012 , 02:21   Re: [L4D & L4D2] Mini Gun Spawner (1.2) [14-Jan-2011]
    Reply With Quote #5

    You save it to the map using the commands.

    Spawn & Movable Machine Gun: http://forums.alliedmods.net/showthread.php?t=154557
    __________________
    Silvers is offline
    chatyak
    Senior Member
    Join Date: Aug 2011
    Old 01-30-2012 , 14:43   Re: [L4D & L4D2] Mini Gun Spawner (1.2) [14-Jan-2011]
    Reply With Quote #6

    Quote:
    Originally Posted by Silvers View Post
    You save it to the map using the commands.

    Spawn & Movable Machine Gun: http://forums.alliedmods.net/showthread.php?t=154557
    Hello Silvers,

    Would this be correct then?

    1) Download / install plugin.

    2) While playing map - type sm_mgsave and it will place a mini gun on the map AND save it there for future (on server)?

    3) If download/install alexips plugin - then I can walk up to minigun and shift+right click to move it?


    Could you do a youtube video to show a tutorial? I'm confused about how to get it installed and working between the two plugins :/

    Last edited by chatyak; 01-30-2012 at 14:44.
    chatyak is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 01-30-2012 , 16:22   Re: [L4D & L4D2] Mini Gun Spawner (1.2) [14-Jan-2011]
    Reply With Quote #7

    Yes that's it, not very hard is it... Change "l4d_mini_gun_random" to -1 if you want all mini guns to spawn, otherwise it will randomly only select 2 for spawning (or whatever number you specify).
    __________________
    Silvers is offline
    chatyak
    Senior Member
    Join Date: Aug 2011
    Old 01-30-2012 , 16:52   Re: [L4D & L4D2] Mini Gun Spawner (1.2) [14-Jan-2011]
    Reply With Quote #8

    I got it working - thank you silvers for the plugin Although, when I use sm_mgsave and then sm_mgclear - it always leaves the miniguns on the map and I have to clear them each time I load the map.

    EDIT** woops - I need sm_mgwipe

    Last edited by chatyak; 01-30-2012 at 16:57.
    chatyak is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-23-2012 , 15:56   Re: [L4D & L4D2] Mini Gun Spawner (1.4) [23-Jun-2012]
    Reply With Quote #9

    1.4 (23-Jun-2012)
    - Fixed a stupid mistake which created entities and never deleted them.
    __________________
    Silvers is offline
    Mitsuru
    Member
    Join Date: Jun 2013
    Location: Fakes country
    Old 07-03-2013 , 06:16   Re: [L4D & L4D2] Mini Gun Spawner (1.4) [23-Jun-2012]
    Reply With Quote #10

    Unable to spawn 50cal! Regardless sm_mg 50cal or sm_mg minigun, only spawning minigun.
    Mitsuru 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 16:30.


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