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 1: Line 1:
{{todo|add explanation.}}
{{todo|add explanation.}}
{{note|This tutorial assumes a basic familiarity with [[ModelDoc]] usage as established by the earlier tutorials.}}
{{note|This tutorial assumes a basic familiarity with [[ModelDoc]] usage as established by the earlier tutorials.}}


{{Bug|func_breakable does not spawn gibs on break in counter-strike 2. It's recommended to use prop_dynamic instead}}
{{Bug|func_breakable does not spawn gibs on break in counter-strike 2. It's recommended to use prop_dynamic instead}}
== Unbroken glass model setup ==
== 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
[[File:Unbrokenwindow breakpiece.png]]
== Broken glass model setup ==
{{Note|Windows should be in rectangular form for procedural shattered glass model.}}
{{Note|Windows should be in rectangular form for procedural shattered glass model.}}
== Broken glass model setup ==
== Glass material setup ==
== Glass material setup ==

Revision as of 00:05, 21 August 2024

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