mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-28 13:09:51 +01:00
remove path
This commit is contained in:
1 parent
5807473fb6
commit
bac29d843c
1 file changed
+5
-6
@@ -17,7 +17,6 @@ import {
|
|||||||
VertexAttribute,
|
VertexAttribute,
|
||||||
} from "@blitzkit/core";
|
} from "@blitzkit/core";
|
||||||
import { Armor, Crew, ModelDefinitions, Vector3 } from "@blitzkit/protos";
|
import { Armor, Crew, ModelDefinitions, Vector3 } from "@blitzkit/protos";
|
||||||
import { parse as parsePath } from "path";
|
|
||||||
import { MathUtils, Vector3 as THREEVector3, Vector3Tuple } from "three";
|
import { MathUtils, Vector3 as THREEVector3, Vector3Tuple } from "three";
|
||||||
import { Cache } from "./0_base";
|
import { Cache } from "./0_base";
|
||||||
import { ServerBlitzKitAPI2 } from "./2_camouflages";
|
import { ServerBlitzKitAPI2 } from "./2_camouflages";
|
||||||
@@ -287,11 +286,11 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 {
|
|||||||
this.assignArmor(armorRaw, armorId, turretArmor);
|
this.assignArmor(armorRaw, armorId, turretArmor);
|
||||||
});
|
});
|
||||||
|
|
||||||
turret.userString;
|
const turretCollisionName = turret.hitTester.collisionModel
|
||||||
|
.split("/")
|
||||||
const turretCollisionName = parsePath(
|
.at(-1)!
|
||||||
turret.hitTester.collisionModel,
|
.split(".")[0]
|
||||||
).name.toLowerCase();
|
.toLowerCase();
|
||||||
const isFullYaw = -turretYaw[0] + turretYaw[1] === 360;
|
const isFullYaw = -turretYaw[0] + turretYaw[1] === 360;
|
||||||
|
|
||||||
if (!collisionBoundingBoxes[turretCollisionName] && isFullYaw) {
|
if (!collisionBoundingBoxes[turretCollisionName] && isFullYaw) {
|
||||||
|
|||||||
Reference in new issue
Block a user