Difference between revisions of "Func detail"

From Sven Co-op
Jump to navigation Jump to search
(Added missing zhlt_coplanarpriority to list of keyvalues)
(Corrected description of detail level)
Line 8: Line 8:
 
== Keyvalues ==
 
== Keyvalues ==
  
{{Entity_keyvalue|Detail level|zhlt_detaillevel|Detailed brushes with different detail level won't chop each other. Use higher amount for smaller details. Try to avoid too many detail levels in the map (it's increasing .bsp file size)}}
+
{{Entity_keyvalue|Detail level|zhlt_detaillevel|The brush's detail level. Each level will be chopped by brushes of equal or lower detail level, and always be chopped by world brushes, and only chop brushes of equal or greater level. Use higher amount for smaller details. Try to avoid too many detail levels in the map (it's increasing .bsp file size)}}
 
{{Entity_keyvalue|Lower it's level to chop others|zhlt_chopdown|If you set this value to no lower than detail level, this brush can chop world brushes (if 'detail level' minus 'lower it's level to chop others' is equal to 0) and brushes from lower detail levels.}}
 
{{Entity_keyvalue|Lower it's level to chop others|zhlt_chopdown|If you set this value to no lower than detail level, this brush can chop world brushes (if 'detail level' minus 'lower it's level to chop others' is equal to 0) and brushes from lower detail levels.}}
 
{{Entity_keyvalue|Raise it's level to get chopped|zhlt_chopup|Specify to chop brushes from higher detail levels that this func_detail.}}
 
{{Entity_keyvalue|Raise it's level to get chopped|zhlt_chopup|Specify to chop brushes from higher detail levels that this func_detail.}}

Revision as of 12:03, 17 January 2023

func_detail
Type

brush

Status

supported

 


Func_detail is useful brush entity, similar to func_wall except it doesn't support Render Modes. Detailed brushes like tables, computers, pipes, cars etc. should be turned into func_detail instead of func_wall. Brushes tied into func_detail are Detail Brushes. Detail brushes don't block vis, nor slowing vis processing down. It won't chop other brushes, helps to avoid many compiling warnings. The one of most important feature of func_detail is that detail brushes won't count into models limit (just like func_walls) which is very easy to exceed in Sven Co-op. You can customize detail level (description below), and passability of func_brush (it's better than func_illusionary because of better lightning receiving and in-game decals support). Using this brush in replace of func_wall is highly recommended. Every keyvalue are optional, it's recommended to leave them as they are (instead of 'Passable' key) for beginner mappers.

1 Keyvalues

Detail level : zhlt_detaillevel

The brush's detail level. Each level will be chopped by brushes of equal or lower detail level, and always be chopped by world brushes, and only chop brushes of equal or greater level. Use higher amount for smaller details. Try to avoid too many detail levels in the map (it's increasing .bsp file size)

Lower it's level to chop others : zhlt_chopdown

If you set this value to no lower than detail level, this brush can chop world brushes (if 'detail level' minus 'lower it's level to chop others' is equal to 0) and brushes from lower detail levels.

Raise it's level to get chopped : zhlt_chopup

Specify to chop brushes from higher detail levels that this func_detail.

Priority when faces overlap : zhlt_coplanarpriority

Helps prevent z-fighting between two or more overlapping detail brush faces by giving each detail its own priority. Does not work to give priority to a detail brush face over a world brush face.

Detail level of cliphull : zhlt_clipnodedetaillevel

Should always be '0' or '1' unless you are grappling with cliphull errors.

Passable : zhlt_noclip

Specify whenever func_detail can be walked through ('Yes') or have full collision ('No'). Note that bullets will still hit this entity when it's passable.

2 Notes

  • Detail layers uses an advanced method to decide leafnode content, so they won't cause "Ambiguous leafnode contents" compile warning.