How to detect line of sight in C# Console App which acts as a TCP server.
I am developing a 3D multiplayer game. I use Unity 3D as a platform to develop my Game Client. I have build C# Console Application which serves me as a TCP server. I am connecting my client via TCP protocol to my Server application. I have the following scenario:
I have two players inside the game both wearing guns and trying to shoot each other.
Between them, there is a wall and Player 1 receives an error when trying to shoot Player 2: "Your target is not in the line of sight." (Normally because there is a wall between them)
However, Player 2 is using "hack" and he removes the wall so he does not receive this error and kills Player 1.
Obviously, it's not a good idea to count only on the client to decide if there is an object between two players to fine and error. What can I do in order my Server App to be able to detect that there is an object between the player and the target? What can you suggest?
Your answer
Follow this Question
Related Questions
GetActiveTcpConnections issue in Unity (behaving differently from C# application) 1 Answer
What is the 3D equivalent of using Physics2D.OverlapArea to check for if a character is grounded? 2 Answers
2D Platformer Character Acts Weird When Collide Side of a Platform 0 Answers
App works fine on PC but not on android 0 Answers
Raycast doesn't work properly 1 Answer