$collisiontext: Difference between revisions
Jump to navigation
Jump to search
Tip:Use $autocenter when compiling custom gibs to fix potential lighting oddities.
No edit summary |
TomEdwards (talk | contribs) (cleanup) |
||
Line 1: | Line 1: | ||
'''[[$collisiontext]]''' defines a breakable model's [[custom gibs]]. (Generic gibs are defined by [[Prop Data#Gibs|$keyvalues > prop_data > breakable_model]]). | |||
{{tip|Use [[$autocenter]] when compiling custom gibs to fix potential lighting oddities.}} | |||
{{ | {{todo|Is [[propdata]] required when using $collisiontext?}} | ||
== Example == | |||
$collisiontext | $collisiontext | ||
{ | { | ||
break { | break { model mycustomgib1 health 25 fadetime 0 } | ||
break { | break { ragdoll mycustomgib2 health 10 fadetime 30 debris 1 burst 50 } | ||
break { | break { model mycustomgib3 health 10 fadetime 30 fademindist 20 fademaxdist 30 } | ||
break { | break { model mycustomgib4 health 10 fadetime 20 offset -2 3.68 12.4 } | ||
} | } | ||
== | == Options == | ||
; <code>model <path\name></code> | |||
; <code>ragdoll <path\name></code> | |||
: The (compiled) model to spawn. | |||
; <code>offset <[[float]]|x y z></code> | |||
: Offsets the current gib. Values are in [[unit]]s. | |||
; <code>health <[[int]]></code> | |||
: Overrides the model's own health value "This sometimes has to be placed in the [[$keyvalues]] line." | |||
; <code>fadetime <int|seconds></code> | |||
: Time before gibs start to fade away. They are removed once the fade is complete. | |||
: {{todo|Is there any way to specify how long the fade should last?}} | |||
; <code>fademindist <int|units></code> | |||
; <code>fademaxdist <int|units></code> | |||
: Distance from the camera at which to start and end temporary fading out of the gib. | |||
; <code>debris <[[bool]]></code> | |||
: Prevents the gib model from colliding with dynamic objects when made true. Strongly recommended for anything small. | |||
; <code>burst <int></code> | |||
: Adds force to the gib, pushing it outward when the parent model breaks. | |||
: {{todo|What units are in use here?}} | |||
; <code>placementbone <bone></code> | |||
; <code>placementattachment <attachment></code> | |||
: {{todo|Compared to [[$autocenter]]'s "placementOrigin" ?}} | |||
== | == See also == | ||
* | * [[Prop Data#Gibs]] | ||
[[Category: QC Commands]] | |||
Revision as of 16:34, 16 January 2009
$collisiontext defines a breakable model's custom gibs. (Generic gibs are defined by $keyvalues > prop_data > breakable_model).

Todo: Is propdata required when using $collisiontext?
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 fademindist 20 fademaxdist 30 } break { model mycustomgib4 health 10 fadetime 20 offset -2 3.68 12.4 } }
Options
model <path\name>
ragdoll <path\name>
- The (compiled) model to spawn.
offset <float|x y z>
- Offsets the current gib. Values are in units.
health <int>
- Overrides the model's own health value "This sometimes has to be placed in the $keyvalues line."
fadetime <int|seconds>
- Time before gibs start to fade away. They are removed once the fade is complete.
- Todo: Is there any way to specify how long the fade should last?
fademindist <int|units>
fademaxdist <int|units>
- Distance from the camera at which to start and end temporary fading out of the gib.
debris <bool>
- Prevents the gib model from colliding with dynamic objects when made true. Strongly recommended for anything small.
burst <int>
- Adds force to the gib, pushing it outward when the parent model breaks.
- Todo: What units are in use here?
placementbone <bone>
placementattachment <attachment>
- Todo: Compared to $autocenter's "placementOrigin" ?