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