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

Use CSEntity member to hold last inflictor from TakeDamage #896

Merged
merged 1 commit into from Nov 26, 2023

Conversation

dystopm
Copy link
Contributor

@dystopm dystopm commented Nov 19, 2023

  • Use m_pevLastInflictor member from CSEntity class to hold entity's last inflictor set in CBaseMonster::TakeDamage, instead of a global variable. This will allow inflictor modification/retrieval inside Killed function.
  • Add inflictor assignation also on CBaseEntity::TakeDamage for custom entities.

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.

None yet

2 participants