Skip to content

Use CSEntity member to hold last inflictor from TakeDamage#896

Merged
s1lentq merged 1 commit intorehlds:masterfrom
dystopm:allow_inflictor_mod
Nov 26, 2023
Merged

Use CSEntity member to hold last inflictor from TakeDamage#896
s1lentq merged 1 commit intorehlds:masterfrom
dystopm:allow_inflictor_mod

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.

2 participants