View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 02-22-2015 , 14:56   Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
Reply With Quote #25

Quote:
Originally Posted by apocalyptic View Post
yes, i got the same problem here. sourcemod 5155 cannot fix it.
I'm not sure what to tell you. I can even compile a new-style test plugin and it doesn't crash.

Having said that, I've noticed I can't compiler the EmitSoundAny version of MapChooser Extended Sounds under 1.7. The errors it spits don't seem to make sense either.

I'll have to look into that.

Quote:
Originally Posted by vanbka9 View Post
PHP Code:
stock EmitAmbientSoundAny(const String:name[], // switch to "sample" 
                        
const Float:pos[3],
                        
entity SOUND_FROM_WORLD,
                        
level SNDLEVEL_NORMAL,
                        
flags SND_NOFLAGS,
                        
Float:vol SNDVOL_NORMAL,
                        
pitch SNDPITCH_NORMAL,
                        
Float:delay 0.0)
{
    
decl String:szSound[PLATFORM_MAX_PATH];
    
    if (
g_bNeedsFakePrecache)
    {
        
Format(szSoundsizeof(szSound), "*%s"sample); // cuz here "sample"
    
}
    else
    {
        
strcopy(szSoundsizeof(szSound), sample);
    }
    
    
EmitAmbientSound(szSoundposentitylevelflagsvolpitchdelay);

Yes, this is definitely a bug.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline