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

In code, it is represented by the
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.
(Added information about this entity's relation to prop_coreball) |
Kestrelguy (talk | contribs) (added language bar and updated template usage.) |
||
Line 1: | Line 1: | ||
{{lang|Prop scalable}} | |||
{{ep2 point|prop_scalable}} 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}}. | {{ep2 point|prop_scalable}} 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}}. | ||
Line 6: | Line 7: | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV BaseEntity|base=1}} | |||
{{ | |||
}} | |||
==Inputs== | ==Inputs== | ||
{{IO|SetScaleX|param=vector}} | |||
{{IO|SetScaleY|param=vector}} | |||
{{IO|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.}} | |||
{{I BaseEntity|base=1}} | |||
{{note|Changing the size is not able via variables ( | |||
{{ | |||
==Outputs== | ==Outputs== | ||
{{O BaseEntity}} | |||
{{O |
Revision as of 08:11, 30 April 2022


Template:Ep2 point 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 .

CPropScalable
class, defined in theprop_scalable.cpp
file.
Keyvalues
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.
