Posts Tagged ‘windows’

In this post I will teach you on how to add three different types of breakable windows which are provided in Counter Strike: Global Offensive hammer editor.

The types are:

  1. Breakable Brush Window.
  2. Breakable surf Brush Window (like in CS_Office).
  3. Prop Window.

Before starting, recommend creating space to add window. Like so;

w1

Prop Window

We will start with the easier one. This will simply require two entity types. A prop_physics_multiplayer and four phys_ballsocket.

Select the Entity Tool or Shift + E, then filter in through the dropdown list for prop_physics_multiplayer. Left click in your level to add. Now that you have added a prop_physics_multiplayer you will need to set the world model. Double click the entity to open the properties. Under World Model select Browse to open the Model Browser. Filter for ‘window’. Under the info tab search for model that allows physics properties. (I’m going with window_industrial.mdl). once you have found it select OK, then give the entity a name (e.g. wind1)  and hit Apply.

Resize the brushes to fit your window

w2

Now that you have window inserted, you will need to attach it to the brushes around it so it wont fall off. That is where you will need the four phys_ballsocket. Select the entity tool and filter for ‘phys_ballsocket’ and place one on the top, bottom, left and right side of window. Like so;

w3

Enter select them all and open their properties. You will need to set the Entity 1 to the name of the window (which I choose to be wind1)

w4

Compile and run the game to test it.

Breakable and Breakable_Surf Brush Window

For this we need to create a brush that will be in the centre and them tie that brush into an entity. So select the browse button from right side of the editor to open the Texture window. Filter for ‘nodraw’ and double click the texture to select it.

Now that you have the texture, select the Block Tool or Shift + B, and create a template within the other brushes (window). I recommend it to be 2-4 units thick and as high as you want. Then right click and select create object or hit Enter.

w5

Now you have two choices;

  • func_breakable
  • func_breakable_Surf, like the windows in CS_Office which break into small crystals.

You require to add glass to the brush (window), do this by opening the Face Edit Sheet by selecting the Toggle texture Application or Shift + A. Then select the browse button to open the Textures window. Filter for ‘glass’

There are one glass texture that will work with func_breakable_surf. There are also few textures that do not allow the brush to break. This image shows you which work with what, choose carefully;

w6

  • Red – Wont work with any breakable brush.
  • Green – Only works with func_breakable.
  • Purple – Works with func_breakable and func_breakable_surf.

func_breakable

Once you have selected the glass texture, apply it on both sides of the brush (window). I recommend setting the texture to fit or centre the brush. Then select the window brush and hit Crtl + T to open the object properties window. Search for func_breakable under the class drop down list, then hit apply.

func_breakable_Surf

While for func_breakable_surf, apply the glass texture to only one side of the brush (window) leaving the other side to have nodraw. Select the brush and hit Ctrl+T to open the object properties window. Search for func_breakable_surf under the class drop down list and then hit apply.

On one side of window brushes difference between breakable and breakable_surf.

w7

 

Compile and run the game to see the affects.

Extra Information

Here are few things you can change within the window brush properties;

  • Parent – To attach it moving objects
  • Material Type – Could change the material type to something else when it breaks.
  • Health/Strength – Is the amount of damage brush can take before it breaks.