Skip to content

Commit

Permalink
Add ForbidAutoPlacementArea Areas and undefined Translate fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
savage13 committed Jan 11, 2025
1 parent d761936 commit 86b091f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/components/AppMapDetailsObj.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function isAreaObject(obj: ObjectMinData) {
"AreaCulling_InnerOn", "AreaCulling_OuterNPCMementary", "FarModelCullingArea", 'LocationArea',
'LowGravityAreaBox', 'LowGravityAreaCylinder', "NoEscapeRangeAreaBox"
];
return areaObjectNames.includes(obj.name) || obj.name.startsWith('AirWall') || obj.name.startsWith("AreaInvalidateRestartPos");
return areaObjectNames.includes(obj.name) || obj.name.startsWith('AirWall') || obj.name.startsWith("AreaInvalidateRestartPos") || obj.name.startsWith("ForbidAutoPlacementArea");
}

class StaticData {
Expand Down Expand Up @@ -360,6 +360,10 @@ export default class AppMapDetailsObj extends AppMapDetailsBase<MapMarkerObj | M
const [x, y, z] = obj.data.Translate;
const dyn = obj.data.Dynamic;
let shapeNum = (dyn && dyn.RigidBodyShapeType !== undefined) ? dyn.RigidBodyShapeType : 2;
if (obj.name.endsWith("Sphere"))
shapeNum = 0;
if (obj.name.endsWith("Cylinder"))
shapeNum = 3;
if (obj.name == 'LowGravityAreaCylinder')
shapeNum = 3;
if (obj.name == 'LowGravityAreaBox')
Expand Down
2 changes: 1 addition & 1 deletion src/components/AppMapDetailsObj.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<section v-if="obj" class="mt-2">
<section v-if="isActuallyRankedUp(obj)">Actor: {{getRankedUpActorNameForObj(obj)}} (ranked up)</section>
<section v-if="!isActuallyRankedUp(obj)">Actor: {{obj.name}}</section>
<section>Position: {{formatPosition(obj.data.Translate)}}</section>
<section>Position: {{formatPosition(obj.data.Translate || obj.pos)}}</section>
<section v-if="obj.data.Scale != null">Scale: {{arrayOrNumToStr(obj.data.Scale, 2)}}</section>
<section v-if="obj.data.Rotate != null">Rotate: {{arrayOrNumToStr(obj.data.Rotate, 5)}}</section>
<section v-if="obj.data.Name">Unique name: {{obj.data.Name}}</section>
Expand Down

0 comments on commit 86b091f

Please sign in to comment.