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.
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:
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.