if ( SERVER ) then local c = 1 hook.Add( "Think", "slomowhat", function() local t = 1 if ( IsValid( Entity(1) ) && Entity(1):KeyDown( IN_ALT1 ) ) then t = 0.4 end c = math.Approach( c, t, 0.025 ) game.SetTimeScale( c ) end ) end hook.Add( "EntityEmitSound", "", function( t ) if ( game.GetTimeScale() != 1 ) then t.Pitch = math.Clamp( t.Pitch * game.GetTimeScale(), 0, 255 ) return true end if ( GetConVarNumber( "host_timescale" ) != 1 ) then t.Pitch = math.Clamp( t.Pitch * GetConVarNumber( "host_timescale" ), 0, 255 ) return true end if ( CLIENT && engine.GetDemoPlaybackTimeScale() != 1 ) then t.Pitch = math.Clamp( t.Pitch * engine.GetDemoPlaybackTimeScale(), 0, 255 ) return true end end )