Defining Clipmodel with Mins/Maxs

From The DarkMod Wiki
Revision as of 10:17, 11 September 2006 by Greebo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Originally written by Ishtvan on http://forums.thedarkmod.com/topic/3931

The spawnargs "mins" and "maxs" may be set to define a simple clip box for any entity (even lights!).

These are two vectors that define opposite corners of the clipbox, and are relative to the entity origin.

Alternatively, you can set "size" and get a clipping cube of that size centered on the origin. I'm not sure if "size" refers to the body diagonal or to an edge of the cube.

Anyway, this is one way to give something a simple clip box. I believe you can also set up different shapes like on the projectile.