AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Advanced Bullet Damage (https://forums.alliedmods.net/showthread.php?t=88577)

Sn!ff3r 03-26-2009 16:40

Advanced Bullet Damage
 
1 Attachment(s)
Advanced Bullet Damage


Description:
Remake of oryginal bullet damage plugin. This addon shows damage done by each bullet to attacker, and optionally shows damage received. Additionally, showing damage took via wall can be disabled, to eliminate wallhack syndrome.

Tested only in Counter Strike, but should work on other mods.
CVAR's
PHP Code:

amx_bulletdamage_recieved "1" // enable or disable showing recieved damage
amx_bulletdamage "1" // 0 - plugin disabled, 1 - show damage done, 2 - show damage done, but not via wall! 


Modules
fakemeta
Changelog
1.0 - First Relase
1.1 - Some mistakes

mando127 03-26-2009 17:39

Re: Advanced Bullet Damage
 
nice works good test on my zombie server.

Nextra 03-26-2009 18:44

Re: Advanced Bullet Damage
 
Well done. I just wanted to point out that fm_is_ent_visible will return false negatives relatively often (at least there are many common situations where it will due to the origin comparison).
Anyway, a cvar for displaying chat messages instead of hud messages would be nice to have I believe.

Arkshine 03-26-2009 19:05

Re: Advanced Bullet Damage
 
Nothing to say more that Nextra has already said. :p

Nextra 03-26-2009 19:13

Re: Advanced Bullet Damage
 
You could come up with a neat measure to get rid of those false positives :)

I believe there is a possibility by catching the shot event and comparing traceline hit origins with fm_is_visible but it's too late for that now ;)

M1R0n,M' 03-27-2009 07:14

Re: Advanced Bullet Damage
 
Good :)

ConnorMcLeod 03-27-2009 07:47

Re: Advanced Bullet Damage
 
I think you should check if attacker is a player + ingame before you send a hudmessage.

Arkshine 03-27-2009 07:57

Re: Advanced Bullet Damage
 
I don't think it needs because there are already a check in the native. So it doesn't matter, it will not generate an error.

AcidoX 03-27-2009 08:41

Re: Advanced Bullet Damage
 
1 Attachment(s)
You can add stocks to your source file, not include all fakemeta_util file.

M1R0n,M' 03-27-2009 09:16

Re: Advanced Bullet Damage
 
Quote:

Originally Posted by AcidoX (Post 790123)
You can add stocks to your source file, not include all fakemeta_util file.

#include <xs> ??


All times are GMT -4. The time now is 16:44.

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