Skip to content

Releases: markus-wa/demoinfocs-golang

v2.9.0

04 Jun 19:48
5a23bf9
Compare
Choose a tag to compare

New Features

  • Added Player.PositionEyes() - returns player position with Z value on eye/view height

Fixes

  • Fixed documentation of Player.Position() - it does not match cl_showpos 1 contrary to what it said before

v2.8.1

23 May 12:17
b3c400f
Compare
Choose a tag to compare

New Features

  • Added events.PlayerNameChange to signal that a player's name has changed (#289)

Fixes

  • Capture a player's name change in Player.Name, this fixes a regression introduced in 0515f18 (#289)

v2.8.0

15 May 14:15
Compare
Choose a tag to compare

New Features / Changes

  • Added GrenadeProjectile.Velocity() function
  • Added sendtables.PropertyValue.Type() function
  • Updated protobuf descriptors

Fixes

  • Fixed docs on DataTablesParsed event referencing non-exposed types

v2.7.1

14 May 10:57
6831f82
Compare
Choose a tag to compare

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 neither BombsiteA nor BombsiteB), see #280 for more details
  • Replaced panic: bomb not planted on bombsite A or B with ParserWarn event with the same message
  • Added ParserWarn.Type to reliably identify kinds of warnings, currently only WarnTypeBombsiteUnknown exists

v2.7.0

04 May 18:47
dd05964
Compare
Choose a tag to compare

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

14 Mar 12:24
4df3c83
Compare
Choose a tag to compare

Hostages!

image

New Features / Changes

  • Improved hostage map support (#269 - thanks @akiver)
    • Added GameState.Hostages()
    • Added hostage events
      • HostageRescued
      • HostageRescuedAll
      • HostageHurt
      • HostageKilled
      • HostageStateChanged
  • 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() - replaces GameState.ConVars()

Deprecations

  • Deprecated GameState.ConVars() in favour of GameState.Rules().ConVars()

v2.5.0

05 Dec 22:25
96285c2
Compare
Choose a tag to compare

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.

image

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

15 Nov 18:42
3b47622
Compare
Choose a tag to compare

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

14 Jul 23:53
2a0d19c
Compare
Choose a tag to compare

New Features / Changes

  • Implemented full support for locally recorded (POV) demos (#2)
    Replays recorded via CS:GO's record command rather than the game server (GOTV) are now fully supported

v1.11.0

07 Jun 15:22
2363e81
Compare
Choose a tag to compare

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 calling defer parser.Close() after demoinfocs.NewParser()