Effect flags: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
enum
For configuring client-side visual effects. Not available on the server.
{
 
[[EF_BONEMERGE]] = 0x001, // Performs bone merge on client side
== Flags ==
[[EF_BRIGHTLIGHT]] = 0x002, // DLIGHT centered at entity origin
 
[[EF_DIMLIGHT]] = 0x004, // player flashlight
;[[EF_BONEMERGE]]
[[EF_NOINTERP]] = 0x008, // don't interpolate the next frame
:Performs [[bone merge]] on client side.
[[EF_NOSHADOW]] = 0x010, // Don't cast no shadow
;[[EF_BRIGHTLIGHT]]
[[EF_NODRAW]] = 0x020, // don't draw entity
:Emit a [[DLIGHT]] from [[origin]].
[[EF_NORECEIVESHADOW]] = 0x040, // Don't receive no shadow
;[[EF_DIMLIGHT]]
[[EF_BONEMERGE_FASTCULL]] = 0x080, // For use with EF_BONEMERGE. If this is set, then it places this
:Player flashlight.
// ent's origin at its parent and uses the parent's bbox + the max
;[[EF_NOINTERP]]
// extents of the aiment. Otherwise, it sets up the parent's bones
:Don't [[interpolate]] the next frame.
// every frame to figure out where to place the aiment, which is
;[[EF_NOSHADOW]]
// inefficient because it'll setup the parent's bones even if the
:Don't cast a shadow. {{todo|Does this still apply to shadow maps?}}
// parent is not in the PVS.
;[[EF_NODRAW]]
[[EF_ITEM_BLINK]] = 0x100, // blink an item so that the user notices it.
:Don't transmit the entity to the client.
[[EF_PARENT_ANIMATES]] = 0x200, // always assume that the parent entity is animating
;[[EF_NORECEIVESHADOW]]
EF_MAX_BITS = 10
:Don't receive shadows.
};
;[[EF_BONEMERGE_FASTCULL]]
:For use with EF_BONEMERGE. If this is set, then it places this ent's origin at its parent and uses the parent's [[bbox]] + the max extents of the [[aiment]]. Otherwise, it sets up the parent's bones every frame to figure out where to place the aiment, which is inefficient because it'll setup the parent's bones even if the parent is not in the [[PVS]].
;[[EF_ITEM_BLINK]]
:Blink an item so that the user notices it.
;[[EF_PARENT_ANIMATES]]
:Always assume that the [[parent]] entity is animating.
 
[[Category:Flags]]
[[Category:Flags]]

Revision as of 08:08, 4 July 2008

For configuring client-side visual effects. Not available on the server.

Flags

EF_BONEMERGE
Performs bone merge on client side.
EF_BRIGHTLIGHT
Emit a DLIGHT from origin.
EF_DIMLIGHT
Player flashlight.
EF_NOINTERP
Don't interpolate the next frame.
EF_NOSHADOW
Don't cast a shadow.
Todo: Does this still apply to shadow maps?
EF_NODRAW
Don't transmit the entity to the client.
EF_NORECEIVESHADOW
Don't receive shadows.
EF_BONEMERGE_FASTCULL
For use with EF_BONEMERGE. If this is set, then it places this ent's origin at its parent and uses the parent's bbox + the max extents of the aiment. Otherwise, it sets up the parent's bones every frame to figure out where to place the aiment, which is inefficient because it'll setup the parent's bones even if the parent is not in the PVS.
EF_ITEM_BLINK
Blink an item so that the user notices it.
EF_PARENT_ANIMATES
Always assume that the parent entity is animating.