Raised This Month: $12 Target: $400
 3% 

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 , 05: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 05:01.
ABCDEFGH23 is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 09-26-2020 , 07: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
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 10-10-2020 , 14: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 & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
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
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 10-11-2020 , 10:40   Re: what is SetTransmit?
Reply With Quote #5

Thank you. Will check.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
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 05:57.


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