Пример #1
0
 // Token: 0x060051F8 RID: 20984 RVA: 0x001C0CB8 File Offset: 0x001BF0B8
 public static void TeleportToOrientation(VRC_PlayerApi player, Vector3 teleportPos, Quaternion teleportRot, VRC_SceneDescriptor.SpawnOrientation teleportOrientation)
 {
     if (player != null)
     {
         player.GetComponent <SyncPhysics>().DiscontinuityHint = true;
         LocomotionInputController component = player.GetComponent <LocomotionInputController>();
         if (component != null)
         {
             component.Teleport(teleportPos, teleportRot, teleportOrientation);
         }
         else
         {
             VRC.Network.RPC(player.GetComponent <VRC.Player>(), player.gameObject, "Teleport", new object[]
             {
                 teleportPos,
                 teleportRot,
                 teleportOrientation
             });
         }
     }
     else
     {
         Debug.LogError("Attempted to teleport a null player!");
     }
 }
Пример #2
0
 // Token: 0x06004DA8 RID: 19880 RVA: 0x001A0E6C File Offset: 0x0019F26C
 private void OnPlayerJoined(VRC_PlayerApi player)
 {
     if (VRC.Network.IsMaster)
     {
         VRC.Network.RPC(player.GetComponent <VRC.Player>(), base.gameObject, "SetTimer", new object[]
         {
             this.timer,
             this.shouldRunTimer
         });
     }
 }
Пример #3
0
 // Token: 0x06004D3E RID: 19774 RVA: 0x0019DE2C File Offset: 0x0019C22C
 private void OnPlayerJoined(VRC_PlayerApi player)
 {
     if (VRC.Network.IsMaster)
     {
         VRC.Player component = player.GetComponent <VRC.Player>();
         foreach (SpawnableObject spawnableObject in this.mSpawnedObjects)
         {
             VRC.Network.RPC(component, base.gameObject, "SetupLastSpawnedObject", new object[]
             {
                 spawnableObject.gameObject
             });
         }
     }
 }
Пример #4
0
    // Token: 0x060062A7 RID: 25255 RVA: 0x0022FEF8 File Offset: 0x0022E2F8
    private void OnPlayerLeft(VRC_PlayerApi player)
    {
        VRCPlayer component = player.GetComponent <VRCPlayer>();

        if (component != null)
        {
            if (this.hoveredPlayer != null && this.hoveredPlayer == component)
            {
                this.hoveredPlayer = null;
            }
            if (this.selectedPlayer != null && this.selectedPlayer == component)
            {
                this.selectedPlayer = null;
            }
        }
    }
Пример #5
0
 // Token: 0x060051F2 RID: 20978 RVA: 0x001C0C5F File Offset: 0x001BF05F
 public static void SetInvisibleToUntagged(VRC_PlayerApi player, bool invisible, string tagName, string tagValue)
 {
     player.GetComponent <VRCPlayer>().SetInvisibleToTagged(invisible, tagName, tagValue, true);
 }
Пример #6
0
 // Token: 0x060051E0 RID: 20960 RVA: 0x001C08ED File Offset: 0x001BECED
 public static void TakeOwnership(VRC_PlayerApi player, GameObject obj)
 {
     VRC.Network.SetOwner(player.GetComponent <VRC.Player>(), obj, VRC.Network.OwnershipModificationType.Request, true);
 }
Пример #7
0
 // Token: 0x060051DF RID: 20959 RVA: 0x001C08DF File Offset: 0x001BECDF
 public static bool IsOwner(VRC_PlayerApi player, GameObject obj)
 {
     return(VRC.Network.IsOwner(player.GetComponent <VRC.Player>(), obj));
 }
Пример #8
0
 // Token: 0x060051DE RID: 20958 RVA: 0x001C08C0 File Offset: 0x001BECC0
 public static int GetPlayerId(VRC_PlayerApi player)
 {
     return((!(player == null)) ? VRC.Network.GetInstigatorID(player.GetComponent <VRC.Player>()) : -1);
 }
Пример #9
0
 // Token: 0x060051EA RID: 20970 RVA: 0x001C0BF2 File Offset: 0x001BEFF2
 public static void RestoreNamePlateColor(VRC_PlayerApi player)
 {
     player.GetComponent <VRCPlayer>().RestoreNamePlateColor();
 }
Пример #10
0
 // Token: 0x060051F6 RID: 20982 RVA: 0x001C0C9F File Offset: 0x001BF09F
 public static void ClearSilence(VRC_PlayerApi player)
 {
     player.GetComponent <VRCPlayer>().ClearSilence();
 }
Пример #11
0
 // Token: 0x060051F5 RID: 20981 RVA: 0x001C0C92 File Offset: 0x001BF092
 public static void ClearInvisible(VRC_PlayerApi player)
 {
     player.GetComponent <VRCPlayer>().ClearInvisible();
 }
Пример #12
0
 // Token: 0x060051E9 RID: 20969 RVA: 0x001C0BE4 File Offset: 0x001BEFE4
 public static void SetNamePlateColor(VRC_PlayerApi player, Color col)
 {
     player.GetComponent <VRCPlayer>().SetNamePlateColor(col);
 }
Пример #13
0
 // Token: 0x060051F0 RID: 20976 RVA: 0x001C0C41 File Offset: 0x001BF041
 public static void ClearPlayerTags(VRC_PlayerApi player)
 {
     player.GetComponent <VRCPlayer>().ClearPlayerTags();
 }
Пример #14
0
 // Token: 0x060051EE RID: 20974 RVA: 0x001C0C29 File Offset: 0x001BF029
 public static string GetPlayerTag(VRC_PlayerApi player, string tagName)
 {
     return(player.GetComponent <VRCPlayer>().GetPlayerTag(tagName));
 }
Пример #15
0
 // Token: 0x060051ED RID: 20973 RVA: 0x001C0C1A File Offset: 0x001BF01A
 public static void SetPlayerTag(VRC_PlayerApi player, string tagName, string tagValue)
 {
     player.GetComponent <VRCPlayer>().SetPlayerTag(tagName, tagValue);
 }
Пример #16
0
 // Token: 0x060051EC RID: 20972 RVA: 0x001C0C0D File Offset: 0x001BF00D
 public static void RestoreNamePlateVisibility(VRC_PlayerApi player)
 {
     player.GetComponent <VRCPlayer>().RestoreNamePlateVisibility();
 }
Пример #17
0
 // Token: 0x060051EB RID: 20971 RVA: 0x001C0BFF File Offset: 0x001BEFFF
 public static void SetNamePlateVisibility(VRC_PlayerApi player, bool flag)
 {
     player.GetComponent <VRCPlayer>().SetNamePlateVisibility(flag);
 }
Пример #18
0
 // Token: 0x060051F4 RID: 20980 RVA: 0x001C0C81 File Offset: 0x001BF081
 public static void SetSilencedToUntagged(VRC_PlayerApi player, int level, string tagName, string tagValue)
 {
     player.GetComponent <VRCPlayer>().SetSilencedToTagged(level, tagName, tagValue, true);
 }
Пример #19
0
 // Token: 0x060051E8 RID: 20968 RVA: 0x001C0BD6 File Offset: 0x001BEFD6
 public static void EnablePickups(VRC_PlayerApi player, bool enable)
 {
     player.GetComponent <VRCPlayer>().canPickupObjects = enable;
 }