Raised This Month: $ Target: $400
 0% 

Monitoring how much damage an entity takes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 06-04-2007 , 12:54   Monitoring how much damage an entity takes
Reply With Quote #1

Hmm...anyone know of a way to actually get how much an entity is damaged when shot at.
Sort of the same way client_damage works, but for entities being damaged by players.
Would a shot at an entity be considered "touching" it (ex register_touch())?

Thanks in advance.
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
mogel
Senior Member
Join Date: Jan 2007
Old 06-04-2007 , 16:23   Re: Monitoring how much damage an entity takes
Reply With Quote #2

Hi,

http://www.amxmodx.org/funcwiki.php?...mage&go=search

u need the right for your mod

hand, mogel
__________________
mogel is offline
diamond-optic
Veteran Member
Join Date: May 2005
Old 06-04-2007 , 20:32   Re: Monitoring how much damage an entity takes
Reply With Quote #3

Quote:
Originally Posted by mogel View Post
Hi,

http://www.amxmodx.org/funcwiki.php?...mage&go=search

u need the right for your mod

hand, mogel

did you even read what he was asking???

...anyway im not sure if theres a way.. i tried to do it myself months ago but couldnt figure anything out and people in the irc channel told me it cant be done..
__________________
diamond-optic is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 06-06-2007 , 12:21   Re: Monitoring how much damage an entity takes
Reply With Quote #4

You have to hook pre and post Ham_TakeDamage. Cache amount of entity's health in pre hook and calculate the difference of health in post hook. You can get Ham Sandwich module in Module Coding forums section.
VEN is offline
Reply



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 10:39.


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