$maxverts
Jump to navigation
Jump to search
$maxverts
is a QC command available in all Source games since Alien Swarm. It defines when to split and the maximum amount of vertices allowed in each model.
It allows to compile bigger model without use of cracked compilers and not having to deal with "shattered" model in game.
Syntax
$maxverts <Limit: int> [Clamp: int]
- Both Limit and Clamp default to 21,845 if the command is not used
Limit
- This specifies the number of vertices if the model goes over to split the model.
- The value passed in is clamped between 1,024 and 65,536.
Clamp
- When the model is being split this is the amount each split model can have.
- If a value is passed in, its clamped between 1,024 and 65,536.
- If value not passed in it defaults to Limit clamped to 32,768.
Example
$maxverts 65536 65536
- This sets it so all models use the max amount amount of vertices possible.
$maxverts 20000 10000
- This makes it if a model has over 20k vertices then each split model has a max of 10k vertices.