Doppler scale ruined everything

This commit is contained in:
Stiffly
2014-06-03 20:05:31 +02:00
parent 96a608db27
commit 87b02711f4
4 changed files with 16 additions and 13 deletions
+13 -11
View File
@@ -95,6 +95,11 @@ void Systems::TankSteeringSystem::UpdateEntity(double dt, EntityID entity, Entit
EventBroker->Publish(eSetVelocity);
m_TimeSinceLastShot[tankSteeringComponent->Barrel] = 0;
Events::PlaySFX e;
e.Resource = "Sounds/SFX/LongBoom.wav";
e.Emitter = entity;
e.Loop = false;
EventBroker->Publish(e);
auto clonePhysicsComponent = m_World->GetComponent<Components::Physics>(clone);
//1,670m/s
@@ -109,17 +114,14 @@ void Systems::TankSteeringSystem::UpdateEntity(double dt, EntityID entity, Entit
m_TimeSinceLastShot[tankSteeringComponent->Barrel] += dt;
}
auto shot = m_World->GetComponent<Components::TankShell>(entity);
if(shot)
{
if(inputController->Shoot && m_TimeSinceLastShot[tankSteeringComponent->Barrel] > 0.5)
{
Events::PlaySFX e;
e.Resource = "Sounds/SFX/LongBoom.wav";
e.Emitter = entity;
EventBroker->Publish(e);
}
}
// auto shot = m_World->GetComponent<Components::TankShell>(entity);
// if(shot)
// {
// if(inputController->Shoot && m_TimeSinceLastShot[tankSteeringComponent->Barrel] > 0.5)
// {
//
// }
// }
}
bool Systems::TankSteeringSystem::OnCollision( const Events::Collision &e )