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

[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 10-15-2009 , 10:58   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #81

Fakemeta function :

Quote:
EngFunc_DecalIndex

Description :

Returns an unique index of the decal name provided.

A decal index is used for example in some TE_* messages. ( TE_PLAYERDECAL, TE_DECAL, etc.. See message_const.inc file ).
All the available decals are stored in the decals.wad file. ( Located at your mod root )
As side-note a plugin Decals/Models Lister is available to see a list of decals/models index/name. ( Only CS and HL )

Usage :

Code:
DecalIndex = engfunc( EngFunc_DecalIndex, "{bigshot1" );
__________________

Last edited by Arkshine; 10-15-2009 at 11:01.
Arkshine is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 10-15-2009 , 11:52   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #82

Fakemeta function :
Code:
EngFunc_FindEntityByString

Description :

Returns the first entity found that matches the search criteria.

You can use any of string type attributes of entities:
Code:
classname	Type of entity
globalname	This is the name of the global variable that can be used to control the state of the entity
model	 	The model of the entity
target	 	Entity that this entity is handling
targetname	The name given to this entity that another entity searches for to handle it
netname	 	Player or NPC name
message	 	Seems to be used mainly to store sound (string). It happens to store others things, depending the need of the entity
noise		Noise variables do different things for different ents.
noise1		This is the move sound for doors.
noise2		This is the stop sound for doors.
noise3		This is for blocking game_player_equip and player_weaponstrip
source: http://xpaw.ru/pev_research.php


Usage :

Code:
iEnt = engfunc( EngFunc_FindEntityByString, iStartEnt, sAttribute, sText );

Parameters
iStartEnt = Start search on this entity (ex: 0 = worldspawn)
sAttribute = Name of attribute over which we need to search (ex: classname)
sText = Text string that we are searching for (ex: func_breakable)

Return
iEnt = Index of the first entity that matches the search
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.

Last edited by xPaw; 02-02-2012 at 08:13.
joropito is offline
Send a message via MSN to joropito
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-15-2009 , 11:58   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #83

Quote:
Originally Posted by joropito View Post
__________________

Last edited by xPaw; 02-02-2012 at 08:13.
xPaw is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 10-15-2009 , 12:02   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #84

Quote:
Originally Posted by xPaw View Post
Ok, this too http://www.ghwchronic.com/pev_research.php

__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-15-2009 , 12:16   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #85

Updated Ham_TraceAttack!

Will add all your posts to the first post.
Good job and keep up the good posts.

Edit: Added them
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

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

"message" seems to be used mainly to store sound (string). It happens to store others things, depending the need of the entiy.
__________________
Arkshine is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 10-15-2009 , 12:29   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #87

Quote:
Originally Posted by Arkshine View Post
"message" seems to be used mainly to store sound (string). It happens to store others things, depending the need of the entiy.
Thanks, updated.

I'm at home with a great flu so I will write tutorial for some other functions.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-15-2009 , 12:37   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #88

Quote:
Originally Posted by joropito View Post
Thanks, updated.

I'm at home with a great flu so I will write tutorial for some other functions.
Ow. Hope you get well soon!
And hoping to see some more functions from you .

Edit:
Quote:
Originally Posted by stupok View Post
Thats a good post on Ham_TakeDamage!

I think it is worthwhile to discuss when we should use Ham_TakeDamage and when we should use Ham_TraceAttack.
Thanks!
Will add to the description on observation about the moment when it is best to use them!
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

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

Fakemeta function :

Quote:
EngFunc_ModelFrames

Description :

Returns the frames number of a model.

Usage :

Code:
ModelFrames = engfunc( EngFunc_ModelFrames, ModelIndex );
ModelIndex = The model index. Value you can get from precache_model() or EngFunc_ModelIndex.
__________________
Arkshine is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 10-15-2009 , 12:52   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #90

Fakemeta function :
Code:
EngFunc_NumberOfEntities

Description :
Returns the number of entities in the world.


Usage :
Code:
ents = engfunc(EngFunc_NumberOfEntities);

Engine Replacement :
http://www.amxmodx.org/funcwiki.php?go=func&id=356
Code:
ents = entity_count();
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
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 17:37.


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