-
Автор темы
- #1
Добрый день! Почему не работает соунд есп?
C++:
void Visuals::AddToDrawList() {
for (auto i = 1; i <= g_EntityList->GetHighestEntityIndex(); ++i) {
auto entity = C_BaseEntity::GetEntityByIndex(i);
if (!entity)
continue;
if (entity == g_LocalPlayer && !g_Input->m_fCameraInThirdPerson)
continue;
if (i < 65) {
auto player = Player();
if (player.Begin((C_BasePlayer*)entity)) {
if (g_Options.esp_player_snaplines) player.RenderSnapline();
if (g_Options.esp_player_boxes) player.RenderBox();
if (g_Options.esp_player_weapons) player.RenderWeaponName();
if (g_Options.esp_player_names) player.RenderName();
if (g_Options.esp_player_health) player.RenderHealth();
if (g_Options.esp_player_armour) player.RenderArmour();
if (g_Options.esp_player_skeleton) player.RenderSkeleton();
}
}
else if (g_Options.esp_dropped_weapons && entity->IsWeapon())
RenderWeapon(static_cast<C_BaseCombatWeapon*>(entity));
else if (g_Options.esp_dropped_weapons && entity->IsDefuseKit())
RenderDefuseKit(entity);
else if (entity->IsPlantedC4() && g_Options.esp_planted_c4)
RenderPlantedC4(entity);
else if (entity->IsLoot() && g_Options.esp_items)
RenderItemEsp(entity);
}
if (g_Options.esp_sound) {
Vector vScreen;
for (int i = 0; i < Sound.size(); i++) {
if (Math::WorldToScreen(Sound[i].vOrigin, vScreen)) {
Render::Get().RenderCircle3D(Sound[i].vOrigin, 50, Sound[i].radius += 0.3f, Color(255.f, g_Options.color_esp_sound[1], 255.f));
}
}
}
}