Portal 2
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?
< >
Se afișează 1-13 din 13 comentarii
Clantis 31 mai 2021 la 17:55 
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.
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
Editat ultima dată de Stimich; 1 iun. 2021 la 9:15
Postat inițial de 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?
Postat inițial de 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.
Postat inițial de Stimich:
Postat inițial de 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?
Postat inițial de Fire Dog:
Postat inițial de 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.
Editat ultima dată de Stimich; 1 iun. 2021 la 9:30
Postat inițial de Stimich:
Postat inițial de 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 1 iun. 2021 la 10:00 
Postat inițial de 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.
Postat inițial de Stimich:
Postat inițial de 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 1 iun. 2021 la 10:34 
Seems like I wrote it down in the description.
Editat ultima dată de Stimich; 1 iun. 2021 la 10:35
Postat inițial de Stimich:
Seems like I wrote it down in the description.
Oh, alright, thanks!
Postat inițial de Stimich:
Postat inițial de 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?
Postat inițial de HeimlichLaboratories:
Postat inițial de 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
Editat ultima dată de Stimich; 2 iun. 2021 la 0:27
< >
Se afișează 1-13 din 13 comentarii
Per pagină: 1530 50

Data postării: 31 mai 2021 la 8:19
Postări: 13