Quote:
Originally Posted by devilicioux
Wow !! Just read Up the Black Rose's Explanation  Learnt alot 
Tysm Black Rose for awesome explanation.And Plugin is Nice as well.
Edit : Have 1 question in mind .. what is the actual difference between
MSG_BROADCAST and MSG_ALL
Searched a little it says the difference is the streams of sending message . Didnt understand.
Can any1 give a quick info regarding streams and when to use _BROADCAST and When _ALL ?
|
This is defined in message_const.in
Code:
#define MSG_BROADCAST 0 // Unreliable to all
#define MSG_ONE 1 // Reliable to one (msg_entity)
#define MSG_ALL 2 // Reliable to all
#define MSG_INIT 3 // Write to the init string
#define MSG_PVS 4 // Ents in PVS of org
#define MSG_PAS 5 // Ents in PAS of org
#define MSG_PVS_R 6 // Reliable to PVS
#define MSG_PAS_R 7 // Reliable to PAS
#define MSG_ONE_UNRELIABLE 8 // Send to one client, but don't put in reliable stream, put in unreliable datagram (could be dropped)
#define MSG_SPEC 9 // Sends to all spectator proxies
The most used are of course BROADCAST, ALL, ONE and ONE_UNRELIABLE.
I'm sure you could find a more detailed explanation by one of the top coders if you search the forum.
A rule of thumb is to use BROADCAST and ONE_UNRELIABLE unless it's absolutely critical that the message reaches the client.
__________________