Raised This Month: $122 Target: $400
 30% 

[INFO] Fakemeta & Ham detailed function descriptions and examples


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-26-2009 , 18:36   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #21

Your example is wrong. There is not id nor origin for MSG_ALL/MSG_BROADCAST. You should add an example for all.
Arkshine is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 05-26-2009 , 20:21   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #22

oo yes, you are right, i have forgotten that

EDIT: Done
__________________
Find my plugins here..

Ex - Spanish Moderator.

Last edited by Starsailor; 05-26-2009 at 20:24.
Starsailor is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-27-2009 , 01:34   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #23

Quote:
Originally Posted by arkshine View Post
Your example is wrong. There is not id nor origin for MSG_ALL/MSG_BROADCAST. You should add an example for all.
+ origins have to be floats.
__________________
- tired and retired -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-27-2009 , 01:39   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #24

Quote:
Originally Posted by Starsailor View Post
oo yes, you are right, i have forgotten that

EDIT: Done
It's still wrong.


Code:
engfunc( EngFunc_MessageBegin, MSG_BROADCAST, SVC_TEMPENTITY ); engfunc( EngFunc_MessageBegin, MSG_ALL, SVC_TEMPENTITY ); engfunc( EngFunc_MessageBegin, MSG_ONE_UNRELIABLE, SVC_TEMPENTITY, _, id ); engfunc( EngFunc_MessageBegin, MSG_ONE, SVC_TEMPENTITY, _, id ); engfunc( EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, origin, 0 ); engfunc( EngFunc_MessageBegin, MSG_PAS, SVC_TEMPENTITY, origin, 0 );

You should also comment more each MSG_*.

Last edited by Arkshine; 05-27-2009 at 02:04.
Arkshine is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 05-27-2009 , 01:44   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #25

EngFunc_Message_Beginuses floats, message_begin() doesnt.
if you explain such a function you should add an example when to use EngFunc_Message_Beginand when to use message_begin() because imo is EngFunc_Message_Beginkinda unnecesarry :X
also, you should explain MSG_INIT, PVS and PAS (with a short example ofc). at least because i never was able to find that out xD i mean MSG_ONE and MSG_ALL (+ the unreliable ones of them) are quite common but i guess there are a lot who never used MSG_INIT, MSG_PVS and MSG_PAS.
another thing is the origin, are there a few messages where you need it? i mean most messages need write_coord() to set the origin ^^
__________________

Last edited by SchlumPF*; 05-27-2009 at 01:48.
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-27-2009 , 02:10   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #26

EngFunc_MessageBegin is not unnecessary if you work with float and you use MSG_PVS/MSG_PAS. But it's true except that, message_begin() should be used.

Btw :

MSG_PVS = Potentially Visible Set = The message will be sent only to player who potentially view the provided origin.
MSG_PAS = Potentially Audible Set = The message will be sent only to player who potentially hear the sound from the provided origin.

It's useful to reduce data sent to a client.

MSG_PVS_R and MSG_PAS_R are not used. I think there is a thread about that.

Last edited by Arkshine; 05-27-2009 at 02:13.
Arkshine is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-27-2009 , 02:11   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #27

This is the most unorganized information tutorial I've ever seen.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-27-2009 , 02:16   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #28

That's why it's better to use directly the wiki. :p

By the way, can you find for me a good page name so I can create it on the wiki, Exolent ? :p
Arkshine is offline
xPaw
AMX Mod X Moderator
Join Date: Jul 2008
Old 05-27-2009 , 04:08   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #29

Fakemeta functions and their descriptions
__________________
xPaw is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-27-2009 , 04:38   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #30

"arkshine's Wiki".
__________________
hleV 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 03:29.


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