AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Solved what is SetTransmit? (https://forums.alliedmods.net/showthread.php?t=327557)

ABCDEFGH23 09-26-2020 05:28

what is SetTransmit?
 
idk


PHP Code:

public Action OnTransmit(int entityint client)
{
    return 
Plugin_Continue



DJ Tsunami 09-26-2020 07:08

Re: what is SetTransmit?
 
Returning Plugin_Handled will block the client from seeing the entity.

Dragokas 10-10-2020 14:00

Re: what is SetTransmit?
 
Does anybody know what internal game functions is it associated with,
and why it is not working at all with some sorts of entity classes?

asherkin 10-11-2020 10:26

Re: what is SetTransmit?
 
Quote:

Originally Posted by Dragokas (Post 2720861)
Does anybody know what internal game functions is it associated with,

It is a hook, perhaps not very surprisingly, on CBaseEntity::SetTransmit :wink:.
Quote:

Originally Posted by Dragokas (Post 2720861)
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.

Dragokas 10-11-2020 10:40

Re: what is SetTransmit?
 
Thank you. Will check.


All times are GMT -4. The time now is 11:37.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.