Advanced and optimized destruction system [Demo]
This map features a massive wall made of several identical prefabs.
Button functions (from right to left):
1. Completely destroys the wall (stress test).
2. Standard optimization
3. Additional optimization
4. Smoke particles
How the optimization works (there are three types):
1. Hidden optimization (cannot be disabled) – after physics is enabled (OnMotionEnabled), each prefab element is assigned the *Debris* property after a short delay via a custom Output: SetDebris
2. Standard optimization (disabled by default) – all prefab elements are instantly assigned the *Debris* property once physics is enabled simultaneously
3. Additional optimization (disabled by default) – each prefab element is removed after some time once physics is enabled
3.1. Smoke particles (disabled by default) – after physics is enabled, some prefab elements emit smoke particles
Source files for review: https://drive.google.com/drive/folders/1p34bIHpQQ2JLo9Exz9dF7mdSx3wsdept?usp=drive_link
Author: Prozvenamos (MAGregvid)
License: CC-BY-4.0
[RU] Telegram channel related to creating maps for games on the Source engine:
https://t.me/Valve_Hammer_Editor