Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional checks for spawn/teleport #43

Open
2 tasks
y0014984 opened this issue Feb 21, 2024 · 2 comments
Open
2 tasks

Add additional checks for spawn/teleport #43

y0014984 opened this issue Feb 21, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@y0014984
Copy link
Collaborator

  • water
  • buildings
@y0014984 y0014984 added the enhancement New feature or request label Feb 21, 2024
@nomisum
Copy link
Contributor

nomisum commented Feb 21, 2024

i already have a system in place in breaking contact that prevents spawning in water by "cheaply" checking a 2x2m place on map click:

vector worldPos = {coords[0], GetGame().GetWorld().GetSurfaceY(coords[0], coords[2]), coords[2]};
bool spawnEmpty = SCR_WorldTools.FindEmptyTerrainPosition(worldPos, worldPos, 2, 2);

when this 'cheap' test is successful a more extensive check for a larger empty position takes place.

@nomisum
Copy link
Contributor

nomisum commented Jun 10, 2024

some teleport issues today still, sometimes affecting multiple people, sometimes only 1 or 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants