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

entity type 0 issue #54

Open
theonediepplayer opened this issue Oct 26, 2022 · 3 comments
Open

entity type 0 issue #54

theonediepplayer opened this issue Oct 26, 2022 · 3 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@theonediepplayer
Copy link

sometimes the player entity can be found as destroyer branch bullets

@Cazka Cazka added bug Something isn't working good first issue Good for newcomers labels Oct 26, 2022
@Cazka
Copy link
Owner

Cazka commented Oct 26, 2022

Yeah thats because a destroyer bullet is roughly the same size as a player entity.

A quick fix could be to check if entity.parent exists, since that field is only set on bullets.

To make it more robust, we would need to check if the entity has a barrel attached to it. #11

@theonediepplayer
Copy link
Author

factory isn't considered as player btw

@weaponcubemap
Copy link

Would be useful if player entity detected as player, not as bullet or etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants