Releases: markus-wa/demoinfocs-golang
Releases · markus-wa/demoinfocs-golang
v1.2.1
Deprecation Notices
Player.CashSpentThisRound()
has been deprecated, usePlayer.AdditionalPlayerInformation.CashSpentThisRound
instead.Player.CashSpentTotal()
has been deprecated, usePlayer.AdditionalPlayerInformation.TotalCashSpent
instead.
Fixes
- Fixed
Player.CashSpentThisRound()
&Player.CashSpentTotal()
v1.2.0
Deprecation Notices
Entity.FindProperty()
has been deprecated, useEntity.FindPropertyI()
instead which returnsIProperty
instead of*Property
Entity.Properties()
has been deprecated, useEntity.PropertiesI()
instead which returns[]IProperty
instead of[]Property
TickDone
has been deprecated, useFrameDone
instead (#120)
New Features / Changes
- Added
PlayerSpottersChanged
event (#114) - Added helper functions to
common.Player
(#114):IsSpottedBy(*Player) bool
HasSpotted(*Player) bool
- Added helper functions to
Participants
(#114):SpottersOf(*Player) []*Player
SpottedBy(*Player) []*Player
- Added helper functions to
common.Player
for easily retrieving additional data (#115):Player.IsInBombZone()
Player.IsInBuyZone()
Player.IsWalking()
Player.IsScoped()
Player.CashSpentThisRound()
Player.CashSpentTotal()
- Added helper functions to
common.TeamState
for retrieving information over all members of a team:TeamState.Members()
TeamState.CurrentEquipmentValue()
TeamState.RoundStartEquipmentValue()
TeamState.FreezeTimeEndEquipmentValue()
TeamState.CashSpentThisRound()
TeamState.CashSpentTotal()
- Updated protobuf descriptions (allows parsing of new data)
Fixes
- Added missing
events.RankUpdate
parsing and dispatching (#112 - thanks @allenymin) - Fixed
EquipmentElement.String()
returningM4A1
forEqM4A4
(#124 - thanks @xavier-rodet)
v1.1.1
New Features / Changes
- Added Vertigo map overview + metadata (#110 - thanks @ArlindoTorres)
Fixes
- Fixed devision by 0 in
DemoHeader.FrameTime()
ifHeader.PlaybackFrames
is 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
Participants
godoc (#100) - Improved performance (~ 5-10%)
Fixes
- Updated outdated information in
metadata
package (#103 - thanks @o40) - Fixed
Player.IsBlinded()
false positives (#96) - Fixed
Participants
returning kicked bots (and possibly disconnected players) in some cases (#98) - Fixed
Player=nil
for some events after player disconnected (#69) - Fixed
Player.IsBot
false 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.Loop
to[]r2.Point
andquickhull.ConvexHull
respectively
New Features / Changes
- Added
BombDefuseAborted
event (dispatched when the propertyCCSPlayer.m_bIsDefusing
of the player from the lastbomb_defuse
event changes from1
to0
) (#74) - Added
GameState.Team(common.Team)
helper to retrieve theTeamState
corresponding to a team (#76) - Added
TeamState.Team()
helper function, returns thecommon.TeamTerrorists
orcommon.TeamCounterTerrorists
(#76) - Added
TeamState.Opponent
utility link toTeamState
of the opponent - Added
TeamState
fields toevents.RoundEnd
&events.PlayerTeamChange
(#76) - Added
Player.IsBlinded()
helper function - Added
Player.FlashDurationTime()
helper function (returnstime.Duration
instead offloat32
likePlayer.FlashDuration
) - Added
PlayerFlashed.Attacker
field (#70) - Added
PlayerFlashed.FlashDuration()
helper function (#70)
Fixes
- Fixed
Inferno.ConvexHull3D()
not working by usinggithub.com/markus-wa/quickhull-go
sincegithub.com/golang/geo/s2
only works inS2
and not inR3
- Fixed
BombDropped
&BombPickup
never 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()
fromGameState
toIGameState
(#66) - Changed return type of
GameState.Participants()
fromParticipants
toIParticipants
(#66) - Moved type
TeamState
to packagecommon
(#55) - Removed
ParserConfig.AdditionalEventEmitters
and packagefuzzy
since 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.ZoomLevel
field to indicate how zoomed-in the player is on his weapon (#60) - Added
ScoreUpdated
event and movedTeamState
to packagecommon
(#55) - Added events
TeamSideSwitch
,GameHalfEnd
,GamePhaseChanged
(#62) - Added
GameState.IsWarmupPeriod()
,GameState.MatchStarted()
and eventsIsWarmupPeriodChanged
&MatchStartedChanged
(#63 & #64)
Fixes
- Fixed some implementations of
io.Reader
not 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.IsBurning
not always being set totrue
when 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.PlaybackTime
fromfloat32
totime.Duration
- Changed return type of
DemoHeader.FrameRate()
&DemoHeader.TickRate()
fromfloat32
tofloat64
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