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

[L4D2] Melee Weapon Spawner (1.8) [19-Sep-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
3827
Plugin Version:
1.8
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    19 
    Plugin Description:
    Spawns a single melee weapon fixed in position, these can be temporary or saved for auto-spawning.
    Old 08-09-2013 , 00:58   [L4D2] Melee Weapon Spawner (1.8) [19-Sep-2023]
    Reply With Quote #1



    Related Plugins:

    About:
    • Save up to 32 melee weapons to the map for auto-spawning on round_start.
    • Data config saved to l4d2_melee_spawn.cfg in your servers \addons\sourcemod\data\ folder.
    • They spawn frozen in place. You can use the pos/ang commands to rotate.
    • Restriction: Valve locked the allowed melee weapons in official campaigns, to unlock you must use the Melee Spawn Control extension or Mission and Weapons - Info Editor which supersedes the extension.


    Thanks:
    • disawar1 - Helped with code fixes.
    • chatyak
    • Herbie
    • worminater
    • Sev



    Admin Commands: (requires "z" flag)

    PHP Code:
    sm_melee_spawn         // Opens a menu of melee weapons to spawn. Spawns a temporary melee weapon at your crosshair.
    sm_melee_spawn_save    // Opens a menu of melee weapons to spawn. Spawns a melee weapon at your crosshair and saves to config.
    sm_melee_spawn_del     // Removes the melee weapon you are pointing at and deletes from the config if saved.
    sm_melee_spawn_clear   // Removes all melee weapons spawned by this plugin from the current map.
    sm_melee_spawn_wipe    // Removes all melee weapons spawned by this plugin from the current map and deletes them from the config.
    sm_melee_spawn_glow    // Toggle to enable glow on all melee weapons to see where they are placed.
    sm_melee_spawn_list    // Display a list melee weapon positions and the total number of.
    sm_melee_spawn_tele    // Teleport to a melee weapon (Usage: sm_melee_spawn_tele <index: 1 to MAX_SPAWNS (32)>).
    sm_melee_spawn_ang     // Displays a menu to adjust the melee weapon angles your crosshair is over.
    sm_melee_spawn_pos     // Displays a menu to adjust the melee weapon origin your crosshair is over. 


    Cvars:

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

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

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

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

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

    // -1=All, 0=None. Otherwise randomly select this many melee weapons to spawn from the maps config.
    l4d2_melee_spawn_random "-1"

    // 0=Off. Chance out of 100 to randomise the type of melee weapon regardless of what it's set to.
    l4d2_melee_spawn_randomise "25"

    // Melee Spawn plugin version.
    l4d2_melee_spawn_version 


    Changes:
    Code:
    1.8 (19-Sep-2023)
        - Fixed not precaching the Knife model.
    
    1.7 (11-Dec-2022)
        - Various changes to tidy up code.
    
    1.6 (26-May-2022)
        - Menu now displays the last page that was selected instead of returning to the first page.
    
    1.5 (24-Sep-2020)
        - Compatibility update for L4D2's "The Last Stand" update.
        - Added support for the 2 new melee weapons.
    
    1.4 (10-May-2020)
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
        - Various changes to tidy up code.
    
    1.3 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.2 (05-May-2018)
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
    
    1.1.1 (18-Aug-2013)
        - Changed the randomise slightly so melee spawn positions are better.
    
    1.1 (09-Aug-2013)
        - Added "l4d2_melee_spawn_randomise" cvar to randomise the melee type based on a chance out of 100.
    
    1.0 (09-Aug-2012)
        - Initial release..


    Installation:
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_melee_spawn.sp - 448 views - 39.9 KB)
    __________________

    Last edited by Silvers; 09-19-2023 at 13:38.
    Silvers is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-18-2013 , 12:42   Re: [L4D2] Melee Weapon Spawner (1.1.1) [18-Aug-2013]
    Reply With Quote #2

    Plugin updated

    1.1.1 (18-Aug-2013)
    - Changed the randomise slightly so melee spawn positions are better.

    1.1 (09-Aug-2013)
    - Added "l4d2_melee_spawn_randomise" cvar to randomise the melee type based on a chance out of 100.
    __________________
    Silvers is offline
    chatyak
    Senior Member
    Join Date: Aug 2011
    Old 06-13-2014 , 16:13   Re: [L4D2] Melee Weapon Spawner (1.1.1) [18-Aug-2013]
    Reply With Quote #3

    Anyone else getting hunter arms spawning in, instead of the melee weapons? It used to work fine, but now when I spawn a Katana for example on the first map of the Parish - it puts hunter arms instead.
    chatyak is offline
    kot4404
    Senior Member
    Join Date: Mar 2013
    Old 07-20-2014 , 05:34   Re: [L4D2] Melee Weapon Spawner (1.1.1) [18-Aug-2013]
    Reply With Quote #4

    Knife is using strange animations O.o is it working like that in german edition?
    kot4404 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 03-27-2015 , 11:39   Re: [L4D2] Melee Weapon Spawner (1.1.1) [18-Aug-2013]
    Reply With Quote #5

    This plugin is still spawning the knife for me, when used in conjunction with my Knife Unlock plugin.
    __________________
    Silvers is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 09-13-2017 , 06:56   Re: [L4D2] Melee Weapon Spawner (1.1.1) [18-Aug-2013]
    Reply With Quote #6

    Would it be possible to integrate custom melee weapons?

    EDIT: I was able to do it myself.
    __________________

    Last edited by Psyk0tik; 10-22-2017 at 11:01.
    Psyk0tik is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 09-14-2017 , 22:23   Re: [L4D2] Melee Weapon Spawner (1.1.1) [18-Aug-2013]
    Reply With Quote #7

    I'm getting Hunter arms for most of the melee weapons, including the stock ones. I got some of the custom ones to work though lol

    EDIT: My bad. It only happens when the melee weapon is not available for the campaign.
    __________________

    Last edited by Psyk0tik; 10-22-2017 at 11:02.
    Psyk0tik is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 09-27-2017 , 02:13   Re: [L4D2] Melee Weapon Spawner (1.1.1) [18-Aug-2013]
    Reply With Quote #8

    Updated under Sourcemod 1.8.x.

    This version includes 105 custom melee weapons that are in a pack which can be obtained here.

    Details about the custom melee weapons can be read about here.

    Bugs:

    - If you spawn a melee weapon that isn't meant to spawn in a campaign, you will get Hunter arms instead.

    Installation:

    - Just place the l4d2_melee_spawn.smx file into your addons/sourcemod/plugins folder and you'll be good to go. No need for the extension linked in the original post above.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_melee_spawn.sp - 1479 views - 60.4 KB)
    __________________

    Last edited by Psyk0tik; 10-22-2017 at 11:02.
    Psyk0tik is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-24-2020 , 13:50   Re: [L4D2] Melee Weapon Spawner (1.5) [24-Sep-2020]
    Reply With Quote #9

    Code:
    1.5 (24-Sep-2020)
        - Compatibility update for L4D2's "The Last Stand" update.
        - Added support for the 2 new melee weapons.
    __________________
    Silvers is offline
    SilentBr
    Veteran Member
    Join Date: Jan 2009
    Old 09-26-2020 , 13:07   Re: [L4D2] Melee Weapon Spawner (1.5) [24-Sep-2020]
    Reply With Quote #10

    Quote:
    Originally Posted by Silvers View Post
    Code:
    1.5 (24-Sep-2020)
        - Compatibility update for L4D2's "The Last Stand" update.
        - Added support for the 2 new melee weapons.
    Hi Silvers, thanks for updating your plugin!

    I noticed a bug. Sometimes it spawns the wrong melee after you save and reload the map, I'd say 10% of them.

    It is too much work to save each spawn point for eachmap, I tried to edit the data.cfg and insert some new melees only changing position a little bit but it was hard to understand to do manually. Do you have saved on your file some saferoom's positions to share?

    Last edited by SilentBr; 09-26-2020 at 13:10.
    SilentBr 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:19.


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