$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  | 
				No edit summary  | 
				||
| Line 12: | Line 12: | ||
  	break { ragdoll	mycustomgib2	health 10	fadetime 30	debris 1	burst 50 }  |   	break { ragdoll	mycustomgib2	health 10	fadetime 30	debris 1	burst 50 }  | ||
  	break { model	mycustomgib3	health 10	fadetime 30	fademindist 20	fademaxdist 30 }  |   	break { model	mycustomgib3	health 10	fadetime 30	fademindist 20	fademaxdist 30 }  | ||
  	break { model	mycustomgib4	health 10	fadetime 20	burst   |   	break { model	mycustomgib4	health 10	fadetime 20	burst 16	offset 1.00 0.00 0.00 }  | ||
  }  |   }  | ||
| Line 20: | Line 20: | ||
; <code>ragdoll <path\name></code>  | ; <code>ragdoll <path\name></code>  | ||
: The (compiled) model to spawn.  | : The (compiled) model to spawn.  | ||
; <code>offset <  | ; <code>offset <float float float> and burst <int></code>  | ||
:   | : When set, the spawned model is blasted away from the parent model. Both these parameres require each other to function. 'Burst' sets the force to apply to the model (unit of measure unknown). 'Offset' sets the angle to launch the model once it has spawned. Coordinates (X Y Z) need to be set in the range 1.00 to -1.00.  | ||
: {{TODO|What units are in use here?}}  | |||
; <code>health <[[int]]></code>  | ; <code>health <[[int]]></code>  | ||
: Overrides the model's own health value "This sometimes has to be placed in the [[$keyvalues]] line."  | : Overrides the model's own health value "This sometimes has to be placed in the [[$keyvalues]] line."  | ||
| Line 32: | Line 33: | ||
; <code>debris <[[bool]]></code>  | ; <code>debris <[[bool]]></code>  | ||
: Prevents the gib model from colliding with dynamic objects when made true. Strongly recommended for anything small.  | : Prevents the gib model from colliding with dynamic objects when made true. Strongly recommended for anything small.  | ||
; <code>placementbone <bone></code>  | ; <code>placementbone <bone></code>  | ||
; <code>placementattachment <attachment></code>  | ; <code>placementattachment <attachment></code>  | ||
Revision as of 15:15, 14 October 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	burst 16	offset 1.00 0.00 0.00 }
}
Options
model <path\name>ragdoll <path\name>- The (compiled) model to spawn.
 offset <float float float> and burst <int>- When set, the spawned model is blasted away from the parent model. Both these parameres require each other to function. 'Burst' sets the force to apply to the model (unit of measure unknown). 'Offset' sets the angle to launch the model once it has spawned. Coordinates (X Y Z) need to be set in the range 1.00 to -1.00.
 - Todo: What units are in use here?
 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.
 placementbone <bone>placementattachment <attachment>- Todo: Compared to $autocenter's "placementOrigin" ?