Creating custom gibs: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 10: Line 10:


===Breakable model===
===Breakable model===
* Add $collisiontext section
* Add <code>$collisiontext</code> section


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



Revision as of 19:16, 7 March 2006

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
$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