Releases: markus-wa/demoinfocs-golang
Releases · markus-wa/demoinfocs-golang
v1.4.0
v1.3.3
v1.3.2
Fixes
- Added
Equipment.AmmoInMaganzine2()
&Equipment.AmmoReserve2()
, which fix grenade ammo values (#145 - thanks @Linus4) - Fixed
Player.Weapons()[...].Owner
sometimes beingnil
- Fixed edge case where
ItemEquip.Player
wasnil
if a player disconnected and was replaced by a bot (#142 - thanks @BestAwperEver) - Fixed some events not containing correct references to weapons (#148 & #149)
This happened if the weapon was an alternative/replacement (e.g. USP instead of P2000 or silenced M4 variant) - Fixed MP5-SD being recognized as MP7
- Fixed spelling error in
EqDualBerettas.String()
(wasBarettas
instead ofBerettas
)
v1.3.1
v1.3.0
Deprecation Notices
ItemPickup.Weapon
has been deprecated, useItemPickup.WeaponTraceable()
instead.ItemEquip.Weapon
has been deprecated, useItemEquip.WeaponPtr
instead.ItemDrop.Weapon
has been deprecated, useItemDrop.WeaponPtr
instead.RankUpdate.SteamID
has been deprecated, useRankUpdate.SteamID32
instead.
New Features / Changes
- Added
GameState.ConVars()
which returns amap[string]string
of CVar key-value pairs (#97) - Added
events.ConVarsUpdated
which signals that CVars have been changed (#97) - Added
events.WeaponReload
which signals that a player is reloading his weapon (#137) - Added
Inferno.Owner()
which returns the player that threw the fire grenade (#131) - Added
GameState.GamePhase()
which returns the currentGamePhase
(#136) - Added
common.EquipmentElementNames()
which returns amap[EquipmentElement]string
containing weapon names (#135) - Added
common.GamePhaseNames()
which returns amap[GamePhase]string
containing the names of theGamePhase
s (#135) GenericGameEvent
will now always be dispatched, regardless of whether there is a custom, corresponding event in theevents
package or not
Fixes
- Fixed weapon-ID not being consistent for
ItemPickup
,ItemEquip
&ItemDrop
(#119) - Fixed
Equipment.AmmoReserve
never being updated (#133) - Delayed dispatching of
FireGrenadeStart
to the end of the tick soEntityID
is useful (#131) - Documented that
RankUpdate.SteamID
contains the 32-bit SteamID (#128)
Contributors
Thanks to @xXxhaxmeister42xXx for the various contributions to this release.
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