Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Explosive Flash (1.1) [22-Nov-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
8586
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Creates a dynamic light flash on various explosions
    Old 11-07-2023 , 11:16   [L4D & L4D2] Explosive Flash (1.1) [22-Nov-2023]
    Reply With Quote #1

    About:
    • Creates a flash of light when various explosives detonate.
    • Customize the color and brightness of the flashes.
    • Customize which explosives can create a flash.


    Thanks:
    • Iizuka07 - For the request.


    Cvars:

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

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

    // The flash color for Explosive Barrels explosions. Three values between 0-255 separated by spaces. RGB Color255 - Red Green Blue.
    l4d_explosive_flash_color_barrel "255 35 0"

    // The flash color for Grenade Launcher explosions. Three values between 0-255 separated by spaces. RGB Color255 - Red Green Blue.
    l4d_explosive_flash_color_grenade "255 50 0"

    // The flash color Oxygen Tank explosions. Three values between 0-255 separated by spaces. RGB Color255 - Red Green Blue.
    l4d_explosive_flash_color_oxygen "255 50 0"

    // The flash color Pipe Bomb explosions. Three values between 0-255 separated by spaces. RGB Color255 - Red Green Blue.
    l4d_explosive_flash_color_pipe "255 50 0"

    // The flash color Propane Tank explosions. Three values between 0-255 separated by spaces. RGB Color255 - Red Green Blue.
    l4d_explosive_flash_color_propane "255 50 0"

    // How far does the Explosive Barrels flash illuminate the area.
    l4d_explosive_flash_dist_barrel "500.0"

    // How far does the Grenade Launcher flash illuminate the area.
    l4d_explosive_flash_dist_grenade "500.0"

    // How far does the Oxygen Tank flash illuminate the area.
    l4d_explosive_flash_dist_oxygen "500.0"

    // How far does the Pipe Bomb flash illuminate the area.
    l4d_explosive_flash_dist_pipe "500.0"

    // How far does the Propane Tank flash illuminate the area.
    l4d_explosive_flash_dist_propane "500.0"

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

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

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

    // Duration of the flash for all types.
    l4d_explosive_flash_speed "0.4"

    // Which types to allow: 1=Explosive Barrel. 2=Propane Tank. 4=Oxygen Tank. 8=PipeBomb. 16=Grenade Launcher (L4D2) 31=All.
    l4d_explosive_flash_types "31"

    // Explosive Flash plugin version
    l4d_explosive_flash_version 


    Changes:
    Code:
    1.1 (22-Nov-2023)
        - Fixed property not found errors. Thanks to "Iizuka07" for reporting.
        - Removed some unused code.
    
    1.0 (07-Nov-2023)
        - Initial release.


    Requirements:
    1. Left 4 DHooks Direct plugin version 1.139 or newer.



    Installation:
    DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires Left 4 DHooks Direct!
    1. Download the .smx file and put into your servers \addons\sourcemod\plugins folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_explosive_flash.sp - 200 views - 14.4 KB)
    File Type: smx l4d_explosive_flash.smx (10.3 KB, 223 views)
    __________________

    Last edited by Silvers; 11-22-2023 at 16:48.
    Silvers is offline
    JustMadMan
    Member
    Join Date: Feb 2023
    Old 11-08-2023 , 04:33   Re: [L4D & L4D2] Explosive Flash (1.0) [07-Nov-2023]
    Reply With Quote #2

    Nice plugin.Can I do random explosive flash color?
    JustMadMan is offline
    Iizuka07
    Senior Member
    Join Date: Aug 2018
    Location: Underground
    Old 11-08-2023 , 07:11   Re: [L4D & L4D2] Explosive Flash (1.0) [07-Nov-2023]
    Reply With Quote #3

    Hey hey !! I haven't seen this posted, thanks man
    __________________
    死が待っている
    Iizuka07 is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 11-29-2023 , 09:04   Re: [L4D & L4D2] Explosive Flash (1.1) [22-Nov-2023]
    Reply With Quote #4

    Beautiful
    __________________
    HarryPotter 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 16:11.


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