Template:I Studiomodel: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Reformatted, added Shadow and Reflection inputs, corrected SetModelScale input, added the template to the Input Templates category)
Line 1: Line 1:
{{ScrollBox|title=Studiomodel|
{{ScrollBox|title=Studiomodel|
; <code>Skin <[[int]]></code>
{{IO|Skin|param=int|Changes the model's [[$texturegroup|skin]] to the specified number.}}
: Changes the model's [[$texturegroup|skin]] to the specified number.
{{IO|SetBodyGroup|param=int|Set the model's [[$bodygroup|body group]].}}
; <code>SetBodyGroup <int></code>
{{IO|AlternativeSorting|param=bool|Uses an alternative method for telling which objects are in front of others. Use if this object draws incorrectly when seen through transparent things.}}
: Set the model's [[$bodygroup|body group]].
{{IO|SetModelScale|param=string|Takes two values separated by a space. The first is the target model scale. The second value is the number of seconds the change in scale will be spread over.|only=2013}}
; <code>EnableShadow</code>
{{I Shadow}}
; <code>DisableShadow</code>
{{I Reflection}}
: Control the model's cheap render-to-texture shadow.
}}<noinclude>
; <code>AlternativeSorting <[[bool]]></code>
[[Category:Input Templates|Studiomodel]]
: Uses an alternative method for telling which objects are in front of others. Use if this object draws incorrectly when seen through transparent things.
</noinclude>
{{IO|SetModelScale|Sets the model scaling factor|param=float|since=TF2}}
}}

Revision as of 17:26, 13 January 2020

Studiomodel:
Skin <integer>
Changes the model's skin to the specified number.
SetBodyGroup <integer>
Set the model's body group.
AlternativeSorting <boolean>
Uses an alternative method for telling which objects are in front of others. Use if this object draws incorrectly when seen through transparent things.
SetModelScale <string> (only in Source 2013)
Takes two values separated by a space. The first is the target model scale. The second value is the number of seconds the change in scale will be spread over.

Shadow:

DisableShadow
Turn dynamic shadows off for this entity. Identical to applying  EF_NOSHADOW.
EnableShadow
Turn dynamic shadows on for this entity.
DisableReceivingFlashlight  (in all games since Portal 2)
This object will not receive light or shadows from projected textures.
EnableReceivingFlashlight  (in all games since Portal 2)
This object may receive light or shadows from projected textures.

Reflection:

DisableDrawInFastReflection  (in all games since Portal 2)
Turns off rendering of this entity in reflections when using $reflectonlymarkedentities in water material.
EnableDrawInFastReflection  (in all games since Portal 2)
Turn on rendering of this entity in reflections when using $reflectonlymarkedentities in water material.