Damage Glow v1.4
1 Attachment(s)
Description:
With this plugin you can know who is getting attacked. The victim will get a glow depending the damage (progressively green to red color) Cvars: dg_enable_glow (0|1) Default 1 :) dg_glow_type (1 - Glow color based on health 2- Glow color based on team ) Default 1 Modules: Fakemeta Hamsandwich Changelog: v1.4: Added glow modes 1 - Glow color based on health 2- Glow color based on team v1.3: Added glow color with user health v1.2: Fix some code tips, thanks Connor ;) v1.1: Simplified Code v1.0: First Release Credits: arkshine: Code for get progressively green to red color depending the damage. ConnorMcLeod: tips, tips and more tips :mrgreen: enjoy it!, Simply plugin, just for fun Servers with this plugin [Here] |
Re: Damage Glow v1.0
Lol :D
Cool, :D |
Re: Damage Glow v1.0
Was pretty sure this plugin was already existing.
1st task is not needed, you glow glow the player when he get damaged. |
Re: Damage Glow v1.1
Updated, thanks Connor
i have searched for this and i can't find anything |
Re: Damage Glow v1.1
Another suggestion, fm_set_rendering was created to convert easily set_rendering.
I would use a "new" function using directly floats : PHP Code:
PHP Code:
PHP Code:
Last, you can do directly : switch(get_user_team(id)), so it would look like : PHP Code:
-edit- Found the old amx plugin, haven't look the code, may gives you ideas, may not :P PHP Code:
|
Re: Damage Glow v1.1
well damage glow would be better to have it this way.
100 - 85% no glow, 85 - 60% green glow, 60 - 33% orange glow 33 - 1% red glow no matter what team he is. |
Re: Damage Glow v1.2
v1.2 updated, thanks connor again
|
Re: Damage Glow v1.2
new Float:CTRenderColor[3]={0.0,0.0,200.0}
-> new const Float:CTRenderColor[3]={0.0,0.0,200.0} |
Re: Damage Glow v1.2
with new const Float
Error: Argument type mismatch (argument 3) on line 50 Error: Argument type mismatch (argument 3) on line 51 :) |
Re: Damage Glow v1.2
Yeah i see, you would have to declare the array as const in the stock, so let it like it is now is just fine :mrgreen:
|
All times are GMT -4. The time now is 20:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.