#Bio Scanner Small Red Dots
1 messages · Page 1 of 1 (latest)
Main Causes
Caused when the bio scanner is wielded and the player is watching an enemy as they move 3 rooms away from it. The enemy will then be shown with a tiny red dot.
The troublesome code can be found in EnemyScanner.UpdateDetectedEnemies:
Decompiled C# code, so code may differ from original
// EnemyScanner.UpdateDetectedEnemies
if (enemyAgent != null)
{
if (enemyAgent.Alive)
{
EnemyScannerDataObject scannerData = enemyAgent.ScannerData;
if (scannerData.m_updateID + 20 > m_updateID)
{
UpdateAndRenderScannerData(enemyAgent, scannerData);
if (scannerData.m_playSound)
{
scannerData.m_playSound = false;
Sound.Post(EVENTS.PROXIMITYSCANNERDETECT);
}
m_detectedListIndex--;
num2++;
continue;
}
}
enemyAgent.IsInDetectedList = false;
enemyAgent.ScannerData = null; // Clears the EnemyScannerDataObject from enemy, removing its MaterialPropertyBlock color thus causing it to render as tiny red dot
// Since m_hasDirtyScannerColor never gets reset after this point, the scanner data object here never gets re-set and thus
// the tiny red dot persists
}
Steps to reproduce
- Enter R1A1
- Move to area D of Zone 49
- Face West, and align yourself so that you are looking at the security door to Zone 52
- Pull out the bio scanner
- Side step left, still facing west, through the small weak door going to Zone 49, Area E
- Enemies on your bio scanner through the west wall should disappear as you cross the 3 room boundary
- Side step right, still facing west, through the small door back into Zone 49, Area D
- Those missing enemies should return back as tiny red dots
Possible solutions
Mark the enemy scanner color as dirty when it gets set in the Getter / Setter:
// class EnemyAgent
public EnemyScannerDataObject ScannerData
{
get
{
if (!m_hasScannerData)
{
m_scannerData = new EnemyScannerDataObject();
m_hasScannerData = true;
}
return m_scannerData;
}
set
{
m_hasDirtyScannerColor = true; // Add this
m_hasScannerData = value != null;
m_scannerData = value;
}
}
Attached Clips
Shows how to reproduce the bug in R1A1
Temporary Mod Fix
https://thunderstore.io/c/gtfo/p/randomuserhi/BioScannerFix/
This would REALLY be beneficial on a list somewhere
But this will do fine
faq or wiki on common bugs ig? lol