This topic contains 15 replies, has 0 voices, and was last updated by  cbx550f 10 years, 11 months ago.

  • Author
    Posts
  • #35218

    Shotzo
    Participant

    … Why not make it linear?

    100% for 1 player… 80% for 2, 60% for 3… etc.

    Or even… Quadratic!
    100% for 1 player..
    90% for 2 players..
    67.5% for 3…
    30% for 4…
    -20% for 5…
    -2400% for 23… (that way the only person who died wins the game :P)

    #35219

    cbx550f
    Participant

    I’ve been giving this some thought, and before I draw any conclusions, I thought I should figure out, and post exactly how money is calculated for kills:

    From TankDamage.cpp:

    // Calculate money won for not killing this tankint moneyPerHit =
    context_->optionsGame->getMoneyWonPerHitPoint() *
    weapon_->getArmsLevel();

    if (context_->optionsGame->getMoneyPerHealthPoint())
    moneyPerHit = (moneyPerHit * int(damage_)) / 100;

    So, for a tank that is damaged, but not killed (yet), the player is awarded moneyPerHitPoint * ArmsLevel / 100 for each “hit point”.

    For a kill:

    int moneyPerKill = context_->optionsGame->getMoneyWonPerKillPoint() * weapon_->getArmsLevel();

    So, for a (single) kill, simply MoneyWonForKillPoint * armslevel.

    I just ran a test on the single player target game, which has the following settings:
    MoneyWonPerHitPoint = 100
    MoneyWonPerKillPoint = 500
    MoneyPerHealthPoint = on
    StartingMoney = 10000
    See the accompanying image for the money received for the following shots:

    1. Single shot kill with a napalm, armslevel 5.
      Money awarded: $580
      Calculated money awarded, depending on how it’s done is either:

      1. 5 * 500 = $2500 (for moneyPerKillPoint)
      2. 5 * 100 * ? >= $500 (I’m not sure on this, as at this moment, I do not know exactly what constitutes a hit for hitpoints)
    2. The second image is after a single-shot, single funky kill – armslevel 3
      Money awarded: $1500
      Calculated money awarded: 3 * $500 = 1500.
    3. The last two images show the amount earned for a deathhead kill – armslevel 2:
      Money awarded: $708
      Calculated Money Awarded:

      1. 2 * $500 = $1000
      2. 2 * 100 * ? >= $200

      I suspect that $500 awarded for the kill, + a bit for hitpoints.

    more to follow….

Viewing 2 posts - 16 through 17 (of 17 total)

You must be logged in to reply to this topic.