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

Fix "Kills by Auto-Titan" not registering at all #817

Merged
merged 12 commits into from
Jul 17, 2024

Conversation

Zanieon
Copy link
Contributor

@Zanieon Zanieon commented Jul 8, 2024

This is a quick fix that will redirect the attacker entity to a proper NPC owned by the player.

By default behavior of the game, attackers are always the final entity in the owning hiearchy, which is always a player if owned NPCs kills enemies.

This PR properly redirects the code to the correct NPC whenever they have an owning player.

@Zanieon Zanieon requested a review from ASpoonPlaysGames July 9, 2024 00:35
Copy link
Contributor

@ASpoonPlaysGames ASpoonPlaysGames left a comment

Choose a reason for hiding this comment

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

Code looks good, discussed in discord mostly. Havent tested

@GeckoEidechse
Copy link
Member

GeckoEidechse commented Jul 12, 2024

I guess for testing just get another player and have them be killed by auto-titan? ^^

@GeckoEidechse GeckoEidechse added needs testing Changes from the PR still need to be tested almost ready to merge Apart from any small remaining other issues addressed by other labels, this would be ready to merge labels Jul 12, 2024
@Zanieon
Copy link
Contributor Author

Zanieon commented Jul 16, 2024

Tested in my own server by hosting Attrition and FD, so far no crashes in regards to this, and my titan started registering its kills in my profile:
image

@GeckoEidechse
Copy link
Member

Good enough for me ^^

@GeckoEidechse GeckoEidechse merged commit 26d649f into R2Northstar:main Jul 17, 2024
3 checks passed
@GeckoEidechse GeckoEidechse removed needs testing Changes from the PR still need to be tested almost ready to merge Apart from any small remaining other issues addressed by other labels, this would be ready to merge labels Jul 17, 2024
@Zanieon Zanieon deleted the StatsFix branch July 18, 2024 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants