Hi, I’m trying to make a functional and not glitched teleporting SWEP (for my server).
But there are some things I don’t know how to do.
I want to prevent the player of being teleported through walls, I got some ideas But I don’t know how to do them like Use the AimVector and the EyeTrace and do some mathematics to set the Vector of the SetPos so the player doesn’t get stuck in walls.
Also limit the Teleportation distance so when the player Aim in front of him (or far enough) he can only teleport his self 750 units forward.
And Finally the SWEP can directly teleport to the nearest player and kill him even if he is behind (the function is done, the question is just after =>), but I wanted to set the angle of the player so just before he is teleported, he automatically aims the player he is going to kill.
However like I said, I don’t know how to do these things so if you could help me
Thanks for answers !