KeepSources: Don't delete the autogenerated QCs and unpacked model files after finishing. StaticPropCombine_ColorInstances: Instances of combined props get colored. StaticPropCombine_PrintCombineRules: Confirm: Prints the combine rules? Tip:Valve had this set to 3 for the new Dust 2. StaticPropCombine_MinInstances : Set the minimum number of props in a combine group required to create a combined prop. StaticPropCombine_SuggestRules: Lists models sharing the same material that should be added to spcombinerules.txt. StaticPropCombine_ConsiderVis: Instead of using the distance limit, combine all props in the group that share visclusters. Note: This does not write to spcombinerules.txt. StaticPropCombine_AutoCombine: Automatically generate static prop combine rules for props that VBSP deems should be combined. It can also be used to lower the number of static props present in a map. This lowers the number of draw calls, increasing performance.
StaticPropCombine: Merges static props together according to the rules defined in scripts/hammer/spcombinerules/spcombinerules.txt. In our example we use the following compile parameters for VBSP
In our example we create a new subfolder "example", open it and then create a text file and rename it to "pipe_combine.qc":Ĭopy and paste the following into "pipe_combine.qc" and save it:Īdd some of our example props to your map in Hammer and compile the map. Generally, they should only include:īrowse to ".\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\scripts\hammer\spcombinerules\qc_templates\". Stub QCs are QCs which contain a base template for the QCs which static prop combine generates. Then copy and paste the following into "spcombinerules.txt" and save it. Rename it to "spcombinerules_valve.txt" (or whatever you want) and create a new text file "spcombinerules.txt". It is a standard KeyValues-formatted text file. In this file the combine rules for Valves props are defined. There you will find "spcombinerules.txt". The compiled model files should be in ".\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\models\props\example\" now.īrowse to ".\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\scripts\hammer\spcombinerules\" Then browse to ".\Steam\steamapps\common\content\csgo\models\example\" and compile the QCs. Open your model compile tool (I use Crowbar) Your models have to be compiled from this directory now: $appendsource and $addconvexsrc are not recognized. In our example we have another subfolder "example".
#Error killzone mercenary vpk download#
You can download the example files here (contains the *.qc and *.smd files) :īrowse to ".\Steam\steamapps\common\content\csgo\"Ĭreate a folder "models". In this guide we will use two different pipe props: And then change the names - otherwise, the version of the prop that is packed in the VPK would overwrite your version. If you want to combine props made by Valve, you will need to decompile them first. So if you want to combine props made by you, you should already have these files. Reference mesh (supported formats are *.smd, *.dmx and *.fbx) You must have the source files of the models you want to be combined. In general we recommend to duplicate your "Counter-Strike Global Offensive" folder, so you can use a separate installation of CS:GO for mapping while keeping the other one clean for playing. So it's time to backup your game files now if you have not already. We do not take responsibility for any damage done to your files. We presuppose that you are already familiar with the creation of props
#Error killzone mercenary vpk how to#
So we decided that it's time to publish a step by step guide how to use static prop combine.
But since then it was not (?) used by community mappers, there are no (?) guides on the Internet except this helped me to make static prop combine feature do its job. The static prop combine feature was added in 2016 with the release of the reworked de_nuke.
Valve has stated that Nuke runs 40% faster after they implemented static prop combine. That's where static prop combine comes into play:īy combining models sharing the same materials, less draw calls are performed, which greatly helps optimization. And these draw calls are very performance-hungry. In Source, there is one draw call per model per material. So if you use small props, it's easier to hide what is not visible. Most people might think that "the less geometry rendered the better". Static prop combine is another feature to optimize your maps. It allows VBSP to merge together multiple static props into a single static prop, either automatically or with user-defined rules. Static prop combine, or informally speaking "autocombine", is a new feature in CS:GO's VBSP. Static Prop Combine in Counter-Strike: Global Offensive