Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.
This repository was archived by the owner on May 21, 2025. It is now read-only.

GameEvent::PlayerShoot is not executing within GameStateAnalyser #25

Description

@megascatterbomb

Unsure if this is a tf2 issue or an implementation issue, but I've tried putting a GameEvent::PlayerShoot into GameStateAnalyser.handle_message for the purposes of tracking weapon usage, however none of the demos I've tried (both my own and from others) have resulted in this event being executed. I've confirmed that the player death event is firing as intended using a print statement, and I've confirmed that no PlayerShoot events are missing the match statement by checking all unhandled GameEvents and messages for events containing "Shoot" in their serialized form.

I am using the command cargo run --release --bin gamestate -- "path/to/demo.dem" with the modification listed below.

src\demo\parser\gamestateanalyser.rs
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions