download sparkIV

install Mg3:

open sparkIV, browse to cdimages/weapons.img, import w_m4.wdr and w_m4.wtd, SAVE!

install weaponinfo.xml:  grand theft auto4/ common / data

install sound:

1. download GTA-IVaud_1.5 (http://vilavek.gamekage.com/gtaivaud/download/index.html)

2. open sparkIV, browse to audio/sfx/resident.rpf (select resident in the right-side)

3. export WEAPONS.ivaud to ur destop

4. open GTA-IVaud_1.1, and open the WEAPONS.ivaud

5. replace with one of them selected the MG3.wav with ALL, scroll down to: Nr. # 173, 174, 175, 176, 177, 178

6. SAVE it, and import WEAPONS.ivaud again with sparkIV, save


manuel install weaponinfo: 

	<weapon type="M4">
		<data slot="RIFLE" firetype="INSTANT_HIT" damagetype="BULLET" group="RIFLE_ASSAULT" targetrange="65.0" weaponrange="70.0" clipsize="120" ammomax="600" timebetweenshots="133">
			<damage base="30" networkplayermod="2.5" networkpedmod="1.25"/>
			<physics force="75.0"/>
			<reload time="7066" fasttime="5166" crouchtime="2066"/>

			<aiming accuracy="0.5">
				<offset         x="0.14" y="1.0" z="0.55"/>
				<crouchedoffset x="0.08"  y="1.0" z="0.12"/>
				<reticule standing="0.6" ducked="0.5" scale="0.3"/>
			</aiming>

			<pickup regentime="600000" ammoonstreet="80"/>

			<controller>
        <rumble duration="90" intensity="0.1"/>
			</controller>

			<flags>
				<flag>GUN</flag>
				<flag>CAN_AIM</flag>
				<flag>CAN_FREE_AIM</flag>
				<flag>ANIM_RELOAD</flag>
				<flag>ANIM_CROUCH_FIRE</flag>
				<flag>2HANDED</flag>
			</flags>
		</data>

		<assets model="w_m4">
			<anim group="gun@ak47">
				<rates firerate="2.2" blindfirerate="2.2"/>
			</anim>

			<effects>
				<muzzle fx="muz_machine"/>
				<shell fx="weap_ejected_rifle"/>
			</effects>
		</assets>
	</weapon>
