This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[INFO] Fakemeta & Ham detailed function descriptions and examples


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 05-26-2009 , 09:37   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #1

Fakemeta function:
PHP Code:
EngFunc_FindEntityInSphere 
Description:
Find entities within a radius. The function returnes the next entity id after the start entity!

This is a drawing to show how this function works:
[IMG]http://img265.**************/img265/2395/screenshot053.png[/IMG]


If we use
PHP Code:
engfunc(EngFunc_FindEntityInSphere, -1originradius
The function in the situation above will return 1!
PHP Code:
engfunc(EngFunc_FindEntityInSphere20originradius
The function in the situation above will return 30!
PHP Code:
engfunc(EngFunc_FindEntityInSphere100originradius
The function in the situation above will return 0, meaning that it didn't find an entity with an id grater than 100!


Usage:
PHP Code:
engfunc(EngFunc_FindEntityInSphereent_to_startoriginradius
__________________
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 09:03.
ot_207 is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 05-26-2009 , 09:53   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #2

nice ot. if anyone think a sphere is another word for circle its not -> http://en.wikipedia.org/wiki/File:Sphere_wireframe.svg
__________________
Dr.G is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 05-26-2009 , 09:57   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #3

Quote:
Originally Posted by Dr.G View Post
nice ot. if anyone think a sphere is another word for circle its not -> http://en.wikipedia.org/wiki/File:Sphere_wireframe.svg
Thanks! That was just as an example. If someone would do a 3d design it would be great .
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 05-26-2009 at 10:03.
ot_207 is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 05-26-2009 , 10:46   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #4

this is some screenshots from autocad
Attached Files
File Type: zip ScreenShot053.zip (111.8 KB, 756 views)
__________________
Dr.G is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 11-22-2009 , 16:21   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #5

Thanks ot!
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
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 #6

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 #7

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 #8

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
Old 05-27-2009, 04:56
zwfgdlc
This message has been deleted by zwfgdlc.
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 #10

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
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 05:36.


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