lorry: play a sound when dumping contents

liquid_container
Maikel de Vries 2016-02-09 19:33:30 +01:00
parent 582cba01ed
commit 99d5a7c8c9
4 changed files with 7 additions and 1 deletions

View File

@ -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;
}

View File

@ -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