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

message_ questions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
toader_octavian
Member
Join Date: Oct 2006
Location: Romania
Old 02-03-2009 , 04:14   message_ questions
Reply With Quote #1

PHP Code:
#define MSG_INIT 3 //Write to the init string
#define MSG_PVS 4 //Ents in PVS of origin
#define MSG_PAS 5 //Ents in PAS of origin
#define MSG_PVS_R 6 //Reliable to PVS
#define MSG_PAS_R 7 //Reliable to PAS 
What do these do?
__________________
I will be banned soon.
toader_octavian is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-03-2009 , 04:57   Re: message_ questions
Reply With Quote #2

MSG_PVS ( Potentially Visible Set ) and MSG_PAS ( Potentially Audible Set ) is use for filtering network messages to the client. ( From the eye position ).

I.e ; if you send TE_EXPLOSION with MSG_PVS, it means the message will be sent only to clients who are potentially visible from the provided origin. MSG_PAS means it will be sent only to clients who potentially hear the sound from the provided origin. So, It should be used when we can.

MSG_INIT I don't know. MSG_PVS_R and MSG_PAS_R are the reliable version ofr MSG_PVS and MSG_PAS but actually not used ( at least HLSDK doesn't mention about it ) because it should be never reliable since they change from frame to frame. So MSG_PVS and MSG_PAS are fine.
Arkshine is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 02-03-2009 , 05:09   Re: message_ questions
Reply With Quote #3

I saw a use of MSG_INIT when sending WeaponList msg
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-03-2009 , 05:15   Re: message_ questions
Reply With Quote #4

Yep, you're right. WeaponList is fired on map start with MSG_INIT and for all weapons.
Arkshine is offline
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 18:29.


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