#DotaMusic

1 messages · Page 1 of 1 (latest)

candid parrot
#

Is it possible to stop or completely remove Dota 2 music from custom game?

Not just constant music, but also death music and reincarnation music.

I've tried things like:

GameRules:SetCustomGameAllowHeroPickMusic(false) GameRules:SetCustomGameAllowBattleMusic(false) GameRules:SetCustomGameAllowMusicAtGameStart(false) StopSoundEvent("DOTAMusic.Death", killedUnit) killedUnit:GetPlayerOwner():SetMusicStatus(DOTA_MUSIC_STATUS_NONE, 0.0)

but none of them work

trim zenith
#

try to overwrite the official dota sound events (.vsndevts

stoic sinew
#

Why you used DOTA_MUSIC_STATUS_NONE instead of DOTA_MUSIC_STATUS_DEAD in last one attempt?

candid parrot
candid parrot
trim zenith
candid parrot
# trim zenith that's what it means > https://discord.com/channels/250160069549883392/128562252...

Sorry for the late reply, i was fixing other things. I've finally did what you said but it didn't work.

i've used the same routes that dota 2 use for their music, sounds, etc. Replacing the killed.mp3 with a muted sound

Routes:

Sound :
sounds/music/valve_dota_001/music/killed.mp3

SoundEvent:
soundevents/music/valve_dota_001/soundevents_music.vsndevts

Am i doing something wrong? or is it just imposible to mute/replace dota 2 sounds,music,etc.

trim zenith
#

of course you can, but you just choosed a wrong sound event
I didnt find sounds/music/valve_dota_001/music/killed.mp3 in Assets Browser
and finally I found its true event:ui.death_stinger
just override this event in your sound file