feat: shot display

This commit is contained in:
TrèsAbhi committed 2024-05-26 13:42:51 -05:00
1 parent 3438e51ef1
commit 7f8797a449
3 files changed
+113 -35

No files matched your search

+12 -3
View File
@@ -75,14 +75,23 @@ export interface ShotLayerGap {
export type ShotLayer = ShotLayerExternal | ShotLayerNonExternal | ShotLayerGap;
export type Shot = {
status: 'penetration' | 'blocked' | 'ricochet' | 'splash';
containsGaps: boolean;
damage: number;
point: Vector3;
layersIn: ShotLayer[];
layersOut?: ShotLayer[];
in: {
cameraNormal: Vector3;
status: ShotStatus;
layers: ShotLayer[];
};
out?: {
status: ShotStatus;
layers: ShotLayer[];
};
};
export type ShotStatus = 'penetration' | 'blocked' | 'ricochet' | 'splash';
export type ArmorPiercingLayer =
| {
distance: number;