Added Aetheric Drive hardpoint and item behavior Added Drive RPM UI to HUD Fixed death not disabling continue option Disabling global input when dialog is visible Fixed loadout generator failure when zero price item present Replaced fixed top speed with drag coefficients
32 lines
762 B
C#
32 lines
762 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using MessagePack;
|
|
using Newtonsoft.Json;
|
|
using Unity.Mathematics;
|
|
using static Unity.Mathematics.math;
|
|
|
|
[Inspectable, MessagePackObject, JsonObject(MemberSerialization.OptIn), RuntimeInspectable]
|
|
public class AutoWeaponData : InstantWeaponData
|
|
{
|
|
public override IBehavior CreateInstance(EquippedItem item)
|
|
{
|
|
return new AutoWeapon(this, item);
|
|
}
|
|
}
|
|
|
|
public class AutoWeapon : InstantWeapon
|
|
{
|
|
|
|
public AutoWeapon(InstantWeaponData data, EquippedItem item) : base(data, item)
|
|
{
|
|
}
|
|
|
|
public override bool Execute(float dt)
|
|
{
|
|
if(_firing && _burstRemaining == 0 && _cooldown < 0)
|
|
Trigger();
|
|
return base.Execute(dt);
|
|
}
|
|
}
|
|
|