$collisiontext: Difference between revisions
Jump to navigation
Jump to search
Tip:Use $autocenter to ensure gibs spawn in the correct position relative to the breaking model.
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
==Break Options== | ==Break Options== | ||
===model ''<string>'' OR ragdoll ''<string>''=== | ===model ''<string>'' OR ragdoll ''<string>''=== | ||
* Location of *.mdl file to spawn. {{note| Model must be compiled with ragdoll physics to use "ragdoll".}} | * Location of *.mdl file to spawn. {{note| Model must be compiled with ragdoll physics to use "ragdoll". This option is mandatory.}} | ||
'''Example:''' "model" "props_junk/wood_pallet001a_chunka" OR "ragdoll" "props_junk/wood_pallet001a_chunka" | '''Example:''' "model" "props_junk/wood_pallet001a_chunka" OR "ragdoll" "props_junk/wood_pallet001a_chunka" |
Revision as of 15:57, 16 January 2009
The $collisiontext QC command is used to define a breakable model's custom gibset (generic gibs are defined by $keyvalues - prop_data - breakable_model).

- Todo: is propdata also required when using $collisiontext ?
QC Syntax Example
$collisiontext { break { "model" "mycustomgib1" "health" "25" "fadetime" "0" } break { "ragdoll" "mycustomgib2" "health" "10" "fadetime" "30" "debris" "1" "burst" "50" } break { "model" "mycustomgib3" "health" "10" "fadetime" "30" "debris" "1" "fademindist" "20" "fademaxdist" "30" } break { "model" "mycustomgib4" "health" "10" "fadetime" "20" "debris" "1" "offset" "-2.00 3.68 12.40" } }
Break Options
model <string> OR ragdoll <string>
- Location of *.mdl file to spawn.
Note: Model must be compiled with ragdoll physics to use "ragdoll". This option is mandatory.
Example: "model" "props_junk/wood_pallet001a_chunka" OR "ragdoll" "props_junk/wood_pallet001a_chunka"
offset <float float float>
- Offset model from its placementOrigin in inches with 3D co-ordinates (X Y Z).
Example: "offset" "8.50 -6.00 32.75"
health <int>
- Overide default base health values in propdata. This sometimes has to be placed in the $keyvalues line.
Example: "health" "100"
fadetime <int>
- Time that spawned gibs start to fade and disappear. Values should be specified in seconds.
Example: "fadetime" "30"
fademindist <int>
- Distance from player to gib to start fading from view.
Note: This must be used in conjunction with fademaxdist to work and of lesser value.
Example: "fademindist" "20"
fademaxdist <int>
- Distance from player to gib to fade completely from view.
Note: This must be used in conjunction with fademindist to work and of greater value.
Example: "fademaxdist" "30"
debris <boolean>
- Flag gib model as debris limiting its physical interaction with other gibs. This should be used on gibs that are small to prevent them from getting stuck with each other. 0 = Off, 1 = On.
Example: "debris" "1"
burst <int>
- Adds a burst force allowing the gib to be pushed further outward when the parent model breaks.
Example: "burst" "50"
placementbone
- Todo: compared to $autocenter's "placementOrigin" ?
placementattachment
- Todo: compared to $autocenter's "placementOrigin" ?