mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
Add m_iPing to gamestateanalyzer
This commit is contained in:
parent
92d9be233c
commit
c8aaf1c26c
1 changed files with 4 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ pub struct Player {
|
||||||
pub info: Option<UserInfo>,
|
pub info: Option<UserInfo>,
|
||||||
pub charge: u8,
|
pub charge: u8,
|
||||||
pub simtime: u16,
|
pub simtime: u16,
|
||||||
|
pub ping: u16,
|
||||||
pub in_pvs: bool,
|
pub in_pvs: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -440,6 +441,9 @@ impl GameStateAnalyser {
|
||||||
"m_iChargeLevel" => {
|
"m_iChargeLevel" => {
|
||||||
player.charge = i64::try_from(&prop.value).unwrap_or_default() as u8
|
player.charge = i64::try_from(&prop.value).unwrap_or_default() as u8
|
||||||
}
|
}
|
||||||
|
"m_iPing" => {
|
||||||
|
player.ping = i64::try_from(&prop.value).unwrap_or_default() as u16
|
||||||
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue