Skip to content

Commit 74a5428

Browse files
authored
Merge branch 'master' into glue_new
2 parents a7f7c80 + 385c518 commit 74a5428

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

[gameplay]/parachute/meta.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<script src="skydiving_cl.lua" type="client"/>
1010
<script src="openChute.lua" type="client"/>
1111
<script src="client_anim.lua" type="client"/>
12-
<file src="parachuteopen.mp3" />
1312

1413
<export function="removeParachute" type="client"/>
1514
<export function="stopSkyDiving" type="client"/>

[gameplay]/parachute/openChute.lua

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ overboardTime = 400
66
openingChutes = {}
77

88
function openChute ( object, player, time )
9-
sound = playSound3D ( "parachuteopen.mp3", getElementPosition(player) )
10-
setSoundMinDistance ( sound, 25 )
9+
local playerX, playerY, playerZ = getElementPosition(player)
10+
11+
sound = playSFX3D("genrl", 136, 65, playerX, playerY, playerZ, false) -- parachute open sound
12+
13+
if (sound) then
14+
setSoundMinDistance ( sound, 25 )
15+
end
16+
1117
setObjectScale ( object, 0 )
1218
openingChutes[object] = {}
1319
openingChutes[object].time = time
-4.92 KB
Binary file not shown.

0 commit comments

Comments
 (0)