Noclipmodel

From The DarkMod Wiki
Revision as of 09:44, 29 June 2008 by Tels (talk | contribs) (add order of evaluation)
Jump to navigationJump to search

When the noclipmodel spawnarg is set to zero (default: "0"), default collision models can be created by using one set of the following spawnargs:

The size spawnarg is only used when mins and maxs are not defined.

By default this creates a box. To create another shape, use the following spawnargs with the number of desired sides as the value:

If neither mins/maxs nor size are defined, the engine tries to load the clipmodel from the .ase, .lwo or .cm file itself.

Examples

"noclipmodel" "0"
"size"        "8 20 32"

This would create a box of 8, 20 and 32 units in X, Y and Z direction.


"noclipmodel" "0"
"size"        "8 20 32"
"cylinder"    "5"

This would create a 5-sided cylinder of 8, 20 and 32 units in X, Y and Z direction.


"noclipmodel" "0"
"size"        "8 20 32"
"cone"        "7"

This would create a 7-sided cone of 8, 20 and 32 units in X, Y and Z direction.