Prop scalable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
m (Classifying as model entity)
 
(24 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{wrongtitle|title=prop_scalable}}
{{LanguageBar}}
==Entity Description==
{{CD|CPropScalable|file1=prop_scalable.cpp}}
This entity can scale a non-solid prop.
{{This is a|model entity|name=prop_scalable|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two}} It creates a non-solid model that can be resized dynamically via [[#Inputs|inputs]]. It is used for the "superportal" effects at the beginning and end of the game. This entity is the successor of {{ent|prop_coreball}} from {{Game link|Half-Life 2: Episode One}}.
==Usage==
You can fire several inputs to a prop_scaleable. The only one that is used by Valve is:
* SetScaleX <Integer>
* SetScaleY <Integer>
* SetScaleZ <Integer>


This sets the scale of the X Y and Z. Since this entity can be scaled over time, you must specify this in the input.
{{bug|This entity is defined in later games' [[FGD]]s but is not implemented in the engine.}}
For example,
SetScaleX 10000.0 2
Would make it scale 10,000 times it's current size over a period of two seconds.


==Keyvalues==
== Keyvalues ==
* {{KV Targetname}}
{{KV Targetname}}
* {{KV Angles}}
 
* {{KV Origin}}
== Inputs ==
* {{KV Studiomodel}}
{{I|SetScaleX|param=vector}}
==Inputs==
{{I|SetScaleY|param=vector}}
* {{I Targetname}}
{{I|SetScaleZ|param=vector|Scales the model (local axes). Accepts either <code>newscale timespan</code> or <code>newscale</code>, where "newscale" is a float that sets the new scale of the prop, and "timespan" is an integer number of seconds over which the size change happens. If no timespan is specified, the changes apply immediately.}}
* {{I Studiomodel}}
:{{note|Changing the size is not able via variables (e.g., {{ent|math_counter}}). You can set the different sizes in a {{ent|logic_case}} to get a near-blend between different sizes.}}
* '''SetScaleX <string>'''
 
:Format: <tt><float:new scale> <integer:change over timespan> <integer:???></tt>
[[Category:Prop entities|scalable]]
* '''SetScaleY <string>'''
:Format: <tt><float:new scale> <integer:change over timespan> <integer:???></tt>
* '''SetScaleZ <string>'''
:Format: <tt><float:new scale> <integer:change over timespan> <integer:???></tt>
==Outputs==
* {{O Targetname}}
[[Category:Half-Life 2: Episode Two Entities]]

Latest revision as of 04:34, 19 May 2025

English (en)Translate (Translate)
C++ Class hierarchy
CPropScalable
CBaseAnimating
CBaseEntity
C++ prop_scalable.cpp

prop_scalable is a model entity available in Half-Life 2 Half-Life 2, Half-Life 2: Episode One Half-Life 2: Episode One, and Half-Life 2: Episode Two Half-Life 2: Episode Two. It creates a non-solid model that can be resized dynamically via inputs. It is used for the "superportal" effects at the beginning and end of the game. This entity is the successor of prop_coreball from Half-Life 2: Episode One Half-Life 2: Episode One .

Icon-Bug.pngBug:This entity is defined in later games' FGDs but is not implemented in the engine.  [todo tested in ?]

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

SetScaleX <vectorRedirectInput/Vector>
SetScaleY <vectorRedirectInput/Vector>
SetScaleZ <vectorRedirectInput/Vector>
Scales the model (local axes). Accepts either newscale timespan or newscale, where "newscale" is a float that sets the new scale of the prop, and "timespan" is an integer number of seconds over which the size change happens. If no timespan is specified, the changes apply immediately.
Note.pngNote:Changing the size is not able via variables (e.g., math_counter). You can set the different sizes in a logic_case to get a near-blend between different sizes.