$keyvalues

From Valve Developer Community
Revision as of 07:23, 28 March 2008 by Beeswax (talk | contribs)
Jump to navigation Jump to search
$keyvalues
  • This allows you to add an arbitrary block of keyvalues into the .mdl file.
  • Prop Data keyvalues are probably the most important, defining breakable gibs, damage, etc for prop_physics models, etc. Eg
$keyvalues
{
   "prop_data"
   {
       "base"              "Wooden.Small"
       "dmg.bullets"       "0"
       "explosive_damage"  "100"
       "explosive_radius"  "100"
   }
}
  • Another example:
$keyvalues
{
   "build_points"
   {
      "build_point_0"
      {
         "valid_objects"
         {
            "obj_manned_plasmagun" 1
            "obj_resourcepump" 1
            "obj_shieldwall" 1
         }
      }
   }
}