Defining Clipmodel with Mins/Maxs

From The DarkMod Wiki
Jump to navigationJump to search

Originally written by Ishtvan on

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.