Giter Club home page Giter Club logo

Comments (4)

Dragonop avatar Dragonop commented on May 25, 2024

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.

ObaniGemini avatar ObaniGemini commented on May 25, 2024

@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.

asl97 avatar asl97 commented on May 25, 2024

@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.

rubenwardy avatar rubenwardy commented on May 25, 2024

2234a59

from capturetheflag.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.