So I basically want to make guns that show bullets, and damage when the bullets hit another player. I figured that raycast would be the best for this. Now my problem is I tried this
- Clientside raycast - problem is player can just cheat
- Serverside raycast - calculations are funky when moving, not performant
- Client and Serverside(rendering client, shooting server) - the hitdetection is bad, I cant hit players when they move, jump etc. Its just hard
Now I have seen 2 games which had amazing gun systems I would love to implement in the same way: Gun Kit and Undead Defense Tycoon.
They are amazing and feel amazing.
So my question is can anyone tell me a good way to do this without having full cheater servers or windows internet explorer games? Thank you very much!