Raised This Month: $32 Target: $400
 8% 

Blinding Flashlight v0.2.3SL


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Hawk552 (427)
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 07-02-2007 , 05:12   Blinding Flashlight v0.2.3SL
Reply With Quote #1

Info (RUS):
Use your flashlight to blind your enemies!

Requirements:
* CS/CZ (might work with another mod which supports a flashlight)
* AMX/X 1.7x or higher
* Fakemeta module

New cvars:
* bf_mindistance <num> (default=500)
min. distance with constant flashlight impact level defined by
'bf_maxflashtime' & 'bf_maxblend' cvars
* bf_maxdistance <num> (default=1500)
max. distance when flashlight impact level exhausts (actually it's
smaller a bit due to math calculations; dependence is linear)
* bf_maxblindtime <float> (default=1.5)
blind time (actually it's holdtime param of ScreenFade event
which does not include fade in/out effect time) at minimal
distance to victim
* bf_maxblend <num> (default=255)
max. blend level (transparency) at 'bf_mindistance' distance
& closer
* bf_minblend <num> (default=128 )
min. blend level (transparency) at 'bf_maxdistance' distance
* bf_hitplace <flags> (default=b)
set hitplace to trigger blind effect:
a - generic (actually nothing)
b - head
c - chest
d - stomach
e - leftarm
f - rightarm
g - leftleg
h - rightleg
* bf_fxfactor <float> (defaul=4.0)
multiplier to calculate duration of blind fx (fade in/out)

Notes:
* all cvars are read/applied on map start & each time flashlight
is triggered by any player
* i recommend you to set 'bf_mindistance' cvar to 200 for better
gameplay; right now this value is based on real in-game experiments
with flashlight power
* i recommend you to use CustomFlashlight plugin by XxAvalanchexX or Custom Flashlight by connorr
to adjust (speed-up) flashlight battery consumption because
default gamplay rules aren't balanced with this plugin

Credits:
* VEN for plugin base & letting me post my branch of his plugin

Changelog:

v0.2.3SL [2007-06-28]
+ added cvars 'bf_hitplace', 'bf_fxfactor'
* adjusted default cvar values
v0.2.2SL [2007-06-27]
* changed light impact formula to make it more user-friendly
* changed default light impact level; previous one was too high
+ added bunch of cvars: 'bf_maxdistance', 'bf_maxflashtime',
'bf_maxblindtime','bf_maxblend', 'bf_minblend'
+ show a notification text on successful blind event at victim & attacker
HUD center
v0.2.1SL [2007-06-26]
+ potential support of any mod
! reset g_flash_until array on round restart; this could lead to
no-blind issue
! fixed holdtime to seconds formula; previous formula results in too long
periods of flashing; this could lead to no-blind issue
! now you can't blind a victim when he doesn't look at attacker
v0.2.0 [2006-08-06]
* original version by VEN
Attached Files
File Type: sma Get Plugin or Get Source (blinding_flashlight.sma - 5191 views - 10.7 KB)
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm

Last edited by Simon Logic; 07-31-2008 at 05:18.
Simon Logic is offline
Send a message via Skype™ to Simon Logic
godlike
Senior Member
Join Date: Apr 2005
Old 07-02-2007 , 08:18   Re: Blinding Flashlight v0.2.3SL
Reply With Quote #2

gimme gimme gimme screenshot
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me
godlike is offline
diamond-optic
Veteran Member
Join Date: May 2005
Location: Upstate New York
Old 07-02-2007 , 08:56   Re: Blinding Flashlight v0.2.3SL
Reply With Quote #3

since this is labeled as "all"

i'd just like to point out dod doesnt have the Flashlight event, so im not sure if this would work in it.. i'll give it a try tho, but without that message to hook, not sure how else you could determine if a player is using a flashlight in dod :-\
__________________
diamond-optic is offline
Send a message via AIM to diamond-optic
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 07-02-2007 , 09:47   Re: Blinding Flashlight v0.2.3SL
Reply With Quote #4

Quote:
Originally Posted by godlike View Post
gimme gimme gimme screenshot
Take a white sheet. Write in the middle of it 'You're blinded for X sec'. Put white sheet in front of your monitor. That's it.

Actually this is a gamplay plugin which does not use special/new vfx, you should try it in-game. Screenshot is not required, IMHO.

@diamond-optic
I tested it on CS only. But there is no code which restricts this plugin from loading under other mods. So, if plugin works on at least two mods it can be labeled as "All". I'll try to test it under HLDM on demand. I don't have other mods.
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm

Last edited by Simon Logic; 07-02-2007 at 09:50.
Simon Logic is offline
Send a message via Skype™ to Simon Logic
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 07-05-2007 , 09:40   Re: Blinding Flashlight v0.2.3SL
Reply With Quote #5

Sounds good, I hope this works in TS (The Specialists).. I just hope people wouldn't abuse it too much. Either way, +karma for you.
__________________
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
Silver Dragon
Veteran Member
Join Date: Jan 2005
Location: Chicago, Illinois
Old 07-05-2007 , 11:16   Re: Blinding Flashlight v0.2.3SL
Reply With Quote #6

This is actually pretty cool..
__________________

Silver Dragon is offline
Send a message via AIM to Silver Dragon Send a message via MSN to Silver Dragon Send a message via Yahoo to Silver Dragon
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 07-05-2007 , 17:13   Re: Blinding Flashlight v0.2.3SL
Reply With Quote #7

Sounds original and somewhat fun. But, it might get annoying with a good amount of people on a server. Will probably test tonight. Good job.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 07-05-2007 , 18:25   Re: Blinding Flashlight v0.2.3SL
Reply With Quote #8

Waiting for confirmation that this works.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 07-06-2007 , 09:59   Re: Blinding Flashlight v0.2.3SL
Reply With Quote #9

I'll test this on my The Specialists Server, I hope it works for that mod as well.

EDIT:
Doesn't work on my The Specialists v3.0 server, even though the plugin is running just fine.
__________________

Last edited by Skyrider; 07-06-2007 at 10:04.
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
neogeo
Senior Member
Join Date: Jul 2005
Old 07-06-2007 , 10:26   Re: Blinding Flashlight v0.2.3SL
Reply With Quote #10

work on my server cs1.6
neogeo is offline
Reply



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 16:15.


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