View Single Post
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-15-2009 , 13:23   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #94

Fakemeta function:
PHP Code:
EngFunc_TraceModel 
Description:
This function traces between 2 origins a model and gives us properties about it.
It acts just like a TraceLine but it ignores all the entities except the one we want to hit!

The constants that we can use in hull:
PHP Code:
#define HULL_POINT                      0  // This means that we are moving a point from the start to the end
#define HULL_HUMAN                      1  //  That means that we move a cube of a player from start to end
#define HULL_LARGE                      2  // That means that we move a bigger cube that one of the player from start to end (used in HL for big monsters!)
#define HULL_HEAD                       3  // This means that we move from start to end the hull of a ducked player 
Usage:
PHP Code:
// start - start origin
// end - end origin
// hull - the hull that is moved check above to see them
// ent_to_hit - the entity that you want to hit (this is a must!)
// ptr - the trace handle pointer, acts the same as the one in trace line!
engfunc(EngFunc_TraceModel, const Float:start[3], const Float:end[3], hullent_to_hitptr
Extra info:
Do not use this unless you are familliar with TraceLine!
TraceModel usage simple example.
EngFunc_TraceLine Explanation
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 10-16-2009 at 06:05.
ot_207 is offline