Skip to content

tag last enemy hit issues when taking fall damage #88

@higps

Description

@higps

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions