Sensor Ping

Added ping feature to sensors, pulsing a wave of revealing light into the level
Added IEventBehavior interface, used by sensors and weapons, for behaviors containing event subscriptions which need to be reset when EntityInstance is disposed
Implemented sensor impact for locked weapons (lock speed varies with sensor acquisition)
Added ping cooldown bar to HUD
Added spline curve implementations to AetheriaMath, applied better mapping to wormhole transition animation
Tweaked loadout generator to prefer larger items to a controllable degree (e.g. very important for cargo bays, less for shop inventory), shop inventory bans non-ship hulls and manages internal space more effectively
This commit is contained in:
Reinier Vens 2021-03-21 01:55:25 +00:00
commit 645fcf4b09
62 changed files with 115821 additions and 79 deletions

View file

@ -27,7 +27,7 @@ public class InstantWeaponData : WeaponData
}
}
public class InstantWeapon : Weapon, IProgressBehavior
public class InstantWeapon : Weapon, IProgressBehavior, IEventBehavior
{
private InstantWeaponData _data;
@ -63,7 +63,7 @@ public class InstantWeapon : Weapon, IProgressBehavior
public event Action OnCooldownComplete;
public event Action OnFire;
public override void ResetEvents()
public virtual void ResetEvents()
{
OnReloadBegin = null;
OnReloadComplete = null;