$keyvalues: Difference between revisions
Jump to navigation
Jump to search
Warning:Since the values are arbitrary, studiomdl can't check that they are correct when it compiles the model.
(use links to keyvalue explainations in examples - more legible) |
TomEdwards (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
Embeds an arbitrary block of [[keyvalue]]s into the .mdl file. <code>[[Prop Data|prop_data]]</code> keyvalues are the most common, as they define various properties of Valve's <code>prop_*</code> entities, but there is no limit on what other KVs a mod's programmer might add support for. | Embeds an arbitrary block of [[keyvalue]]s into the .mdl file. <code>[[Prop Data|prop_data]]</code> keyvalues are the most common, as they define various properties of Valve's <code>prop_*</code> entities, but there is no limit on what other KVs a mod's programmer might add support for. | ||
{{warning|Since the values are arbitrary, [[studiomdl]] can't check that they | {{warning|Since the values are arbitrary, [[studiomdl]] can't check that they are correct when it compiles the model.}} | ||
== Example == | == Example == |
Revision as of 02:52, 31 March 2008
Embeds an arbitrary block of keyvalues into the .mdl file. prop_data
keyvalues are the most common, as they define various properties of Valve's prop_*
entities, but there is no limit on what other KVs a mod's programmer might add support for.

Example
$keyvalues { prop_data { base Wooden.Small dmg.bullets 0 explosive_damage 100 explosive_radius 100 } // hud_name has been made up for this article. It won't be recognised by any of Valve's games! // (If you were being picky, you might point out that it ought to be localised ...) hud_name "Rubber chicken with a pulley in the middle" }