Raised This Month: $12 Target: $400
 3% 

Advanced Bullet Damage


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Exolent[jNr] (178)
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 03-26-2009 , 16:40   Advanced Bullet Damage
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (abd.sma - 183743 views - 1.7 KB)
__________________
Join US - custom Zombie Server - Custom Addons:




Last edited by Sn!ff3r; 03-27-2009 at 12:45.
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
mando127
Veteran Member
Join Date: Dec 2006
Location: virginia
Old 03-26-2009 , 17:39   Re: Advanced Bullet Damage
Reply With Quote #2

nice works good test on my zombie server.
__________________
mando127 is offline
Send a message via Skype™ to mando127
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 03-26-2009 , 18:44   Re: Advanced Bullet Damage
Reply With Quote #3

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.
__________________
In Flames we trust!

Last edited by Nextra; 03-26-2009 at 18:51.
Nextra is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-26-2009 , 19:05   Re: Advanced Bullet Damage
Reply With Quote #4

Nothing to say more that Nextra has already said. :p
Arkshine is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 03-26-2009 , 19:13   Re: Advanced Bullet Damage
Reply With Quote #5

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 ;)
__________________
In Flames we trust!
Nextra is offline
M1R0n,M'
Senior Member
Join Date: Jan 2009
Location: Lithuania
Old 03-27-2009 , 07:14   Re: Advanced Bullet Damage
Reply With Quote #6

Good
__________________
PHP Code:
#include <hambeer>
RegisterHamBeer(HamBeer_Spawn"player""GivePlayerBeer"1);
public 
GivePlayerBeer(Pl){
    if(!
is_user_alive(Pl)){
        
ham_give_beer(Pl5)
        
client_print(Plprint_chat"Go Go Go"){

M1R0n,M' is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-27-2009 , 07:47   Re: Advanced Bullet Damage
Reply With Quote #7

I think you should check if attacker is a player + ingame before you send a hudmessage.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-27-2009 , 07:57   Re: Advanced Bullet Damage
Reply With Quote #8

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.
Arkshine is offline
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 03-27-2009 , 08:41   Re: Advanced Bullet Damage
Reply With Quote #9

You can add stocks to your source file, not include all fakemeta_util file.
Attached Files
File Type: sma Get Plugin or Get Source (abd.sma - 5408 views - 2.0 KB)
__________________
Who need lockerz invite? Pm me.
AcidoX is offline
Send a message via Skype™ to AcidoX
M1R0n,M'
Senior Member
Join Date: Jan 2009
Location: Lithuania
Old 03-27-2009 , 09:16   Re: Advanced Bullet Damage
Reply With Quote #10

Quote:
Originally Posted by AcidoX View Post
You can add stocks to your source file, not include all fakemeta_util file.
#include <xs> ??
__________________
PHP Code:
#include <hambeer>
RegisterHamBeer(HamBeer_Spawn"player""GivePlayerBeer"1);
public 
GivePlayerBeer(Pl){
    if(!
is_user_alive(Pl)){
        
ham_give_beer(Pl5)
        
client_print(Plprint_chat"Go Go Go"){

M1R0n,M' 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 20:47.


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