Effect flags (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 15: Line 15:
#define EF_SNIPERLASER 512 // sniper laser effect
#define EF_SNIPERLASER 512 // sniper laser effect
#define EF_FIBERCAMERA 1024// fiber camera
#define EF_FIBERCAMERA 1024// fiber camera
</source>
== FGD entries ==
=== {{jack|4}} ===
<source lang=c>
effects(choices) : "Effect Flags" : 0 : "For configuring visual effects. If you want to combine effects, simply type in the sum of the effect numbers, e.g., '72' for 64+8." =
[
0 : "0 - None"
1 : "1 - EF_BRIGHTFIELD" : "swirling cloud of particles"
2 : "2 - EF_MUZZLEFLASH" : "single frame ELIGHT on entity attachment 0"
4 : "4 - EF_BRIGHTLIGHT" : "DLIGHT centered at entity origin"
8 : "8 - EF_DIMLIGHT" : "player flashlight"
16 : "16 - EF_INVLIGHT" : "get lighting from ceiling, instead of from floor"
32 : "32 - EF_NOINTERP" : "don't interpolate the next frame"
64 : "64 - EF_LIGHT" : "rocket flare glow sprite"
128 : "128 - EF_NODRAW" : "don't draw entity"
256 : "256 - EF_NIGHTVISION" : "player nightvision"
512 : "512 - EF_SNIPERLASER" : "sniper laser effect"
1024 : "1024 - EF_FIBERCAMERA" : "fiber camera"
]
</source>
=== {{trenchbroom|4}} ===
<source lang=c>
effects(flags) : "Effect Flags"  =
[
0 : "0 - None"
1 : "1 - EF_BRIGHTFIELD: swirling cloud of particles"
2 : "2 - EF_MUZZLEFLASH: single frame ELIGHT on entity attachment 0"
4 : "4 - EF_BRIGHTLIGHT: DLIGHT centered at entity origin"
8 : "8 - EF_DIMLIGHT : player flashlight"
16 : "16 - EF_INVLIGHT : get lighting from ceiling, instead of from floor"
32 : "32 - EF_NOINTERP : don't interpolate the next frame"
64 : "64 - EF_LIGHT : rocket flare glow sprite"
128 : "128 - EF_NODRAW : don't draw entity"
256 : "256 - EF_NIGHTVISION : player nightvision"
512 : "512 - EF_SNIPERLASER : sniper laser effect"
1024 : "1024 - EF_FIBERCAMERA : fiber camera"
]
</source>
</source>


[[Category:Flags]]
[[Category:Flags]]

Revision as of 15:33, 11 August 2024

Stub

This article or section is a stub. You can help by expanding it.

A set of bitflags for configuring client-side visual effects.

Flags

#define	EF_BRIGHTFIELD			1	// swirling cloud of particles
#define	EF_MUZZLEFLASH 			2	// single frame ELIGHT on entity attachment 0
#define	EF_BRIGHTLIGHT 			4	// DLIGHT centered at entity origin
#define	EF_DIMLIGHT 			8	// player flashlight
#define EF_INVLIGHT				16	// get lighting from ceiling
#define EF_NOINTERP				32	// don't interpolate the next frame
#define EF_LIGHT				64	// rocket flare glow sprite
#define EF_NODRAW				128	// don't draw entity
#define EF_NIGHTVISION			256 // player nightvision
#define EF_SNIPERLASER			512 // sniper laser effect
#define EF_FIBERCAMERA			1024// fiber camera

FGD entries

J.A.C.K. J.A.C.K.

effects(choices) : "Effect Flags" : 0 : "For configuring visual effects. If you want to combine effects, simply type in the sum of the effect numbers, e.g., '72' for 64+8." =
[
	0 : "0 - None"
	1 : "1 - EF_BRIGHTFIELD" : "swirling cloud of particles"
	2 : "2 - EF_MUZZLEFLASH" : "single frame ELIGHT on entity attachment 0"
	4 : "4 - EF_BRIGHTLIGHT" : "DLIGHT centered at entity origin"
	8 : "8 - EF_DIMLIGHT" : "player flashlight"
	16 : "16 - EF_INVLIGHT" : "get lighting from ceiling, instead of from floor"
	32 : "32 - EF_NOINTERP" : "don't interpolate the next frame"
	64 : "64 - EF_LIGHT" : "rocket flare glow sprite"
	128 : "128 - EF_NODRAW" : "don't draw entity"
	256 : "256 - EF_NIGHTVISION" : "player nightvision"
	512 : "512 - EF_SNIPERLASER" : "sniper laser effect"
	1024 : "1024 - EF_FIBERCAMERA" : "fiber camera"
]

TrenchBroom TrenchBroom

effects(flags) : "Effect Flags"  =
[
	0 : "0 - None"
	1 : "1 - EF_BRIGHTFIELD: swirling cloud of particles"
	2 : "2 - EF_MUZZLEFLASH: single frame ELIGHT on entity attachment 0"
	4 : "4 - EF_BRIGHTLIGHT: DLIGHT centered at entity origin"
	8 : "8 - EF_DIMLIGHT : player flashlight"
	16 : "16 - EF_INVLIGHT : get lighting from ceiling, instead of from floor"
	32 : "32 - EF_NOINTERP : don't interpolate the next frame"
	64 : "64 - EF_LIGHT : rocket flare glow sprite"
	128 : "128 - EF_NODRAW : don't draw entity"
	256 : "256 - EF_NIGHTVISION : player nightvision"
	512 : "512 - EF_SNIPERLASER : sniper laser effect"
	1024 : "1024 - EF_FIBERCAMERA : fiber camera"
]