Effect flags: Difference between revisions
Jump to navigation
Jump to search
IS NEW Puddy (talk | contribs) (available on the server.) |
Gtamike TSGK (talk | contribs) m (Changed Xbox 1 to original Xbox) |
||
| Line 28: | Line 28: | ||
:For use with <code>EF_BONEMERGE</code>. If set, the entity will use its parent's origin to calculate whether it is visible; if not set, it will set up parent's bones every frame even if the parent is not in the [[PVS]]. | :For use with <code>EF_BONEMERGE</code>. If set, the entity will use its parent's origin to calculate whether it is visible; if not set, it will set up parent's bones every frame even if the parent is not in the [[PVS]]. | ||
;256 - <code>EF_ITEM_BLINK</code> | ;256 - <code>EF_ITEM_BLINK</code> | ||
:Blink an item so that the user notices it. Added for Xbox | :Blink an item so that the user notices it. Added for original Xbox, and really not very subtle. | ||
;512 - <code>EF_PARENT_ANIMATES</code> | ;512 - <code>EF_PARENT_ANIMATES</code> | ||
:Assume that the [[parent]] entity is always animating. Causes it to realign every frame. | :Assume that the [[parent]] entity is always animating. Causes it to realign every frame. | ||
Revision as of 04:03, 20 July 2017
For configuring client-side visual effects.
Usage from Hammer
Effect flags can be configured from Hammer. To do so turn off SmartEdit and add a new keyvalue pair:
effects <n>
'n' is the sum total of the flags you want to use. For example, 66 would mean EF_BRIGHTLIGHT and EF_NORECEIVESHADOW.
Flags
- 1 -
EF_BONEMERGE - Merges bones of names shared with a parent entity to the position and direction of the parent's.
- 2 -
EF_BRIGHTLIGHT - Emits a dynamic light of RGB(250,250,250) and a random radius of 400 to 431 from the origin.
- 4 -
EF_DIMLIGHT - Emits a dynamic light of RGB(100,100,100) and a random radius of 200 to 231 from the origin.
- 8 -
EF_NOINTERP - Don't interpolate on the next frame.
- 16 -
EF_NOSHADOW - Don't cast a shadow. Todo: Does this also apply to shadow maps?
- 32 -
EF_NODRAW - Entity is completely ignored by the client. Can cause prediction errors if a player proceeds to collide with it on the server.
- 64 -
EF_NORECEIVESHADOW - Don't receive dynamic shadows.
- 128 -
EF_BONEMERGE_FASTCULL - For use with
EF_BONEMERGE. If set, the entity will use its parent's origin to calculate whether it is visible; if not set, it will set up parent's bones every frame even if the parent is not in the PVS. - 256 -
EF_ITEM_BLINK - Blink an item so that the user notices it. Added for original Xbox, and really not very subtle.
- 512 -
EF_PARENT_ANIMATES - Assume that the parent entity is always animating. Causes it to realign every frame.
Functions
AddEFlags()/SetEFlags()RemoveEFlags()GetEFlags()IsEFlagSet()