Comments (24)
https://github.com/Megabyte918/MultiOgar-Edited/blob/master/src/GameServer.js#L1312
Change 780 to whatever you like
from multiogarii.
i mean the reach
To blow up a player
not the reach of explotion..
from multiogarii.
The line I highlighted is the distance of a virus shot, not the distance of explosion.
from multiogarii.
@RelTakeover Viruses, ejected cells, and players all use the same eat distance. But if you would like to change that you can do something like this under the resolveCollision
function in GameServer.js:
var eatDistance; // Eat distance for viruses if (minCell.cellType == 2 || maxCell.cellType == 2) { eatDistance = maxCell._size - minCell._size / 3; << change the "3" to any number you like // Eat distance for anything else BUT viruses } else { eatDistance = maxCell._size - minCell._size / 3; }
from multiogarii.
i want change only virus reach
from multiogarii.
That is the reach.
from multiogarii.
with this configuration the reach is soo hig
from multiogarii.
please answer me @Megabyte918
from multiogarii.
@RelTakeover What do you have the number set to? If it's too high just lower it
from multiogarii.
this code not working
var eatDistance;
// Eat distance for viruses
if (minCell.cellType == 2 || maxCell.cellType == 2) {
eatDistance = maxCell._size - minCell._size / 0.000000000000000000000001;
// Eat distance for anything else BUT viruses
} else {
eatDistance = maxCell._size - minCell._size / 0.000000000000000000000001;
}
with value of 0.000000000000000000000001; is higher than the original code with value of '3' , why?
from multiogarii.
Increase it instead of decreasing it.
from multiogarii.
sure? i will try
from multiogarii.
Still the same, it seems that even if the value changes, nothing changes
from multiogarii.
Increase it to a very big value, like 100
from multiogarii.
sure? i will try
from multiogarii.
dont working..
from multiogarii.
@RelTakeover works fine for me, what are you trying to get at? make the eat distance larger? smaller?
from multiogarii.
larger
from multiogarii.
With this, you will not have to get too close to the virus for popsplit
from multiogarii.
with value of 3000000 same distance , the code dont work :(
from multiogarii.
you are sure that the code is correct?
from multiogarii.
@RelTakeover It does increase the eat distance, but if you would like to increase it more you can do:
// check distance var eatDistance = maxCell._size - minCell._size / 3; // custom eat distance if (minCell.cellType == 2 || maxCell.cellType == 2) { // eat distance for viruses var distanceMult = Math.pow(eatDistance, 3); } else { // eat distance for anything BUT viruses distanceMult = Math.pow(eatDistance, 2); } if (manifold.squared >= distanceMult) { // too far => can't eat return; }
from multiogarii.
Just change this line to:
if (manifold.squared >= eatDistance * eatDistance && minCell.cellType != 2) {
from multiogarii.
thanks @Megabyte918
from multiogarii.
Related Issues (20)
- how to add skins HOT 2
- how to make that the bots have skins HOT 2
- SyntaxError: Unexpected token . (outdated Node.js) HOT 8
- official agar.io HOT 2
- Issues with CigarII and Minions HOT 1
- How to change speed disconnection split/cells? HOT 1
- Max minion command
- Wrong leaderboard packet (protocol 11+ )
- Question about the client itself HOT 1
- Anti-Bot? HOT 1
- WebSocket connection to 'ws://localhost/' failed: WebSocket is closed before the connection is established. HOT 2
- In the Experimental gamemode, viruses stop spawning HOT 4
- Refactor mother cell spawning
- Help make a freeze keybind HOT 5
- NodeJs Version HOT 1
- User Admin
- making cells under a specific size instant recombine HOT 3
- How can I set an eat delay? HOT 1
- Bring back minion controls HOT 1
- Q control for minions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multiogarii.