AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Ham_TakeDamage Post - incorrect Damage value cuz of armor (https://forums.alliedmods.net/showthread.php?t=156135)

Owyn 05-01-2011 12:05

Ham_TakeDamage Post - incorrect Damage value cuz of armor
 
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?

Arkshine 05-01-2011 12:26

Re: Ham_TakeDamage Post - incorrect Damage value cuz of armor
 
Hook TakeDamage as post, and retrieve pev_dmg_take value.

Owyn 05-01-2011 12:45

Re: Ham_TakeDamage Post - incorrect Damage value cuz of armor
 
it works, thank you.


All times are GMT -4. The time now is 04:23.

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