object OnDoorToggle(BasicDoor door, ulong timestamp, Controllable controllable)
 {
     if (controllable == null) return null;
     if (controllable.playerClient == null) return null;
     if (door.GetComponent<DeployableObject>() == null) return null;
     cachedValue = Interface.CallHook("isSharing", door.GetComponent<DeployableObject>().ownerID.ToString(), controllable.playerClient.userID.ToString());
     if (cachedValue is bool && (bool)cachedValue) return toggledoor.Invoke(door, new object[] { controllable.playerClient.lastKnownPosition, timestamp, null });
     return null;
 }
Beispiel #2
0
 private void OnDoorToggle(BasicDoor door, ulong timestamp, Controllable controllable)
 {
     HookCalled("OnDoorToggle");
     // Print door used
     Puts(controllable.netUser.displayName + " used the door " + door.GetInstanceID() + " owned by the player with SteamID " + door.GetComponent<DeployableObject>().ownerID);
 }
Beispiel #3
0
 private void OnDoorToggle(BasicDoor door, ulong timestamp, Controllable Controllable)
 {
     HookCalled("OnDoorToggle");
 }