SuperEvilMegacorp / vainglory-assets

Community provided art, schemas, and other assets that make using the Vainglory API easier
https://developer.vainglorygame.com
MIT License
54 stars 40 forks source link

Feature: Assists in Telemetry #207

Closed schneefux closed 5 years ago

schneefux commented 7 years ago

A KillActor event looks like this:

  {
    "time": "2017-04-22T15:39:56+0000",
    "type": "KillActor",
    "payload": {
      "Team": "Left",
      "Actor": "*Taka*",
      "Killed": "*Lyra*",
      "KilledTeam": "Right",
      "Gold": "0",
      "IsHero": 1,
      "TargetIsHero": 1,
      "Position": [
        -74.13,
        0.4,
        23.16
      ]
    }
  },

The information who got an "assist" (participant.attributes.stats.assists) is missing. Vainglory has an internal mechanism to reward one or multiple players an assist if they dealt damage in a certain time period to the Killed, but are not Actor. The information whether an assist has been assigned to another player is missing.

schneefux commented 7 years ago
 {
    "time": "2017-04-22T15:39:56+0000",
    "type": "KillActorAssist",
    "payload": {
      "Team": "Left",
      "Actor": "*Taka*",
       "Assist": "*Lyra*",
      "Killed": "*Lyra*",
      "KilledTeam": "Right",
      "Gold": "0",
      "IsHero": 1,
      "TargetIsHero": 1,
      "Position": [
        -74.13,
        0.4,
        23.16
      ]
    }
  },

This does not work because assists can be awarded to multiple heroes. Instead, create another event in the same format with a different meta type…

Awards an assist to Lyra, with 123 gold for a kill assist.

 {
    "time": "2017-04-22T15:39:56+0000",
    "type": "KillActorAssist",
    "payload": {
      "Team": "Left",
      "Actor": "*Lyra*",
      "Killed": "*Lyra*",
      "KilledTeam": "Right",
      "Gold": 123,
      "IsHero": 1,
      "TargetIsHero": 1,
      "Position": [
        -74.13,
        0.4,
        23.16
      ]
    }
  },