Zaggy1024 / LC_OpenBodyCams

An open-source mod for Lethal Company to add a body/head camera that is displayed on the bottom right monitor in the ship, with the goal of appearing almost identical to the player's actual perspective while providing good performance.
https://thunderstore.io/c/lethal-company/p/Zaggy1024/OpenBodyCams/
MIT License
8 stars 0 forks source link

[Bug] Teleported Radar Boosters never turn on their cameras #37

Closed zndrmn closed 2 months ago

zndrmn commented 2 months ago

With this setting set to DisableCameraWhileTargetIsOnShip = true, radar boosters that are teleported outside of the ship will always have their cameras disabled. Switching targets doesn't fix it.

I'm using EnhancedRadarBooster to teleport the radar booster with the teleporter.

Zaggy1024 commented 2 months ago

This has been an issue for a while, and there's no solution I'd like to implement for it on my side. The problem is that EnhancedRadarBooster doesn't mark its teleportation target's flags to indicate whether it's in the ship, nor whether it's in the interior. If the mod is maintained still, then I would suggest you bring it up in their issue tracker.

zndrmn commented 2 months ago

Mkay I'll report this to EnhancedRadarBooster's repo and link this issue there

MrHydralisk commented 2 months ago

The problem is that EnhancedRadarBooster doesn't mark its teleportation target's flags to indicate whether it's in the ship, nor whether it's in the interior.

If can tell me what command call and changes that flag state that you need, then can fix it faster.

Zaggy1024 commented 2 months ago

The particular one that is important is GrabbableObject.isInShipRoom, but every field that is relevant to the position of the item needs to be updated:

If I remember right, there may have also been an issue with the radar booster not working after a teleport due to RadarBoosterItem.radarEnabled and GrabbableObject.isBeingUsed becoming mismatched.

MrHydralisk commented 2 months ago

Should have no issues now in v.1.7.0