AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Blinding Flashlight v0.2.3SL (https://forums.alliedmods.net/showthread.php?t=57305)

Simon Logic 07-02-2007 05:12

Blinding Flashlight v0.2.3SL
 
1 Attachment(s)
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

godlike 07-02-2007 08:18

Re: Blinding Flashlight v0.2.3SL
 
gimme gimme gimme screenshot

diamond-optic 07-02-2007 08:56

Re: Blinding Flashlight v0.2.3SL
 
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 :-\

Simon Logic 07-02-2007 09:47

Re: Blinding Flashlight v0.2.3SL
 
Quote:

Originally Posted by godlike (Post 497451)
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. :mrgreen:

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.

Skyrider 07-05-2007 09:40

Re: Blinding Flashlight v0.2.3SL
 
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.

Silver Dragon 07-05-2007 11:16

Re: Blinding Flashlight v0.2.3SL
 
This is actually pretty cool..

soccdoodcss 07-05-2007 17:13

Re: Blinding Flashlight v0.2.3SL
 
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. :)

Hawk552 07-05-2007 18:25

Re: Blinding Flashlight v0.2.3SL
 
Waiting for confirmation that this works.

Skyrider 07-06-2007 09:59

Re: Blinding Flashlight v0.2.3SL
 
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.

neogeo 07-06-2007 10:26

Re: Blinding Flashlight v0.2.3SL
 
work on my server cs1.6


All times are GMT -4. The time now is 23:05.

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