DODS/Rocket targets: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
m (→‎Make a Brush: Unicodifying, replaced: [[image: → [[File: (2))
 
(11 intermediate revisions by 7 users not shown)
Line 1: Line 1:
This tutorial will show you how to make a a wall that can only be destroyed by rockets, or a very well placed grenade.
{{todo|Rewrite the tutorial to use <code>filter_damage_type</code> instead, since it would likely be a much more foolproof way of doing this.}}
 
A tutorial on how to make a wall that can only be destroyed by rockets or grenades.
[[image:Wall_remains.JPG|thumb|right|The remains of the wall]]
===Make your Brush===
Create the brush you would like to have remain after the wall is destroyed. 
 
 
[[image:Wall_destroyable.JPG|thumb|left|The destroyable part of the wall]]
Now dreate the center peice of this.  You need to give it a visual aspect that will let players know that it can be destroyed.  I still use the same thing that the official maps had in DoD 1.3, which is three cracks in it in the shape of a "Y".


===Make a Brush===
[[File:Wall_remains.JPG|thumb|left|The remains of the wall]]
Create the brush for the hole that should remain after the wall is destroyed, then create the center piece of the wall. On the wall there should be a visual aspect that will let players know that it can be destroyed. A similar technique to the DoD 1.3 maps, with 3 cracks in a "Y" Shape, can be used for instance.
[[File:Wall_destroyable.JPG|thumb|right|The destroyable part of the wall]]
===Configuring the entity===
Select all the parts of the wall that will be destroyed, and press the '''Tie To Entity''' button ('''Ctrl + T'''). Set the entity as a <code>func_breakable</code> and change any other values should they need to be different. The only keyvalues that need to be changed for this tutorial are the '''Strength''' and '''Min Damage to Hurt''' values. Since the Kar98 and Springfield snipers both do 120 damage, the Min Damage to Hurt must be more than that. Rockets generally do 125 damage, so set '''Min Damage to Hurt''' to '''125'''. The strength can be anything, though it is recommended to be 125 times the number of rockets you want to be needed to break the wall.


===Problems===
Rockets may not always do enough damage to surpass the 125 damage needed to hurt the wall, in this case <code>[[filter_damage_type]]</code> could be used as an alternative method.


===Configuring the entity===
[[Category:Day of Defeat: Source level design]]
Select all the parts of the wall that will be destroyed, and press the '''Tie To Entity''' button (or press '''ctrl + T''').  Set the entity as a '''func_breakable''' and set it up however you wish.  The only keyvalues you need to worry about are the '''Strength''' and '''Min Damage to Hurt'''.  Since the k98k and snipers both do 120 damage, you need to set the Min Damage to Hurt to more than that.  Rockets generally do 125 damage, so set '''Min Damage to Hurt''' to '''125'''.  The strength can be whatever you want it to be.  I normally set it to 100*the number of rocket to kill.
 
===Test it out===
Now you can test it out.  sometimes the rocket wont reach th 125 damage point, so it wont hurt the wall, which im sure happened with "dud" rockets.  Only the rockets, or a grenade that is placed inside the crack of the wall will destroy it.

Latest revision as of 08:45, 8 January 2024

Todo: Rewrite the tutorial to use filter_damage_type instead, since it would likely be a much more foolproof way of doing this.

A tutorial on how to make a wall that can only be destroyed by rockets or grenades.

Make a Brush

The remains of the wall

Create the brush for the hole that should remain after the wall is destroyed, then create the center piece of the wall. On the wall there should be a visual aspect that will let players know that it can be destroyed. A similar technique to the DoD 1.3 maps, with 3 cracks in a "Y" Shape, can be used for instance.

The destroyable part of the wall

Configuring the entity

Select all the parts of the wall that will be destroyed, and press the Tie To Entity button (Ctrl + T). Set the entity as a func_breakable and change any other values should they need to be different. The only keyvalues that need to be changed for this tutorial are the Strength and Min Damage to Hurt values. Since the Kar98 and Springfield snipers both do 120 damage, the Min Damage to Hurt must be more than that. Rockets generally do 125 damage, so set Min Damage to Hurt to 125. The strength can be anything, though it is recommended to be 125 times the number of rockets you want to be needed to break the wall.

Problems

Rockets may not always do enough damage to surpass the 125 damage needed to hurt the wall, in this case filter_damage_type could be used as an alternative method.