Releases: markus-wa/demoinfocs-golang
Releases · markus-wa/demoinfocs-golang
v2.9.0
v2.8.1
v2.8.0
v2.7.1
de_grind crash fix
See #280 for more information, especially if you need to know the bombsite for some of the bomb related events.
Changes
BombEvent.Site
may now be unknown/undefined (meaning neitherBombsiteA
norBombsiteB
), see #280 for more details- Replaced
panic: bomb not planted on bombsite A or B
withParserWarn
event with the same message - Added
ParserWarn.Type
to reliably identify kinds of warnings, currently onlyWarnTypeBombsiteUnknown
exists
v2.7.0
New Features / Changes
- Added
Player.CrosshairCode()
to get players crosshair codes (#274 - thanks @captainswain) - Calling
Parser.Cancel()
will no longer send already-parsed events to event and message handlers, and will instead unregister all existing handlers
Fixes
- Common: fix active
Player.ActiveWeapon()
sometimes being off right after buy - Fixed deadlock caused by calling
Parser.Cancel()
multiple times within the same frame (#276 - thanks @Julien2313) - Upgraded some outdated transitive dependencies flagging up as vulnerable in Snyk (#275)
- note: no known code-path to vulnerable code was found, so this is more of a routine update
v2.6.0
Hostages!
New Features / Changes
- Improved hostage map support (#269 - thanks @akiver)
- Added
GameState.Hostages()
- Added hostage events
HostageRescued
HostageRescuedAll
HostageHurt
HostageKilled
HostageStateChanged
- Added
- Added additional data to
Kill
event (#270 - thanks @akiver)AssistedFlash
AttackerBlind
NoScope
ThroughSmoke
Distance
- Added
GameState.Rules().RoundTime()
- returns the total round time in the current match - Added
GameState.Rules().BombTime()
- returns the total bomb time in the current match - Added
GameState.Rules().FreezeTime()
- returns the total freeze time in the current match - Added
GameState.Rules().ConVars()
- replacesGameState.ConVars()
Deprecations
- Deprecated
GameState.ConVars()
in favour ofGameState.Rules().ConVars()
v2.5.0
Operation Broken Fang Update
Operation Broken Fang brings with it some interesting new demo data!
There's a new event events.RoundImpactScoreData
, containing initial round conditions, kill events and objective events, each with new odds of winning the round per team.
This might be interesting if you're doing player impact analysis, anomaly detection for round wins/clutches and/or training some kind of AI system.
New Features / Changes
- Added
events.RoundImpactScoreData
which is dispatched at the end of every round (only demos after the "Operation Broken Fang" update)- Initial round conditions (equipment value) and odds
- Kills (+ damage) and how it affected odds
- Objective data and how it affected odds
v2.4.0
New Features / Changes
- Added
PlayerHurt.HealthDamageTaken
-HealthDamage
excluding over-damage (#247 - thanks @Julien2313) - Added
PlayerHurt.ArmorDamageTaken
-ArmorDamage
excluding over-damage (#247) - Added
Player.Color()
- returns the players color during the match (#248 / #250 - thanks @Julien2313) - Added
Player.IsDuckingInProgress()
- returns true if the player is currently in the progress of going from standing to crouched (#241 / #249) - Added
Player.IsUnDuckingInProgress()
- returns true if the player is currently in the progress of going from crouched to standing (#241 / #249) - Added
Player.IsStanding()
- returns true if the player is currently fully standing upright (#241 / #249)
Fixes
- Fixed
Player.IsDucking()
reporting wrong values
v2.3.0
v1.11.0
Please upgrade to v2.x
This is just a bugfix release, please upgrade to v2.x if you have the chance. As of the time of this release, the newest version is v2.2.0
Fixes
- Added
Parser.Close()
to fix a memory leak due to an unterminated goroutine (#216)
please make sure that this function is called before the parser is discarded,
for instance by callingdefer parser.Close()
afterdemoinfocs.NewParser()