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

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:


{{Bug|func_breakable does not spawn gibs on break in {{cs2|4}}. It's recommended to use prop_dynamic instead}}
{{Bug|func_breakable does not spawn gibs on break in {{cs2|4}}. It's recommended to use prop_dynamic instead}}
{{important|Glass material should have dynamic expressions configured, otherwise there would be no break pieces.}}
== Creating unbroken glass model ==
== Creating unbroken glass model ==
*Unbroken glass setup overview
*Unbroken glass setup overview

Revision as of 21:31, 2 October 2024

Todo: polish it out, add information.
Note.pngNote:This tutorial assumes a basic familiarity with ModelDoc usage as established by the earlier tutorials.
Tip.pngTip:example model can be found in "Counter-Strike Global Offensive\content\csgo\workshop\content_examples\breakable_glass\breakable_glass_01.vmdl"
Icon-Bug.pngBug:func_breakable does not spawn gibs on break in Counter-Strike 2 Counter-Strike 2. It's recommended to use prop_dynamic instead  [todo tested in ?]


Icon-Important.pngImportant:Glass material should have dynamic expressions configured, otherwise there would be no break pieces.

Creating unbroken glass model

  • Unbroken glass setup overview

Unbroken glass overview.png

  • Add BreakPieceExternal with collision group set to "Debris", "Essential Piece" and "Force Motion Disabled" ticked, and "Health override" set to 1, after broken model is done, reference it here. Set desired fade time

Unbrokenwindow breakpiece.png

  • Add PhysicsHullFromRenderer

Breakableglass physhullrenderere.png

Broken glass model setup

Note.pngNote:Windows should be in rectangular form for procedural shattered glass model.

Glass material setup

info by marnamai