Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/targets.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/client/targets.cc b/src/client/targets.cc
index e53e530..7e852ad 100644
--- a/src/client/targets.cc
+++ b/src/client/targets.cc
@@ -332,11 +332,16 @@ void render_entity_sound(core::EntityControlable *entity)
}
float speed = entity->speed();
- float pitch = 0.2f + entity->thrust() * 0.8f;
+ float pitch = 1.0f;
float gain = 0.0;
- if (entity->thrust() > 0 ) {
+ if (entity->eventstate() == core::Entity::Impulse) {
+ pitch = 1.0f;
+ gain = 1.0f;
+ } else if (entity->thrust() > 0 ) {
+ pitch = 0.2f + entity->thrust() * 0.8f;
gain = 1.0f;
}
+
if (entity->eventstate() == core::Entity::ImpulseInitiate ) {