Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to stop grunt music?
srobb Offline
Junior Member

Posts: 24
Threads: 4
Joined: Sep 2012
Reputation: 0
#1
How to stop grunt music?

Hi.
I have some ambient music playing and there's a grunt encounter a bit into the map and I don't want the grunt music to play.


void sanityscript1(string &in asParent, string &in asChild, int alState)

{
SetPlayerSanity(35);
PlayMusic("29_amb.ogg", true, 2, 2, 0, true);
}



void wakeuptextscript1(string &in asParent, string &in asChild, int alState)

{
SetMessage("Messages", "wakeuptext1", 5.5f);
StopMusic(5, 0);
}

Thanks in advance.
10-02-2012, 10:54 AM
Find
craven7 Offline
Member

Posts: 50
Threads: 8
Joined: Aug 2012
Reputation: 1
#2
RE: How to stop grunt music?

As far as I you, you can only gain access to enemie's music/sounds via modeleditor.

Open modeleditor, open up the enemy.ent you want to edit, then something in the menubar (options, variables or something similar). There you can change all enemyrelevant variables, for example the music that's played when it appears. Don't forget to save as new file or you will overwrite the default enemy.
10-02-2012, 11:03 AM
Find
srobb Offline
Junior Member

Posts: 24
Threads: 4
Joined: Sep 2012
Reputation: 0
#3
RE: How to stop grunt music?

Didn't work, the music still plays.
I removed all the sound/music files from the variables menu or whatever, saved it as a new model and replaced the old grunt model with the new grunt model. No luck.
10-02-2012, 11:21 AM
Find
craven7 Offline
Member

Posts: 50
Threads: 8
Joined: Aug 2012
Reputation: 1
#4
RE: How to stop grunt music?

Hm, it should work, i just tried it and it did.

You removed every sound and used the new entity in your map?
10-02-2012, 11:51 AM
Find
srobb Offline
Junior Member

Posts: 24
Threads: 4
Joined: Sep 2012
Reputation: 0
#5
RE: How to stop grunt music?

Yes, it still plays the music.
10-02-2012, 11:56 AM
Find
craven7 Offline
Member

Posts: 50
Threads: 8
Joined: Aug 2012
Reputation: 1
#6
RE: How to stop grunt music?

You are talking about the grunt's music aren't you?^^
But sry, then I don't know.
(This post was last modified: 10-02-2012, 12:07 PM by craven7.)
10-02-2012, 12:07 PM
Find
Unearthlybrutal Offline
Posting Freak

Posts: 775
Threads: 12
Joined: May 2011
Reputation: 26
#7
RE: How to stop grunt music?

Change in .ent file:

<Var Name="DangerMusic" Value="[blank]" />

<Var Name="SearchMusic" Value="[blank]" />

<Var Name="AttackMusic" Value="[blank]" />

Rename your new .ent file for example "no_music_grunt" or something similar.

[blank] = NO TEXT IN HERE

When Life No Longer Exists
Full-conversion mod
(This post was last modified: 10-02-2012, 03:28 PM by Unearthlybrutal.)
10-02-2012, 03:27 PM
Website Find
srobb Offline
Junior Member

Posts: 24
Threads: 4
Joined: Sep 2012
Reputation: 0
#8
RE: How to stop grunt music?

Still doesn't get rid of the music.
Any ideas?
10-03-2012, 06:55 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#9
RE: How to stop grunt music?

Play some other music before the grunt appears! It works for me. Just put the priority to 10.

Trying is the first step to success.
10-03-2012, 07:07 AM
Find
srobb Offline
Junior Member

Posts: 24
Threads: 4
Joined: Sep 2012
Reputation: 0
#10
RE: How to stop grunt music?

No luck.

PlayMusic("29_amb.ogg", true, 2, 2, 10, true);


The grunt music still plays with the ambient music.
10-03-2012, 07:21 AM
Find




Users browsing this thread: 2 Guest(s)