env_model
Similar to env_sprite, but for models. A faithful recreation of the entity from Spirit of Half-Life.
Spawnflags
SF_ENVMODEL_OFF |
1 (switches between the two animations specified in m_iszSequence_On and m_iszSequence_Off) |
SF_ENVMODEL_DROPTOFLOOR |
2 (put the model down on the ground at start) |
SF_ENVMODEL_SOLID |
4 (the model is solid) |
Options
m_iszSequence_On |
Animation that is played in an active state: name or number. |
m_iszSequence_Off |
Animation that is played in an inactive (idle) state: name or number. |
m_iAction_On |
What happens after the animation has been played in an active state:
- 0—stop
- 1—replay
- 2—switch to the OFF state
|
m_iAction_Off |
What happens after the animation has been played in an inactive state:
- 0—stop
- 1—replay
- 2—switch to the ON state
|
Usage Details
- Remember that although activating and deactivating the model is essentially switching between the ON and OFF states, effectively this is switching between two animations with flexible post-playback configuration.