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

About clientdata_t/entity states


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
entropy
Junior Member
Join Date: May 2013
Old 05-13-2013 , 15:49   About clientdata_t/entity states
Reply With Quote #1

Hi,

I'd have a question about clientdata_t.
What is it's purpose? It seems quite similar to entity_state_t...

Also, is entity_state_t struct from other clients are sent?

Like say we have players 1,2,3 in server.
Will the entity_state_t of oplayer 1 for example will be sent to players 2 and 3 also, or is it only server side?
Is clientdata_t sent?
If yes, in which function? (I'd guess either one is sent as it contains coordinates data of players)

Thanks
entropy is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 05-14-2013 , 11:26   Re: About clientdata_t/entity states
Reply With Quote #2

SERVER SIDE:
SV_WriteClientdataToMessage (engine) calls gEntityInterface.pfnUpdateClientData

After that, clientdata_t is filled with client info.
Only deltas are sent.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Reply



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 07:36.


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