Skip to content

Commit

Permalink
Added (new) stepsounds for SCP-939 and SCP-966 (+ fixed 966's walking…
Browse files Browse the repository at this point in the history
… speed) (by Vane Brain)
  • Loading branch information
ENDSHN committed Oct 24, 2017
1 parent e2efcee commit 6bb600f
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 5 deletions.
18 changes: 17 additions & 1 deletion LoadAllSounds.bb
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,27 @@ For i = 0 To 7
StepSFX(2, 0, i) = LoadSound_Strict("SFX\Character\MTF\Step" + (i + 1) + ".ogg")
StepSFX(3, 0, i) = LoadSound_Strict("SFX\SCP\049\Step"+ (i + 1) + ".ogg")
EndIf
If i < 4
StepSFX(4, 0, i) = LoadSound_Strict("SFX\Step\SCP\StepSCP" + (i + 1) + ".ogg");new one 1.3.9
EndIf
Next

;Dim Step2SFX(6)
For i = 0 To 2
Step2SFX(i) = LoadSound_Strict("SFX\Step\StepPD" + (i + 1) + ".ogg")
Step2SFX(i+3) = LoadSound_Strict("SFX\Step\StepForest" + (i + 1) + ".ogg")
Next
End Function
End Function










;~IDEal Editor Parameters:
;~F#0
;~C#Blitz3D
2 changes: 1 addition & 1 deletion Main.bb
Original file line number Diff line number Diff line change
Expand Up @@ -1675,7 +1675,7 @@ Global CoughCHN%, VomitCHN%
Global MachineSFX%
Global ApacheSFX
Global CurrStepSFX
Dim StepSFX%(4, 2, 8) ;(normal/metal, walk/run, id)
Dim StepSFX%(5, 2, 8) ;(normal/metal, walk/run, id)

Dim Step2SFX(6)

Expand Down
10 changes: 7 additions & 3 deletions NPCs.bb
Original file line number Diff line number Diff line change
Expand Up @@ -3709,7 +3709,7 @@ Function UpdateNPCs()
;Animate2(n\obj,AnimTime(n\obj),644,683,28*n\CurrSpeed) ;walk

If (prevFrame<664 And n\Frame=>664) Or (prevFrame>673 And n\Frame<654) Then
PlaySound2(StepSFX(1, 0, Rand(0,3)), Camera, n\Collider, 12.0)
PlaySound2(StepSFX(4, 0, Rand(0,3)), Camera, n\Collider, 12.0)
If Rand(10)=1 Then
temp = False
If n\SoundChn = 0 Then
Expand Down Expand Up @@ -3785,7 +3785,7 @@ Function UpdateNPCs()
;Animate2(n\obj,AnimTime(n\obj),449,464,6*n\CurrSpeed) ;run

If (prevFrame<452 And n\Frame=>452) Or (prevFrame<459 And n\Frame=>459) Then
PlaySound2(StepSFX(1, 1, Rand(0,3)), Camera, n\Collider, 12.0)
PlaySound2(StepSFX(1, 1, Rand(0,7)), Camera, n\Collider, 12.0)
EndIf

If Distance(n\EnemyX, n\EnemyZ, EntityX(n\Collider), EntityZ(n\Collider))<1.1 Then ;player is visible
Expand Down Expand Up @@ -4476,9 +4476,13 @@ Function UpdateNPCs()

EndIf

If (prevFrame < 604 And n\Frame=>604) Or (prevFrame < 627 And n\Frame=>627) Then
PlaySound2(StepSFX(4,0,Rand(0,3)),Camera, n\Collider, 7.0, Rnd(0.5,0.7))
EndIf

RotateEntity n\Collider, 0, CurveAngle(n\Angle,EntityYaw(n\Collider),30.0),0

MoveEntity n\Collider,0,0,n\CurrSpeed
MoveEntity n\Collider,0,0,n\CurrSpeed*FPSfactor
EndIf
Case 10 ;attack
If n\LastSeen=0
Expand Down
Binary file added SFX/Step/SCP/StepSCP1.ogg
Binary file not shown.
Binary file added SFX/Step/SCP/StepSCP2.ogg
Binary file not shown.
Binary file added SFX/Step/SCP/StepSCP3.ogg
Binary file not shown.
Binary file added SFX/Step/SCP/StepSCP4.ogg
Binary file not shown.

0 comments on commit 6bb600f

Please sign in to comment.