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

Additional check in OnPlayerGiveDamage #163

Closed
wants to merge 3 commits into from
Closed

Additional check in OnPlayerGiveDamage #163

wants to merge 3 commits into from

Conversation

NexiusTailer
Copy link
Contributor

There are some fixes and other minor corrections. The main is additional check in OnPlayerGiveDamage for player state driver (if player is a driver, he doesn't send this callback and it can help to prevent hacks that spoof OnPlayerGiveDamage this way). Also I've added WC_CONST instead of just 'const' for ApplyAnimation hook. Seems like its needed here too.

@NexiusTailer
Copy link
Contributor Author

Seems like the main part of changes aren't fully solved the possible OnPlayerGiveDamage spoofing (as it could be called from vehicle for some non-weapon damage reasons like 49 or 50).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant