AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   FlashProtect (https://forums.alliedmods.net/showthread.php?t=94134)

bl4nk 06-06-2009 20:39

FlashProtect
 
6 Attachment(s)
FlashProtect
Damage players who flash their own team.

ConVars:
sm_flashprotect_enable 1 - Enable/Disable the plugin.
sm_flashprotect_damage 3 - Damage to do per second of flashed.
sm_flashprotect_duration 1.5 - Maximum duration that a flash can last for before it's punishable.
sm_flashprotect_message 1 - Enable/Disable messaging teammates when flashed.
sm_flashprotect_minhealth 20 - Minimum health a player will be punished to (setting the cvar to 0 disables this feature).

Installation:
Download the plugin and place it in your ~/cstrike/addons/sourcemod/plugins/ folder.
Download the translation file and place it in your ~/cstrike/addons/sourcemod/translations/ folder.
Manually load the plugin, change the map, or restart the server for the plugin to be loaded.
Configure the cvars listed above in an executed config file (server.cfg is fine) to customize the plugin to your liking.

Notes:
Thanks to *XYZ*SaYnt for his original TFlash ES plugin.

Changelog:
  • 1.0.0
    • Initial release.
  • 1.1.0
    • Fixed bug where spectators were counted as being flashed.
    • Added sm_flashprotect_message cvar to control whether or not teammates receive a message when someone flashes their team.
  • 1.2.0
    • Changed damage to slap damage so a player will notice it.
    • Fixed the "{i}" showing up in the team messages.
  • 1.3.0
    • Added sm_flashprotect_minhealth cvar.

shustas 06-07-2009 11:33

Re: FlashProtect
 
You missed the description of this plugin. Whats does it do?

bl4nk 06-07-2009 11:50

Re: FlashProtect
 
Added a short description to the main post. I added one to the post information at the top, but it appears it's not working again on the forums.

shustas 06-07-2009 13:32

Re: FlashProtect
 
Can you add notification to team that player flashed that and that?
And how does it calculated like if I flash 1 teamplayer or how many needed, or how?

bl4nk 06-07-2009 14:20

Re: FlashProtect
 
Quote:

Originally Posted by shustas (Post 843776)
Can you add notification to team that player flashed that and that?

Sure, I'll do that later today.

Quote:

Originally Posted by shustas (Post 843776)
And how does it calculated like if I flash 1 teamplayer or how many needed, or how?

Every time a player completely flashes a teammate, it will take the damage cvar and multiply that times the time they were flashed for (if it's greater than the duration cvar). So if a player flashes 3 players, he can be damaged up to 3 times at once.

shustas 06-07-2009 17:20

Re: FlashProtect
 
ok sounds nice, notification would be really helpfull

Molli 06-11-2009 07:38

Re: FlashProtect
 
Its was 1 vs 2.
Another ct throws flash and this happend:

slayed.

[SM] You flashed PuLlÁpOí|<a for 3.66 seconds.
[SM] You flashed ★ Molli for 3.65 seconds.
[SM] You flashed +pallo for 3.66 seconds.
[SM] You flashed Rasta ﭏ١١٢ for 3.66 seconds.
[SM] You flashed Sokee Ninja for 3.65 seconds.
[SM] You flashed Kakkis for 3.66 seconds.

all spec counted too?

shustas 06-11-2009 12:15

Re: FlashProtect
 
:) when you spec somebody you get flashed as well with your spec player. Ye he needs to filter those out

bl4nk 06-11-2009 19:41

Re: FlashProtect
 
Updated to Version 1.1.0

Molli 06-12-2009 02:09

Re: FlashProtect
 
Testing.


All times are GMT -4. The time now is 03:47.

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