Raised This Month: $95 Target: $400
 23% 

Flashbang Dynamic Light


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Xanimos (85)
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-22-2006 , 13:18   Flashbang Dynamic Light
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (flashbang_dlight.sma - 11289 views - 2.8 KB)
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS

Last edited by XxAvalanchexX; 12-21-2008 at 18:28.
XxAvalanchexX is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-22-2006 , 13:42   Re: Flashbang Dynamic Light
Reply With Quote #2

Nice
Arkshine is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-22-2006 , 14:00   Re: Flashbang Dynamic Light
Reply With Quote #3

Wheres the sma?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-22-2006 , 14:32   Re: Flashbang Dynamic Light
Reply With Quote #4

Whoops... there we go.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Old 10-22-2006, 15:07
Spanky McNutnut
This message has been deleted by Spanky McNutnut.
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 10-22-2006 , 15:34   Re: Flashbang Dynamic Light
Reply With Quote #5

very nice
k007 is offline
Send a message via MSN to k007
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-22-2006 , 15:41   Re: Flashbang Dynamic Light
Reply With Quote #6

Cool...But did you know you have a space before every single line in your plugin?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 10-22-2006 , 15:43   Re: Flashbang Dynamic Light
Reply With Quote #7

ava i see that you hooked it to FW EmitSound..how come you didn't use "ScreenFade" event? isn't that alot easier?
k007 is offline
Send a message via MSN to k007
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-22-2006 , 17:05   Re: Flashbang Dynamic Light
Reply With Quote #8

Quote:
Originally Posted by SweatyBanana View Post
Cool...But did you know you have a space before every single line in your plugin?
Yes.

Quote:
Originally Posted by k007 View Post
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.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 10-22-2006 , 21:04   Re: Flashbang Dynamic Light
Reply With Quote #9

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.
organizedKaoS is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-22-2006 , 21:06   Re: Flashbang Dynamic Light
Reply With Quote #10

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.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 14:19.


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