Difference between revisions of "Template:I Studiomodel"

From Valve Developer Community
Jump to: navigation, search
(Added ToggleDraw class)
(Started using new Since, etc. templates)
Line 3: Line 3:
 
{{IO|SetBodyGroup|param=int|Set the model's [[$bodygroup|body group]].}}
 
{{IO|SetBodyGroup|param=int|Set the model's [[$bodygroup|body group]].}}
 
{{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.}}
 
{{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.}}
{{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}}
+
{{IO|SetModelScale|param=string|Sets the model scale. 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={{src13}}}}
 
{{I Shadow}}
 
{{I Shadow}}
 
{{I Reflection}}
 
{{I Reflection}}

Revision as of 21:54, 8 May 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><Source>)
Sets the model scale. 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.
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.

ToggleDraw:

DisableDraw  (in all games since [Portal 2])
Add the EF_NODRAW flag to this entity. Some entities manage this on their own so be aware you can override that value.
EnableDraw  (in all games since [Portal 2])
Remove the EF_NODRAW flag from this entity. Some entities manage this on their own so be aware you can override that value.