This article's documentation is for anything that uses the Source engine. Click here for more information.

Env particlescript: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(32 intermediate revisions by 22 users not shown)
Line 1: Line 1:
[http://letmeentertain.etotest.info/ let me entertain you] [http://dragosteadin.etotest.info/ dragostea din tei gabry ponte] [http://tiffa.skains.info/ tiffa] [http://fotodellacellula.etotest.info/ foto della cellula] [http://bornintheusa.skains.info/ born in the usa] [http://behav.info/index2_250.html page] [http://darjaodarya.wedged.info/ darja o darya] [http://paginapoliticaquotidiano.enlard.info/ pagina politica quotidiano republica] [http://zadoc.etotest.info/ zadoc] [http://vitignirefosco.enlard.info/ vitigni refosco peduncolo rosso] [http://wwwbasurita.demogen.info/ www basurita com] [http://silense.enlard.info/ silense] [http://dvd85dl.alient.info/ dvd 8 5 dl] [http://iceberguniverse.alient.info/ iceberg universe] [http://lcd10dvd.behav.info/ lcd 10 dvd] [http://augurifineanno.enlard.info/ auguri fine anno] [http://notteditempesta.alient.info/ notte di tempesta] [http://volpenuda.alient.info/ volpe nuda] [http://secakey.enlard.info/ seca key] [http://jenifer.behav.info/ jenifer] [http://enclosure525.etotest.info/ enclosure 5 25] [http://mancinismo.etotest.info/ mancinismo] [http://wwwdatacredito.behav.info/ www data credito com co] [http://scriabin.alient.info/ scriabin] [http://bobdilanmp3.behav.info/ bob dilan mp3] [http://sacanagem.demogen.info/ sacanagem] [http://fotosdechicas.demogen.info/ fotos de chicas desnudas] [http://oklahomaristorante.demogen.info/ oklahoma ristorante] [http://acnoenergizer.behav.info/ acno energizer] [http://hotelvarese.wedged.info/ hotel varese] [http://warisover.enlard.info/ war is over] [http://otrodiamassin.alient.info/ otro dia mas sin verte] [http://starterkit.skains.info/ starter kit] [http://thebleckeyedpeas.demogen.info/ the bleck eyed peas] [http://habbohotel.skains.info/ habbo hotel] [http://omniasexit.behav.info/ omniasex it] [http://sarahferguson.alient.info/ sarah ferguson nuda] [http://camperusati.behav.info/ camper usati] [http://cressiellipsetitanium.etotest.info/ cressi ellipse titanium] [http://lostra.alient.info/ lostra] [http://terminillo.demogen.info/ terminillo] [http://provinciaps.etotest.info/ provincia ps it] [http://provainfinity.demogen.info/ prova infinity beta 50] [http://deschampseustache.skains.info/ deschamps eustache] [http://camiondarally.enlard.info/ camion da rally] [http://hineonnowyouare.wedged.info/ hine on now you are a star] [http://solitarioplatino.alient.info/ solitario platino] [http://wwwhotelhelios.enlard.info/ www hotel helios marina di noto it] [http://hallasaph.behav.info/ hall asaph] [http://storiedifantasmi.demogen.info/ storie di fantasmi cinesi] [http://paolospoladore.etotest.info/ paolo spoladore] [http://ibmscrollpoint.behav.info/ ibm scrollpoint] [http://wirelessdolby.demogen.info/ wireless dolby] [http://jedi.etotest.info/ jedi] [http://facesitting.enlard.info/ facesitting] [http://barrieraprotezione.enlard.info/ barriera protezione letto] [http://fastreport251crack.alient.info/ fastreport 2 51 crack] [http://sono.demogen.info/ sono] [http://capoarealombardia.enlard.info/ capo area lombardia regione lombardia] [http://delonghif330.enlard.info/ delonghi f330] [http://nontoccareladonna.alient.info/ non toccare la donna bianca] [http://articolocasalingo.etotest.info/ articolo casalingo decorativi] [http://piscinegonfiabile.enlard.info/ piscine gonfiabile] [http://videosclipsde.skains.info/ videos clips de savage garden] [http://unleonenelmio.behav.info/ un leone nel mio letto] [http://barbaratucker.skains.info/ barbara tucker] [http://piediinazione.skains.info/ piedi in azione] [http://erosramazzotticoncerto.alient.info/ eros ramazzotti concerto a palermo] [http://vacats.alient.info/ v a c ats] [http://bds24ore.demogen.info/ bds 24 ore] [http://kelykeypelada.behav.info/ kely key pelada] [http://bolognacosefare.wedged.info/ bologna cose fare] [http://lgtrial.alient.info/ lg trial] [http://emailgratuita.etotest.info/ email gratuita] [http://ledodicipistole.enlard.info/ le dodici pistole del west] [http://motomondiale.alient.info/ moto mondiale] [http://xircom.demogen.info/ xircom] [http://albergoorvieto.skains.info/ albergo orvieto] [http://salveregina.skains.info/ salve regina sister act] [http://prezzibungalow.behav.info/ prezzi bungalow] [http://brucewilli.alient.info/ bruce willi] [http://trattamentobellezza.enlard.info/ trattamento bellezza] [http://greataustralian.etotest.info/ great australian bight] [http://tonerhpc7115x.enlard.info/ toner hp c7115x] [http://moondancebuble.skains.info/ moon dance buble] [http://suonerienokia.alient.info/ suonerie nokia 3600] [http://vacanzapasqua.wedged.info/ vacanza pasqua basilicata] [http://dfx.alient.info/ dfx] [http://videopornocasalinghi.demogen.info/ video porno casalinghi] [http://nokia6600caserta.wedged.info/ nokia 6600 caserta] [http://grillminute.demogen.info/ grill minute] [http://chiccomanhattan.etotest.info/ chicco manhattan] [http://hotelpisa.etotest.info/ hotel pisa] [http://tastiereretroilluminata.demogen.info/ tastiere retroilluminata] [http://risultatiesame.behav.info/ risultati esame di avvocato 2003 napoli] [http://wwwchat.wedged.info/ www chat] [http://assicurazione.alient.info/ assicurazione abano terme] [http://corsidellasl.behav.info/ corsi dell asl di sassari] [http://servizioposizionamenti.demogen.info/ servizio posizionamenti motore ricerca] [http://giovanicarinie.etotest.info/ giovani carini e disoccupati]
{{LanguageBar}}
{{wrongtitle|title=env_particlescript}}
{{CD|CEnvParticleScript|file1=env_particlescript.cpp}}
{{note|Using {{ent|info_particle_system}} is preferred.}}
{{this is a|model entity|name=env_particlescript}} It is an entity used for creating sprites attached to the specified model's attachments. It uses 2 [[Animation Events|animation events]] for creating and deleting these sprites : <code>CL_EVENT_SPRITEGROUP_CREATE</code> (6002) and <code>CL_EVENT_SPRITEGROUP_DESTROY</code> (6003). In {{hl2|1}}, it is used for simulating hundreds of [[scanners]] leaving the [[Citadel]] in <code>d1_trainstation_06</code>.


== Entity description ==
An entity that has special animation events that can be fired by a model with an animation inside its .qc designed for use by this entity.


== Keyvalues ==
{{ExpandBox|title=Example [[QC]] snippet from {{path|ambient_citadel_paths|mdl|icon=file}}|{{clr}}
* {{kv targetname}}
<syntaxhighlight lang=js>
$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
}
</syntaxhighlight>
}}


* {{kv parentname}}
==Keyvalues==
{{KV Targetname}}
{{KV|Script Model|intn=model|model|Model to use for animation sequences.}}


* {{kv angles}}
==Inputs==
 
{{I|SetSequence|Sets the script model's sequence.|param=string}}
* '''model'''
: <studio> Model to use for animation sequences.
 
== Inputs ==
* {{i targetname}}
 
* {{i parentname}}
 
*'''SetSequence <string>'''
:Sets the script model's sequence.
 
== Outputs ==
* {{o targetname}}
 
[[Category:Entities]]

Latest revision as of 06:48, 28 May 2025

English (en)Translate (Translate)
C++ Class hierarchy
CEnvParticleScript
CBaseAnimating
CBaseEntity
C++ env_particlescript.cpp
Note.pngNote:Using info_particle_system is preferred.

env_particlescript is a model entity available in all Source 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 Fileambient_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>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
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 <stringRedirectInput/string>
Sets the script model's sequence.