Releases: markus-wa/demoinfocs-golang
Releases · markus-wa/demoinfocs-golang
v1.6.0-rc0
New Features / Changes
- Added
PlayerFlashed.Projectile, contains a reference to the flashbang'sGrenadeProjectile(#158)
Fixes
- Fixed
nil pointer dereferencepanic that occurred in some demos after the Operation Shattered Web update (#162 / #165)
Some players may now be "unknown" which can be dected by the new flagPlayer.IsUnknown.
These players are also named "unknown" (and lack a avatar) when replaying these demos in GOTV.
v1.5.1
Fixes
- Fixed a potential issue with a missing transitive dependency (
imghash) - see also jteeuwen/go-bindata#5
v1.5.0
New Features / Changes
- Added
Player.IsPlanting, true if a player is currently planting the bomb (#132) - Added
Player.IsReloading, true if a player is currently reloading (#132) - Added
Player.IsAirborne(), returns true if the player is currently in the air (jumping / falling) (#132) - Changed weapon
worldspawnfromEqUnknowntoEqWorld(#156)
Fixes
- Documented that
Kill.KillerandWeaponFire.Shootermay be nil in some cases (#156)
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()[...].Ownersometimes beingnil - Fixed edge case where
ItemEquip.Playerwasnilif 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()(wasBarettasinstead ofBerettas)
v1.3.1
v1.3.0
Deprecation Notices
ItemPickup.Weaponhas been deprecated, useItemPickup.WeaponTraceable()instead.ItemEquip.Weaponhas been deprecated, useItemEquip.WeaponPtrinstead.ItemDrop.Weaponhas been deprecated, useItemDrop.WeaponPtrinstead.RankUpdate.SteamIDhas been deprecated, useRankUpdate.SteamID32instead.
New Features / Changes
- Added
GameState.ConVars()which returns amap[string]stringof CVar key-value pairs (#97) - Added
events.ConVarsUpdatedwhich signals that CVars have been changed (#97) - Added
events.WeaponReloadwhich 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]stringcontaining weapon names (#135) - Added
common.GamePhaseNames()which returns amap[GamePhase]stringcontaining the names of theGamePhases (#135) GenericGameEventwill now always be dispatched, regardless of whether there is a custom, corresponding event in theeventspackage or not
Fixes
- Fixed weapon-ID not being consistent for
ItemPickup,ItemEquip&ItemDrop(#119) - Fixed
Equipment.AmmoReservenever being updated (#133) - Delayed dispatching of
FireGrenadeStartto the end of the tick soEntityIDis useful (#131) - Documented that
RankUpdate.SteamIDcontains 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.CashSpentThisRoundinstead.Player.CashSpentTotal()has been deprecated, usePlayer.AdditionalPlayerInformation.TotalCashSpentinstead.
Fixes
- Fixed
Player.CashSpentThisRound()&Player.CashSpentTotal()
v1.2.0
Deprecation Notices
Entity.FindProperty()has been deprecated, useEntity.FindPropertyI()instead which returnsIPropertyinstead of*PropertyEntity.Properties()has been deprecated, useEntity.PropertiesI()instead which returns[]IPropertyinstead of[]PropertyTickDonehas been deprecated, useFrameDoneinstead (#120)
New Features / Changes
- Added
PlayerSpottersChangedevent (#114) - Added helper functions to
common.Player(#114):IsSpottedBy(*Player) boolHasSpotted(*Player) bool
- Added helper functions to
Participants(#114):SpottersOf(*Player) []*PlayerSpottedBy(*Player) []*Player
- Added helper functions to
common.Playerfor easily retrieving additional data (#115):Player.IsInBombZone()Player.IsInBuyZone()Player.IsWalking()Player.IsScoped()Player.CashSpentThisRound()Player.CashSpentTotal()
- Added helper functions to
common.TeamStatefor 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.RankUpdateparsing and dispatching (#112 - thanks @allenymin) - Fixed
EquipmentElement.String()returningM4A1forEqM4A4(#124 - thanks @xavier-rodet)