Hello Community,
I'm trying to make a Explosive Shotgun for Gta IV.
The only problem is that the Projectile which is shooten only flies 10 Meters and is then affected extremly by gravity which means that the Explosive round doesnt want to fly further than max. 20 Meters.

Here is the Code for the Explosive Shotgun and its Projectile it should fly way further than just 20Meters
| CODE |
<weapon type="EPISODIC_8"> <data slot="SHOTGUN" firetype="PROJECTILE" damagetype="EXPLOSIVE" group="SHOTGUN" targetrange="1500.0" weaponrange="1500.0" clipsize="20" ammomax="9999" timebetweenshots="133"> <damage base="30" networkplayermod="2.5" networkpedmod="1.25"/> <reload time="2066" fasttime="1166" crouchtime="2066"/>
<aiming accuracy="0.06"> <offset x="0.16" y="1.0" z="0.44"/> <crouchedoffset x="0.16" y="1.0" z="0.0"/> <reticule standing="1.0" ducked="1.0" scale="0.0"/> </aiming>
<pickup regentime="6000" ammoonstreet="80"/>
<controller> <rumble duration="90" intensity="0.1"/> </controller>
<flags> <flag>GUN</flag> <flag>CAN_AIM</flag> <flag>2HANDED</flag> <flag>ANIM_RELOAD</flag> <flag>CAN_FREE_AIM</flag> <flag>ANIM_CROUCH_FIRE</flag> </flags>
<projectile> <typetocreate type="EPISODIC_18"/> <offset x="0.5" y="0.0" z="0.5"/> <rotoffset x="0.0" y="0.0" z="-1.5"/> <physics force="200"/> </projectile> </data>
<assets model="w_aa12"> <anim group="gun@baretta"/> <effects> <muzzle fx="muz_shotgun"/> <shell fx="weap_ejected_shotgun"/> </effects> </assets> </weapon>
<weapon type="EPISODIC_18"> <data slot="THROWN" firetype="PROJECTILE" damagetype="EXPLOSIVE" targetrange="10000.0" clipsize="1"> <damage base="30" networkplayermod="2.0" networkpedmod="1.0"/> <physics force="20"/>
<aiming accuracy="0.0"> <offset x="0.0" y="1.0" z="0.0"/> <crouchedoffset x="0.0" y="1.0" z="0.0"/> <reticule standing="0.65" ducked="0.55" scale="0.1"/> </aiming>
<pickup regentime="0" ammoonstreet="8"/>
<controller> <rumble duration="0" intensity="0.0"/> </controller>
<flags> <flag>EXPLOSION_BASED_ON_IMPACT</flag> </flags>
<projectile type="IMPACT"> <explosion type="EPISODIC_3"/> <physics force="3000" vehiclevelocity="7000" explodeimpactthreshold="0.2" explodeimpactwithvehiclethreshold="0.2"/> </projectile> </data>
<assets model="w_grenade"> </assets> </weapon> |
Also you need to add this to you explosinFx.dat
| CODE |
| EPISODIC_3 100.0 50.0 2.0 1.0 1.5 50.0 -1.0 11.0 0.0005 0.0 0.0 exp_fireball exp_fireball_air 0.5 0 0 0.0 0.0 0.015 EPISODIC_8 0 1.0 0.75 0.2 60.0 3.5 0.15 0 |
I hope you guys can help me so that the Projectile flies faster and further and sry for my bad english
This post has been edited by Noken on Tuesday, Aug 7 2012, 14:51