View Single Post
Plugin Info:     Modification:          Category:          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 - 5197 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