Info timescale controller: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
{{warning|This command doesn't affects sound. Sound playback speed will not be sped up or slowed down.}}
{{warning|This command doesn't affects sound. Sound playback speed will not be sped up or slowed down.}}
{{bug|hidetested=1|The value saves after a death, level transition or level change (only if level changed via console).}}
{{bug|hidetested=1|The value saves after a death, level transition or level change (only if level changed via console).}}
== Keyvalues ==
{{KV Targetname}}


== Inputs ==  
== Inputs ==  
{{I|SetTimescale|param=float|Sets the value of {{code|host_timescale}}.}}
{{I|SetTimescale|param=float|Sets the value of {{code|host_timescale}}.}}
{{I|RestoreTimescale|param=void|Restores the value of {{code|host_timescale}} back to what it was previously. For example, if value was 10 and current value is 100 - this input will set 10.}}
{{I|RestoreTimescale|param=void|Restores the value of {{code|host_timescale}} back to what it was previously. For example, if value was 10 and current value is 100 - this input will set 10.}}

Revision as of 05:50, 22 May 2025

Info target.png

info_timescale_controller is a logical entity available in Black Mesa Black Mesa. This is host_timescale controller entity. host_timescale is one of the console commands that controlls time, with this you can slow down or speed up time.

Represented by class CInfoTimescaleController.

Warning.pngWarning:This command doesn't affects sound. Sound playback speed will not be sped up or slowed down.
Icon-Bug.pngBug:The value saves after a death, level transition or level change (only if level changed via console).

Inputs

SetTimescale <floatRedirectInput/float>
Sets the value of host_timescale.
RestoreTimescale <void>
Restores the value of host_timescale back to what it was previously. For example, if value was 10 and current value is 100 - this input will set 10.