Noclipmodel: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
(fixup)
m (fix link and add examples)
Line 1: Line 1:
== Description ==
== Description ==


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


* [[mins]],[[maxs]] '''or'''
* [[mins]],[[maxs]] '''or'''
Line 18: Line 18:


This would create a box of 8, 20 and 32 units in X, Y and Z direction.
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.


{{spawnargs}}
{{spawnargs}}

Revision as of 18:18, 5 February 2008

Description

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

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.