Skip to content

Commit 7285733

Browse files
authored
add aim_punch_angle and aim_punch_angle_vel (#205)
1 parent d0d177b commit 7285733

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/node/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ crate-type = ["cdylib"]
88

99
[dependencies]
1010
ahash = "0.8.3"
11-
memmap2 = "0.5.10"
11+
memmap2 = "0.9.4"
1212
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
1313
napi = { version = "2.12.2", default-features = false, features = ["napi4","serde-json"] }
1414
napi-derive = "2.12.2"

src/parser/src/maps.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2614,7 +2614,8 @@ pub static FRIENDLY_NAMES_MAPPING: phf::Map<&'static str, &'static str> = phf_ma
26142614
"game_time" => "game_time",
26152615
"inventory" => "inventory",
26162616
"inventory_as_ids" => "inventory_as_ids",
2617-
2617+
"aim_punch_angle" => "CCSPlayerPawn.m_aimPunchAngle",
2618+
"aim_punch_angle_vel" => "CCSPlayerPawn.m_aimPunchAngleVel",
26182619
"entity_id" => "entity_id",
26192620
"is_alive"=>"is_alive",
26202621
"agent_skin" => "agent_skin",

src/python/src/lib.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,6 @@ impl DemoParser {
557557
only_convars: false,
558558
huffman_lookup_table: &arc_huf,
559559
order_by_steamid: false,
560-
//huf: huf,
561560
};
562561
let mut parser = Parser::new(settings, false);
563562
let output = match parser.parse_demo(&self.mmap) {
@@ -607,7 +606,10 @@ impl DemoParser {
607606
df_column_names_py.push(prop_info.prop_friendly_name);
608607
all_pyobjects.push(data.to_object(py));
609608
}
610-
609+
Some(VarVec::XYZVec(data)) => {
610+
df_column_names_py.push(prop_info.prop_friendly_name);
611+
all_pyobjects.push(data.to_object(py));
612+
}
611613
Some(VarVec::U32Vec(data)) => {
612614
df_column_names_py.push(prop_info.prop_friendly_name);
613615
all_pyobjects.push(data.to_object(py));

0 commit comments

Comments
 (0)