So, these days i've been working with the emit sound forward and i noticed the following
While trying to emit a sound from the weapon entity when deployed, the volume of the sound variated in volume, sometimes it being lound sometimes low to very low
I did not test on any previous versions of amxmodx except the latest dev build of 1.8.3
Test Script, p.s chose your sound's path
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "White"
#define SoundPickup "chose a sound"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Item_Deploy, "weapon_hegrenade", "fw_DeployGrenade", 1)
// Add your code here...
}
public plugin_precache()
{
precache_sound(SoundPickup)
}
public fw_DeployGrenade(ent)
{
emit_sound(ent, CHAN_WEAPON, SoundPickup, 1.0, 0.2, 0, PITCH_NORM)
}
__________________