Releases: TF2-DMB/CBaseNPC
CBaseNPC 1.10.0.103
Add more ways to collect Nav Areas (#42)
- Added CNavArea.GetAdjacent/IncomingConnectionLength natives
- Deprecate SurroundingAreasCollector in favor of AreasCollector
CBaseNPC 1.9.0.102
Repository CI update (#41)
- Added CI for plugins
- Added the missing .inc files to the package script
CBaseNPC 1.9.0.101
Revise natives code (#40)
- Added
CTakeDamageInfo
natives
CTakeDamageInfo.CTakeDamageInfo
GetInflictor
SetInflictor
GetWeapon
SetWeapon
GetAttacker
SetAttacker
GetDamage
SetDamage
GetMaxDamage
SetMaxDamage
ScaleDamage
AddDamage
SubtractDamage
GetDamageBonus
SetDamageBonus
GetDamageBonusProvider
GetBaseDamage
BaseDamageIsValid
GetDamageForce
SetDamageForce
ScaleDamageForce
GetDamageForForceCalc
SetDamageForForceCalc
GetDamagePosition
SetDamagePosition
GetReportedPosition
SetReportedPosition
GetDamageType
SetDamageType
AddDamageType
GetDamageCustom
SetDamageCustom
GetDamageStats
SetDamageStats
SetForceFriendlyFire
IsForceFriendlyFire
GetAmmoType
SetAmmoType
GetAmmoName
GetPlayerPenetrationCount
SetPlayerPenetrationCount
GetDamagedOtherPlayers
SetDamagedOtherPlayers
SetCritType
GetCritType
- Refactored natives code
- Fixed a bug where
CBaseNPC
andCExtNPC
natives would not throw an error when usingINVALID_NPC
index
CBaseNPC 1.8.5.100
Fixed the extension for SM 1.12 (#39)
CBaseNPC 1.8.4.99
Fix gamedata based entity factory (#37)
Due to the nature of member function ptrs on linux, the extension would auto offset the class object ptr allocated by the game. Leading to misaligned memory.
On the topic of misaligned memory, we weren't really guarding against it. So just in the event the engine changes how memory is allocated, or that plugin provides an object size that doesn't allow for 4 bytes aligned memory, we fix that before allocating anything.
CBaseNPC 1.8.3.98
Fix crash with IsHindrance + CallBaseFunction, reformat includes (#36)
-
Fixes a case where the
IsHindrance
query callback fails to take into account a specialCBaseEntity*
value calledIS_ANY_HINDRANCE_POSSIBLE
. -
Fixes a case where using
CBaseNPC_Locomotion.CallBaseFunction
withinIsEntityTraversable
andShouldCollideWith
callbacks resulted in a crash. -
Reformated include guards to use
#endinput
and to use relative paths instead. This notably fix headers with the sourcepawn VSCode extension. -
Added examples to using
CBaseNPC_Locomotion
callbacks to the scout test bot.
CBaseNPC 1.8.2.97
Add m_scriptInstance member to INextBotComponent
. (#35)
This fixes yet another crash from the vscript update.
CBaseNPC 1.8.1.96
Rebuild against VScript changes on TF2 SDK (#33)
CBaseNPC 1.8.0.95
VScript gamedata update (#32)
CBaseNPC 1.7.1.94
Fix OnOtherKilled event callback not passing victim
parameter (#31)