AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Shooting sound (https://forums.alliedmods.net/showthread.php?t=208452)

ironskillz1 02-13-2013 14:29

Shooting sound
 
How can i change the sound when a deagle shoots
dont tell me its impossible becuse i have seen other servers done it

simanovich 02-13-2013 14:33

Re: Shooting sound
 
With FM_EmitSound (?)

Bos93 02-13-2013 15:18

Re: Shooting sound
 
Wait - weapon mod by Arkshine

:)

ANTICHRISTUS 02-13-2013 17:33

Re: Shooting sound
 
Quote:

Originally Posted by ANTICHRISTUS (Post 1893666)
  • Arkshine already said that if you port a weapon to amxx, then you can change all its sounds. I don't know what this means.


ironskillz1 02-14-2013 09:46

Re: Shooting sound
 
This wont work with Emitsound
Code:

public EmitSound(id, channel, sample[])
{
 if(!is_user_alive(id))
  return FMRES_IGNORED
 
 new temp[2], weapon = get_user_weapon(id, temp[0], temp[1])
 if(weapon == CSW_DEAGLE)
 {
  if(g_iCurrentGame == GAME_LASER)
  {
  if(equal(sample,"weapons/deagle-1.wav"))
  {
    emit_sound(id, CHAN_WEAPON, "Gametown/laser.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  }
  if(equal(sample,"weapons/deagle-2.wav"))
  {
    emit_sound(id, CHAN_WEAPON, "Gametown/laser.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  }
 
  return FMRES_SUPERCEDE
  }
 }
 
 return FMRES_IGNORED
}



All times are GMT -4. The time now is 20:37.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.