Raised This Month: $119 Target: $400
 29% 

Solved what is SetTransmit?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ABCDEFGH23
Junior Member
Join Date: Jun 2020
Location: HEEELP!!!
Old 09-26-2020 , 06:28   what is SetTransmit?
Reply With Quote #1

idk


PHP Code:
public Action OnTransmit(int entityint client)
{
    return 
Plugin_Continue


Last edited by ABCDEFGH23; 10-13-2020 at 06:01.
ABCDEFGH23 is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Old 09-26-2020 , 08:08   Re: what is SetTransmit?
Reply With Quote #2

Returning Plugin_Handled will block the client from seeing the entity.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
I do not provide support in PMs. Please use the forum thread.
DJ Tsunami is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 10-10-2020 , 15:00   Re: what is SetTransmit?
Reply With Quote #3

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?
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
[My plugins] [My tools] [GitHub] [Articles]
Dragokas is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 10-11-2020 , 11: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
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 10-11-2020 , 11:40   Re: what is SetTransmit?
Reply With Quote #5

Thank you. Will check.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
[My plugins] [My tools] [GitHub] [Articles]
Dragokas is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:55.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode