Initial Wwise Integration
Created wwise project Integrated inventory UI sounds Improved projectile weapon behavior (randomized start position, stopped them from self-destructing at target range when airburst is disabled)
This commit is contained in:
parent
b53e4aec8c
commit
db8c3c7779
1019 changed files with 76372 additions and 110 deletions
|
|
@ -85,6 +85,7 @@ public class CombatState : BaseState
|
|||
{
|
||||
var targetHullData = _agent.ItemManager.GetData(target.Hull) as HullData;
|
||||
var targetVelocity = float3(target.Velocity.x, 0, target.Velocity.y);
|
||||
var shipVelocity = float3(_agent.Ship.Velocity.x, 0, _agent.Ship.Velocity.y);
|
||||
var predictedPosition = AetheriaMath.FirstOrderIntercept(
|
||||
_agent.Ship.Position,
|
||||
float3.zero,
|
||||
|
|
|
|||
|
|
@ -105,6 +105,11 @@ public class TurretController : IBehavior
|
|||
}
|
||||
else
|
||||
{
|
||||
foreach (var x in _weapons)
|
||||
{
|
||||
if (x.Firing)
|
||||
x.Deactivate();
|
||||
}
|
||||
EquippedEntity.Target.Value = EquippedEntity.VisibleHostiles.FirstOrDefault(e => e is Ship);
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ public abstract class Entity
|
|||
{
|
||||
VisibleEntities.Remove(replace.Key);
|
||||
if(IsHostileTo(replace.Key))
|
||||
VisibleHostiles.Add(replace.Key);
|
||||
VisibleHostiles.Remove(replace.Key);
|
||||
}
|
||||
});
|
||||
EntityInfoGathered.ObserveRemove().Subscribe(remove => VisibleEntities.Remove(remove.Key));
|
||||
|
|
|
|||
Loading…
Reference in a new issue