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 b36d5ec + 34eaaa5 commit 5c02316Copy full SHA for 5c02316
pkg/demoinfocs/common/player.go
@@ -363,7 +363,7 @@ func (p *Player) Health() int {
363
// Armor returns the player's armor points, normally 0-100.
364
func (p *Player) Armor() int {
365
if p.demoInfoProvider.IsSource2() {
366
- return getInt(p.Entity, "m_iPawnArmor")
+ return getInt(p.PlayerPawnEntity(), "m_ArmorValue")
367
}
368
369
return getInt(p.Entity, "m_ArmorValue")
0 commit comments