16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 05:29:18 +02:00

improve trainingmode collision sound

This commit is contained in:
milek7
2020-11-01 20:49:03 +01:00
parent 124f6bca0c
commit bbf0102e16
4 changed files with 16 additions and 5 deletions

View File

@@ -343,8 +343,7 @@ void state_manager::process_commands() {
std::getline(ss, data, ':');
TAnimModel *model = simulation::State.create_model(data, name, commanddata.location);
simulation::State.create_eventlauncher("node -1 0 launcher eventlauncher 0 0 0 " + std::to_string(model->radius())
+ " none -10000.0 obstacle_collision end", name + "_snd", commanddata.location);
simulation::State.create_eventlauncher("node -1 0 launcher eventlauncher 0 0 0 0.8 none -10000.0 obstacle_collision traintriggered end", name + "_snd", commanddata.location);
}
if (commanddata.command == user_command::deletemodel) {