Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-08-24 22:55:28 +0000
committerStijn Buys <ingar@osirion.org>2008-08-24 22:55:28 +0000
commit02e623574c4c12c40a0757ed934a93353f34a653 (patch)
tree49fa76c6dd8bab80520601d5d5f0436e7befad5f /src/client/targets.cc
parente422dc200a1036ec6c1a93eea2f0b6abdcdadb7a (diff)
impulse disables thrust
Diffstat (limited to 'src/client/targets.cc')
-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 ) {