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

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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:
    20 
    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
     



    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 10:20.


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