Prop scalable: Difference between revisions
Jump to navigation
Jump to search

(base ent, not just in Ep2) |
m (Classifying as model entity) |
||
(18 intermediate revisions by 11 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{CD|CPropScalable|file1=prop_scalable.cpp}} | |||
{{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}}. | |||
{{bug|This entity is defined in later games' [[FGD]]s but is not implemented in the engine.}} | |||
==Keyvalues== | == Keyvalues == | ||
{{KV Targetname}} | {{KV Targetname}} | ||
== | == Inputs == | ||
{{I|SetScaleX|param=vector}} | |||
{{I|SetScaleY|param=vector}} | |||
{{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.}} | |||
:{{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.}} | |||
[[Category:Prop entities|scalable]] | |||
Latest revision as of 04:34, 19 May 2025


![]() |
---|
CPropScalable |
![]() |
prop_scalable
is a model entity available in Half-Life 2,
Half-Life 2: Episode One, and
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 .
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- SetScaleX <vector >
- SetScaleY <vector >
- SetScaleZ <vector >
- Scales the model (local axes). Accepts either
newscale timespan
ornewscale
, 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: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.