LTH_environment_damage
void LTH_environment_damage(string fn)
This hook expects functions of the form:
damage fn(entity defender,damage damage,number type)
SERVER This has no effect if performed on the client (but will work in single player)
Sets the function that will modify results from environment damage. The hook function will be called every time a character takes damage from the environment. The function will return a possibly modified damage report which will be used as the actual environment damage to be taken. Examples of this include drowning damage, lava damage, etc. Possible values for type are:
- 0: Burning Damage
- 1: Caustic/Poison Damage
- 2: Spike Damage
- 4: Drowning Damage