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

[L4D2] Spitter Acid Glow (1.3) [20-Jan-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
7509
Plugin Version:
1.3
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    49 
    Plugin Description:
    Creates a dynamic light where Spitter Acid goo appears
    Old 02-23-2021 , 04:26   [L4D2] Spitter Acid Glow (1.3) [20-Jan-2024]
    Reply With Quote #1

    Related Plugins:

    About:
    • Creates a dynamic light where Spitter Acid goo appears.
    • The light flickers and fades in and out.
    • Maximum of 8 lights simultaneously. Recompile changing "define MAX_LIGHTS" value if you want more.


    Thanks:
    • Iizuka07 - For the idea and request.
    • Lux - Updating with smooth transitions.


    Cvars:

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

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

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

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

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

    // How far does the dynamic light illuminate the area.
    l4d2_spit_glow_distance "250.0"

    // The light color for Spitter Acid explosions. Three values between 0-255 separated by spaces. RGB Color255 - Red Green Blue.
    l4d2_spit_glow_color "0 255 0"

    // Spitter Acid Glow plugin version.
    l4d2_spit_glow_version 

    Changes:
    Code:
    1.3 (20-Jan-2024)
        - Fixed the light fadeout not working. Thanks to "S.A.S" for reporting.
    
    1.2 (10-Apr-2022)
        - Changed the method for fading lights in and out hopefully preventing random server crash.
    
    1.1 (26-Feb-2021)
        - Fixed and renamed cvar "l4d2_spit_glow_spit" to "l4d2_spit_glow_color". Thanks to "swiftswing1" for reporting.
    
    1.0 (23-Feb-2021)
        - 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 (l4d2_spit_glow.sp - 191 views - 12.5 KB)
    __________________

    Last edited by Silvers; 01-20-2024 at 10:47.
    Silvers is offline
    swiftswing1
    Member
    Join Date: Oct 2020
    Old 02-25-2021 , 18:46   Re: [L4D2] Spitter Acid Glow (1.0) [23-Feb-2021]
    Reply With Quote #2

    nice plugin as always! extra space after "spit" (line 118) prevents cvar from working:

    Code:
    g_hCvarColor =			CreateConVar(	"l4d2_spit_glow_spit ",			"0 255 0",		"The light color for Spitter Acid explosions. Three values between 0-255 separated by spaces. RGB Color255 - Red Green Blue.", CVAR_FLAGS );
    swiftswing1 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 02-26-2021 , 02:13   Re: [L4D2] Spitter Acid Glow (1.0) [23-Feb-2021]
    Reply With Quote #3

    Quote:
    Originally Posted by swiftswing1 View Post
    nice plugin as always! extra space after "spit" (line 11 prevents cvar from working
    Nice catch, thank you! Changed cvar name too, so I suggest deleting the cvar config and letting it re-create.
    __________________
    Silvers is offline
    Tank Rush
    Senior Member
    Join Date: May 2019
    Location: Argentina
    Old 03-08-2021 , 21:11   Re: [L4D2] Spitter Acid Glow (1.1) [26-Feb-2021]
    Reply With Quote #4

    Is it possible to change the color of the acid? because if you change the color of the glow, for example "255,0,0" (red) does not match the color of the acid.
    __________________
    Sorry i don't speak english very well

    --->My name is Source and I'm on Steam<---
    Discord: Source#9382
    Tank Rush is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 03-08-2021 , 21:23   Re: [L4D2] Spitter Acid Glow (1.1) [26-Feb-2021]
    Reply With Quote #5

    The acid is a particle, so there is no way to change particle colours. (only with gamemaps/steam workshop addons)
    __________________

    Last edited by Marttt; 03-13-2021 at 07:43.
    Marttt is offline
    Iizuka07
    Senior Member
    Join Date: Aug 2018
    Location: Underground
    Old 03-13-2021 , 07:25   Re: [L4D2] Spitter Acid Glow (1.1) [26-Feb-2021]
    Reply With Quote #6

    I'm pretty late on the party !! Much thanks on this one.
    __________________
    死が待っている
    Iizuka07 is offline
    KadabraZz
    Senior Member
    Join Date: May 2020
    Old 09-27-2022 , 06:08   Re: [L4D2] Spitter Acid Glow (1.2) [10-Apr-2022]
    Reply With Quote #7

    Glow makes everything nicer
    KadabraZz is offline
    S.A.S
    Member
    Join Date: Jul 2023
    Old 01-17-2024 , 06:04   Re: [L4D2] Spitter Acid Glow (1.2) [10-Apr-2022]
    Reply With Quote #8

    Dynamic light fades 2 seconds earlier than Spitter Acid, can this be fixed?
    S.A.S is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 01-20-2024 , 10:48   Re: [L4D2] Spitter Acid Glow (1.3) [20-Jan-2024]
    Reply With Quote #9

    Code:
    1.3 (20-Jan-2024)
        - Fixed the light fadeout not working. Thanks to "S.A.S" for reporting.
    __________________
    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 07:12.


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