Datasets:
Tasks:
Text Generation
Modalities:
Text
Formats:
text
Languages:
Russian
Size:
10K - 100K
Tags:
code
License:
| Fakemeta function: | |
| PHP Code: | |
| EngFunc_PointContents | |
| Description: | |
| 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 | |
| #define CONTENTS_SOLID -2 | |
| #define CONTENTS_WATER -3 | |
| #define CONTENTS_SLIME -4 | |
| #define CONTENTS_LAVA -5 | |
| #define CONTENTS_SKY -6 | |
| #define CONTENTS_ORIGIN -7 // Removed at csg time | |
| #define CONTENTS_CLIP -8 // Changed to contents_solid | |
| #define CONTENTS_CURRENT_0 -9 | |
| #define CONTENTS_CURRENT_90 -10 | |
| #define CONTENTS_CURRENT_180 -11 | |
| #define CONTENTS_CURRENT_270 -12 | |
| #define CONTENTS_CURRENT_UP -13 | |
| #define CONTENTS_CURRENT_DOWN -14 | |
| #define CONTENTS_TRANSLUCENT -15 | |
| #define CONTENTS_LADDER -16 | |
| #define CONTENT_FLYFIELD -17 | |
| #define CONTENT_GRAVITY_FLYFIELD -18 | |
| #define CONTENT_FOG -19 | |
| Usage: | |
| PHP Code: | |
| static Float:origin[3] | |
| static result | |
| result = engfunc(EngFunc_PointContents, origin) | |
| // if for example result is CONTENTS_SKY | |
| // then the origin that we see is in the sky we can for example use this to see where a player is aming if he is aiming at sky this will be the result! |