Made this a week before I started on that Terminal map, can't remember when
It's as simple as adding items in your client.
You add the .WAV files in your effect.mrs (Sound/effect).
Open up the effect.xml. Add in something like this;
PHP Code:
<EFFECT NAME="we_mp5_fire" MINDISTANCE="320"/>
<EFFECT NAME="we_mp5_reload" MINDISTANCE="200" MAXDISTANCE="1000"/>
<EFFECT NAME="we_mp5_fire_2d" type="3"/>
<EFFECT NAME="we_mp5_reload_2d" type="3"/>
Then you're gonna have to make a copy of both the fire and reload sound for the type 3 effect.
For example, we_mp5_fire_2d.wav and we_mp5_reload_2d.wav
Now you would have to change the sound effect of the gun in your zitem.xml. Something like this;
PHP Code:
<ITEM id="##" name="MP5" mesh_name="smg_mp5" totalpoint="0" type="range"
res_sex="a" res_level="0" slot="range" weapon="smg" weight="15" bt_price="30" delay="90"
damage="7" ctrl_ability="50" magazine="32" maxbullet="160" reloadtime="5" slug_output="true"
gadget_id="0" hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0" color="#FFFFFFFF"
image_id="2" bullet_image_id="0" magazine_image_id="0" snd_reload="we_mp5_reload"
snd_fire="we_mp5_fire" snd_dryfire="762arifle_dryfire" desc="// -"
effect_id="5" />
<ITEM id="##" name="MP5 (Dual Wield)" mesh_name="smg_mp5x2" totalpoint="0" type="range"
res_sex="a" res_level="0" slot="range" weapon="smgx2" weight="30" bt_price="60" delay="90"
damage="14" ctrl_ability="90" magazine="32" maxbullet="160" reloadtime="5" slug_output="true"
gadget_id="0" hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0" color="#FFFFFFFF"
image_id="2" bullet_image_id="0" magazine_image_id="0" snd_reload="we_mp5_reload"
snd_fire="we_mp5_fire" snd_dryfire="762arifle_dryfire" desc="// -"
effect_id="6" />
weapon.xml
Code:
<AddWeaponElu name="smg_mp5" weapon_motion_type = "10" weapon_type = "14" >
<AddBaseModel name="smg_mp5" filename="[location of the mp5 elu file]" />
</AddWeaponElu>
<AddWeaponElu name="smg_mp5x2" weapon_motion_type = "11" weapon_type = "15" >
<AddBaseModel name="smg_mp5x2" filename="[location of the mp5 elu file]" />
</AddWeaponElu>
Just was in a hurry in releasing this since I'm not keeping most of the files that I have. I would of make the resolution different since .dds files only work if it is in the multiplicity of 4.