Garry's Mod

Garry's Mod

2,129 个评价
Fly By Sounds
2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 快乐, 写实
文件大小
发表于
更新日期
1.480 MB
2013 年 8 月 8 日 上午 10:32
9 月 21 日 下午 1:19
21 项改动说明 ( 查看 )

订阅以下载
Fly By Sounds

描述
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.

cl_flybysound_loudness (default: 1.0)
- The overall volume of the audio can be scaled down by setting values below 1.0

(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
热门讨论 查看全部(2)
2
9 月 21 日 下午 1:23
Can you add a way to change the volume of the sounds?
JacobDoesLife
1
9 月 19 日 上午 4:25
Error report
Wesch
183 条留言
Spooky Sofi  [作者] 9 月 19 日 上午 4:14 
It should be fixed now. I'm not able to reproduce the error so I can't say for certain.
lanrova 9 月 18 日 上午 9:24 
[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

please fix this addon is one of my favorites
MaoLuntai 7 月 3 日 上午 6:33 
make my world qute more
Specneo 5 月 16 日 下午 2:52 
[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
Squire 4 月 2 日 上午 5:43 
Does this apply to grenades and Rockets from a rocket launcher or a modded one that shoots objects?
Xenokiller09 3 月 8 日 上午 7:05 
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 2 月 4 日 上午 3:06 
Thanks for the fast fix.
Spooky Sofi  [作者] 2 月 3 日 下午 11:49 
I've moved the tool into a separate addon so the error should be gone now. ^^
mexikoedi 2 月 3 日 上午 2:22 
Ah ok, good to know.
Thanks for the fast reply.
Spooky Sofi  [作者] 2 月 2 日 下午 10:07 
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.