AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to hide the fire spirit when bullet hit the sky? (https://forums.alliedmods.net/showthread.php?t=168812)

keyblade 10-04-2011 10:23

how to hide the fire spirit when bullet hit the sky?
 
engfunc(EngFunc_PointContents, origin)?

how to use it?

a7811311622 10-05-2011 04:01

Re: how to hide the fire spirit when bullet hit the sky?
 
<hlsdk_const>
PHP Code:

// engfunc(EngFunc_PointContents, Float:origin) return values
#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 

example:
PHP Code:

if (engfunc(EngFunc_PointContentsorigin) != CONTENTS_EMPTY



All times are GMT -4. The time now is 19:42.

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