Skip to content

Conversion issues during entity deletion listener callbacks. #455

@jordanbriere

Description

@jordanbriere

Originally reported into: 2729

The issue appears to be that m_pUnk is already unbound at that point causing our conversion to fail.

Reproducible code for bots on TF2:

from listeners import OnEntityDeleted
from entities.helpers import baseentity_from_index

@OnEntityDeleted
def _(base_entity):
    baseentity_from_index(base_entity.index)
ValueError: Conversion from "Index" (2) to "BaseEntity" failed.

Not sure if other entities/other games are affected, but we might want to temporarily rebind it like we rebind m_pNetworkable to fix similar issues during entity creation callbacks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions