This commit is contained in:
JohnCorby 2023-05-07 11:41:14 -07:00
parent 20fe2c4fe7
commit d495d20e83
2 changed files with 3 additions and 5 deletions

View File

@ -53,6 +53,9 @@ internal class GhostManager : WorldObjectManager
_zone2Director._cityGhosts[i].GetWorldObject<QSBGhostBrain>().OnIdentifyIntruder += CustomOnCityGhostsIdentifiedIntruder;
}
// the collision group sector is smaller than the one for ghost light sensors,
// so ghosts can see thru walls.
// fix this by just changing the collision group sector :P
var allCollisionGroups = Resources.FindObjectsOfTypeAll<SectorCollisionGroup>();
var city = allCollisionGroups.First(x => x.name == "City");
city.SetSector(_zone2Director._sector);

View File

@ -14,11 +14,6 @@ using System.Threading;
namespace QSB.EchoesOfTheEye.LightSensorSync.WorldObjects;
/// <summary>
/// BUG: this breaks in zone2.
/// the sector it's enabled in is bigger than the sector the zone2 walls are enabled in :(
/// maybe this can be fixed by making the collision group use the same sector.
/// </summary>
internal class QSBLightSensor : AuthWorldObject<SingleLightSensor>
{
internal bool _locallyIlluminated;