Raised This Month: $159 Target: $400
 39% 

[L4D & L4D2] Weapon Spawn (1.6) [10-May-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
3822
Plugin Version:
1.6
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    65 
    Plugin Description:
    Spawns a single weapon fixed in position, these can be temporary or saved for auto-spawning.
    Old 08-08-2013 , 09:10   [L4D & L4D2] Weapon Spawn (1.6) [10-May-2020]
    Reply With Quote #1



    Related Plugins:

    About:
    • Save weapons/items to the map for auto-spawning on round_start.
    • This plugin spawns single weapons/items. They are frozen in place. You can use the pos/ang commands to rotate.
    • Data config saved to l4d_weapon_spawn.cfg in your servers \addons\sourcemod\data\ folder.
    • Do not request any features. If you don't like the plugin then make your own.


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



    Admin Commands: (requires "z" flag)

    PHP Code:
    sm_weapon_spawn         // Opens a menu of weapons/items to spawn. Spawns a temporary weapon at your crosshair.
    sm_weapon_spawn_save    // Opens a menu of weapons/items to spawn. Spawns a weapon at your crosshair and saves to config.
    sm_weapon_spawn_del     // Removes the weapon you are pointing at and deletes from the config if saved.
    sm_weapon_spawn_clear   // Removes all weapons spawned by this plugin from the current map.
    sm_weapon_spawn_wipe    // Removes all weapons spawned by this plugin from the current map and deletes them from the config.
    sm_weapon_spawn_glow    // Toggle to enable glow on all weapons to see where they are placed.
    sm_weapon_spawn_list    // Display a list weapon positions and the total number of.
    sm_weapon_spawn_tele    // Teleport to a weapon (Usage: sm_weapon_spawn_tele <index: 1 to MAX_SPAWNS (32)>).
    sm_weapon_spawn_ang     // Displays a menu to adjust the weapon angles your crosshair is over.
    sm_weapon_spawn_pos     // Displays a menu to adjust the weapon origin your crosshair is over. 


    Cvars:

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

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

    // 0=Infinite. How many items/weapons to give from 1 spawner.
    l4d_weapon_spawn_count "1"

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

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

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

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

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

    // Weapon Spawn plugin version.
    l4d_weapon_spawn_version 


    Changes:
    Code:
    1.6 (10-May-2020)
        - Blocked glow command and convars from L4D1 which does not support glows.
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
        - Various changes to tidy up code.
        - Various optimizations and fixes.
    
    1.5 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.4 (05-May-2018)
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
        - Changed cvar "l4d_weapon_spawn_modes_tog" now supports L4D1.
    
    1.3.1 (20-Nov-2015)
        - Fixed the Sniper Scout not spawning when "l4d_weapon_spawn_count" cvar was set to 0.
    
    1.3 (19-Nov-2015)
        - Fixed Auto Shotgun ammo in L4D1 not filling.
        - Fixed some guns not spawning when "l4d_weapon_spawn_count" cvar was set to 0.
    
    1.2 (29-Mar-2015)
        - Fixed the plugin not loading in L4D1 due to an Invalid Convar Handle.
    
    1.1 (18-Aug-2013)
        - Added cvar "l4d_weapon_spawn_count" to set how many times a spawner gives items/weapons before disappearing.
        - Added cvar "l4d_weapon_spawn_randomise" to randomise the spawns based on a chance out of 100.
    
    1.0 (08-Aug-2012)
        - Initial release.


    Installation:
    • 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 (l4d_weapon_spawn.sp - 908 views - 45.8 KB)
    __________________

    Last edited by Silvers; 05-20-2020 at 10:41.
    Silvers is offline
    lightpro
    Junior Member
    Join Date: Jun 2013
    Old 08-11-2013 , 02:45   Re: [L4D & L4D2] Weapon Spawn (1.0) [08-Aug-2013]
    Reply With Quote #2

    Anyway to spawn weapons that when you pick up it's don't dissapear ? Srr for my bad English =]]
    lightpro is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-11-2013 , 05:36   Re: [L4D & L4D2] Weapon Spawn (1.0) [08-Aug-2013]
    Reply With Quote #3

    Quote:
    Originally Posted by lightpro View Post
    Anyway to spawn weapons that when you pick up it's don't dissapear ? Srr for my bad English =]]
    I don't know why this is happening for some people, I guess it's SMAC or some other plugin. Works fine for me.
    __________________
    Silvers is offline
    lightpro
    Junior Member
    Join Date: Jun 2013
    Old 08-11-2013 , 06:14   Re: [L4D & L4D2] Weapon Spawn (1.0) [08-Aug-2013]
    Reply With Quote #4

    Then can you make some plugins for this?
    lightpro is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-11-2013 , 06:15   Re: [L4D & L4D2] Weapon Spawn (1.0) [08-Aug-2013]
    Reply With Quote #5

    Make what? For what? To fix it?
    __________________
    Silvers is offline
    lightpro
    Junior Member
    Join Date: Jun 2013
    Old 08-11-2013 , 09:35   Re: [L4D & L4D2] Weapon Spawn (1.0) [08-Aug-2013]
    Reply With Quote #6

    No, make the plugin like this one but it spawn a weapon that after we grab it won't dissapear or show me how to work that
    lightpro is offline
    chatyak
    Senior Member
    Join Date: Aug 2011
    Old 08-12-2013 , 12:21   Re: [L4D & L4D2] Weapon Spawn (1.0) [08-Aug-2013]
    Reply With Quote #7

    I think he's asking to make a feature where you can spawn the weapon, but upon taking the weapon - it doesn't get removed (infinite weapon). Personally, I rather have the weapon removed when someone takes it like it is now - more realistic.
    chatyak is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-12-2013 , 15:05   Re: [L4D & L4D2] Weapon Spawn (1.0) [08-Aug-2013]
    Reply With Quote #8

    Yeah I agree about realism. I may add a cvar to set the weapon count / single spawn, it's simply changing the entity to _spawn type and setting the "count" key value. But this will no doubt break in Hard Rain, spawning multiple weapons in the same spot (because Hard Rain remembers the previous maps _spawn weapons and recreates them on the journey back). I also don't like multiple weapons from a single spawn because of the realism factor which is why I didn't include it to begin with.
    __________________
    Silvers is offline
    lightpro
    Junior Member
    Join Date: Jun 2013
    Old 08-12-2013 , 23:47   Re: [L4D & L4D2] Weapon Spawn (1.0) [08-Aug-2013]
    Reply With Quote #9

    But i want you teach me how to make from single spawn to multiple spawn, not to fix the plugin. Pls silvers, I'm a noob. I don't know how to edit it.

    Last edited by lightpro; 08-12-2013 at 23:51.
    lightpro is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-13-2013 , 05:57   Re: [L4D & L4D2] Weapon Spawn (1.0) [08-Aug-2013]
    Reply With Quote #10

    LOL. Really now. You can either wait or do your own thing, that means don't ask me.

    Quote:
    Originally Posted by Silvers View Post
    Do not request any features. If you don't like the plugin then make your own.
    __________________
    Silvers 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 04:32.


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