Garry's Mod

Garry's Mod

2,012 ratings
Fly By Sounds
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Realism
File Size
Posted
Updated
1.478 MB
Aug 8, 2013 @ 10:32am
Feb 3 @ 11:30pm
16 Change Notes ( view )

Subscribe to download
Fly By Sounds

Description
Dynamic wind sounds when props fly past you. (Updated & Optimized 2025)


Have a fix or optimization? Contribute here![github.com]


More Info:

Applies to props, ragdolls, 'Bouncy Ball' from Sandbox, and more.

Volume and Pitch scale based on multiple variables such as speed, shape volume, and distance.

The pitch and volume ranges can be modified via server console variables:

sv_flybysound_minspeed (default: 100)
- Minimum speed required for sound to be heard.

sv_flybysound_maxspeed (default: 1000)
- Volume does not increase after this speed is exceeded.

sv_flybysound_minshapevolume (default: 1)
- Pitch does not increase when shape volume (3D area) falls below this amount.

sv_flybysound_maxshapevolume (default: 300)
- Pitch does not decrease when shape volume (3D area) exceeds this amount.

sv_flybysound_minvol (default: 30)
- Object must have at least this much volume (area) to produce fly by sounds.

sv_flybysound_playersounds (default: 0)
- Script applies to players.

cl_flybysound_updatedelay (default: 0.05)
- How often the script updates sound effects (pitch, volume). Smaller values give smoother sound transitions but more CPU intensive.

cl_flybysound_scandelay (default: 0.5)
- How often the script scans for relevant entities. Smaller values give faster feedback but are more CPU intensive.

cl_flybysound_cutoffdist (default: 3000)
- Maximum distance at which sounds can be heard. Smaller values can give better performance in large maps.

cl_flybysound_altsound (default: 0)
- If set to 1 then an alternative wind sound will play. (Portal 2)

sv_flybysound_spinsounds (default: 0)
- If set to 1, the sound will be heard when an entity is spinning.

(If these variables confuse you, probably best not to change them.)

(Sorry Note: Sorry for confusing variable names because sound 'volume' and 3D area 'volume' are both the same spelling. Next time I will name area volume 'size' for less confusion, but I do not want to change the variables in this script or people will lose their console variable settings.)

A tool to mute the sounds on specific entities is available here.


Enjoy! :)


Credits
Sofibyte addon author
Wontairr alternative wind sound, bug fixes, spin sounds, spawn-menu options
Taux icon
Popular Discussions View All (1)
0
May 12 @ 1:44pm
Error report
Wesch
180 Comments
Specneo May 16 @ 2:52pm 
[Fly By Sounds] lua/autorun/client/cl_flybysounds.lua:214: attempt to call method 'Stop' (a nil value)
1. v - lua/autorun/client/cl_flybysounds.lua:214
2. unknown - lua/includes/modules/hook.lua:102
GOTSR Apr 2 @ 5:43am 
Does this apply to grenades and Rockets from a rocket launcher or a modded one that shoots objects?
Xenokiller09 Mar 8 @ 7:05am 
For some reason I keep getting this error in relation to all LVS vehicles:

[Fly By Sounds] lua/autorun/client/cl_flybysounds.lua:214: attempt to call method 'Stop' (a nil value)
1. v - lua/autorun/client/cl_flybysounds.lua:214
2. unknown - lua/includes/modules/hook.lua:102

For whatever reason this addon completely disables all functions on LVS cars/planes and softlocks me in place until I undo the car/plane I'm sitting in. LVS goes back to working just fine when I disable this addon, but I clearly remember LVS working with this addon enabled as well not too long ago, so I'm unsure if an update you pushed for this addon broke something. I hope this is something you can look into.
mexikoedi Feb 4 @ 3:06am 
Thanks for the fast fix.
Eepy Sofi  [author] Feb 3 @ 11:49pm 
I've moved the tool into a separate addon so the error should be gone now. ^^
mexikoedi Feb 3 @ 2:22am 
Ah ok, good to know.
Thanks for the fast reply.
Eepy Sofi  [author] Feb 2 @ 10:07pm 
It seems it's an issue with GMod itself. It tries to load the toolgun script if the gmod_tool folder exists, even if the Sandbox toolgun script is not present.

I will consider making the tool a separate addon, as it's only relevant to Sandbox users.
Eepy Sofi  [author] Feb 2 @ 9:50pm 
Thanks for the details! I will look into this.
mexikoedi Feb 2 @ 6:32am 
When I have this addon activated it causes the following error: "[ERROR] AddCSLuaFile: Couldn't find 'weapons/gmod_tool/shared.lua'"
This didn't appear a couple of updates before.
I'm using this addon on a TTT2 server.
I think this happens because "weapons/gmod_tool/shared.lua" only exists in Sandbox.
Is this fixable?
CodeOrange Dec 30, 2024 @ 7:24am 
no way is it back