diepAPI icon indicating copy to clipboard operation
diepAPI copied to clipboard

entity type 0 issue

Open theonediepplayer opened this issue 3 years ago • 3 comments

sometimes the player entity can be found as destroyer branch bullets

theonediepplayer avatar Oct 26 '22 21:10 theonediepplayer

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

Cazka avatar Oct 26 '22 21:10 Cazka

factory isn't considered as player btw

theonediepplayer avatar Oct 27 '22 12:10 theonediepplayer

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

weaponcubemap avatar Oct 27 '22 16:10 weaponcubemap