AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Flashbang Dynamic Light (https://forums.alliedmods.net/showthread.php?t=46258)

XxAvalanchexX 10-22-2006 12:18

Flashbang Dynamic Light
 
3 Attachment(s)
Flashbang Dynamic Light 0.20
This plugin, requested by NemesisDelta, adds a touch of realism to flashbangs, having them give off a dynamic light upon explosion.

EXAMPLE VIDEO
Note that for the purpose of showcasing the dynamic light effect, the ScreenFade message was blocked in the video. However, in actual use, you will still get blinded by a flashbang just as always; the light is meant more to be seen around corners and such.

CVars
fbl_enabled (default 1) - whether or not plugin is enabled
fbl_radius (default 50) - radius of the dynamic light effect
fbl_color (default 255 255 255) - color of the light, in format "R G B"
fbl_noblind (default 0) - if enabled, removes the regular flashbang blinding effect
fbl_refresh (default 0.0) - gives every player a flashbang every this many seconds, 0.0 disables

Modules Required
Fakemeta
Cstrike
Fun

Arkshine 10-22-2006 12:42

Re: Flashbang Dynamic Light
 
Nice :)

SweatyBanana 10-22-2006 13:00

Re: Flashbang Dynamic Light
 
Wheres the sma?

XxAvalanchexX 10-22-2006 13:32

Re: Flashbang Dynamic Light
 
Whoops... there we go.

k007 10-22-2006 14:34

Re: Flashbang Dynamic Light
 
very nice

SweatyBanana 10-22-2006 14:41

Re: Flashbang Dynamic Light
 
Cool...But did you know you have a space before every single line in your plugin?

k007 10-22-2006 14:43

Re: Flashbang Dynamic Light
 
ava i see that you hooked it to FW EmitSound..how come you didn't use "ScreenFade" event? isn't that alot easier?

XxAvalanchexX 10-22-2006 16:05

Re: Flashbang Dynamic Light
 
Quote:

Originally Posted by SweatyBanana (Post 393954)
Cool...But did you know you have a space before every single line in your plugin?

Yes.

Quote:

Originally Posted by k007 (Post 393957)
ava i see that you hooked it to FW EmitSound..how come you didn't use "ScreenFade" event? isn't that alot easier?

Because a flashbang should still emit light even if no one was blinded by it.

organizedKaoS 10-22-2006 20:04

Re: Flashbang Dynamic Light
 
Nice job....tested it.

Works for the most part except for one thing.

If your behind a box and the flash nade goes off on the other side of the box, the light penetrates the box on your side as if its not there.
Doesnt hurt you much but still would be nice if it "could" obey object restrictions.

Just a thought.

XxAvalanchexX 10-22-2006 20:06

Re: Flashbang Dynamic Light
 
The dynamic light probably ignores entities (ie: doors, certain boxes, etcetera), like non-dynamic lights. It's done in either the engine or the client, something I can't modify.


All times are GMT -4. The time now is 16:58.

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