View Single Post
Plugin Info:     Modification:          Category:          Approver:   sawce (9)
Texnux
Member
Join Date: Mar 2008
Location: Denmark
Old 10-30-2008 , 12:38   Blinded (by flashbangs) - Updated 1.2
Reply With Quote #1

Blinded - By Texnux, version 1.2, updated 04-11-2008

Description
With this plugin each flashbang damages the victim(s) vision and can make them completly blind until death or round end.

Cvars
Blind_color 000000000 - The color of the hud (which is what the players can see when they become more blind. rrrgggbbb, must be between 0 and 255.
Blind_max 255 - The max amount a player can get blind to, 0 = perfect sight, 255 = completly blind.
Blind_times 3 - How many times a player need to be flashed to be completly blinded.
Blind_messages 0 - 1, tells the condition of your vision when it changes. 0, does not show any messages at all. More realistic.
Blind_flash 1 - 1 means that the flash is the same color as the blind color.

To turn the plugin off set blind_max to zero.

Module
Hamsandwich - for all possible death situations

Credits
Arkshine - Explanation of register_message and some optimization I didn't thoug about or didn't use.
Connorr - Explanation of register_message and why/when its called.

NOTE: ML file is added now!

Changelog
Code:
Version 1.0:
- Initial release

Version 1.1:
- Colors are called 50% less
- New cvar: blind_flash

Version 1.2:
- Register_message instead of register_event
- ML support: English, danish atm
- Fixed one small bug
- Optimized the codes
- Made it more read able
- New parse color system
- Removed cvar: blind_mode
- Texnux
Attached Files
File Type: sma Get Plugin or Get Source (Blinded.sma - 2517 views - 4.0 KB)
File Type: txt Blinded.txt (671 Bytes, 857 views)

Last edited by Texnux; 11-07-2008 at 12:29.
Texnux is offline