Portal 2
Crazy Owl May 31, 2021 @ 8:19am
What are some timescale commands
So I learned about this timescale command, and I want to slow down everything except the player, how do I do that?
< >
Showing 1-13 of 13 comments
Clantis May 31, 2021 @ 5:55pm 
theres not very many. but phys_timescale could get close to what you're looking for. it only does physics objects though, so stuff like particles will still be normal.
Stimich Jun 1, 2021 @ 9:07am 
If you're making a map in Hammer you can do this by placing a logic_timescale entity, and add another entity called player_speedmod to adjust for the timescale. It's not perfect, but it's close to what you're looking for perhaps. Especially if you want the sounds to be affected as well.

For the logic_timescale (let's call it time_slow) you go:
OnTrigger (for triggers)/OnPressed (for buttons) -> time_slow -> SetDesiredTimescale -> YOUR TIMESCALE (e.g 0.25)

For the player_speedmod (let's call it playerspeed) you go:
OnTrigger (for triggers)/OnPressed (for buttons) -> playerspeed -> ModifySpeed -> 4 (this to compensate for the logic_timescale of 0.25, which will now equal to 1 player movement).

This will result in everything else going at quarter speed, while you walk in normal speed. You jump and fall as you'd expect. Movement like walking is a tiny bit quirkier, but it works.

Example here: https://www.youtube.com/watch?v=cjGso0-nn_I


If you just want physics you can do phys_timescale as suggested above. You can also do particle timescale by doing r_particle_timescale.

Example here, and then some: https://www.youtube.com/watch?v=ELUb0PprtF4
Last edited by Stimich; Jun 1, 2021 @ 9:15am
Crazy Owl Jun 1, 2021 @ 9:13am 
Originally posted by Stimich:
If you're making a map in Hammer you can do this by placing a logic_timescale entity, and add another entity called player_speedmod to adjust for the timescale. It's not perfect, but it's close to what you're looking for perhaps. Especially if you want the sounds to be affected as well.

For the logic_timescale (let's call it time_slow) you go:
OnTrigger (for triggers)/OnPressed (for buttons) -> time_slow -> SetDesiredTimescale -> YOUR TIMESCALE (e.g 0.25)

For the player_speedmod (let's call it playerspeed) you go:
OnTrigger (for triggers)/OnPressed (for buttons) -> playerspeed -> ModifySpeed -> 4 (this to compensate for the logic_timescale of 0.25, which will now equal to 1 player movement).

This will result in everything else going at quarter speed, while you walk in normal speed. You jump and fall as you'd expect. Movement like walking is a tiny bit quirkier, but it works.

Example here: https://www.youtube.com/watch?v=cjGso0-nn_I


If you just want physics you can do phys_timescale as suggested above. You can also do particle timescale by doing r_particle_timescale.
Alright, thanks! I might try that. Although, I have a quick queshton, so if I where to set the timescale to 0 would I set the player speed to 1 or something else?
Stimich Jun 1, 2021 @ 9:18am 
Originally posted by Fire Dog:
Alright, thanks! I might try that. Although, I have a quick queshton, so if I where to set the timescale to 0 would I set the player speed to 1 or something else?
I wouldn't set it to 0 as you'd literally stop the game. And for the love of God don't do -1. (Do this if you hate your ears).
I edited my previous reply to add my pause effect video. It's a bunch of console commands and some animations set at playback rate 0 to give the illusion of paused time.
Crazy Owl Jun 1, 2021 @ 9:22am 
Originally posted by Stimich:
Originally posted by Fire Dog:
Alright, thanks! I might try that. Although, I have a quick queshton, so if I where to set the timescale to 0 would I set the player speed to 1 or something else?
I wouldn't set it to 0 as you'd literally stop the game. And for the love of God don't do -1. (Do this if you hate your ears).
I edited my previous reply to add my pause effect video. It's a bunch of console commands and some animations set at playback rate 0 to give the illusion of paused time.
Okay, so would I set it to 0.01 or something close to that? And if so, what should I set the speed for the player?
Stimich Jun 1, 2021 @ 9:26am 
Originally posted by Fire Dog:
Originally posted by Stimich:
I wouldn't set it to 0 as you'd literally stop the game. And for the love of God don't do -1. (Do this if you hate your ears).
I edited my previous reply to add my pause effect video. It's a bunch of console commands and some animations set at playback rate 0 to give the illusion of paused time.
Okay, so would I set it to 0.01 or something close to that? And if so, what should I set the speed for the player?

If you set it to 0.01 the playerspeed should be set to 100. Your playerspeed should always equal 1, so you have to multiply (or divide if you want hell (only slowmo for the player lmao)) whatever you put for the timescale so that the playerspeed is 1. Note that this is only possible in Hammer, afaik.
Last edited by Stimich; Jun 1, 2021 @ 9:30am
Crazy Owl Jun 1, 2021 @ 9:59am 
Originally posted by Stimich:
Originally posted by Fire Dog:
Okay, so would I set it to 0.01 or something close to that? And if so, what should I set the speed for the player?

If you set it to 0.01 the playerspeed should be set to 100. Your playerspeed should always equal 1, so you have to multiply (or divide if you want hell (only slowmo for the player lmao)) whatever you put for the timescale so that the playerspeed is 1. Note that this is only possible in Hammer, afaik.
Okay, thanks. BTW, I checked out your youtube channel and saw that you made this rewind time effect, how did you do that?
Stimich Jun 1, 2021 @ 10:00am 
Originally posted by Fire Dog:
Okay, thanks. BTW, I checked out your youtube channel and saw that you made this rewind time effect, how did you do that?
No problem. Which one? I have a few.
Crazy Owl Jun 1, 2021 @ 10:11am 
Originally posted by Stimich:
Originally posted by Fire Dog:
Okay, thanks. BTW, I checked out your youtube channel and saw that you made this rewind time effect, how did you do that?
No problem. Which one? I have a few.
This one
https://www.youtube.com/watch?v=RObp1AHfsNM
Stimich Jun 1, 2021 @ 10:34am 
Seems like I wrote it down in the description.
Last edited by Stimich; Jun 1, 2021 @ 10:35am
Crazy Owl Jun 1, 2021 @ 10:43am 
Originally posted by Stimich:
Seems like I wrote it down in the description.
Oh, alright, thanks!
Originally posted by Stimich:
Originally posted by Fire Dog:
Alright, thanks! I might try that. Although, I have a quick queshton, so if I where to set the timescale to 0 would I set the player speed to 1 or something else?
I wouldn't set it to 0 as you'd literally stop the game. And for the love of God don't do -1. (Do this if you hate your ears).
I edited my previous reply to add my pause effect video. It's a bunch of console commands and some animations set at playback rate 0 to give the illusion of paused time.
What happens ir you set host_timescale to -1?
Stimich Jun 2, 2021 @ 12:18am 
Originally posted by HeimlichLaboratories:
Originally posted by Stimich:
I wouldn't set it to 0 as you'd literally stop the game. And for the love of God don't do -1. (Do this if you hate your ears).
I edited my previous reply to add my pause effect video. It's a bunch of console commands and some animations set at playback rate 0 to give the illusion of paused time.
What happens ir you set host_timescale to -1?
Nothing
Actually tried it again, and the sound goes wild and it crashes shortly after. Much like in the video below, but you still go forward as normal. Didn't do that before in 2013, iirc.

But if you set the logic_timescale to -1 this happens:
https://youtu.be/jJYjjmeJ4tg
Last edited by Stimich; Jun 2, 2021 @ 12:27am
< >
Showing 1-13 of 13 comments
Per page: 1530 50

Date Posted: May 31, 2021 @ 8:19am
Posts: 13