Skip to content

Commit

Permalink
add aim_punch_angle and aim_punch_angle_vel
Browse files Browse the repository at this point in the history
  • Loading branch information
LaihoE committed Aug 6, 2024
1 parent 91875bb commit 17d5122
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ crate-type = ["cdylib"]

[dependencies]
ahash = "0.8.3"
memmap2 = "0.5.10"
memmap2 = "0.9.4"
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
napi = { version = "2.12.2", default-features = false, features = ["napi4","serde-json"] }
napi-derive = "2.12.2"
Expand Down
3 changes: 2 additions & 1 deletion src/parser/src/maps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2614,7 +2614,8 @@ pub static FRIENDLY_NAMES_MAPPING: phf::Map<&'static str, &'static str> = phf_ma
"game_time" => "game_time",
"inventory" => "inventory",
"inventory_as_ids" => "inventory_as_ids",

"aim_punch_angle" => "CCSPlayerPawn.m_aimPunchAngle",
"aim_punch_angle_vel" => "CCSPlayerPawn.m_aimPunchAngleVel",
"entity_id" => "entity_id",
"is_alive"=>"is_alive",
"agent_skin" => "agent_skin",
Expand Down
6 changes: 4 additions & 2 deletions src/python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,6 @@ impl DemoParser {
only_convars: false,
huffman_lookup_table: &arc_huf,
order_by_steamid: false,
//huf: huf,
};
let mut parser = Parser::new(settings, false);
let output = match parser.parse_demo(&self.mmap) {
Expand Down Expand Up @@ -607,7 +606,10 @@ impl DemoParser {
df_column_names_py.push(prop_info.prop_friendly_name);
all_pyobjects.push(data.to_object(py));
}

Some(VarVec::XYZVec(data)) => {
df_column_names_py.push(prop_info.prop_friendly_name);
all_pyobjects.push(data.to_object(py));
}
Some(VarVec::U32Vec(data)) => {
df_column_names_py.push(prop_info.prop_friendly_name);
all_pyobjects.push(data.to_object(py));
Expand Down

0 comments on commit 17d5122

Please sign in to comment.