Bug fixes and improvements (#984)
* feat(KickFromInterior): improve kick from interior Fixes #968 Fixes #953 Fixes #901 Fixes #899 Fixes #813 Fixes #726 Fixes #723 Co-authored-by: Yimura <24669514+Yimura@users.noreply.github.com>
This commit is contained in:
@ -65,8 +65,11 @@ namespace big
|
||||
|
||||
for (auto entity : target_entities)
|
||||
{
|
||||
auto entity_coord = ENTITY::GET_ENTITY_COORDS(entity, false);
|
||||
ENTITY::APPLY_FORCE_TO_ENTITY(entity, 1, ((g.world.blackhole.pos.x - entity_coord.x) * 9.f), ((g.world.blackhole.pos.y - entity_coord.y) * 9.f), ((g.world.blackhole.pos.z - entity_coord.z) * 9.f), 0.f, 0.f, 0.f, 0, false, true, true, 0, 0);
|
||||
if (entity::take_control_of(entity, 0))
|
||||
{
|
||||
auto entity_coord = ENTITY::GET_ENTITY_COORDS(entity, false);
|
||||
ENTITY::APPLY_FORCE_TO_ENTITY(entity, 1, ((g.world.blackhole.pos.x - entity_coord.x) * 9.f), ((g.world.blackhole.pos.y - entity_coord.y) * 9.f), ((g.world.blackhole.pos.z - entity_coord.z) * 9.f), 0.f, 0.f, 0.f, 0, false, true, true, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
//draw blackhole
|
||||
|
Reference in New Issue
Block a user