AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Destination types for message_begin() (https://forums.alliedmods.net/showthread.php?t=63083)

l4ulwtlln 11-11-2007 12:19

Destination types for message_begin()
 
which is generally better to us?

MSG_BROADCAST or MSG_ALL

MSG_ONE_UNRELIABLE or MSG_ONE


note that this is for two different cases

Alka 11-11-2007 12:59

Re: Destination types for message_begin()
 
I don't think is a general case, depends by usage
Code:

MSG_BROADCAST    // Unreliable to all
MSG_ALL                // Reliable to all
----------------------------------------
MSG_ONE_UNRELIABLE    // Send to one client, but don't put in reliable stream, put in unreliable datagram (could be dropped)
MSG_ONE                    // Reliable to one (msg_entity)


l4ulwtlln 11-11-2007 23:21

Re: Destination types for message_begin()
 
yes i know, i saw that already just that i dunno when i should use one over the other. would you mind providing me with an example of when you should each?

Brad 11-11-2007 23:42

Re: Destination types for message_begin()
 
Use the reliable ones when you want to make sure the player(s) see what you're sending, at the risk of getting them disconnected. Use unreliable when it doesn't really matter that the player(s) saw it.

mythkina 11-17-2007 14:28

Re: Destination types for message_begin()
 
Quote:

Originally Posted by Alka (Post 551753)
I don't think is a general case, depends by usage
Code:

MSG_BROADCAST    // Unreliable to all
MSG_ALL                // Reliable to all
----------------------------------------
MSG_ONE_UNRELIABLE    // Send to one client, but don't put in reliable stream, put in unreliable datagram (could be dropped)
MSG_ONE                    // Reliable to one (msg_entity)


where can i find some veryuseful infermation like this?hlsdk or something else?
i know there's a site for hlsdk but i dont know where to find things like message_begin/ write_byte for referrence..

http://svn.tcwonline.org/viewvc.cgi/hlsdk/?root=amxmodx

l4ulwtlln 11-17-2007 17:22

Re: Destination types for message_begin()
 
inside amxx's source code

mythkina 11-18-2007 00:18

Re: Destination types for message_begin()
 
thank you i finally find it at message_const.inc by you hint~~


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

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