mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-18 07:07:32 +08:00
fix(CustomWeapons): Fix Gravity Gun not doing cleanup when failing REQUEST_CONTROL
Fixes #40
This commit is contained in:
parent
dff8bb85e5
commit
2414ee3c81
@ -76,7 +76,12 @@ namespace big
|
|||||||
if (PAD::IS_DISABLED_CONTROL_PRESSED(0, 15))
|
if (PAD::IS_DISABLED_CONTROL_PRESSED(0, 15))
|
||||||
dist += 5;
|
dist += 5;
|
||||||
|
|
||||||
if (!entity::take_control_of(ent)) return;
|
if (!entity::take_control_of(ent))
|
||||||
|
{
|
||||||
|
ent = 0;
|
||||||
|
|
||||||
|
return notify::above_map("Failed to take control of entity.");
|
||||||
|
}
|
||||||
|
|
||||||
ENTITY::SET_ENTITY_COLLISION(ent, false, false);
|
ENTITY::SET_ENTITY_COLLISION(ent, false, false);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user