Creating custom gibs: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 12: Line 12:
* Add <code>$collisiontext</code> section to the <code>.QC</code> file
* Add <code>$collisiontext</code> section to the <code>.QC</code> file


  $collisiontext
  [[$collisiontext]]
  {  
  {  
  break { "model" "mycustomgib1" "health" "1" "fadetime" "0" }  
  break { "model" "mycustomgib1" "health" "1" "fadetime" "0" }  

Revision as of 07:22, 28 March 2008

Stub

This article or section is a stub. You can help by expanding it.

Modeling

  • Use the original model as a reference, and place gibs over it.
  • Export each gib separately

Compiling

Gibs

  • Add $autocenter

Breakable model

  • Add $collisiontext section to the .QC file
$collisiontext
{ 
	break { "model" "mycustomgib1" "health" "1" "fadetime" "0" } 
	break { "model" "mycustomgib1" "health" "1" "fadetime" "0" } 
}
  • break options
    • model
    • ragdoll
    • offset
    • health
    • fadetime
    • fademindist
    • fademaxdist
    • debris
    • burst
    • placementbone
    • placementattachment

See also