s1lentq / reapi

AMX Mod X module, using API regamedll & rehlds
GNU General Public License v3.0
160 stars 103 forks source link

problem with remove entities functions #312

Closed lozatto closed 1 month ago

lozatto commented 3 months ago

It is not possible to remove some types of entities when using the two methods below:

rg_remove_entity and set_entvar(iEnt, var_flags, get_entvar(iEnt, var_flags) | FL_KILLME)

The cases I noticed are using the set_entvar(Ent,var_solid,SOLID_BBOX) function;

JohanCorn commented 3 months ago

I tried to reproduce this bug on the master branch. The function worked as expected, and even the solid ones were removed.

lozatto commented 3 months ago

I tried to reproduce this bug on the master branch. The function worked as expected, and even the solid ones were removed.

try use this plugin: https://gamebanana.com/mods/325429

Today it is not in reapi but I believe that changing the function to reapi is already happening

lozatto commented 1 month ago

I tried to reproduce this bug on the master branch. The function worked as expected, and even the solid ones were removed.

I found the problem, it turns out that the reapi function completely kills FM_OnFreeEntPrivateData, you can end the ticket

lozatto commented 1 month ago

I found the problem, it turns out that the reapi function completely kills FM_OnFreeEntPrivateData, you can end the ticket