Quote:
Originally Posted by Natsheh
Celena luna
What is 2 suppose to mean in Execution of ham_TakeDamage
Code:
ExecuteHamB(Ham_TakeDamage, id , 2, attacker, float(damage), DMG_GENERIC);
You do realize that the second argument or parameter in Ham_TakeDamage is the inflictor index which holds the entity id that dealt the damage or dealing the damage it can be a nonplayer entity or a player entity.
|
I am a bit green, that part of the code I have not written, nor do I know what the number '2' means, if someone with more experience knows it, maybe we can understand it, but I suppose it will be the entity. If the attacker does damage (and it is not definitive) it does receive it and it works well, but it does not work when the attacker kills the victim with a single hit, such as increasing the damage from a cvar (to make a test)