Начинающий
-
Автор темы
- #1
C++:
if (_strstr(archetype, "ShootingObject")) {
if (_strstr(name, "Boss_Eye") || _strstr(name, "Boss_Dron_Body"))
{
if (wallshot || physical->is_visible(entity_system, entity, camera, aabb.get_center()))
{
hit.push_back({ actor->get_entity_id, prules->register_hit_material(("mat_head")), (6), (12), camera, 0.0f, actor->get_hit });
for (int hit_count = 0; hit_count < 20; ++hit_count)
hit.push_back({ entity->get_entity_id(), mat, e_hit_type::bullet, pPartId, aabb.get_center(), 0.0f, 0 });
}
continue;
}
}