StatsHelix / demoinfo

A library to analyze CS:GO demos in C#
MIT License
321 stars 78 forks source link

Incendiary always used for FireEventArgs #119

Open econoraptor opened 7 years ago

econoraptor commented 7 years ago

EquipmentElement.Incendiary is hardcoded as an argument to the base class of FireEventArgs, so NadeType is always incendiary. weapons[entityid] doesn't map to the right weapon so we can't use that to determine the type and of course these events have no player coded for them so simply looking at the team of whomever threw it won't work either. Not really sure how to fix this.