Comments (2)
@RelTakeover replace your updateMassDecay
function in GameServer.js with this one:
GameServer.prototype.updateMassDecay = function () { if (!this.config.playerDecayRate) { return; } // decayrate increases by 0.0001 per player joined var rate = this.config.playerDecayRate; for (var i = 0; i < this.socketCount; i++) { rate += 0.0001; } var decay = 1 - rate * this.gameMode.decayMod; // Loop through all player cells for (var i = 0; i < this.clients.length; i++) { var playerTracker = this.clients[i].playerTracker; for (var j = 0; j < playerTracker.cells.length; j++) { var cell = playerTracker.cells[j]; var size = cell._size; if (size <= this.config.playerMinSize) continue; size = Math.sqrt(size * size * decay); size = Math.max(size, this.config.playerMinSize); if (size != cell._size) { cell.setSize(size); } } } };
If you want to increase how much decay is added once a player joins increase "0.0001" from this:
rate += 0.0001;
from multiogarii.
ok i will try , thanks
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.