Encapsulates serverside Initialize function in base entity in case that overrides the client one (this isn't related but it seems important regardless).
Fix for beingLookAtByLocalPlayer by initializing it on its first call.
Okay, hear me out:
Pros:
No indirection after first call
No need to worry about execution order (As we have experienced before, BaseClass.BeingLookedAtByLocalPlayer is always defined by the time the draw function is called)
Initialize
function in base entity in case that overrides the client one (this isn't related but it seems important regardless).Fix for
beingLookAtByLocalPlayer
by initializing it on its first call. Okay, hear me out: Pros:BaseClass.BeingLookedAtByLocalPlayer
is always defined by the time the draw function is called)Cons:
Fixes #3045