How to make something 'breakable'
1) Create a brush with the trigger texture with a targetname of wood_splinter.
Make it a trigger_damage.
Edit the necessary parameters to your liking. Ex) How much damage till it breaks,etc.
2) Make your wood the way it looks BEFORE its broken. (solid). Select your wood and right click> script> brushmodel
3) Connect the trigger_damage to the script_brushmodel. Place off to the side.
4) Create wood the way it would look broken. Select your wood and right click> script> brushmodel
5) Select your whole Solid Wood Brushmodel and connect it to Your Broken Wood Brushmodel
6) Place the trigger and brushmodels on top of each other.
SINGLE PLAYER MAP ONLY:
7) Exec this script at the start of your level - "maps\_wood::main();" in your gsc.
Optional:
Give the trigger_damage a 'script_noteworthy' to wait for a notify to be given before the wood can break
example: 'script_noteworthy' of 'wood_time' will wait for 'level notify ("wood_time");' before pieces are breakable
So you can wait until a specific spot in your script before the wood is able to be broken.
|