Template:KV Model: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Should not be used if model KV doesn't work)
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{draft}}
{{Draft}}
{{see also|{{t|studio rendering note}}, for CBaseAnimating entities which set model explicitly or via a different KV}}
{{See also|{{t|studio rendering note}}, for CBaseAnimating entities which set model explicitly or via a different KV}}
<onlyinclude>{{KV
<onlyinclude>{{KV
| intn = model
| intn = model
| nofgd = {{{nofgd|{{{spawn model|}}}}}} <!-- if spawn model exist most likely not in fgd -->
| nofgd = {{{nofgd|{{{spawn model|}}}}}} <!-- if spawn model exists, it's most likely not in fgd -->
| addtext = {{Invisible edit link|KV Model}}
| 1 = World Model
| 1 = World Model
| 2 = model
| 2 = model
| 3 = In-game 3D representation of the entity to display. This is the path to a [[MDL]] relative to the game's root directory. (128 character limit)
| 3 =  
:{{#if:{{{spawn model|}}}|This entity's model is set to: '''<code style="user-select:all">{{{spawn model}}}</code>''' on spawn so specifying this keyvalue might have no effect.}}
{{#if:{{{spawn model|}}}
:{{#if:{{{default model|}}}|If no model specified this defaults to '''<code style="user-select:all">{{{default model}}}</code>'''}}
| This entity's model is set to '''<code style="user-select:all">{{{spawn model}}}</code>''' on spawn, so specifying this keyvalue will have no effect.
:{{seealso|[[Model entity/Generic Keyvalues, Inputs and Outputs|Generic Keyvalues, Inputs and Outputs that all model entities have available]]}}
| In-game 3D representation of the entity to display. This is the path to a [[MDL]] relative to the game's root directory. (128 character limit)
}}</onlyinclude>
}}<!--
 
-->{{#if:{{{default model|}}}
| <br>If no model is specified, it defaults to '''<code style="user-select:all">{{{default model}}}</code>'''.
}}}}
:{{See also|[[Model entity/Generic Keyvalues, Inputs and Outputs|Generic Keyvalues, Inputs and Outputs that all model entities have available]]}}</onlyinclude>


== Variants ==
<code><nowiki>{{KV Model|spawn model=models/rocket_raccoon.mdl}}</nowiki></code>
<code><nowiki>{{KV Model|spawn model=models/rocket_raccoon.mdl}}</nowiki></code>
{{KV Model|spawn model=models/rocket_raccoon.mdl}}
{{KV Model|spawn model=models/rocket_raccoon.mdl}}


<code><nowiki>{{KV Model|default model=models/faith_connors.mdl}}</nowiki></code>
<code><nowiki>{{KV Model|default model=models/faith_connors.mdl}}</nowiki></code>
{{KV Model|default model=models/faith_connors.mdl}}
{{KV Model|default model=models/faith_connors.mdl}}

Latest revision as of 18:09, 23 November 2025

Icon-under construction-blue.png
This is a draft template page. It is a work in progress open to editing by anyone.
Remember to check for any notes left by the tagger at this article's talk page.
See also: {{studio rendering note}}, for CBaseAnimating entities which set model explicitly or via a different KV
World Model (model) <model path>
In-game 3D representation of the entity to display. This is the path to a MDL relative to the game's root directory. (128 character limit)

Variants

{{KV Model|spawn model=models/rocket_raccoon.mdl}}

World Model (model) <model path> !FGD
This entity's model is set to models/rocket_raccoon.mdl on spawn, so specifying this keyvalue will have no effect.

{{KV Model|default model=models/faith_connors.mdl}}

World Model (model) <model path>
In-game 3D representation of the entity to display. This is the path to a MDL relative to the game's root directory. (128 character limit)
If no model is specified, it defaults to models/faith_connors.mdl.