forked from Mirrors/openclonk
lorry: play a sound when dumping contents
parent
582cba01ed
commit
99d5a7c8c9
|
@ -89,6 +89,9 @@ public func FxDumpContentsStart(object target, proplist effect, int temp, int di
|
|||
if (effect.dump_dir == DIR_Right)
|
||||
rdir = effect.dump_strength;
|
||||
SetRDir(rdir);
|
||||
// Start dump sounds together.
|
||||
Sound("Objects::Lorry::Dump1", false, 100, nil, +1);
|
||||
Sound("Objects::Lorry::Dump2", false, 100, nil, +1);
|
||||
return FX_OK;
|
||||
}
|
||||
|
||||
|
@ -128,6 +131,9 @@ public func FxDumpContentsStop(object target, proplist effect, int reason, bool
|
|||
return FX_OK;
|
||||
// Stop rotating the lorry.
|
||||
SetRDir(0);
|
||||
// Stop dump sounds.
|
||||
Sound("Objects::Lorry::Dump1", false, 100, nil, -1);
|
||||
Sound("Objects::Lorry::Dump2", false, 100, nil, -1);
|
||||
return FX_OK;
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -5,7 +5,7 @@ Author Work(s)
|
|||
===============================================================================
|
||||
|
||||
ala - Fire/Spark1&2&3, Objects/Weapons/Musket/Click1&2&3, Clonk/Action/Munch2, Clonk/Movement/DivingLoop1&2&3, Animals/Wipf/Snuff3
|
||||
Structures/DoorOpen*, Structures/DoorClose*, Hits/BucketHit*
|
||||
Structures/DoorOpen*, Structures/DoorClose*, Hits/BucketHit*, Objects/Lorry/Dump*
|
||||
Structures/Repair, Structures/FinishBuilding made from following resources:
|
||||
- JoelAudio: https://www.freesound.org/people/JoelAudio/sounds/135860/ - CC-By 3.0
|
||||
- cmusounddesign: https://www.freesound.org/people/cmusounddesign/sounds/84696 - CC-By 3.0
|
||||
|
|
Loading…
Reference in New Issue