components/scp173/[email protected]

A game Component for SCP_173 that toggles player control and primary attack based on a "seen" tag on the GameObject. When the object has the tag it disables the Player_Controller and Primary_Attack, otherwise it enables them. It skips logic for proxy instances.

Networking
using Sandbox;

public class SCP_173_DLaM : Component
{
    [Property] public Player__Controller Player_Controller {get;set;}
    [Property] public SCP_173_Primary_Attack Primary_Attack {get;set;}
    
    protected override void OnUpdate()
    { if (IsProxy) return;
        if (GameObject.Tags.Has("seen"))
        {Player_Controller.Disabled = true;
        Primary_Attack.Disabled = true; return;}
        
        Player_Controller.Disabled = false;
        Primary_Attack.Disabled = false;
    }
}