Env particlescript: Difference between revisions
Jump to navigation
Jump to search

Note:Using info_particle_system is preferred.
Le Glaconus (talk | contribs) (clarification) |
Le Glaconus (talk | contribs) mNo edit summary |
||
| Line 5: | Line 5: | ||
{{ExpandBox|title=Example [[QC]] snippet from {{path|ambient_citadel_paths|mdl|icon=file}}|{{clr}} | |||
<syntaxhighlight lang=js> | <syntaxhighlight lang=js> | ||
$sequence "paths1" { | $sequence "paths1" { | ||
Latest revision as of 05:48, 28 May 2025
| CEnvParticleScript |
env_particlescript is a model entity available in all
Source games. It is an entity used for creating sprites attached to the specified model's attachments. It uses 2 animation events for creating and deleting these sprites : CL_EVENT_SPRITEGROUP_CREATE (6002) and CL_EVENT_SPRITEGROUP_DESTROY (6003). In Half-Life 2, it is used for simulating hundreds of scanners leaving the Citadel in d1_trainstation_06.
Example QC snippet from
ambient_citadel_paths.mdl $sequence "paths1" {
"Ambient_citadel_paths_anims\paths1.smd"
{ event 6002 1 "output1a sprites/scanner_dots1" }
{ event 6002 1 "output1b sprites/scanner_dots2" }
{ event 6002 1 "output1c sprites/scanner_dots2" }
{ event 6002 1 "output2a sprites/scanner_dots2" }
{ event 6002 1 "output2b sprites/scanner_dots1" }
{ event 6002 1 "output2c sprites/scanner_dots2" }
{ event 6002 1 "output3a sprites/scanner_dots1" }
{ event 6002 1 "output3b sprites/scanner_dots2" }
{ event 6002 1 "output3c sprites/scanner_dots1" }
{ event 6003 98 "output1a" }
{ event 6003 98 "output1b" }
{ event 6003 98 "output1c" }
{ event 6003 98 "output2a" }
{ event 6003 98 "output2b" }
{ event 6003 98 "output2c" }
{ event 6003 98 "output3a" }
{ event 6003 98 "output3b" }
{ event 6003 98 "output3c" }
fps 7
loop
}
Keyvalues
- Name (targetname) <string>
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentnameortarget).
Also displayed in Hammer's 2D views and Entity Report. - See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Script Model (model) <model path>
- Model to use for animation sequences.
Inputs
- SetSequence <string>
- Sets the script model's sequence.