Joat
Gum Phoenix
I am making Inferno and Liquid shields and using the ShouldDamage hook to determine if the user should be immune to certain types of damage. The problem is, most of the time, said damage (that would be blocked by one such shield) is caused by a damaging sector, not an object, in which case both "damager" and "source" are nil. Any suggestions on how to detect such sources?
My thoughts on how to do so currently are to, if damager and source are nil, check if the player is in a damaging sector and, if so, determine whether the player should be damaged based on that. However, I'm guessing a damaging sector is not the only situation in which damager and source will be nil, so I suspect that solution may cause some inaccuracy.
My thoughts on how to do so currently are to, if damager and source are nil, check if the player is in a damaging sector and, if so, determine whether the player should be damaged based on that. However, I'm guessing a damaging sector is not the only situation in which damager and source will be nil, so I suspect that solution may cause some inaccuracy.
Last edited: