haxball / haxball-issues

114 stars 43 forks source link

[HELP] direction of the ball #1491

Open AmberJC opened 2 years ago

AmberJC commented 2 years ago

someone expert who can issue a code to identify if the ball is in the direction of the goal or other types of coordinates?

please don't release us quizzes, information, tutorials on how to do it, we are not experts to understand what you mean

hbenormous commented 2 years ago

alguém especialista que possa emitir um código para identificar se a bola está na direção do gol ou outro tipo de coordenadas?

por favor, não nos libere questionários, informações, tutoriais sobre como fazê-lo, não somos especialistas para entender o que você quer dizer

https://github.com/haxball/haxball-issues/wiki/Headless-Host#collisionflagsobject

AmberJC commented 2 years ago

thanks for your link, but as I said I don't think people like me can achieve their purpose just by looking at the headless documents, so if you have knowledge on how to do it I ask you to help the community otherwise I don't think it will be useful to us

hbenormous commented 2 years ago

[ PT-BR ]

Você pode tentar usar room.getBallPosition();

Vou pegar alguns exemplos.

hbenormous commented 2 years ago

thanks for your link, but as I said I don't think people like me can achieve their purpose just by looking at the headless documents, so if you have knowledge on how to do it I ask you to help the community otherwise I don't think it will be useful to us

[ PT-BR ]

Isso deve ajudar

https://github.com/haxball/haxball-issues/issues/1344#issuecomment-850699607

AmberJC commented 2 years ago

hi, thanks again but i don't think we need a comment where it says "turkish rooms have this but it's hard to implement" i am aware that you can use getballposition, but honestly without a base or script it is useless to describe various options or theories , thanks anyway for your interest

hbenormous commented 2 years ago

1464

guguxh commented 2 years ago

To do this u need to check if ball is inside a zone, another u need to use getballposition on gametick, is it.

guguxh commented 2 years ago

1466 - How to generate zone;

1464 - Tracking ball or u can see in haxball-issues scripts a handler;