Skip to content

Commit e5958ea

Browse files
committed
deprecate Player.LastAlivePosition due to performance concerns
1 parent 5c4c1b6 commit e5958ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/demoinfocs/common/player.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type Player struct {
1616
demoInfoProvider demoInfoProvider // provider for demo info such as tick-rate or current tick
1717

1818
SteamID64 uint64 // 64-bit representation of the user's Steam ID. See https://developer.valvesoftware.com/wiki/SteamID
19-
LastAlivePosition r3.Vector // The location where the player was last alive. Should be equal to Position if the player is still alive.
19+
LastAlivePosition r3.Vector // Deprecated: will be removed in v5 due to performance concerns, track this yourself.
2020
UserID int // Mostly used in game-events to address this player
2121
Name string // Steam / in-game user name
2222
Inventory map[int]*Equipment // All weapons / equipment the player is currently carrying. See also Weapons().

0 commit comments

Comments
 (0)