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

[L4D2] Upgrade Pack Spawner (1.5) [11-Dec-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
3828
Plugin Version:
1.5
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    7 
    Plugin Description:
    Spawns the bullet upgrade packs, incendiary fire bullets and explosive rounds, which are already deployed.
    Old 08-09-2013 , 01:33   [L4D2] Upgrade Pack Spawner (1.5) [11-Dec-2022]
    Reply With Quote #1



    Related Plugins:

    About:
    • Save up to 32 Ammo Upgrade Boxes for auto-spawning. Saved to l4d2_upgrade_spawn.cfg in your servers \addons\sourcemod\data\ folder.
    • The ammo boxes are already deployed so users can just take the ammo.
    • Do not request any features. If you don't like the plugin then make your own.


    Thanks:
    • Gilmon - For the idea


    Admin Commands: (requires "z" flag)

    PHP Code:
    sm_upgrade_spawn        // Spawns a temporary Upgrade Pack at your crosshair. Usage: sm_upgrade_spawn <type: 1=Incendiary; 2=Explosive; 3=Random>
    sm_upgrade_spawn_save   // Spawns an Upgrade Pack at your crosshair and saves to config. Usage: sm_upgrade_spawn_save <type: 1=Incendiary; 2=Explosive; 3=Random>
    sm_upgrade_spawn_del    // Removes the Upgrade Pack you are pointing at and deletes from the config if saved.
    sm_upgrade_spawn_clear  // Removes all Upgrade Packs spawned by this plugin from the current map.
    sm_upgrade_spawn_wipe   // Removes all Upgrade Packs from the current map and deletes them from the config.
    sm_upgrade_spawn_glow   // Toggle to enable glow on all Upgrade Packs to see where they are placed.
    sm_upgrade_spawn_list   // Display a list Upgrade Pack positions and the total number of.
    sm_upgrade_spawn_tele   // Teleport to an Upgrade Pack (Usage: sm_upgrade_spawn_tele <index: 1 to MAX_SPAWNS (32)>).
    sm_upgrade_spawn_ang    // Displays a menu to adjust the Upgrade Pack angles your crosshair is over.
    sm_upgrade_spawn_pos    // Displays a menu to adjust the Upgrade Pack origin your crosshair is over. 

    CVars:

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

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

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

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

    // -1=All, 0=None. Otherwise randomly select this many Upgrade Packs to spawn from the maps config.
    l4d2_upgrade_spawn_random "-1"

    // Upgrade Pack Spawner plugin version.
    l4d2_upgrade_spawn_version 

    Changes:
    Code:
    1.5 (11-Dec-2022)
        - Changes to fix compile warnings on SourceMod 1.11.
    
    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 (11-Aug-2013)
        - Fixed the Upgrade Spawn to not fall through the world on some maps.
    
    1.0 (09-Aug-2013)
        - Initial release.

    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_upgrade_spawn.sp - 476 views - 32.9 KB)
    __________________

    Last edited by Silvers; 12-10-2022 at 19:28.
    Silvers is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-11-2013 , 05:08   Re: [L4D2] Upgrade Pack Spawner (1.0) [09-Aug-2013]
    Reply With Quote #2

    1.1 (11-Aug-2013)
    - Fixed the Upgrade Spawn to not fall through the world on some maps.

    Thanks to Chatyak for reporting.
    __________________
    Silvers 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 20:03.


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