Executing Ham_TakeDamage
Hello all.
I am trying to execute Ham_TakeDamage like this. Code:
Where i am wrong in this.? :shock: |
Re: Executing Ham_TakeDamage
You are missing the other parameters
Code:
/** |
Re: Executing Ham_TakeDamage
Then I must.
Code:
And what is [b]Inflictor[b] |
Re: Executing Ham_TakeDamage
Re-read the Description as it answer that
|
Re: Executing Ham_TakeDamage
inflictor is the entity that produce a damage. attacker is the owner of inflictor.
If attacker==inflictor, then the damage was inflicted by a player. |
Re: Executing Ham_TakeDamage
And for compatibility with other plugins that may hook this event I suggest using ExecuteHamB().
|
Re: Executing Ham_TakeDamage
O.K.
Here is some code for executig Ham_Killed. Code:
Here 2 is the shouldgib paramater. So it makes the kill effect very ugly. If i change shouldgib paramter to some player index, will it mean that the entity is being killed by a player? :shock: |
Re: Executing Ham_TakeDamage
shouldgib only defines whether killed entity should be gibbed or not. It can has 3 values:
GIB_NEVER = 0; never gib regardless last taken damage amount GIB_NORMAL = 1; gib only when victim has taken very high damage GIB_ALWAYS = 2; gib regardless last taken damage amount |
Re: Executing Ham_TakeDamage
So changing the ShouldGib paramater should change the killtime effect?
|
Re: Executing Ham_TakeDamage
exactly.
Quote:
|
| All times are GMT -4. The time now is 21:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.