Releases: markus-wa/demoinfocs-golang
Releases · markus-wa/demoinfocs-golang
v1.1.1
New Features / Changes
- Added Vertigo map overview + metadata (#110 - thanks @ArlindoTorres)
Fixes
- Fixed devision by 0 in
DemoHeader.FrameTime()ifHeader.PlaybackFramesis zero (#108 - thanks @marksamman)
v1.1.0
New Features / Changes
- Added
Player.FlashDurationTimeRemaining()utility function - returns the remaining duration of the flash as of the current tick - Added
Participants.Connected()function, returns all currently connected players & spectators - Changed
Participants.All()to return all currently known players of the demo, including disconnected ones - Improved
Participantsgodoc (#100) - Improved performance (~ 5-10%)
Fixes
- Updated outdated information in
metadatapackage (#103 - thanks @o40) - Fixed
Player.IsBlinded()false positives (#96) - Fixed
Participantsreturning kicked bots (and possibly disconnected players) in some cases (#98) - Fixed
Player=nilfor some events after player disconnected (#69) - Fixed
Player.IsBotfalse negatives - Fixed potential memory leak in
Parser.ParseNextFrame() - Fixed
Participants.ByEntityID()becoming outdated in some cases
v1.0.1
v1.0.0
API Breaking Changes
- Changed return types of
Inferno.ConvexHull2D()andInferno.ConvexHull3D()from*s2.Loopto[]r2.Pointandquickhull.ConvexHullrespectively
New Features / Changes
- Added
BombDefuseAbortedevent (dispatched when the propertyCCSPlayer.m_bIsDefusingof the player from the lastbomb_defuseevent changes from1to0) (#74) - Added
GameState.Team(common.Team)helper to retrieve theTeamStatecorresponding to a team (#76) - Added
TeamState.Team()helper function, returns thecommon.TeamTerroristsorcommon.TeamCounterTerrorists(#76) - Added
TeamState.Opponentutility link toTeamStateof the opponent - Added
TeamStatefields toevents.RoundEnd&events.PlayerTeamChange(#76) - Added
Player.IsBlinded()helper function - Added
Player.FlashDurationTime()helper function (returnstime.Durationinstead offloat32likePlayer.FlashDuration) - Added
PlayerFlashed.Attackerfield (#70) - Added
PlayerFlashed.FlashDuration()helper function (#70)
Fixes
- Fixed
Inferno.ConvexHull3D()not working by usinggithub.com/markus-wa/quickhull-gosincegithub.com/golang/geo/s2only works inS2and not inR3 - Fixed
BombDropped&BombPickupnever containing data
Contributors
Thanks to @quancore & @micvbang for various feature requests and bug reports.
v1.0.0-beta.5
API Breaking Changes
- Migrated from dep to Go Modules (aka
vgo) as dependency management system (#61) - Changed return type of
Parser.GameState()fromGameStatetoIGameState(#66) - Changed return type of
GameState.Participants()fromParticipantstoIParticipants(#66) - Moved type
TeamStateto packagecommon(#55) - Removed
ParserConfig.AdditionalEventEmittersand packagefuzzysince there are now good team/side-switching events (#21).
New Features / Changes
- Mockable API (#66)
- Automatic parsing of header if not done manually - this means
Parser.ParseHeader()no longer needs to be called if the header is not needed. - Added
Equipment.ZoomLevelfield to indicate how zoomed-in the player is on his weapon (#60) - Added
ScoreUpdatedevent and movedTeamStateto packagecommon(#55) - Added events
TeamSideSwitch,GameHalfEnd,GamePhaseChanged(#62) - Added
GameState.IsWarmupPeriod(),GameState.MatchStarted()and eventsIsWarmupPeriodChanged&MatchStartedChanged(#63 & #64)
Fixes
- Fixed some implementations of
io.Readernot working as demo sources (when the reader returns less than the requested number of bytes before EOF). - Fixed no events being dispatched in some demos when there should be (#56)
- Fixed bad
Inferno.ConvexHull2D()(#58) - Fixed
Inferno.IsBurningnot always being set totruewhen it should be (#59)
Contributors
Thanks to @micvbang for the various contributions to this release.
Roadmap
See https://github.com/markus-wa/demoinfocs-golang/wiki/v1.0.0-Roadmap
v0.5.8
v1.0.0-beta.4
API Breaking Changes
- Changed type of
DemoHeader.PlaybackTimefromfloat32totime.Duration - Changed return type of
DemoHeader.FrameRate()&DemoHeader.TickRate()fromfloat32tofloat64
Fixes
- Fixed
Inferno.Active()always returning the full original Inferno. - Added missing weapon mapping for Scout (#53 - thanks @micvbang)
- Added missing
Inferno.UniqueID()function.
Roadmap
See https://github.com/markus-wa/demoinfocs-golang/wiki/v1.0.0-Roadmap
v0.5.7
v1.0.0-beta.3
API Breaking Changes
- Cleaned up type names in
eventspackage (removed stuttery parts etc.) - Changed return type from
float32totime.DurationforDemoHeader.FrameTime(),DemoHeader.TickTime()&Parser.CurrentTime()
Additions
Fixes
- Fixed
Entity.Position()not working for player entities (#38) - Fixed infernos not being removed from
GameStatewhen destroyed (#39 - thanks @micvbang) - Fixed grenade projectiles and infernos not being deleted at the end of the round (#42)
- Fixed players not being read from string tables in some cases (#52 - thanks @viSual42)
Roadmap
See https://github.com/markus-wa/demoinfocs-golang/wiki/v1.0.0-Roadmap