Raised This Month: $66 Target: $400
 16% 

Blinded (by flashbangs) - Updated 1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   sawce (9)
Texnux
Member
Join Date: Mar 2008
Location: Denmark
Old 10-30-2008 , 13: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 - 2075 views - 4.0 KB)
File Type: txt Blinded.txt (671 Bytes, 695 views)

Last edited by Texnux; 11-07-2008 at 13:29.
Texnux is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 10-30-2008 , 14:37   Re: Blinded (by flashbangs)
Reply With Quote #2

Well... much peoples hate it when they are blinded...

So i dont see the use of this plugin... Sorry...

This is your second plugin today
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Texnux
Member
Join Date: Mar 2008
Location: Denmark
Old 10-30-2008 , 14:45   Re: Blinded (by flashbangs)
Reply With Quote #3

Quote:
Originally Posted by crazyeffect View Post
Well... much peoples hate it when they are blinded...

So i dont see the use of this plugin... Sorry...

This is your second plugin today
Yeah I know how people hates it, but that is why that by default it takes 3 flash grenades to make you completly blind so you have some sort of warning before and you are only blinded until you die or round end.

Ahh well someone might use the plugin, I know I will (sometimes).

Yeah, am I too productive? Joke , really should start on my bigger projects instead of small plugins, but I just get sooo many ideas... But I think the next release will be my HackMod, though a simple version of it, that is.

- Texnux
Texnux is offline
Old 11-01-2008, 15:46
v3x
This message has been deleted by sawce the snail. Reason: irrelevant
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 11-01-2008 , 15:48   Re: Blinded (by flashbangs)
Reply With Quote #4

Quote:
Originally Posted by v3x View Post
If you borrow code, please credit the original author.

*hint hint*
__________________

anakin_cstrike is offline
Texnux
Member
Join Date: Mar 2008
Location: Denmark
Old 11-01-2008 , 17:00   Re: Blinded (by flashbangs)
Reply With Quote #5

Quote:
Originally Posted by v3x View Post
If you borrow code, please credit the original author.

*hint hint*
Okay, tell me, who did I "borrow" this from?

This code were used in one of my own plugins: Nightwar

I DID credit the person THERE, but since I know how to do it now without looking at someone else code, I can't see who I should credit?

- Texnux
Texnux is offline
Old 11-02-2008, 20:30
v3x
This message has been deleted by sawce the snail. Reason: irrelevant
Old 11-02-2008, 21:02
Arkshine
This message has been deleted by Arkshine. Reason: double-post... -_-
Huckleberry
Member
Join Date: Nov 2008
Old 11-02-2008 , 22:06   Re: Blinded (by flashbangs)
Reply With Quote #6

NICE! I'm going to steal this and use it in my new mod I'm making too Sorry but I think this is really great idea!
EDIT:
You get +karma now
Huckleberry is offline
Texnux
Member
Join Date: Mar 2008
Location: Denmark
Old 11-03-2008 , 15:25   Re: Blinded (by flashbangs)
Reply With Quote #7

Updated to version 1.1, check changelog.

Quote:
Originally Posted by v3x View Post
Some of the code matches code in my Colored Flashbangs plugin. Please give me credit, that is all.

If you fail to comply, this plugin will be moved to the Unapproved forum.

Thanks
Which code matches? The call of the event? The screenfade message?

Those two things are EVERYTHING that is in common, and those two things can't be changed but the values inside.

Quote:
Originally Posted by Huckleberry View Post
NICE! I'm going to steal this and use it in my new mod I'm making too Sorry but I think this is really great idea!
EDIT:
You get +karma now
It's okay as long as credit is given and thanks, this is a really fun and usefull addition to the flashbangs .

- Texnux

Last edited by Texnux; 11-04-2008 at 11:53.
Texnux is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-03-2008 , 15:51   Re: Blinded (by flashbangs)
Reply With Quote #8

@v3x : I can't believe that my post was removed again. I did not say nothing wrong, just the truth. 2 times you abuse, it starts to be annoying.

Again : What is the code which matches, please ? I would like to know too. If you are talking about the Screenfade event/message, that's not something you have created and you can find several plugins using the same code. So, I don't think credit for you is needed, but for jim_yang ( parse method ) it should be. it's just my opinion. ( <== Just because this message, my message will be deleted ? Is it a joke ? )


@Texnux : As suggestion, you should use register_message() to alter original values instead of overwriting with another message. It's a better way to do that.
__________________

Last edited by Arkshine; 11-03-2008 at 16:09.
Arkshine is offline
Texnux
Member
Join Date: Mar 2008
Location: Denmark
Old 11-03-2008 , 16:26   Re: Blinded (by flashbangs)
Reply With Quote #9

I've used that parse method for a long time.

Quote:
Originally Posted by arkshine View Post
@Texnux : As suggestion, you should use register_message() to alter original values instead of overwriting with another message. It's a better way to do that.
Tried that but whenever I tried to receive the id (the clients not the msgid) the server crashed or froze. Might have done something wrong...

Last edited by v3x; 11-03-2008 at 19:44. Reason: removed off-topic material written by arkshine
Texnux is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-03-2008 , 16:30   Re: Blinded (by flashbangs)
Reply With Quote #10

Show what you have done and I will try to help you.
__________________
Arkshine is offline
Reply


Thread Tools
Display Modes

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 01:41.


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