Breakable Object

1. Draw out a brush for the size you want your object. (See this tutorial if you don't know how to draw brushes.)


2. With your brush still selected, right-click on any of the 2D views, and choose 'func/func_explosive'.


***OPTIONAL***
3. With your brush selected, press N to open the Entities dialog box. The top window here should have 'func_explosive' selected, the middle window gives you information on what Keys/Values you can use, and the lowest window is where you enter information to change how the object will act. In the Key field type 'health', then press Tab to jump to the Value field and type '1', then press Enter. This will make sure object act as fragile glass, being destroyed instantly with one knife slash or bullet. Let's also enter the Key 'type' and the Value 'glass' and press Enter. This makes glass debris appear breifly after you destroy the item, and you'll hear a glass smashing sound (you'll obviously want to add a transparent shader to make the brush look like glass too, See this tutorial if you don't know how to apply textures/shaders). In the middle window there are many other Keys listed you can test out, along with a brief description of their function, so go and experiment!


That's it! Now you can go and test out your breakable object. In game, an icon should appear when you are close to the object, indicating you can break/shoot it. The blue bar underneath this icon shows how much health the object has. (See this tutorial if you don't know how to compile and test maps.)



 Add your comments on this tutorial

  Did it work for you? Is there anything I missed? Mistakes? Just want to say thanks? Let me know!

W³aœnie commented at 03 Dec, 2003 - 18:55

Gdzie jest textura szyy/szk³a ?? Where is glass texture/shader ??


*!AC!*ManiaK commented at 19 Nov, 2003 - 15:45

How do you let it look like an window?


*!AC!*ManiaK commented at 19 Nov, 2003 - 15:27

just press T


*!AC!*ManiaK commented at 19 Nov, 2003 - 15:27

just press T


=|BTF|=CrAzY-NuTTeR commented at 10 Nov, 2003 - 19:31

Great but could u tell me were in GTK can i find the window texture?


papek commented at 10 Sep, 2003 - 12:51

papowe to , badziew


LUCKY commented at 09 Sep, 2003 - 21:03

sorry ale czemu nie ma jak wstawiac textury i shadersy?!?!?!?!?!?!?


uber Soldat_pl commented at 08 Sep, 2003 - 17:46

super!!!!!



Sorry, the comments are now closed.
These tutorials are over 20 years old, probably rubbish, and I don't even remember writing them - but, if you desperately need to, you can shoot me a message @sqwirral on Twitter.


  Click here to return to the Main Page