1
This commit is contained in:
commit
41a77c3cde
@ -91,6 +91,8 @@ void Bullet::ProcBomb()
|
|||||||
sender.Get()->team_id == c->team_id) {
|
sender.Get()->team_id == c->team_id) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
AabbCollider aabb_box;
|
||||||
|
c->GetHitAabbBox(aabb_box);
|
||||||
if (meta->i->_inventory_slot() == IS_C4) {
|
if (meta->i->_inventory_slot() == IS_C4) {
|
||||||
if (!objects.empty()) {
|
if (!objects.empty()) {
|
||||||
stop = true;
|
stop = true;
|
||||||
@ -99,12 +101,16 @@ void Bullet::ProcBomb()
|
|||||||
if (!c->IsCar()) {
|
if (!c->IsCar()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
c4_target = c->AsCar();
|
if (TestCollision(room, &aabb_box)) {
|
||||||
}
|
c4_target = c->AsCar();
|
||||||
AabbCollider aabb_box;
|
stop = true;
|
||||||
c->GetHitAabbBox(aabb_box);
|
objects.insert(c);
|
||||||
if (TestCollision(room, &aabb_box)) {
|
return;
|
||||||
objects.insert(c);
|
}
|
||||||
|
} else {
|
||||||
|
if (TestCollision(room, &aabb_box)) {
|
||||||
|
objects.insert(c);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user