﻿1
00:00:00,000 --> 00:00:02,228
本教程是对a的回应
this tutorial is in a response to a

2
00:00:02,428 --> 00:00:05,319
来自流浪大火的评论，他们问如何做
comment from stray fire who asks how to

3
00:00:05,519 --> 00:00:07,780
通过自定义制作AI汽车驱动器
make an AI car drive by with custom

4
00:00:07,980 --> 00:00:10,990
音乐就像在战场越南的时候
music like in battlefield vietnam when

5
00:00:11,189 --> 00:00:13,120
你可以大声播放surfin鸟
you could play surfin bird' loud through

6
00:00:13,320 --> 00:00:15,430
在敌人后面驾驶你的收音机
your radio while driving behind enemy

7
00:00:15,630 --> 00:00:18,760
用于处理声音和音乐的线条
lines to work with sounds and music in

8
00:00:18,960 --> 00:00:20,710
装甲任务我们做了很多工作
armored missions a lot of the work we

9
00:00:20,910 --> 00:00:23,109
需要做的是实际在外面进行
need to do is actually performed outside

10
00:00:23,309 --> 00:00:26,318
伊甸园编辑所以节省一些时间我
the eden editor so to save some time I

11
00:00:26,518 --> 00:00:28,480
刚刚在这里设置了一只小鸟
have just set up here a little bird with

12
00:00:28,679 --> 00:00:31,089
AI飞行员和我们的飞行路径
an AI pilot and a flight path which we

13
00:00:31,289 --> 00:00:33,268
将用作我们音乐的来源
will use for the source of our music

14
00:00:33,469 --> 00:00:35,799
当你准备开始添加
when you are ready to start adding the

15
00:00:36,000 --> 00:00:38,229
为您的声音和/或音乐奠定基础
groundwork for your sounds and/or music

16
00:00:38,429 --> 00:00:41,229
继续前进，然后保存你的任务
go ahead and save your mission then you

17
00:00:41,429 --> 00:00:43,239
需要找到你的任务文件夹
need to find the mission folder in your

18
00:00:43,439 --> 00:00:45,788
装甲任务或MP任务目录
armor missions or MP missions directory

19
00:00:45,988 --> 00:00:48,909
这个位置取决于你是否保存了它
this location depends on if you saved it

20
00:00:49,109 --> 00:00:50,739
作为多人游戏或单人游戏
as a multiplayer or single-player

21
00:00:50,939 --> 00:00:53,079
在这种情况下的任务是一个
mission in this case it's a

22
00:00:53,280 --> 00:00:55,779
任务中的单人任务
single-player mission within the mission

23
00:00:55,979 --> 00:00:58,329
文件夹创建另一个名为的子文件夹
folder create another subfolder called

24
00:00:58,530 --> 00:01:01,779
声音，音乐或其他任何你在这里
sounds or music or whatever in here you

25
00:01:01,979 --> 00:01:04,629
将我们的声音文件放置ARMA 3 
will place our sound files ARMA 3

26
00:01:04,829 --> 00:01:09,219
支持我们拥有的wav和OGG声音文件
supports wav and OGG sound files we have

27
00:01:09,420 --> 00:01:13,269
一个名为“骑行”的WAV文件
a single WAV file called ride then going

28
00:01:13,469 --> 00:01:15,308
回到我们需要的任务根文件夹
back to the missions root folder we need

29
00:01:15,509 --> 00:01:18,308
创建描述点txt文件
to create a description dot txt file

30
00:01:18,509 --> 00:01:21,278
这些文件用于创建自定义
these files are used to create custom

31
00:01:21,478 --> 00:01:23,558
在任务中编写脚本的对象
objects that script within the mission

32
00:01:23,759 --> 00:01:26,349
然后可以使用你可以创建和编辑
can then use you can create and edit

33
00:01:26,549 --> 00:01:28,959
这个文件在任何基本的文本编辑器中
this file in any basic text editor like

34
00:01:29,159 --> 00:01:32,349
记事本在这里我们正在创建一个对象
notepad here we are creating a object

35
00:01:32,549 --> 00:01:36,039
这个叫做CFG的课堂
class called CFG sounds within this

36
00:01:36,239 --> 00:01:38,109
class我们有一个名为的数组对象
class we have an array object called

37
00:01:38,310 --> 00:01:41,259
在这个声音我们创造一个自定义
sounds within this we create a custom

38
00:01:41,459 --> 00:01:44,079
您可以使用的称为音乐的对象
object called music one you could use

39
00:01:44,280 --> 00:01:46,808
这里有任何标识符，只要你
any identifier here as long as you

40
00:01:47,009 --> 00:01:49,090
如果你想使用它，请记住它
remember it if you wanted to use

41
00:01:49,290 --> 00:01:51,128
你的多个不同的声音
multiple different sounds in your

42
00:01:51,328 --> 00:01:52,929
任务你会创建其中之一
mission you would create one of these

43
00:01:53,129 --> 00:01:56,289
对于声音数组中的每一个我们只是
for each within the sounds array we just

44
00:01:56,489 --> 00:01:59,018
有一个有三个属性名称
have the one with three properties name

45
00:01:59,218 --> 00:02:01,738
可以购买任何你想要的字符串值
which can buy any string value you wish

46
00:02:01,938 --> 00:02:04,840
声音是另一个数组包含一个
sound which is another array contains a

47
00:02:05,040 --> 00:02:07,268
文件引用中的声音文件路径
file reference to the sound file path in

48
00:02:07,468 --> 00:02:10,110
与此描述文件的关系
relation to this description file an

49
00:02:10,310 --> 00:02:13,179
你声音音量的整数
integer for the volume of the sound you

50
00:02:13,378 --> 00:02:13,730
将必须
will have to

51
00:02:13,930 --> 00:02:16,550
玩这个和一个整数的音高
play with this and an integer for pitch

52
00:02:16,750 --> 00:02:19,239
一个是默认声音将播放
one being default the sound will play

53
00:02:19,438 --> 00:02:23,179
不变的标题是另一个数组对象
unchanged titles is another array object

54
00:02:23,378 --> 00:02:25,219
这是必需的，但我们没有使用
that's required but we are not using

55
00:02:25,419 --> 00:02:28,489
这里我们把它留空以保存
here so we have left it blank to save

56
00:02:28,688 --> 00:02:30,849
您要使用的文件另存为
the file you will want to use save as

57
00:02:31,049 --> 00:02:35,689
文件名描述dot txt和be 
file name description dot txt and be

58
00:02:35,889 --> 00:02:37,819
一定要将文件类型更改为all 
sure to change the file type to all

59
00:02:38,019 --> 00:02:40,580
我们可以完成所有工作的文件
files with all that work done we can

60
00:02:40,780 --> 00:02:43,859
回到编辑
return to the editor

61
00:02:47,580 --> 00:02:50,050
所以你可以看到给车辆
so as you can see are given the vehicle

62
00:02:50,250 --> 00:02:52,210
在这种情况下，小鸟是一个变量
in this case the little bird a variable

63
00:02:52,409 --> 00:02:54,939
h1的名称，所以我们可以在何时引用它
name of h1 so we can reference it when

64
00:02:55,139 --> 00:02:57,189
分配声源但是这个
assigning the sound source but this

65
00:02:57,389 --> 00:02:59,260
可以是任何其他物体或车辆或
could be any other object or vehicle or

66
00:02:59,460 --> 00:03:02,439
aa单位或玩家然后在
a a unit or player then in the

67
00:03:02,639 --> 00:03:04,719
直升机的启动代码为
initiation code for the helicopter as

68
00:03:04,919 --> 00:03:06,490
我们黑客攻击计算机和
with our hacking the computer and

69
00:03:06,689 --> 00:03:08,920
停电教程我附上了
blackout tutorials I am attaching an

70
00:03:09,120 --> 00:03:10,930
动作到这个上下文菜单
action to the context menu of this

71
00:03:11,129 --> 00:03:14,560
对象上下文菜单选项将是
object the context menu option will be

72
00:03:14,759 --> 00:03:17,860
当播放器激活时音乐开启
music on when activated by a player it

73
00:03:18,060 --> 00:03:21,760
将执行以下代码h1 
will execute the following code h1 which

74
00:03:21,960 --> 00:03:27,070
在这种情况下出车是说3D音乐
is out vehicle in this case say 3d music

75
00:03:27,270 --> 00:03:29,380
1是声音的参考
1 which is the reference to the sound

76
00:03:29,580 --> 00:03:31,719
我们在描述中创建的对象
object we created in the description

77
00:03:31,919 --> 00:03:35,020
文件接下来是声音的范围或
file next is the range of the sound or

78
00:03:35,219 --> 00:03:38,530
有多远可以听到1000米
how far away is can be heard 1000 meters

79
00:03:38,729 --> 00:03:41,530
再一次是声音的音调
and again the pitch the sound is to be

80
00:03:41,729 --> 00:03:44,350
在这种情况下玩正常的一个
played at in this case normal one so

81
00:03:44,550 --> 00:03:47,920
这说三维功能填充播放我们的声音
this say 3d function fill play our sound

82
00:03:48,120 --> 00:03:51,700
关于源对象h1这个
in relation to the source object h1 this

83
00:03:51,900 --> 00:03:53,860
行不必在行动中
line doesn't have to be in an action on

84
00:03:54,060 --> 00:03:55,750
可以触发的对象
the object it could be triggered from

85
00:03:55,949 --> 00:03:58,030
任何地方，如激活脚本
anywhere so as the activation script of

86
00:03:58,229 --> 00:04:00,829
一个航点
a waypoint

87
00:04:06,740 --> 00:04:09,270
或者在事件的激活脚本中
or in the activation script for an event

88
00:04:09,469 --> 00:04:11,800
触发
trigger

89
00:04:16,209 --> 00:04:18,269
您
you

90
00:04:27,000 --> 00:04:31,339
无论如何，让我们试一试
anyways let's give this a try

91
00:04:37,910 --> 00:04:40,500
你可以看到音乐选项是
as you can see the music on option is

92
00:04:40,699 --> 00:04:42,750
在直升机的背景下可用
available in the helicopter's context

93
00:04:42,949 --> 00:04:46,750
菜单和繁荣
menu and boom

94
00:04:47,819 --> 00:04:50,930
[掌声] 
[Applause]

95
00:04:52,740 --> 00:04:55,740
史诗
epic

96
00:05:01,500 --> 00:05:04,579
[掌声] 
[Applause]

97
00:05:06,439 --> 00:05:08,519
因为我们在直升机上了
since we are in the helicopter that the

98
00:05:08,718 --> 00:05:10,679
声音很明显地依附于它
sound is attached to obviously its

99
00:05:10,879 --> 00:05:13,079
跟着我们，听起来很正常
following us so it sounds normal like

100
00:05:13,278 --> 00:05:15,600
从汽车收音机出来的音乐会
music coming out of a car radio would to

101
00:05:15,800 --> 00:05:17,770
有人在车里
someone in the car

102
00:05:17,970 --> 00:05:23,720
[音乐] 
[Music]

103
00:05:23,920 --> 00:05:27,019
[掌声] 
[Applause]

104
00:05:27,750 --> 00:05:30,949
[音乐] 
[Music]

105
00:05:31,149 --> 00:05:33,750
现在让我们举例说明一下
now let's give an example of how it

106
00:05:33,949 --> 00:05:35,879
从直升机外面传来的声音
sounds from outside the helicopter and

107
00:05:36,079 --> 00:05:39,629
而不是上下文菜单激活我们
instead of a context menu activation we

108
00:05:39,829 --> 00:05:41,340
将会激活音乐
will activate the music when the

109
00:05:41,540 --> 00:05:45,370
直升机到达其第一个Waypoint 
helicopter reaches its first Waypoint

110
00:05:47,889 --> 00:05:50,869
所以我们只需要一行并添加它
so we just take the one line and add it

111
00:05:51,069 --> 00:05:55,259
进入航点激活脚本
into the waypoints activation script

112
00:05:55,870 --> 00:05:58,088
我会在外面和地面上
I'll be outside and on the ground

113
00:05:58,288 --> 00:06:00,278
还有这个演示先生，你可以看到
and also for this demo sir you can see

114
00:06:00,478 --> 00:06:03,639
听起来是什么感觉
what it sounds like see what it sounds

115
00:06:03,838 --> 00:06:04,149
喜欢
like

116
00:06:04,348 --> 00:06:07,410
什么他妈的我说话有一天
what the me talk pretty one day

117
00:06:07,610 --> 00:06:11,079
听听它听起来像现在这样
hear what it sounds like so now the

118
00:06:11,278 --> 00:06:13,838
在飞行员击中之前音乐不会转动
music won't turn until the pilot hits

119
00:06:14,038 --> 00:06:16,088
第一个航路点即将结束
the first waypoint towards the end of

120
00:06:16,288 --> 00:06:18,949
机场
the airfield

121
00:06:39,819 --> 00:06:41,990
所以它打开了，它有点儿
so it's turned on and it's a little

122
00:06:42,189 --> 00:06:43,939
因为他离得更远而且
quitter because he is further away and

123
00:06:44,139 --> 00:06:47,540
随着他走得更远，它现在得到了解决
as he goes further it gets quitter now

124
00:06:47,740 --> 00:06:49,370
他回来了，音量很大
he's coming back and the volume

125
00:06:49,569 --> 00:06:55,370
增加你也不会
increases do you will also not the

126
00:06:55,569 --> 00:06:57,020
由于多普勒导致的音调变化
change in pitch due to the Doppler

127
00:06:57,220 --> 00:07:00,170
效果在三维空间中被塑造
effect being molded in a 3d space by the

128
00:07:00,370 --> 00:07:03,319
装甲引擎多普勒效应被命名
armored engine Doppler effect is named

129
00:07:03,519 --> 00:07:05,150
在奥地利物理学家克里斯蒂安之后
after the Austrian physicist Christian

130
00:07:05,350 --> 00:07:07,009
多普勒描述了这种现象
Doppler who described the phenomenon in

131
00:07:07,209 --> 00:07:10,400
1842年是多普勒频移的常见例子
1842 a common example of Doppler shift

132
00:07:10,600 --> 00:07:11,810
是a时听到的音高变化
is the change of pitch heard when a

133
00:07:12,009 --> 00:07:13,490
车辆发出警报声或号角
vehicle's sounding a siren or horn

134
00:07:13,689 --> 00:07:15,829
方法通过和退出
approaches passes and recedes from an

135
00:07:16,029 --> 00:07:17,900
观察者与发射的相比
observer compared to the emitted

136
00:07:18,100 --> 00:07:20,000
频率接收频率是
frequency the received frequency is

137
00:07:20,199 --> 00:07:22,189
在接近相同的时候更高
higher during the approach identical at

138
00:07:22,389 --> 00:07:24,139
经过和降低的瞬间
the instant of passing by and lower

139
00:07:24,339 --> 00:07:26,449
在经济衰退期间的来源
during the recession when the source of

140
00:07:26,649 --> 00:07:27,920
海浪正向观察者移动
the waves is moving towards the observer

141
00:07:28,120 --> 00:07:30,410
每个连续的波峰都被发射出去
each successive wave crest is emitted

142
00:07:30,610 --> 00:07:31,730
从靠近观察者的位置
from a position closer to the observer

143
00:07:31,930 --> 00:07:34,040
因此每个都比前一波
than the previous wave therefore each

144
00:07:34,240 --> 00:07:36,050
波浪到达的时间略短
wave takes slightly less time to reach

145
00:07:36,250 --> 00:07:37,520
观察者比前一波
the observer than the previous wave

146
00:07:37,720 --> 00:07:39,590
因此到达之间的时间
hence the time between the arrival of

147
00:07:39,790 --> 00:07:41,569
观察者连续的波峰
successive wave crests at the observer

148
00:07:41,769 --> 00:07:43,280
减少导致增加
is reduced causing an increase in the

149
00:07:43,480 --> 00:07:44,900
他们旅行时的频率
frequency while they are traveled the

150
00:07:45,100 --> 00:07:46,370
连续波阵面之间的距离
distance between successive wave fronts

151
00:07:46,569 --> 00:07:48,470
减少所以波浪聚集在一起
is reduced so the waves bunched together

152
00:07:48,670 --> 00:07:50,360
相反，如果波的来源是
conversely if the source of waves is

153
00:07:50,560 --> 00:07:52,460
每一波远离观察者
moving away from the observer each wave

154
00:07:52,660 --> 00:07:56,300
发出任何问题
is emitted any questions post in the

155
00:07:56,500 --> 00:07:58,960
以下评论以及任何请求
comments below along with any requests

156
00:07:59,160 --> 00:08:04,160
谢谢你的收看
thanks for watching


