Skip to content

v2.0.0-beta.9

Pre-release
Pre-release
Compare
Choose a tag to compare
@markus-wa markus-wa released this 18 Apr 20:51
· 171 commits to v2 since this release
9e73278

Doc Links

The new docs are hosted on the fabulous new go.dev page.

Package docs: https://pkg.go.dev/mod/github.com/markus-wa/demoinfocs-golang/[email protected]
API docs: https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs?tab=doc

Go Get

Watch out, there's a new module path for go get and import!

go get -u github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs

Breaking Changes

  • See v2.0.0-beta.5 for more breaking changes since v1.x
  • Renamed field Player.SteamID to Player.SteamID64

New Features / Changes

  • Added Bomb-Damage detection. PlayerHurt.Weapon.Type and Kill.Weapon.Type will now be EqBomb
  • Added Fall-Damage detection. PlayerHurt.Weapon.Type and Kill.Weapon.Type will now be EqWorld
  • Added field RankUpdate.Player (may be nil if the player has already disconnected)
  • Added utility function Player.SteamID32() which converts SteamID64 to the 32-bit variant and returns the result
  • Added utility function RankUpdate.SteamID64() which converts SteamID32 to the 64-bit variant and returns the result
  • Added utility functions common.ConvertSteamID{TxtTo32,32To64,64To32}()