Portal - Time slowed down?

Avatar
mazk1985
135 Posts
Posted Apr 13, 2009
Replied 27 minutes later

HMW wrote:
Hey guys, I know how to get rid of the sv_cheats message!
- At the start of your map, place a trigger_once. (Or re-use one you already have.)- Add an OnTrigger output with your point_clientcommand as the target.- Set the input to "Command" and the parameter to "hud_saytext_time 0". (No quotes.)The hud_saytext_time variable determines for how long the orange server messages stay on the screen, in seconds. (The default is 12.) So setting it to 0 causes the sv_cheats message to be visible for 0 seconds. :biggrin:

Good find mate. I'll incorporate it rite away

Advertisement
Registered users don’t see ads! Register now!
Avatar
Stimich
31 Posts
Posted Apr 13, 2009
Replied 1 minute later

HMW wrote:
Hey guys, I know how to get rid of the sv_cheats message!
- At the start of your map, place a trigger_once. (Or re-use one you already have.)- Add an OnTrigger output with your point_clientcommand as the target.- Set the input to "Command" and the parameter to "hud_saytext_time 0". (No quotes.)The hud_saytext_time variable determines for how long the orange server messages stay on the screen, in seconds. (The default is 12.) So setting it to 0 causes the sv_cheats message to be visible for 0 seconds. :biggrin: THANK YOU :biggrin: going to try it tomorrow, going to bed now, lol thanks man! :smile: thank you everyone! :biggrin:

@Solomon:
The "Pitch" setting of sound-emitting entities actually changes the playback speed. Because of the way sound works, playing a sound file faster also raises its pitch. (Exactly like fast-forwarding a cassette tape.) This doesn't matter with normal sound effects in the game; often it's even desirable. (E.g. in case of an engine revving up.)
To change the pitch of music while keeping the speed constant, you need to re-sample it using an audio editing application like Audacity, save it as a new .wav or .mp3 file and use that in your map.
If you want to change one of Valve's stock soundtracks, you need to extract it from the game cache files using GcfScape and distribute the modified version with your map. (And risk getting sued for copyright infringement...:neutral:)

Avatar
monkeyman
100 Posts
Posted Apr 14, 2009
Replied 7 hours later
i have an idea of how to speed up/slow down the sound at will...
it depends however on whether in hammer you can set something up to play a sound from a predetermined point... like start the sound file 3 seconds into it...
unfortunately im not at my computer with steam at the moment so i can' have a little play around... but if anyone knows if you can do that then i think i know a way of doing it...

edit: realised that the changing pitch thing would probably work anyway from what HMW posted... my idea was more for if u just wanted to change speed and not pitch...

Avatar
Stimich
31 Posts
Posted Apr 14, 2009
Replied 14 hours later

monkeyman wrote:
i have an idea of how to speed up/slow down the sound at will...
it depends however on whether in hammer you can set something up to play a sound from a predetermined point... like start the sound file 3 seconds into it...
unfortunately im not at my computer with steam at the moment so i can' have a little play around... but if anyone knows if you can do that then i think i know a way of doing it...

edit: realised that the changing pitch thing would probably work anyway from what HMW posted... my idea was more for if u just wanted to change speed and not pitch...

if you only changed the speed Glados would sound really stoned... xD haha, so I guess we'll have to change the pitch as well!

Avatar
monkeyman
100 Posts
Posted Apr 14, 2009
Replied 4 hours later
yeah, but it would sound more realistic, plus possibly funnier...
but it would be harder and mabey not possible, so id say just stick with changing pitch thing...
Avatar
Stimich
31 Posts
Posted Apr 15, 2009
Replied 11 hours later
Like HMW said: that it would be easier to do those tricky flings, and that's true, but also a chance of doing something else meanwhile while physics is in time stop, watch this vid: http://www.youtube.com/watch?v=Rnu_OLzc ... annel_page or it can also be used, as in the vid, to plan where you shal fling the sphere! or cube..
Avatar
monkeyman
100 Posts
Posted Apr 15, 2009
Replied 20 minutes later
thats cool!
it would be cool if u could kind of toggle between time 'modes'
like mabey have 3 buttons - normal speed, 1/2 speed and stopped...
could make for some interesting puzzles...
Avatar
Stimich
31 Posts
Posted Apr 15, 2009
Replied 9 hours later

monkeyman wrote:
thats cool!
it would be cool if u could kind of toggle between time 'modes'
like mabey have 3 buttons - normal speed, 1/2 speed and stopped...
could make for some interesting puzzles...

You ment like this? except that I used FastForward instead of normal speed..

http://www.youtube.com/watch?v=cnia5_ZEguY

Avatar
Stimich
31 Posts
Posted Apr 15, 2009
Replied 47 minutes later
I got a sound effect now for the pause button... or trigger or whatever, I think it's 3 minutes long or something.. but it doesn't stop when i step away from the button! I've put OnEndTouch, Pause, StopSound

but it didn't work... what to do?..

Avatar
monkeyman
100 Posts
Posted Apr 15, 2009
Replied 22 minutes later

Stimich wrote:
You ment like this? except that I used FastForward instead of normal speed..

http://www.youtube.com/watch?v=cnia5_ZEguY

that stop time on is really weird...
i think it basically screw up the game if it stopped the player... i think you'd have to have it just stop the ball...

Avatar
Stimich
31 Posts
Posted Apr 16, 2009
Replied 14 hours later

monkeyman wrote:
that stop time on is really weird...
i think it basically screw up the game if it stopped the player... i think you'd have to have it just stop the ball...

Yeah, you're right, but wouldn't it be a little ... hard if you stop time when you need the ball / cube later in the map?...

Avatar
HMW
806 Posts
Posted Apr 16, 2009
Replied 2 hours later
How do you turn the pause button off if you can't move?
Avatar
Stimich
31 Posts
Posted Apr 16, 2009
Replied 53 minutes later

HMW wrote:
How do you turn the pause button off if you can't move?

You can move, I did like the developers of TimeShift did, the host_timescale is at 0.001, it may take a while... lol

Avatar
monkeyman
100 Posts
Posted Apr 17, 2009
Replied 13 hours later

Stimich wrote:
Yeah, you're right, but wouldn't it be a little ... hard if you stop time when you need the ball / cube later in the map?...

but if u can toggle whether the stop time on the ball is on or off then you can pause or unpause the cube...

Avatar
Stimich
31 Posts
Posted Apr 17, 2009
Replied 5 hours later

monkeyman wrote:
but if u can toggle whether the stop time on the ball is on or off then you can pause or unpause the cube...

You can't decide which thing you can stop, I think, 'cus they're both prop_physics ... and the command is phys_timescale

Avatar
Stimich
31 Posts
Posted Apr 19, 2009
Replied 2 days later
Thank you guys for helping me out! :smile: :cool:
Advertisement
Registered users don’t see ads! Register now!
Avatar
p0rtalplayer
1,366 Posts
Posted May 16, 2009
Replied 26 days later
I just want to note for the sound speed thing, that in the last map in portal, escape_02, glados's voice's pitch is changed at the time she is exploding. So, obviously it has it's uses.