Raised This Month: $7 Target: $400
 1% 

[INFO] Fakemeta & Ham detailed function descriptions and examples


Post New Thread Reply   
 
Thread Tools Display Modes
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-26-2009 , 12:15   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #11

Good job ot, i suggest you add some list at first post

EngFunc_GetBonePosition
EngFunc_PointContents
EngFunc_TraceLine
EngFunc_FindEntityInSphere
__________________
xPaw is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 05-26-2009 , 12:26   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #12

Quote:
Originally Posted by Dr.G View Post
this is some screenshots from autocad
Good job but try to make the 3 entities spheres in 3d and give them the same names as I did!

Quote:
Originally Posted by xPaw View Post
Good job ot, i suggest you add some list at first post

Edit: Added it!

EngFunc_GetBonePosition
EngFunc_PointContents
EngFunc_TraceLine
EngFunc_FindEntityInSphere
Good idea.
This list I will add in the future!
But you should also try to describe some functions or constants. I can't just do all of them...
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 05-27-2009 at 12:48.
ot_207 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-26-2009 , 12:41   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #13

Quote:
Good idea.
I was my suggestion above. I haven spoken chinese probably.
I will try to describe some functions too.

Quote:
I can't just do all of them...
I'm sure you can. :p
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-26-2009 , 14:17   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #14

Fakemeta function :

Quote:
EngFunc_PrecacheModel

Description :

Precaches a model or sprite file.

This should be used only when you would need to postpone the precache processus in plugin_init() or plugin_cfg(), otherwise you should use precache_model() native directly in plugin_precache() forward.
It can be useful for example when you want to manage models with cvars and to avoid registering them in plugin_precache() then getting some trouble, you could manage out of this forward.


Usage :

Code:
engfunc( EngFunc_PrecacheModel, "models/MyModel.mdl" ); engfunc( EngFunc_PrecacheModel, "sprites/MySprite.spr" );
It returns the precached model/sprite index if successful, otherwise 0.

Last edited by Arkshine; 05-26-2009 at 14:24.
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-26-2009 , 14:38   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #15

Fakemeta function :

Quote:
EngFunc_PrecacheSound

Description :

Precaches a sound, only *.wav file. ( for mp3, see EngFunc_PrecacheGeneric )

This should be used only when you would need to postpone the precache processus in plugin_init() or plugin_cfg(), otherwise you should use precache_sound() native directly in plugin_precache() forward.
It can be useful for example when you want to manage sounds with cvars and to avoid registering them in plugin_precache() then getting some trouble, you could manage out of this forward.


Usage :

Code:
engfunc( EngFunc_PrecacheSound, "sound/MySound.wav" );
It returns the precached sound index if successful, otherwise 0.
Arkshine is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 05-26-2009 , 15:50   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #16

better create some kind of wiki where everyone can contribute like wikipedia, would be more handy than a forum thread.
i would appreciate that very much
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-26-2009 , 15:54   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #17

What I've suggested in my first post, but ot_207 prefers to do that to start. Someone can give me a good page name, I'm suck to find a good one and I will create the page right away on the wiki.
Arkshine is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 05-26-2009 , 16:03   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #18

Quote:
Originally Posted by arkshine View Post
What I've suggested in my first post, but ot_207 prefers to do that to start. Someone can give me a good page name, I'm suck to find a good one and I will create the page right away on the wiki.
sry didnt read the whole thread, i just came home and checked the forum before showering and saw the thread. i simply read the mainpost and posted my idea
anyway, im sry but i cant find such a wikicms or whatever i should call it either
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 05-26-2009 , 18:04   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #19

Fakemeta Function:

EngFunc_MessageBegin

Description:

This function is used to generate client messages.

Usage:

engfunc(EngFunc_MessageBegin,dest,msg_type,or igin[3]={0,0,0},player=0)

PHP Code:
static Float:origin[3// Origin should be a Float
pev(idpev_originorigin// Get user origin
engfunc(EngFunc_MessageBegin,MSG_BROADCAST,SVC_TEMPENTITY,origin,0// Create message 
PHP Code:
//With MSG_ONE_UNRELIABLE
engfunc(EngFunc_MessageBegin,MSG_ONE_UNRELIABLE,SVC_TEMPENTITY,_,id// Create message 
PHP Code:
//With MSG_ALL
 
engfunc(EngFunc_MessageBegin,MSG_ONE_UNRELIABLE,SVC_TEMPENTITY,_,id// Create message 
dest can be :

Code:
#define    MSG_BROADCAST               0        // Unreliable to all, There is not id
#define    MSG_ONE                     1        // Reliable to one (msg_entity)
#define    MSG_ALL                     2        // Reliable to all, There is not origin
#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), There is not origin
#define    MSG_SPEC                    9        // Sends to all spectator proxies
Before calling another EngFunc_MessageBegin you must call message_end()
__________________
Find my plugins here..

Ex - Spanish Moderator.

Last edited by Starsailor; 05-26-2009 at 20:27.
Starsailor is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 05-26-2009 , 18:25   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #20

List of all functions:

EngFunc_GetBonePosition
EngFunc_PointContents
EngFunc_TraceLine
EngFunc_FindEntityInSphere
EngFunc_PrecacheModel
EngFunc_PrecacheSound
EngFunc_MessageBegin
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor 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 02:41.


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