diff --git a/pkg/demoinfocs/common/player.go b/pkg/demoinfocs/common/player.go index 21f92194..f579fdf6 100644 --- a/pkg/demoinfocs/common/player.go +++ b/pkg/demoinfocs/common/player.go @@ -16,7 +16,6 @@ type Player struct { demoInfoProvider demoInfoProvider // provider for demo info such as tick-rate or current tick SteamID64 uint64 // 64-bit representation of the user's Steam ID. See https://developer.valvesoftware.com/wiki/SteamID - LastAlivePosition r3.Vector // Deprecated: will be removed in v5 due to performance concerns, track this yourself. UserID int // Mostly used in game-events to address this player Name string // Steam / in-game user name Inventory map[int]*Equipment // All weapons / equipment the player is currently carrying. See also Weapons(). diff --git a/pkg/demoinfocs/datatables.go b/pkg/demoinfocs/datatables.go index 0b9e3472..c6acb57a 100644 --- a/pkg/demoinfocs/datatables.go +++ b/pkg/demoinfocs/datatables.go @@ -478,13 +478,6 @@ func (p *parser) bindNewPlayerS1(playerEntity st.Entity) { pl.Entity = nil }) - // Position - playerEntity.OnPositionUpdate(func(pos r3.Vector) { - if pl.IsAlive() { - pl.LastAlivePosition = pos - } - }) - // General info playerEntity.Property("m_iTeamNum").OnUpdate(func(val st.PropertyValue) { pl.Team = common.Team(val.IntVal) @@ -632,18 +625,6 @@ func (p *parser) bindNewPlayerPawnS2(pawnEntity st.Entity) { p.bindPlayerWeaponsS2(pawnEntity, pl) }) - // Position - pawnEntity.OnPositionUpdate(func(pos r3.Vector) { - pl := getPlayerFromPawnEntity(pawnEntity) - if pl == nil { - return - } - - if pl.IsAlive() { - pl.LastAlivePosition = pos - } - }) - pawnEntity.Property("m_flFlashDuration").OnUpdate(func(val st.PropertyValue) { pl := getPlayerFromPawnEntity(pawnEntity) if pl == nil {