File tree 2 files changed +0
-20
lines changed
2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ type Player struct {
16
16
demoInfoProvider demoInfoProvider // provider for demo info such as tick-rate or current tick
17
17
18
18
SteamID64 uint64 // 64-bit representation of the user's Steam ID. See https://developer.valvesoftware.com/wiki/SteamID
19
- LastAlivePosition r3.Vector // Deprecated: will be removed in v5 due to performance concerns, track this yourself.
20
19
UserID int // Mostly used in game-events to address this player
21
20
Name string // Steam / in-game user name
22
21
Inventory map [int ]* Equipment // All weapons / equipment the player is currently carrying. See also Weapons().
Original file line number Diff line number Diff line change @@ -478,13 +478,6 @@ func (p *parser) bindNewPlayerS1(playerEntity st.Entity) {
478
478
pl .Entity = nil
479
479
})
480
480
481
- // Position
482
- playerEntity .OnPositionUpdate (func (pos r3.Vector ) {
483
- if pl .IsAlive () {
484
- pl .LastAlivePosition = pos
485
- }
486
- })
487
-
488
481
// General info
489
482
playerEntity .Property ("m_iTeamNum" ).OnUpdate (func (val st.PropertyValue ) {
490
483
pl .Team = common .Team (val .IntVal )
@@ -632,18 +625,6 @@ func (p *parser) bindNewPlayerPawnS2(pawnEntity st.Entity) {
632
625
p .bindPlayerWeaponsS2 (pawnEntity , pl )
633
626
})
634
627
635
- // Position
636
- pawnEntity .OnPositionUpdate (func (pos r3.Vector ) {
637
- pl := getPlayerFromPawnEntity (pawnEntity )
638
- if pl == nil {
639
- return
640
- }
641
-
642
- if pl .IsAlive () {
643
- pl .LastAlivePosition = pos
644
- }
645
- })
646
-
647
628
pawnEntity .Property ("m_flFlashDuration" ).OnUpdate (func (val st.PropertyValue ) {
648
629
pl := getPlayerFromPawnEntity (pawnEntity )
649
630
if pl == nil {
You can’t perform that action at this time.
0 commit comments