Quote:
Originally Posted by Frus
Well, hooking ability_use fires every time an ability is used, and causes code to run, so it's definitely not the most efficient.
The net prop will be faster than the model, as you are dealing with an integer, instead of having to compare a string (which the model will do).
So the net prop wins, if I had to say so.
|
Well, i can say that we need to hook ability_use
anyway. So
all 3 cases would be processed
every time event fires. I agree that getting integer is faster - but we need to peek in object's property, and in case of event key we need to check predefined event key.
So, yes GetClientModel requires to compare string, which is slower than other 2 cases. But i doubt that getting property is much faster than getting event key. Anyway, thanx for replies
__________________