Thread: [Solved] what is SetTransmit?
View Single Post
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 10-11-2020 , 10:26   Re: what is SetTransmit?
Reply With Quote #4

Quote:
Originally Posted by Dragokas View Post
Does anybody know what internal game functions is it associated with,
It is a hook, perhaps not very surprisingly, on CBaseEntity::SetTransmit .
Quote:
Originally Posted by Dragokas View Post
and why it is not working at all with some sorts of entity classes?
It is a very hot function so the engine has a lot of optimisations to avoid calling it unnecessarily, it is normally the edict flags FL_EDICT_FULLCHECK, FL_EDICT_ALWAYS, and FL_EDICT_PVSCHECK that get in the way. The core logic is in CServerGameEnts::CheckTransmit in the SDK if you want to fully understand it.
__________________
asherkin is offline