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

[L4D2] Laser Box 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:
3826
Plugin Version:
1.5
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    28 
    Plugin Description:
    Spawns the laser sight upgrades box.
    Old 08-08-2013 , 21:33   [L4D2] Laser Box Spawner (1.5) [11-Dec-2022]
    Reply With Quote #1



    Related Plugins:

    About:
    • Save up to 32 Laser Sight Upgrade Boxes for auto-spawning. Saved to l4d2_laser_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:
    • Sev - For the idea


    Admin Commands: (requires "z" flag)

    PHP Code:
    sm_laser_spawn        // Spawns a temporary Laser Box at your crosshair.
    sm_laser_spawn_save   // Spawns a Laser Box at your crosshair and saves to config.
    sm_laser_spawn_del    // Removes the Laser Box you are pointing at and deletes from the config if saved.
    sm_laser_spawn_clear  // Removes all Laser Boxes spawned by this plugin from the current map.
    sm_laser_spawn_wipe   // Removes all Laser Boxes from the current map and deletes them from the config.
    sm_laser_spawn_glow   // Toggle to enable glow on all Laser Boxes to see where they are placed.
    sm_laser_spawn_list   // Display a list Laser Boxes positions and the total number of.
    sm_laser_spawn_tele   // Teleport to a Laser Box (Usage: sm_laser_spawn_tele <index: 1 to MAX_SPAWNS (32)>).
    sm_laser_spawn_ang    // Displays a menu to adjust the Laser Box angles your crosshair is over.
    sm_laser_spawn_pos    // Displays a menu to adjust the Laser Box origin your crosshair is over. 

    CVars:

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

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

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

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

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

    // Laser Box Spawner plugin version.
    l4d2_laser_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 Laser Box 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_laser_spawn.sp - 775 views - 31.7 KB)
    __________________

    Last edited by Silvers; 12-10-2022 at 19:08.
    Silvers is offline
    gilmon
    Senior Member
    Join Date: Feb 2011
    Location: China
    Old 08-09-2013 , 00:15   Re: [L4D2] Laser Box Spawner (09-Aug-2013)
    Reply With Quote #2

    add spawn the deployed special ammo box,is that possible?
    gilmon is offline
    Send a message via MSN to gilmon
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-11-2013 , 05:06   Re: [L4D2] Laser Box Spawner (1.1) [09-Aug-2013]
    Reply With Quote #3

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

    Thanks to Chatyak for reporting.
    __________________
    Silvers is offline
    Frontire
    New Member
    Join Date: Feb 2015
    Old 02-20-2015 , 15:34   Re: [L4D2] Laser Box Spawner (1.1) [11-Aug-2013]
    Reply With Quote #4

    because the plugin asks me dedicated server there any way to use the plugin without creating a dedicated server?

    -it is with your other plugins

    -sorry my bad English

    Last edited by Frontire; 02-20-2015 at 15:36.
    Frontire is offline
    mathilde
    Member
    Join Date: Jan 2020
    Location: samedi et dimanche
    Old 03-13-2020 , 05:22   Re: [L4D2] Laser Box Spawner (1.2) [05-May-2018]
    Reply With Quote #5

    If l4d2_laser_spawn_random "5",

    will map spawn 5 laser boxes in different areas of the map?
    mathilde is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 03-13-2020 , 11:18   Re: [L4D2] Laser Box Spawner (1.2) [05-May-2018]
    Reply With Quote #6

    Quote:
    Originally Posted by mathilde View Post
    If l4d2_laser_spawn_random "5",

    will map spawn 5 laser boxes in different areas of the map?
    Yeah if you have 5 saved to the map. My spawner plugins don't auto place objects anywhere.
    __________________
    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:31.


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