AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   [ISSUE] ExecuteHam(Ham_TakeDamage, ...) (https://forums.alliedmods.net/showthread.php?t=301397)

Depresie 09-19-2017 07:22

[ISSUE] ExecuteHam(Ham_TakeDamage, ...)
 
Using ExecuteHam(Ham_TakeDamage) the value of the damage received is lower than the value specified

For example using the following script the user receives only about 33 damage when it should be 50
( The victim is not wearing any armor )

Any idea why this happens ?

PHP Code:

public plugin_init()
{
    
register_plugin("Test""1.0""Kore")

    
register_clcmd("say test""clcmdtest")
}

public 
clcmdtest(id)
{
    
ExecuteHam(Ham_TakeDamageid0id50.00)


Seems like an older problem, as seen here
https://forums.alliedmods.net/showthread.php?t=165055

aron9forever 09-19-2017 07:52

Re: [ISSUE] ExecuteHam(Ham_TakeDamage, ...)
 
I think that is before armor is taken into consideration aka it's not pure damage

Hedgehog Fog 09-19-2017 08:27

Re: [ISSUE] ExecuteHam(Ham_TakeDamage, ...)
 
Yep, you should remove armor before damage to take pure damage.
https://forums.alliedmods.net/showthread.php?t=289362

Depresie 09-19-2017 12:07

Re: [ISSUE] ExecuteHam(Ham_TakeDamage, ...)
 
Fun fact, the victim has no armor

Quote:

( The victim is not wearing any armor )


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

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