Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add aim_punch_angle and aim_punch_angle_vel #205

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading