Skip to content

Releases: markus-wa/demoinfocs-golang

v2.11.0

15 Oct 09:07
041838a
Compare
Choose a tag to compare

New Features

v2.10.1

12 Aug 12:40
7d87848
Compare
Choose a tag to compare

Fixes

  • common: fix panic when player_connect.networkid is malformed or missing

v2.10.0

15 Jul 10:18
b0d84be
Compare
Choose a tag to compare

Changes

  • Return error for Parser.Close() if closing underlying resources fails (i.e. when closing the bit-reader)

Fixes

  • Fixed (hopefully) an issue where the parser would not work with io.Reader's that don't have all data available from the beginning (e.g. HTTP streaming or Gzip) - see #299

v2.9.1

18 Jun 16:50
063eaf0
Compare
Choose a tag to compare

New Features

  • Added map scale + translations for de_ancient, de_office and de_agency (#302 - thanks @srjnm)

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()