Raised This Month: $ Target: $400
 0% 

Blinding flashlight


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 06-29-2007 , 07:02   Re: Blinding flashlight
Reply With Quote #37

Why not to try by yourself? I think bots should support this plugin because it sends on them ScreenFade message.

It will be really awesome soon :

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 plugin XXX by Avalanche
to adjust (speed-up) flashlight battery consumption because
default gamplay rules aren't balanced with this plugin

Credits:
* VEN for plugin base

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'
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
* original version by VEN


Just finishing tests.
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm
Simon Logic is offline
Send a message via Skype™ to Simon Logic
 



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 23:07.


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