func_detail

From Sven Co-op
Revision as of 02:51, 28 January 2019 by GeckonCZ (talk | contribs) (Formatting, typos, links etc.)
Jump to navigation Jump to search
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

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)

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.

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.