$keyvalues: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
* This allows you to add an arbitrary block of keyvalues into the .mdl file. | * 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 | [[$keyvalues]] | ||
{ | |||
[["build_points"]] | |||
{ | |||
"build_point_0" | |||
{ | |||
"valid_objects" | |||
{ | |||
"obj_manned_plasmagun" 1 | |||
"obj_resourcepump" 1 | |||
"obj_shieldwall" 1 | |||
} | |||
} | |||
} | |||
} | |||
[[Category:QC Commands]] | [[Category:QC Commands]] |
Revision as of 07:23, 28 March 2008
$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 } } } }