Comments (4)
What about keeping track of how much time a player is alive, and when somebody kills it, gets a certain number of points based on such time?
from capturetheflag.
@Dragonop : I think it would be very demanding on server ressources. Also because this would require action_timers mod which is pretty demanding. And having timers on all players all the time would surely be a lag-machine.
I was more thinking, in the same way, but with the kill counter. The more a player gets killed, the less he is valuable in score.
Maybe a function like :
(1/(xkilled/32))/2
(for it never reaches the 0) or
-0.25*xkilled + 16
with if result
<1 result
=1
from capturetheflag.
@ObaniGemini not at all, you just have to think outside the box,
just use a player-time table (hashmap/dict).
when the player join, store that time (os.time
) in the table.
when the player get kill, override that time in the table after adding killed_time - table[player]
to the killer score.
also, your first function: (1/(xkilled/32))/2
with if result <1 result =1
doesn't really scale cross lots of matches, after a while, all player would end up only worth 1 point.
your second function: (0.25*xkilled + 16)
just add more worth to player who get killed the most
from capturetheflag.
from capturetheflag.
Related Issues (20)
- Removing stuff from enemies and putting them in teamchest must give the player some score HOT 6
- Make ores and their places dynamic per match HOT 6
- Revert #1145 HOT 1
- Thief class HOT 10
- Kill and attempt streaks
- Game freezes while loading a map HOT 16
- CI idea: Check PRs and the main branch for successfully running HOT 8
- Smoke and poison grenades are returned back to inventory after death HOT 2
- The smoke and poison nades should be allowed to be thrown near the flags if captured.
- Make `/donate` arguments orderless HOT 1
- Water flow on barrier removal not working on Plains of the Past HOT 4
- Idea: CTF DevTest Server HOT 6
- Update https://ctf.rubenwardy.com/ copyright HOT 1
- Closed issue #1191 is occurring for me. HOT 2
- Restructure the storage of rankings HOT 1
- Problem when creating and joining a singleplayer world HOT 7
- Idea: add the ability to select underbarrel grenade type in class mode
- Idea: add the floating marker above the flag in class mode HOT 1
- Convert all MTG mods to submodules HOT 2
- Change player velocity depending on what's being held HOT 2
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 capturetheflag.