We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ac0c4b commit a96cc7bCopy full SHA for a96cc7b
pkg/demoinfocs/datatables.go
@@ -514,6 +514,12 @@ func (p *parser) getOrCreatePlayerFromControllerEntity(controllerEntity st.Entit
514
func (p *parser) bindNewPlayerControllerS2(controllerEntity st.Entity) {
515
pl := p.getOrCreatePlayerFromControllerEntity(controllerEntity)
516
517
+ controllerEntity.Property("m_hPawn").OnUpdate(func(val st.PropertyValue) {
518
+ if val.Handle() == constants.InvalidEntityHandleSource2 {
519
+ pl.IsConnected = false
520
+ }
521
+ })
522
+
523
controllerEntity.Property("m_iTeamNum").OnUpdate(func(val st.PropertyValue) {
524
pl.Team = common.Team(val.S2UInt64())
525
pl.TeamState = p.gameState.Team(pl.Team)
0 commit comments