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 ScoreCause to CompetitorScoreChangeEvent and MatchPlayerScoreEvent #1487

Merged
merged 3 commits into from
Feb 3, 2025

Conversation

OhPointFive
Copy link
Contributor

Score Causes

This PR adds a ScoreCause to the events CompetitorScoreChangeEvent and MatchPlayerScoreEvent.

Possible ScoreCauses are:

  • CONTROL_POINT
  • DEATH
  • FLAG_CAPTURE
  • FLAG_TICK
  • KILL
  • SCOREBOX
  • VARIABLE

Motivation

In our original use case, I need a way to know when a player has gone into a scorebox, and for how many points they scored. A reasonable alternative to this would be to add an event for when a player enters a scorebox.

This approach seems more generally useful, though, and could be used for making an interactive graph of the match score, for example.

Signed-off-by: OhPointFive <[email protected]>
Signed-off-by: OhPointFive <[email protected]>
Copy link
Member

@Pablete1234 Pablete1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just missing the build which seems to have failed due to a dependency

@Pablete1234 Pablete1234 merged commit 8e6caaf into PGMDev:dev Feb 3, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants