Coder Social home page Coder Social logo

Comments (17)

deurk avatar deurk commented on June 19, 2024 2

"undead"? 😄

from ktx.

deurk avatar deurk commented on June 19, 2024

Well, 0 wouldn't make any sense, 99999 is just a silly value as well. What do you propose we put?
Just "todie: N/A"?

from ktx.

meag avatar meag commented on June 19, 2024

match_duration * 60?

from ktx.

deurk avatar deurk commented on June 19, 2024

I thought todie was total damage taken divided by number of deaths?

from ktx.

meag avatar meag commented on June 19, 2024

Ah sorry, I thought it was time-based... although that wouldn't work either.

Can we change it to be total damage taken divided by (number of deaths + 1)? So it's average damage taken per life?

from ktx.

deurk avatar deurk commented on June 19, 2024

Well, you're not technically dead at the end if you have any health. Should we remove health left and just divide by deaths? No deaths would mean todie = damage_taken

from ktx.

meag avatar meag commented on June 19, 2024

Think this is one for @andrestone ...

from ktx.

andrestone avatar andrestone commented on June 19, 2024

I think it would be nice to display a distinguishable information. Total damage taken would be my second choice.

from ktx.

andrestone avatar andrestone commented on June 19, 2024

Setting like that... How about NaN? Since it would be a division by zero? We don't have infinity symbol in the charset, do we?

from ktx.

deurk avatar deurk commented on June 19, 2024

Well, if we take the extreme case where several players end up with no death, taken damage will be the way to see who actually deserves the survivor trophy, so I think with no death, displayed value should be damage_taken - health_left

from ktx.

mushis avatar mushis commented on June 19, 2024

there's one more possible bug on the stats: did you took 1 rl during the whole game?

from ktx.

rakasunka avatar rakasunka commented on June 19, 2024

I didn't take any RL at all during the game, blood dog dropped rl packs.. there was maybe 7-8 rl packs dropped that i took..

from ktx.

deurk avatar deurk commented on June 19, 2024

Well, if we take the extreme case where several players end up with no death, taken damage will be the way to see who actually deserves the survivor trophy, so I think with no death, displayed value should be damage_taken - health_left

Actually damage_taken + health_left

from ktx.

deurk avatar deurk commented on June 19, 2024

Realized calculation was wrong.

If player died at least once: todie = damage taken / number of deaths (we're not tracking damage taken during the last life if not dead at end of match though so value is a bit higher than it should)
If player did not die: todie = damage taken + remaining health + remaining armor (because it would have taken at least this amount of damage to kill the player and that's all we can guess)

from ktx.

andrestone avatar andrestone commented on June 19, 2024

from ktx.

meag avatar meag commented on June 19, 2024

Good news: there's a function the bots use that will give you that.

TotalStrength (client->s.v.health, client->s.v.armorvalue, client->s.v.armortype)

Bad news: it'll return 1000 if the match is already over (match_in_progress), and it'll need moved out of the BOT_SUPPORT section

from ktx.

andrestone avatar andrestone commented on June 19, 2024

from ktx.

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.