Tanshaydar
From Beyond
Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation:
67
|
Manually Stopping Monster Music?
I think topic name pretty much explains everything. Is it possible to manually stop monster music? Chasing, patrolling etc...
I saw the prio of the monster music is 0, so StopMusic(0,0); would work I think, but it didn't. Anything else aside from deleting the music for monster?
|
|
08-17-2011, 02:24 PM |
|
plutomaniac
Super Moderator
Posts: 6,368
Threads: 45
Joined: May 2011
Reputation:
183
|
RE: Manually Stopping Monster Music?
You mean the file ui_terror_meter? Instead of deleting it(I hate this thing so I wouldn't have a problem doing that) have you tried changing the entity variables? There must be there...
You want it disabled always or just for a monster or a place?
(This post was last modified: 08-17-2011, 03:51 PM by plutomaniac.)
|
|
08-17-2011, 03:50 PM |
|
nemesis567
Posting Freak
Posts: 874
Threads: 65
Joined: May 2011
Reputation:
10
|
RE: Manually Stopping Monster Music?
The thing is that once he messes around with the file it won't work in any situation.
Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
|
|
08-17-2011, 03:54 PM |
|
Tanshaydar
From Beyond
Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation:
67
|
RE: Manually Stopping Monster Music?
Not the ui_terror_meter, everything. Once monster becomes active, or when monsters chase you, when monster is patrolling; all of those sounds. Is there a way? Because it is a music playing in background, and its prio is 0.
|
|
08-17-2011, 05:17 PM |
|
palistov
Posting Freak
Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation:
57
|
RE: Manually Stopping Monster Music?
The enemy music prio is only used when there are multiple active monsters. You can create a custom entity file for your monster and remove the danger music file (means he's active). Then you can script your music to play when the monster becomes active and stop it whenever you wish
|
|
08-17-2011, 08:57 PM |
|
Tanshaydar
From Beyond
Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation:
67
|
RE: Manually Stopping Monster Music?
I should change the music when he sees the player, when he chases the player etc...
I think I'll just skip it.
The problem is, when enemy gets deactivated, its music continues to play...
|
|
08-17-2011, 09:18 PM |
|
MrBigzy
Senior Member
Posts: 616
Threads: 18
Joined: Mar 2011
Reputation:
8
|
|
08-17-2011, 09:57 PM |
|
plutomaniac
Super Moderator
Posts: 6,368
Threads: 45
Joined: May 2011
Reputation:
183
|
RE: Manually Stopping Monster Music?
Do you want to completely remove the enemy sounds just for one enemy or all of them? I mean, do you want to make then silent when chasing? All of them?
|
|
08-17-2011, 09:59 PM |
|
Tanshaydar
From Beyond
Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation:
67
|
RE: Manually Stopping Monster Music?
I want the default entity as it is.
Music must play while chasing, while patrolling. However, when I deactivate the entity, or Fade it into smoke, whatever, that enemy music continues to play.
|
|
08-17-2011, 10:08 PM |
|
palistov
Posting Freak
Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation:
57
|
RE: Manually Stopping Monster Music?
Try this looping timer.
bool bMonsterActive = false;
void MonsterStuff(blahblah blahblah)
{
SetEntityActive("grunty", true);
PlayMusic("gruntymusic.ogg", true, 1, 0, 0, true);
bMonsterActive = true;
AddTimer("", 5, "MonsterCheck");
}
void MonsterCheck(string &in timer)
{
bMonsterActive = GetEntityExists("grunty") ? true : false;
if(!bMonsterActive) PlayMusic("newmusic.ogg", true, 1, 0, 0, 0, true);
AddTimer("", 5, "MonsterCheck");
}
(This post was last modified: 08-17-2011, 10:57 PM by palistov.)
|
|
08-17-2011, 10:52 PM |
|
|