public static void Fire(IReal shooter, Vector3 pos, float angle, float elevation, Specs spec) { // TODO: really wish this could be implemented in the manager somehow Munition toFire; if (Registry.MunMan.Stored.Count > 0) { toFire = Registry.MunMan.Stored[0]; } else { toFire = new Munition(); } toFire.Fire(shooter, pos, Gizmo.VectorFromAngles(angle, elevation, spec.MuzzleVel), spec); Registry.MunMan.Add(toFire); }
public void Trigger() { Munition.Fire(Wielder, Offset, Rotation, Elevation, Payload); }