Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ZSoundEngine::PlaySEReload(MMatchItemDesc *pDesc, float x, float y, float z, bool bHero)
- {
- if(!m_bSoundEnable || !pDesc ) return;
- if(pDesc->m_nType.Ref() == MMIT_RANGE)
- {
- char* szSndName = pDesc->m_szReloadSndName;
- if(bPlayer)
- {
- char szBuffer[64];
- sprintf( szBuffer, "%s_2d", szSndName );
- char key[256] = "";
- GetSoundName(szBuffer, key);
- RealSound2::PlaySound(key, 200);
- }
- else
- {
- rvector pos = rvector(x,y,z);
- PlaySoundCharacter(szSndName, pos, bHero, 200);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement