Noclipmodel: Difference between revisions
From The DarkMod Wiki
Jump to navigationJump to search
m fix link and add examples |
rem needless headline |
||
Line 1: | Line 1: | ||
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: | ||
Revision as of 18:19, 5 February 2008
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.