-
Notifications
You must be signed in to change notification settings - Fork 10
Description
If a player is taking fall damage, the tag last enemy hit throws an error.
I tried to fix this by only doing it if there was a valid attacker. but this generates another error
L 02/23/2024 - 19:19:38: [SM] Exception reported: Entity -130023424 (0) does not have property m_AttributeList
L 02/23/2024 - 19:19:38: [SM] Blaming: bmod/balancemod-dependencies/tf2attributes.smx
L 02/23/2024 - 19:19:38: [SM] Call stack trace:
L 02/23/2024 - 19:19:38: [SM] [0] ThrowNativeError
L 02/23/2024 - 19:19:38: [SM] [1] Line 622, /scratch/scripting/tf2attributes.sp::Native_GetAttrib
L 02/23/2024 - 19:19:38: [SM] [3] TF2Attrib_GetByName
L 02/23/2024 - 19:19:38: [SM] [4] Line 163, D:\tf2server\tf2\tf\addons\sourcemod\scripting\tf_custom_attributes.sp::GetCustomAttributeStruct
L 02/23/2024 - 19:19:38: [SM] [5] Line 212, D:\tf2server\tf2\tf\addons\sourcemod\scripting\tf_custom_attributes.sp::Native_GetAttributeValueFloat
L 02/23/2024 - 19:19:38: [SM] [7] TF2CustAttr_GetFloat
L 02/23/2024 - 19:19:38: [SM] [8] Line 106, scripting/tag_last_enemy_hit.sp::OnTakeDamagePost
What would be the best way to fix this?