nixware.cc
-
Автор темы
- #1
Код:
void HeadShotted(IGameEvent* event)
{
if (!strcmp(event->GetName(), "player_death"))
{
if (Interfaces::Engine()->GetPlayerForUserID(event->GetInt("attacker")) == Interfaces::Engine()->GetLocalPlayer())
{
bool headshot = event->GetBool("headshot");
if (!headshot)
{
event->SetBool("headshot", true);
}
}
}
}