- 571
- 9
- 102
У тебя нет проверки на расстояние от игрока до энтити таксы, если я отправлю на сервер нетворк, то смогу тепнуться из любой точки на карте, это чревато злоупотреблениями. Тошнит когда на серверах эксплойты не чинят, а запрещают пунктами в правилах.Проверок в нетворках нету, абуз арбуз
Воспользуйся следующими методами:
Player:GetEyeTraceNoCursor
Returns the trace according to the players view direction, ignoring their mouse (holding c and moving the mouse in Sandbox). The results of this function are cached clientside every frame. Uses util.GetPlayerTrace internally and is therefore bound by its limits. See also Player:GetEyeTrace.
wiki.facepunch.com
ents.FindInSphere
Gets all entities within the specified sphere. This function internally calls util.IsBoxIntersectingSphere for every entity on the map based on their Orientated Bounding Box.
wiki.facepunch.com
Последнее редактирование: