Skip to content

Commit

Permalink
Clear Patch_PlayerVoice.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
DiFFoZ committed May 7, 2021
1 parent 2a525ec commit 32599aa
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions Dummy/Patches/Patch_PlayerVoice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,6 @@ public static void Prefix(PlayerVoice __instance, in ServerInvocationContext con
return;
}

var dummy = OnNeedDummy?.Invoke().Dummies
.FirstOrDefault(c => c.CopyUserVoice != null && c.CopyUserVoice == __instance.player);
if (dummy == null)
{
return;
}

// todo:

// __instance.channel.decodeVoicePacket(packet, out var size, out var walkie);
// var call = dummy.Player.Player.voice.channel.getCall("askVoiceChat");
// dummy.Player.Player.voice.channel.encodeVoicePacket((byte)call, out var packetSize, out var packet1, packet,
// (ushort)size, walkie);
// dummy.Player.Player.voice.askVoiceChat(packet1);
}
}
}

0 comments on commit 32599aa

Please sign in to comment.