Releases: TF2-DMB/CBaseNPC
Releases · TF2-DMB/CBaseNPC
CBaseNPC 1.12.0.114
Enable ILocomotion interface (#58)
CBaseNPC 1.11.3.113
Disallow factory cloning (#55)
CBaseNPC 1.11.2.112
Reset interface pointers on unload (#54)
- Fixes a crash when sdkhooks or bintools or sdktools are unloaded.
CBaseNPC 1.11.1.111
CBaseNPC 1.11.1.109
CBaseNPC 1.11.0.108
Add CTakeDamageInfo natives to use with TakeDamage (#48)
This PR adds natives for creating and applying custom CTakeDamageInfo
parameters to entities using CBaseEntity::TakeDamage()
. Plugins can use the GetGlobalDamageInfo
native to specify custom parameters for use in TakeDamage
.
CBaseEntity::TakeDamage
should be used over SDKHooks_OnTakeDamage
because it checks for damage filters and applies damage scaling before OnTakeDamage
is called. SDKHooks_OnTakeDamage
bypasses that and calls CBaseEntity::OnTakeDamage
directly.
Other miscellaneous changes:
- Fixed
CTakeDamageInfo.Set/AddDamageType
natives missing a parameter (reported by @Mikusch) - Fixed some
CTakeDamageInfo
natives not returning immediately after erroring
CBaseNPC 1.10.3.107
Fix missing segment native (#46)
CBaseNPC 1.10.2.106
Fix Segment natives not being registered (#44)
CBaseNPC 1.10.1.105
Add PtrToPawnAddress to action callbacks (#43)
- Added uses of PtrToPawnAddress and PawnAddressToPtr for the action callbacks.
- Replaced the event result stack of an Action with a counter instead.
- The event result is assigned after the event has been processed, so there's no risk of overwriting the result if an event is triggered inside of another.