AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Infected Glow (1.13) [11-Dec-2023] (https://forums.alliedmods.net/showthread.php?t=187933)

Silvers 06-19-2012 23:08

[L4D & L4D2] Infected Glow (1.13) [11-Dec-2023]
 
10 Attachment(s)
Related Plugins:

About:
  • Creates a dynamic light on Common Infected, Special Infected and Witch when they are on fire.
  • The light flickers and fades in.
  • Maximum of 8 lights simultaneously. Recompile changing "define MAX_LIGHTS" value if you want more.


Thanks:

Cvars:

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

PHP Code:

// 0=Plugin off, 1=Plugin on.
l4d_infected_glow_allow "1"

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

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

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

// 0=Glow disappears on death (even if ragdoll is burning). 1=Glow remains in last position until flames would likely disappear.
l4d_infected_glow_death "0"

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

// 1=Common, 2=Witch, 4=Smoker, 8=Boomer, 16=Hunter, 32=Spitter, 64=Jockey, 128=Charger, 256=Tank, 511=All.
l4d_infected_glow_infected "511"

// The light color. Three values between 0-255 separated by spaces. RGB Color255 - Red Green Blue.
l4d_infected_glow_color "255 50 0"

// Infected Glow plugin version.
l4d_infected_glow_version 


Changes:
Code:

1.13 (11-Dec-2023)
    - Added cvar "l4d_infected_glow_death" to decide if the glow disappears on death or remains in last position.

1.12 (11-Dec-2022)
    - Changes to fix compile warnings on SourceMod 1.11.

1.11 (05-Jun-2022)
    - Fixed glow duration not following the burn duration. Thanks to "gongo" for reporting.

1.10 (10-Apr-2022)
    - Changed the method for fading lights in and out hopefully preventing random server crash.

1.9 (03-Aug-2020)
    - Added light fading out instead of abruptly disappearing.
    - Added smoother fading of the light, thanks to "Lux" for original coding from "Fire Glow" plugin.

1.8 (10-May-2020)
    - Extra checks to prevent "IsAllowedGameMode" throwing errors.
    - Fixed cvar "l4d_infected_glow_infected" not working for the Tank in L4D1.

1.7 (01-Apr-2020)
    - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.

1.6 (03-Feb-2020)
    - Fixed errors "Invalid edict" by adding "IsValidEdict" - Thanks to "TiTz" for reporting.

1.5 (05-May-2018)
    - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.

1.4 (30-Jun-2012)
    - Fixed the plugin not working in L4D1.

1.3 (22-Jun-2012)
    - Fixed water not removing the glow - Thanks to "id5473" for reporting.

1.2 (20-Jun-2012)
    - Added some checks to prevent errors being logged - Thanks to "doritos250" for reporting.

1.1 (20-Jun-2012)
    - Fixed not removing the light from Special Infected ignited by incendiary ammo.

1.0 (20-Jun-2012)
    - Initial release.


Updating from 1.12 or older:
  • Cvars have changed: use the Cvar Configs Updater, or delete the old cvars config or manually add them.

Installation:
  1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.

pyrO 10 06-20-2012 03:10

Re: [L4D & L4D2] Infected Glow (1.0) [20-Jun-2012]
 
Does not work on Left2 card c5m1

SyluxLockjaw100 06-20-2012 03:20

Re: [L4D & L4D2] Infected Glow (1.0) [20-Jun-2012]
 
Is it just me or the glow will never wear off when the infected got burned from incendiary ammo?

Silvers 06-20-2012 03:23

Re: [L4D & L4D2] Infected Glow (1.0) [20-Jun-2012]
 
Quote:

Originally Posted by pyrO 10 (Post 1732214)
Does not work on Left2 card c5m1

Very helpful thanks... What the .... are you talking about? Go away.

Quote:

Originally Posted by SyluxLockjaw100 (Post 1732217)
Is it just me or the glow will never wear off when the infected got burned from incendiary ammo?

Yeah I forgot about incendiary, will block incendiary creating the light.

pyrO 10 06-20-2012 03:30

Re: [L4D & L4D2] Infected Glow (1.0) [20-Jun-2012]
 
sorry not work, and I can not help you no error log

Silvers 06-20-2012 03:34

Re: [L4D & L4D2] Infected Glow (1.0) [20-Jun-2012]
 
Quote:

Originally Posted by pyrO 10 (Post 1732221)
sorry not work, and I can not help you no error log

Great. People like you might as well not post because what you said is useless. It works for me, so there. Have fun.

Edit: I bet you don't even know what this plugin does. Go figure.

doritos250 06-21-2012 04:20

Re: [L4D & L4D2] Infected Glow (1.1) [20-Jun-2012]
 
i got much error with it

http://pastebin.com/bM5xDDuj

id5473 06-21-2012 12:04

Re: [L4D & L4D2] Infected Glow (1.1) [20-Jun-2012]
 
another nice plugin. Thanks Silvers.

At present there isn't a way to to lengthen the the glow effect/make it fade away slower is there? Because the glow always fades to early when the flames are still going on.

id

Silvers 06-21-2012 12:31

Re: [L4D & L4D2] Infected Glow (1.1) [20-Jun-2012]
 
Quote:

Originally Posted by doritos250 (Post 1733031)
i got much error with it

http://pastebin.com/bM5xDDuj


Forget to put the include file solved

Fixed in the latest version.


Quote:

Originally Posted by id5473 (Post 1733229)
another nice plugin. Thanks Silvers.

At present there isn't a way to to lengthen the the glow effect/make if fade away slower is there? Because the glow always fades to early when the flames are still going on.

id

Without some extra long methods, it's not possible to have the light fade out.

id5473 06-22-2012 15:18

Re: [L4D & L4D2] Infected Glow (1.2) [21-Jun-2012]
 
yo silvers.. another thing I've noticed: if special infected (tank for example) walks through water.. the fire is extinguished but the glow continues.


All times are GMT -4. The time now is 17:57.

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