Difference between revisions of "Detail props"

From Valve Developer Community
Jump to: navigation, search
 
(Refining Detail Shapes)
Line 31: Line 31:
 
'''Value''': 0.0 => 1.0
 
'''Value''': 0.0 => 1.0
 
|-
 
|-
| <code>"shape_angle"</code> || ''Specific to "tri" shape''. Degrees to angle out each of the leaves .
+
| <code>"shape_angle"</code> || ''Specific to "tri" shape''. Degrees to angle out each of the leaves.
 
<br>
 
<br>
'''Value''': 0 => 360 (Untested)
+
'''Value''': 0 => 90 (Untested)
 
|-
 
|-
| <code>"shape_size"</code> || ''Specific to "tri" shape''. Percentage of sprite width to separate each leaf. near 0 for a triangle shape, near 1 for a closer, criss-cross shape .
+
| <code>"shape_size"</code> || ''Specific to "tri" shape''. Percentage of sprite width to separate each leaf. near 0 for a triangle shape, near 1 for a closer, criss-cross shape.
 
<br>
 
<br>
 
'''Value''': 0, 1 (Untested)
 
'''Value''': 0, 1 (Untested)
 
|}
 
|}

Revision as of 00:07, 28 September 2005

Detail Shapes / Sprites

Detail Shapes are a new way for the engine to place auto-emitted detail props on a surface, as specified by the detail.vbsp file. Introduced in the Day of Defeat: Source release, "Detail Shapes" allow normal sprites to be placed in a variety of shapes, as well as adding both a swaying motion and displacement (so that sprites move out the way when touched by a player).


Type of Detail Shapes

Detail Shape Comment
cross "cross" This makes a criss-cross shape.


Places two sprites crossing over one-another in the middle.

triangle "tri" This makes a detail in the exploded prism shape .


Places three sprites sitting equidistant from each other in a triangle formation.


Refining Detail Shapes

There are several propeties for the detail.vbsp file which refine the shape of the detail sprites, as well as enhacing their aesthetic quality (such as the sway).


Propety Comment
"sway" Percentage of cl_detail_max_sway ( default 5 ).


Value: 0.0 => 1.0

"shape_angle" Specific to "tri" shape. Degrees to angle out each of the leaves.


Value: 0 => 90 (Untested)

"shape_size" Specific to "tri" shape. Percentage of sprite width to separate each leaf. near 0 for a triangle shape, near 1 for a closer, criss-cross shape.


Value: 0, 1 (Untested)