download sparkIV

install Thompson:

open sparkIV, browse to cdimages/weapons.img, import w_glock.wdr and w_glock.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 c1911.wav with ALL, scroll down to: 100 PISTOL_SHOT1_L and 101 PISTOL_SHOT1_R

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


manuel install weaponinfo:  

	<weapon type="PISTOL">
		<data slot="HANDGUN" firetype="INSTANT_HIT" damagetype="BULLET" group="PISTOL_SMALL" targetrange="45.0" weaponrange="50.0" clipsize="7" ammomax="1500" timebetweenshots="333">
			<damage base="25" networkplayermod="3.0" networkpedmod="1.0"/>
			<physics force="50.0"/>
			<reload time="2000" fasttime="2000" crouchtime="2000"/>

			<aiming accuracy="0.5">
				<offset         x="0.15" y="1.0" z="0.55"/>
				<crouchedoffset x="0.2"  y="1.0" z="0.05"/>
				<reticule standing="0.65" ducked="0.55" scale="0.3"/>
			</aiming>

			<pickup regentime="120000" ammoonstreet="30"/>

			<controller>
				<rumble duration="110" intensity="0.02"/>
			</controller>

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

		<assets model="w_glock">
			<anim group="gun@handgun" meleegroup1="firearm_core"/>

			<effects>
				<muzzle fx="muz_pistol_small"/>
				<shell fx="weap_ejected_pistol"/>
			</effects>
		</assets>
	</weapon>
