mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 11:17:05 +02:00
feat: armor modes
This commit is contained in:
1 parent
ffa1395b50
commit
f1410cf321
42 files changed
+293
-264
No files matched your search
@@ -1,6 +1,10 @@
|
||||
import { normalizeAngleRad, PitchLimits, YawLimits } from '@blitzkit/core';
|
||||
import {
|
||||
normalizeAngleRad,
|
||||
type PitchLimits,
|
||||
type YawLimits,
|
||||
} from '@blitzkit/core';
|
||||
import { clamp } from 'lodash-es';
|
||||
import { degToRad } from 'three/src/math/MathUtils';
|
||||
import { degToRad } from 'three/src/math/MathUtils.js';
|
||||
|
||||
export function applyPitchYawLimits(
|
||||
pitch: number, // rad
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { equipmentDefinitions } from '@blitzkit/core';
|
||||
import { EquipmentMatrix } from '../../stores/duel';
|
||||
import type { EquipmentMatrix } from '../../stores/duel';
|
||||
|
||||
export async function hasEquipment(
|
||||
id: number,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ModelArmor } from '@blitzkit/core';
|
||||
import type { ModelArmor } from '@blitzkit/core';
|
||||
|
||||
export function resolveArmor(armor: ModelArmor, index: number) {
|
||||
const spaced = armor.spaced?.includes(index) ?? false;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import {
|
||||
availableProvisions,
|
||||
ProvisionDefinitions,
|
||||
TankDefinition,
|
||||
type ProvisionDefinitions,
|
||||
type TankDefinition,
|
||||
} from '@blitzkit/core';
|
||||
import { DuelMember } from '../../stores/duel';
|
||||
import type { DuelMember } from '../../stores/duel';
|
||||
import { genericDefaultEquipmentMatrix } from '../../stores/duel/constants';
|
||||
|
||||
const PROVISION_PREFERENCES = [
|
||||
|
||||
Reference in new issue
Block a user