Also for me it's not workCerovan wrote:For the hit sound it should be automatic so i don't know why it's not played for you

Code: Select all
// Action Maker Events
else if(Event.Type == CSmModeEvent::EType::OnActionCustomEvent)
{
if(Event.Param1 == "damage" && Event.Shooter != Null && Event.Victim != Null && Event.Victim != Event.Shooter)
{
Event.Victim.Armor -= 100;
if(Event.Victim.Armor <= 100)
{
Layers::Attach("Info", Event.Victim);
}
else
UIManager.UIAll.SendNotice(TextLib::Compose(_("$<%1$> has hit $<%2$>"), Event.Shooter.Name, Event.Victim.Name), CUIConfig::ENoticeLevel::PlayerInfo, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
Score::AddPoints(Event.Shooter, 1);
//Mode::PlaySound(CUIConfig::EUISound::PlayerEliminated);
//Event.ShooterPoints = 1;
PassOn(Event);
}
}