Particles manifest.txt: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(<map name>_manifest.txt)
Line 1: Line 1:
A plain-text file in <code><game dir>/particles/</code> that lists all [[PCF]] files that a mod/game is to access. A PCF not listed in this Text file will not be loaded by the engine.
Particle systems must be registered in a '''manifest file'''. These are:


== Example ==
* <code>particles\particles_manifest.txt</code>
* <code>particles\<map name>_manifest.txt</code> (per-map)
 
{{confirm|The second manifest option may not work in Portal, Ep2, or old OB mods.}}
 
== Syntax ==
 
{{tip|PCFs prefixed with a <code>!</code> character will be [[Precache()|precached]] globally. Others will be precached by entities compiled into the map.}}


  particles_manifest
  particles_manifest
  {
  {
  "file" "particles/error.pcf"
  file "particles/error.pcf"
  "file" "particles/fire_01.pcf"
  file "particles/fire_01.pcf"
  "file" "particles/burning_fx.pcf"
  file "particles/burning_fx.pcf"
  "file" "particles/explosions.pcf"
  file "particles/explosions.pcf"
  "file" "!particles/muzzleflashes.pcf"
  file "!particles/muzzleflashes.pcf"
  "file" "!particles/rockettrail.pcf"
  file "!particles/rockettrail.pcf"
  "file" "!particles/achievement.pcf"
  file "!particles/achievement.pcf"
  }
  }


{{note|If a filename has an ! in front of it, it will always be precached.}}
[[Category:Particle System]]
[[Category:Glossary]]
[[Category:Glossary]]

Revision as of 07:51, 13 September 2009

Particle systems must be registered in a manifest file. These are:

  • particles\particles_manifest.txt
  • particles\<map name>_manifest.txt (per-map)
Confirm:The second manifest option may not work in Portal, Ep2, or old OB mods.

Syntax

Tip.pngTip:PCFs prefixed with a ! character will be precached globally. Others will be precached by entities compiled into the map.
particles_manifest
{
	file	"particles/error.pcf"
	file	"particles/fire_01.pcf"
	file	"particles/burning_fx.pcf"
	file	"particles/explosions.pcf"
	file	"!particles/muzzleflashes.pcf"
	file	"!particles/rockettrail.pcf"
	file	"!particles/achievement.pcf"
}