[INFO] Fakemeta & Ham detailed function descriptions and examples
Fakemeta Func Wiki
I think that we all need to contribute to this topic so let's get it started. FakeMeta Functions
HamSandWich Functions Contributors
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Fakemeta function:
PHP Code:
This function checks an origin and gives us information of its whearabouts. The constants that this function returns are these: Code:
#define CONTENTS_EMPTY -1 PHP Code:
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
( Nice initiative but I think it should be update on the wiki too because more readable. Also for here creating a list for fakemeta and ham would be interesting. )
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Nice ot.
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Quote:
And thanks! Quote:
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Fakemeta function:
PHP Code:
This function traces between 2 origins and gives us information about it. The constants that we can use in flags: PHP Code:
Ex: IGNORE_MISSILE | IGNORE_MONSTERS | IGNORE_GLASS - This makes the traceline ignore missiles, monsters (players) and glass. Here is a drawing that will show you how it works! PHP Code:
PHP Code:
PHP Code:
PHP Code:
Functions that come with the TraceLine pack: PHP Code:
PHP Code:
PHP Code:
Code:
enum TraceResult PHP Code:
PHP Code:
Valve - arguments of the trace handle TraceLine Tutorial (Nomexous) |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Fakemeta function:
PHP Code:
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:
PHP Code:
PHP Code:
Usage: PHP Code:
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
nice ot. if anyone think a sphere is another word for circle its not -> http://en.wikipedia.org/wiki/File:Sphere_wireframe.svg
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Quote:
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
1 Attachment(s)
this is some screenshots from autocad
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Good job ot, i suggest you add some list at first post
EngFunc_GetBonePosition EngFunc_PointContents EngFunc_TraceLine EngFunc_FindEntityInSphere |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Quote:
Quote:
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... |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Quote:
I will try to describe some functions too. Quote:
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Fakemeta function :
Quote:
Description : Precaches a model or sprite file. Usage : Code:
It returns the precached model/sprite index if successful, otherwise 0. |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Fakemeta function :
Quote:
Description : Precaches a sound, only *.wav file. ( for mp3, see EngFunc_PrecacheGeneric ) Usage : Code:
It returns the precached sound index if successful, otherwise 0. |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
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 :D |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
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.
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Quote:
anyway, im sry but i cant find such a wikicms or whatever i should call it either :( |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
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:
PHP Code:
PHP Code:
Code:
#define MSG_BROADCAST 0 // Unreliable to all, There is not id |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Your example is wrong. There is not id nor origin for MSG_ALL/MSG_BROADCAST. You should add an example for all.
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
oo yes, you are right, i have forgotten that
EDIT: Done |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Quote:
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Quote:
Code:
You should also comment more each MSG_*. |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
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 ^^ |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
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. |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
This is the most unorganized information tutorial I've ever seen.
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
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 |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Fakemeta functions and their descriptions :mrgreen:
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
"arkshine's Wiki".
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
It doesn't help a lot. :mrgreen:
I will try and it can be renamed later anyway. |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
You are drunk ?
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
haha!sorry,my english is very bad.i misunderstand what you say.
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
just i'm trying to help :cry::cry::cry::|:|:|
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Quote:
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Quote:
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Quote:
Ja! Ich habe das repariert :mrgreen:! Edit: Wo hat diese geniale idee, um Krabs stattdessen Karma geben? Who had the idea of giving crabs instead of karma? Edit2: SnoW the thread is already spammed enough so one post in plus won't make a dif :P. |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Quote:
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Quote:
-> Wer hatte diese geniale Idee (there is no "genial" in your english sentence), Krabben statt Karma zu geben. (falscher Nebensatz). i love ppl speaking german who learned it barely :D the sentences are most often wrong but you can understand nearly each sentece... this is much harder if someone _tries_ to speak english xD :crab::crab::crab: to you ot_2007 <3 ot: as you can see a thread is a really bad assembly of this idea which is really nice. some kind of wikipedia including a thread here at amxx where ppl can complain about erros and give you -:crab:'s!!! |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Let's create a wiki with this. These functions will be useful.
|
All times are GMT -4. The time now is 15:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.