Datasets:
Tasks:
Text Generation
Modalities:
Text
Formats:
text
Languages:
Russian
Size:
10K - 100K
Tags:
code
License:
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], hull, ent_to_hit, ptr) |