Raised This Month: $95 Target: $400
 23% 

[L4D2] Melee Weapon Spawner (1.2) [05-May-2018]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
3827
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    20 
    Plugin Description:
    Spawns a single melee weapon fixed in position, these can be temporary or saved for auto-spawning.
    Old 08-09-2013 , 01:58   [L4D2] Melee Weapon Spawner (1.2) [05-May-2018]
    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.


    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.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:
    • Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    • Get the Melee Spawn Control extension so you can use all Melee weapons in official campaigns.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_melee_spawn.sp - 1023 views - 37.6 KB)
    __________________

    Last edited by Silvers; 05-05-2018 at 15:52.
    Silvers is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-18-2013 , 13: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 , 17: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 , 06: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
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 03-27-2015 , 12: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
    Crasher_3637
    AlliedModders Donor
    Join Date: May 2012
    Location: average villain lair
    Old 09-13-2017 , 07: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.
    __________________
    AFK like JFK

    Last edited by Crasher_3637; 10-22-2017 at 12:01.
    Crasher_3637 is offline
    Crasher_3637
    AlliedModders Donor
    Join Date: May 2012
    Location: average villain lair
    Old 09-14-2017 , 23: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.
    __________________
    AFK like JFK

    Last edited by Crasher_3637; 10-22-2017 at 12:02.
    Crasher_3637 is offline
    Crasher_3637
    AlliedModders Donor
    Join Date: May 2012
    Location: average villain lair
    Old 09-27-2017 , 03: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 - 660 views - 60.4 KB)
    __________________
    AFK like JFK

    Last edited by Crasher_3637; 10-22-2017 at 12:02.
    Crasher_3637 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 08:46.


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