Raised This Month: $114 Target: $400
 28% 

[ESF] Show Damage v1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Earth's Special Forces        Category:   Statistical        Approver:   Arkshine (91)
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 08-23-2010 , 22:48   [ESF] Show Damage v1.1
Reply With Quote #1

[ESF] Show Damage v1.1


Simple description:
Shows the damage done to any player

Cvar:
esf_showdmg - Enable/Disable the plugin

Modules:
Fakemeta
Hamsandwich

Servers using this plugin

Video

Image:
Attached Thumbnails
Click image for larger version

Name:	showdmg.JPG
Views:	7912
Size:	47.6 KB
ID:	72237  
Attached Files
File Type: sma Get Plugin or Get Source (showdmg.sma - 4336 views - 999 Bytes)
__________________

Last edited by alan_el_more; 11-05-2010 at 11:38. Reason: Version 1.1 released
alan_el_more is offline
En[!][email protected]
Member
Join Date: Jan 2010
Location: Morocco
Old 08-24-2010 , 04:38   Re: [ESF] Show Damage v1.0
Reply With Quote #2

Thank you
En[!]m@ is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 08-27-2010 , 11:05   Re: [ESF] Show Damage v1.0
Reply With Quote #3

Video added
Click me!
__________________
alan_el_more is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 08-30-2010 , 07:07   Re: [ESF] Show Damage v1.0
Reply With Quote #4

This is a nice idea. Good job.
__________________
hleV is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-02-2010 , 11:16   Re: [ESF] Show Damage v1.0
Reply With Quote #5

So, damage passed in TakeDamage in esf is same as damage done ?

In most other mods, damage is altered depending on many factors.
__________________
- tired and retired -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-02-2010 , 11:22   Re: [ESF] Show Damage v1.0
Reply With Quote #6

Approval requirements :

- !is_user_alive(victim) is useless, you can remove it.
- Remove public label on ShowDmg().

As suggestions :

- Final damage may not the damage passed in TakeDamage. Usually in most of HL1 mods, the final damage is stored in pev_dmg_take. You better check.
__________________

Last edited by Arkshine; 11-02-2010 at 11:29.
Arkshine is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 11-03-2010 , 08:07   Re: [ESF] Show Damage v1.0
Reply With Quote #7

Quote:
Originally Posted by Arkshine View Post
- !is_user_alive(victim) is useless, you can remove it.
Arkshine, in esf with this plugin shows the damage done to an died player. Therefore i check if the victim is not alive.
__________________
alan_el_more is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-03-2010 , 09:53   Re: [ESF] Show Damage v1.0
Reply With Quote #8

You're right. But you should use Ham_Killed here. Though, before you should find a way to retrieve the damage. Can you check pev_dmg_take ? Looking at the disassembled it appears the same as the HLSDK with more thins.
__________________
Arkshine is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 11-05-2010 , 10:54   Re: [ESF] Show Damage v1.1
Reply With Quote #9

Version 1.1 Released!
__________________
alan_el_more is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-05-2010 , 11:12   Re: [ESF] Show Damage v1.1
Reply With Quote #10

I just notice I've wrongly read your comment. I thought you wanted to show the damage done when a player dies, that's why I was saying Ham_Killed.

Anyway, now, the code looks fine, though using new direclty instead of static would be more appropriate here.

Approved.
__________________
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 17:40.


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