srobb 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 24 
	Threads: 4 
	Joined: Sep 2012
	
 Reputation: 
0
		
	 | 
	
		
			
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  | 
	
		
	 | 
 
 
	
		
		craven7 
 
 
		
			Member 
			
			
			
 
			
	Posts: 50 
	Threads: 8 
	Joined: Aug 2012
	
 Reputation: 
1
		
	 | 
	
		
			
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  | 
	
		
	 | 
 
 
	
		
		srobb 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 24 
	Threads: 4 
	Joined: Sep 2012
	
 Reputation: 
0
		
	 | 
	
		
			
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  | 
	
		
	 | 
 
 
	
		
		craven7 
 
 
		
			Member 
			
			
			
 
			
	Posts: 50 
	Threads: 8 
	Joined: Aug 2012
	
 Reputation: 
1
		
	 | 
	
		
			
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  | 
	
		
	 | 
 
 
	
		
		srobb 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 24 
	Threads: 4 
	Joined: Sep 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: How to stop grunt music? 
			 
			
				Yes, it still plays the music.
			 
			
			
			
		 |  
	 
 | 
 
	| 10-02-2012, 11:56 AM  | 
	
		
	 | 
 
 
	
		
		craven7 
 
 
		
			Member 
			
			
			
 
			
	Posts: 50 
	Threads: 8 
	Joined: Aug 2012
	
 Reputation: 
1
		
	 | 
	
		
			
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  | 
	
		
	 | 
 
 
	
		
		Unearthlybrutal 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 775 
	Threads: 12 
	Joined: May 2011
	
 Reputation: 
26
		
	 | 
	
		
			
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
			 
			
			
 
			
		 |  
	 
 | 
 
	| 10-02-2012, 03:27 PM  | 
	
		
	 | 
 
 
	
		
		srobb 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 24 
	Threads: 4 
	Joined: Sep 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: How to stop grunt music? 
			 
			
				Still doesn't get rid of the music.  
Any ideas?
			 
			
			
			
		 |  
	 
 | 
 
	| 10-03-2012, 06:55 AM  | 
	
		
	 | 
 
 
	
		
		FlawlessHappiness 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 3,980 
	Threads: 145 
	Joined: Mar 2012
	
 Reputation: 
171
		
	 | 
	
		
			
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  | 
	
		
	 | 
 
 
	
		
		srobb 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 24 
	Threads: 4 
	Joined: Sep 2012
	
 Reputation: 
0
		
	 | 
	
		
			
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  | 
	
		
	 | 
 
 
	 
 |