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.
2 parents 4d9f95a + 917bf35 commit 2c9b7f9Copy full SHA for 2c9b7f9
pkg/demoinfocs/common/player.go
@@ -354,7 +354,7 @@ func (p *Player) ControlledBot() *Player {
354
// Health returns the player's health points, normally 0-100.
355
func (p *Player) Health() int {
356
if p.demoInfoProvider.IsSource2() {
357
- return int(getUInt64(p.Entity, "m_iPawnHealth"))
+ return getInt(p.PlayerPawnEntity(), "m_iHealth")
358
}
359
360
return getInt(p.Entity, "m_iHealth")
0 commit comments