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

Change area you need to over take someone? #503

Open
matthall1998 opened this issue May 31, 2017 · 9 comments
Open

Change area you need to over take someone? #503

matthall1998 opened this issue May 31, 2017 · 9 comments

Comments

@matthall1998
Copy link

matthall1998 commented May 31, 2017

How do I change the size you need to overtake someone? Right now both player needs to be in both centers.

@baileypumfleet
Copy link

I remember having this problem a little while ago. I believe that you need to go into the src/server/server.js file and you need to find the collision lines and manually increase the radius of the collision boundary.

@matthall1998
Copy link
Author

Ill do my best to find it, I don't know Java Script!

@whiteyhat
Copy link

Anyone solved this issue?

@baileypumfleet
Copy link

I have solved this issue on my local environment, just check the file I mentioned above and it should work fine

@whiteyhat
Copy link

whiteyhat commented May 8, 2019

Yes, I have been during this 33 min trying different modification on line 533. Where it is apparently where the collision takes place:

        if (collision.aUser.mass > collision.bUser.mass * 1.1  && collision.aUser.radius > Math.sqrt(Math.pow(collision.aUser.x - collision.bUser.x, 2) + Math.pow(collision.aUser.y - collision.bUser.y, 2))*2) {

I just can not achieve it, I have tried several configurations of that line but nothing 😔

@whiteyhat
Copy link

whiteyhat commented May 8, 2019

Yes, I have been during this 33 min trying different modification on line 533. Where it is apparently where the collision takes place:

        if (collision.aUser.mass > collision.bUser.mass * 1.1  && collision.aUser.radius > Math.sqrt(Math.pow(collision.aUser.x - collision.bUser.x, 2) + Math.pow(collision.aUser.y - collision.bUser.y, 2))*2) {

I just can not achieve it, I have tried several configurations of that line but nothing 😔

My information is based on commit 8883ef0

@whiteyhat
Copy link

@bpflt If you could share the specific line where fix this issue would be great

@baileypumfleet
Copy link

I made that fix years ago on a machine which I no longer have so won't be able to share, but I'll have a look into it at some point soon and see if I can fix.

@whiteyhat
Copy link

Cool. No worries I found a different repository with better upgrades including this feature

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

No branches or pull requests

3 participants