Raised This Month: $52 Target: $400
 13% 

[L4D2] Spitter Acid Glow (1.1) [26-Feb-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
7509
Plugin Version:
1.1
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    53 
    Plugin Description:
    Creates a dynamic light where Spitter Acid goo appears
    Old 02-23-2021 , 04:26   [L4D2] Spitter Acid Glow (1.1) [26-Feb-2021]
    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.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 - 253 views - 10.5 KB)
    __________________

    Last edited by Silvers; 02-26-2021 at 01:14.
    Silvers is offline
    swiftswing1
    Junior 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
    AlliedModders Donor
    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: Xen
    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<---
    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 online now
    Iizuka07
    Member
    Join Date: Aug 2018
    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
    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 18:42.


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