This article relates to the game "Portal 2." Click here for more information.

Comp pack: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Cleanup)
 
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{LanguageBar}}
{{P2CE topicon}}
{{P2CE topicon}}
{{ModernWarning|This article is still under development. Please excuse the informal appearance while we work on this.}}
{{this is a|point entity|internal=1|sprite=1|name=comp_pack|game=Strata Source|game1=TeamSpen's Hammer Addons}}  
{{entity|comp_pack|type=e1|game=Portal 2: Community Edition}} It is also available in all games with {{teamspen|4}} installed. It is a [[Point entity]] that works with the TeamSpen's Hammer Addons' postcompiler to forcefully pack selected models/materials/sounds/soundscripts into the [[Bsp|.BSP]] file when compiling, essentially eliminating the need to manually pack files with [[Bspzip]]. This entity is removed on on map compilation and does not contribute to the entity limit
 
It is a [[Point entity]] that works with the TeamSpen's Hammer Addons' postcompiler to forcefully pack selected models/materials/sounds/soundscripts into the [[Bsp|.BSP]] file when compiling, essentially eliminating the need to manually pack files with [[Bspzip]]. This entity is removed on on map compilation and does not contribute to the entity limit.
Multiple <code>comp_pack</code>s can be used in conjunction to pack multiple files into the BSP.  
Multiple <code>comp_pack</code>s can be used in conjunction to pack multiple files into the BSP.  
{{ModernWarning|Always compile the map first to check and see if the file you want already got automatically packed by the postcompiler. This should only be used if the file you need refuses to get automatically packed.}}
{{warning|Always compile the map first to check and see if the file you want already got automatically packed by the postcompiler. This should only be used if the file you need refuses to get automatically packed.}}
==KeyValues==
==KeyValues==
{{KV Targetname null|vbsp only=1}}
{{KV ControlEnables}}
{{KV|Generic 1-4|intn=generic1-4|string|The path to any file to be packed.}}
{{KV|Generic 1-4|intn=generic1-4|string|The path to any file to be packed.}}
{{KV|Model 1-4|intn=model1 - 4|string|The path to the <code>.mdl</code> file of the model to be packed.}}
{{KV|Model 1-4|intn=model1 - 4|string|The path to the <code>.mdl</code> file of the model to be packed.}}
Line 10: Line 14:
{{KV|Soundscript 1-4|intn=soundscript1-4|string|The path to the soundscript file of the sound to be packed.}}
{{KV|Soundscript 1-4|intn=soundscript1-4|string|The path to the soundscript file of the sound to be packed.}}
{{KV|Particle 1-4|intn=particle1-4|string|Path to the particle file to be packed.}}
{{KV|Particle 1-4|intn=particle1-4|string|Path to the particle file to be packed.}}
{{KV|Sound 1-4|intn=sound1-4|string|path to the <code>.wav/.mp3</code> to be packed.}}
{{KV|Sound 1-4|intn=sound1-4|string|path to the <code>[[WAV|.wav]]/[[MP3|.mp3]]</code> to be packed.}}
==See Also==
 
==See also==
*[[TeamSpen's Hammer Addons]]
*[[TeamSpen's Hammer Addons]]

Latest revision as of 12:59, 4 September 2024

English (en)Translate (Translate)

Comp pack.png

comp_pack is an internal point entity available in Strata Source Strata Source and TeamSpen's Hammer Addons TeamSpen's Hammer Addons.

It is a Point entity that works with the TeamSpen's Hammer Addons' postcompiler to forcefully pack selected models/materials/sounds/soundscripts into the .BSP file when compiling, essentially eliminating the need to manually pack files with Bspzip. This entity is removed on on map compilation and does not contribute to the entity limit. Multiple comp_packs can be used in conjunction to pack multiple files into the BSP.

Warning.pngWarning:Always compile the map first to check and see if the file you want already got automatically packed by the postcompiler. This should only be used if the file you need refuses to get automatically packed.

KeyValues

Name (targetname) <string>
Name of this entity. Can be used by compile tools as a prop_static's lighting origin.
Also displayed in Hammer's 2D views and Entity Report. No effect in-game.
ControlEnables:
Control Type (ctrl_type) <choices>
Controls how the Control Value is interpreted.
  • 0 : Is Enabled?
  • 1 : Is Disabled?
Control Value (ctrl_value) <choices>
Decides whether this entity is enabled. If disabled, the entity has no effect.
  • 0 : No
  • 1 : Yes
Generic 1-4 (generic1-4) <string>
The path to any file to be packed.
Model 1-4 (model1 - 4) <string>
The path to the .mdl file of the model to be packed.
Material 1-4 (material1 - 4) <string>
The path to the .vmt file of the material to be packed.
Soundscript 1-4 (soundscript1-4) <string>
The path to the soundscript file of the sound to be packed.
Particle 1-4 (particle1-4) <string>
Path to the particle file to be packed.
Sound 1-4 (sound1-4) <string>
path to the .wav/.mp3 to be packed.

See also