Maxs: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
(add)
 
No edit summary
Line 1: Line 1:
The ''maxs'' spawnarg is used together with the [[mins]] spawnarg to define a [[CM|collision model]] for entities when they do not have a CM in either the model file or a separate .cm file.
The ''maxs'' spawnarg is used together with the [[mins]] spawnarg to define a [[CM|collision model]] for entities when they do not have a CM in either the model file or a separate .cm file.


This spawnarg is '''only''' used when the spawnarg '''noclipmodel''' is set to zero.
''maxs'' Takes three XYZ values to position the 'far top right' corner (facing towards positive X of entity alignment) as an offset from the entity origin. Must be used with, and values must be higher than, those in [[mins]].
 
'''Notes:'''<br>
The spawnarg '''noclipmodel''' must remain at the default 0 (zero) or this ''maxs'' spawnarg is ineffective.


Making a dedicated collision model should always be prefered over using this method.
Making a dedicated collision model should always be prefered over using this method.

Revision as of 07:40, 10 February 2009

The maxs spawnarg is used together with the mins spawnarg to define a collision model for entities when they do not have a CM in either the model file or a separate .cm file.

maxs Takes three XYZ values to position the 'far top right' corner (facing towards positive X of entity alignment) as an offset from the entity origin. Must be used with, and values must be higher than, those in mins.

Notes:
The spawnarg noclipmodel must remain at the default 0 (zero) or this maxs spawnarg is ineffective.

Making a dedicated collision model should always be prefered over using this method.

See noclipmodel for further information and examples.