Counter-Strike 2 Workshop Tools/Particles: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Guide on enabling the particle editor in CS2 tools)
m (Make clearer which sections must be removed to enable the particle editor)
Line 6: Line 6:
In sdkenginetools.txt, delete the lines from "m_ExcludeFromMods = " to "]" inclusive from the following snippet:
In sdkenginetools.txt, delete the lines from "m_ExcludeFromMods = " to "]" inclusive from the following snippet:


<syntaxhighlight>
<syntaxhighlight lang="cpp">
{
{
m_Name = "pet"
m_Name = "pet"
Line 16: Line 16:
"particle_asset",
"particle_asset",
]
]
m_ExcludeFromMods =  
//m_ExcludeFromMods =  
[
//[
"csgo",
// "csgo",
]
//]
},
},
</syntaxhighlight>
</syntaxhighlight>
Line 25: Line 25:
And in assettypes_common.txt.txt, delete the lines from "m_HideForRetailMods = " to "]" inclusive from the following snippet:
And in assettypes_common.txt.txt, delete the lines from "m_HideForRetailMods = " to "]" inclusive from the following snippet:


<syntaxhighlight>
<syntaxhighlight lang="cpp">
particle_asset =  
particle_asset =  
{
{
Line 43: Line 43:
},
},
]
]
m_HideForRetailMods =
//m_HideForRetailMods =
[
//[
"csgo",
// "csgo",
]
//]
}
}
</syntaxhighlight>
</syntaxhighlight>

Revision as of 12:09, 9 December 2023

English (en)Translate (Translate)

Enabling the Particle Editor

The particle editor is disabled in CS2 by default. To enable the particle editor, "game/bin/sdkenginetools.txt" and "game/bin/assettypes_common.txt" must both be edited.

In sdkenginetools.txt, delete the lines from "m_ExcludeFromMods = " to "]" inclusive from the following snippet:

{
	m_Name = "pet"
	m_FriendlyName = "Particle Editor"
	m_Library = "tools/pet.dll"
	m_ToolIcon = "game:tools/images/pet/appicon.ico"
	m_AssetTypes = 
	[
		"particle_asset",
	]
	//m_ExcludeFromMods = 
	//[
	//	"csgo",
	//]
},

And in assettypes_common.txt.txt, delete the lines from "m_HideForRetailMods = " to "]" inclusive from the following snippet:

particle_asset = 
{
	_class = "CResourceAssetTypeInfo"
	m_FriendlyName = "Particle System"
	m_Ext = "vpcf"
	m_IconLg = "game:tools/images/assettypes/particles_lg.png"
	m_IconSm = "game:tools/images/assettypes/particles_sm.png"
	m_CompilerIdentifier = "CompileParticle"
	m_bPrefersLivePreview = true
	m_bUnrecognizedReferencesAreErrors = true
	m_Blocks = 
	[
		{
			m_BlockID = "DATA"
			m_Encoding = "RESOURCE_ENCODING_KV3"
		},
	]
	//m_HideForRetailMods =
	//[
	//	"csgo",
	//]
}

Getting Started

Tutorials

Functions

Other Topics