====================================================================
Fusion Cannon
Converted by X42.0
Credits for model, textures and sounds goes to whoever created them!
====================================================================

Features:
-Quality model
-Quality textures including Normalmaps & Glowmaps
-Sound Effects
-Correct Hand placement
-Custom projectile w/ texture (my creations, basically a red ball of doooooom lol)
-Weaponinfo
-Matching Icon (Colorless; my first try at making an Icon, and I'm quite happy with it!)


=================================
INSTALLING THE GUN AND PROJECTILE
=================================

Note: I am assuming for the most part that the reader does not know how to install mods for GTAIV, so I try to explain each step very thoroughly to avoid any confusion!



	Download OpenIV (google it) if you don't have it
	Run OpenIV, go to models>cdimages at the left, and double click on weapons.img at the right
	Click on Edit Mode near the top, or else you can't change anything
	Navigate to the folder my mod is in, and drag rpg.wdr and rpg.wtd into the OpenIV window
	Repeat the last step for cj_rpg_rocket.wdr and cj_rpg_rocket.wtd
	

You now have the gun model and textures installed, but you aren't done yet!


=====
SOUND (I highly recommend you install all the sounds for the full effect)
=====

	-Download GTA-IVaud and run it
	-Follow the SparkIV steps above to get to RESIDENT\WEAPONS.ivaud and EXPORT it (keep this window open for later)
	-Open the exported WEAPONS.ivaud in GTA-IVaud
		-Find and click once on ROCKET_GRENADE_FIRE_ECHO.wav and click Edit>Import
		-Find ROCKET_GRENADE_FIRE_ECHO.wav in the \Fusion Cannon\SOUND folder.
	-Repeat the last two steps, but for each of the .WAVs in the \Fusion Cannon\SOUND folder. 
(Example: Click on ROCKET_GRENADE_FIRE_L.wav, click import, and import ROCKET_GRENADE_FIRE_L.wav from my mod)
	-Save
	-NOW you have to Import the recently saved WEAPONS.ivaud in SparkIV, and remember to SAVE after!


==========
WEAPONINFO (There are 2 weaponinfos below, RLAUNCHER and ROCKET. Don't forget to replace them both for best results)
==========

Go to Common\Data\ and find Weaponinfo.xml, make a copy of it for backup, right click on it and hit properties, untick "Read Only", and hit OK. Open it in the text editor of your choice (Notepad++ ftw).

Scroll down until you find <weapon type="RLAUNCHER">. 
Replace all the lines from <weapon type="RLAUNCHER"> to </weapon> with the following:



	<weapon type="RLAUNCHER">
		<data slot="HEAVY" firetype="PROJECTILE" damagetype="EXPLOSIVE" group="ROCKET" targetrange="50.0" weaponrange="100.0" clipsize="1" ammomax="42" timebetweenshots="800">
			<damage networkplayermod="2.0" networkpedmod="1.0"/>
			<reload time="1566" fasttime="2066" crouchtime="2066"/>

			<aiming accuracy="1.0">
				<offset         x="0.15" y="1.0" z="0.53"/>
				<crouchedoffset x="0.12" y="1.0" z="0.05"/>
				<reticule standing="1.0" ducked="1.0" scale="0.0"/>
			</aiming>

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

			<controller>
				<rumble duration="200" intensity="0.4"/>
			</controller>

			<flags>
				<flag>GUN</flag>
				<flag>CAN_FREE_AIM</flag>
				<flag>ANIM_RELOAD</flag>
				<flag>ANIM_CROUCH_FIRE</flag>
				<flag>CREATE_VISIBLE_ORDNANCE</flag>
				<flag>2HANDED</flag>
				<flag>KEEP_CAMERA_BEHIND</flag>
			</flags>

			<projectile>
				<typetocreate type="ROCKET"/>
				<offset    x="0.54" y="-0.041" z="0.021"/>
				<rotoffset x="0.0"  y="0.0" z="-1.571"/>
			</projectile>
		</data>

		<assets model="rpg">
			<anim group="gun@rifle"/>
		</assets>
	</weapon>


Now find <weapon type="ROCKET"> and replace it with:

	<weapon type="ROCKET">
		<data slot="THROWN" firetype="PROJECTILE" damagetype="EXPLOSIVE" group="ROCKET" targetrange="35.0" clipsize="1" stattype="RLAUNCHER">
			<damage fps="10" networkplayermod="2.0" networkpedmod="1.0"/>

			<aiming accuracy="0.001">
				<offset         x="0.0" y="0.4" z="0.1"/>
				<crouchedoffset x="0.0" y="1.0" z="0.0"/>
				<reticule standing="0.65" ducked="0.55" scale="0.3"/>
			</aiming>

			<pickup regentime="360000" ammoonstreet="8"/>

			<controller>
				<rumble duration="0" intensity="0.0"/>
			</controller>

			<flags>
				<flag>THROWN</flag>
				<flag>EXPLOSION_BASED_ON_IMPACT</flag>
				<flag>ADD_SMOKE_ON_EXPLOSION</flag>
			</flags>

			<projectile type="ROCKET">
				<explosion type="ROCKET"/>
				<physics force="40.0" explodeimpactthreshold="0.0" explodeimpactwithvehiclethreshold="0.0"/>
			</projectile>
		</data>

		<assets model="cj_rpg_rocket"/>
	</weapon>


And now, at last, you are ready to kick some ass!