StopSound: Mute stuff that starts with 'music'.
On CSGO most map music seems to start in the music folder, aka count that as music aswell. Doh!
This commit is contained in:
		
							parent
							
								
									82621ea1e1
								
							
						
					
					
						commit
						4f6f4b2dac
					
				@ -628,7 +628,7 @@ public void OnReloadEffect(DataPack pack)
 | 
				
			|||||||
public Action Hook_AmbientSound(char sample[PLATFORM_MAX_PATH], int &entity, float &volume, int &level, int &pitch, float pos[3], int &flags, float &delay)
 | 
					public Action Hook_AmbientSound(char sample[PLATFORM_MAX_PATH], int &entity, float &volume, int &level, int &pitch, float pos[3], int &flags, float &delay)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	// Are we playing music?
 | 
						// Are we playing music?
 | 
				
			||||||
	if(sample[0] != '#')
 | 
						if(!strncmp(sample, "music", 5, false) && !strncmp(sample, "#", 1, false))
 | 
				
			||||||
		return Plugin_Continue;
 | 
							return Plugin_Continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	char sEntity[16];
 | 
						char sEntity[16];
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user