Raised This Month: $ Target: $400
 0% 

Ham_TakeDamage Post - incorrect Damage value cuz of armor


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 05-01-2011 , 12:05   Ham_TakeDamage Post - incorrect Damage value cuz of armor
Reply With Quote #1

client_damage() from CSX gives correct data of given Damage while Ham_TakeDamage as Post still gives Pre-calculated data about damage, showing e.g. 100 damage instead of 50 when Victim has armor.

so can I get real damage done with Ham hooks?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-01-2011 , 12:26   Re: Ham_TakeDamage Post - incorrect Damage value cuz of armor
Reply With Quote #2

Hook TakeDamage as post, and retrieve pev_dmg_take value.
__________________
Arkshine is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 05-01-2011 , 12:45   Re: Ham_TakeDamage Post - incorrect Damage value cuz of armor
Reply With Quote #3

it works, thank you.
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
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 04:23.


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