-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
if (!strcmp(event->GetName(), "player_footstep")) {
auto index = m_engine()->GetPlayerForUserID(event->GetInt("userid"));
auto e = static_cast< player_t * >(entitylist()->GetClientEntity(index));
if (!e)
return;
if (e == local_player)
return;
if (e->IsDormant())
return;
if (e->m_iTeamNum() != local_player->m_iTeamNum()) {
drawsoundbeam(e->m_vecOrigin(), Color(255, 140, 140, 255));
}
}
auto index = m_engine()->GetPlayerForUserID(event->GetInt("userid"));
auto e = static_cast< player_t * >(entitylist()->GetClientEntity(index));
if (!e)
return;
if (e == local_player)
return;
if (e->IsDormant())
return;
if (e->m_iTeamNum() != local_player->m_iTeamNum()) {
drawsoundbeam(e->m_vecOrigin(), Color(255, 140, 140, 255));
}
}
CREDITS: iSuckAtLife (from UC)