Counter-Strike 2 Workshop Tools/BreakableWindows

From Valve Developer Community
Jump to navigation Jump to search
Todo: add explanation.
Note.pngNote:This tutorial assumes a basic familiarity with ModelDoc usage as established by the earlier tutorials.
Icon-Bug.pngBug:func_breakable does not spawn gibs on break in counter-strike 2. It's recommended to use prop_dynamic instead  [todo tested in ?]

Creating unbroken glass model

  • 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

Broken glass model setup

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

Glass material setup