IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Post mod/code requests in the Mod Requests topic

Post mod releases in the Mod Showroom

Read the Modding Rules BEFORE posting!

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Explosive Rounds for GTA IV (NOT EFLC)

 Weaponsinfo.xml
 
Noken  
Posted: Tuesday, Aug 7 2012, 10:52
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Apr 29, 2012

gr.gif

XXXXX



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.
user posted image

Here is the Code for the Explosive Shotgun and its Projectile it should fly way further than just 20Meters suicidal.gif

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 blush.gif

This post has been edited by Noken on Tuesday, Aug 7 2012, 14:51
PM
  Top
 

 
Noken  
Posted: Tuesday, Aug 7 2012, 15:36
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Apr 29, 2012

gr.gif

XXXXX



Here is a Video which shows the problem: http://www.youtube.com/watch?feature=playe...&v=M-sA_i8XgIM#!
as you can see in the video the Explosive Rounds is affected by gravity and flies very slow
PM
  Top
 

 
Developer achievement  
Posted: Wednesday, Aug 8 2012, 06:24
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Aug 4, 2012

XXXXX



it will be great if someone have the source c/c++ off it for playing online becuse its god patched it will be great.
PMXbox Live
  Top
 

 
Noken  
Posted: Wednesday, Aug 8 2012, 08:46
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Apr 29, 2012

gr.gif

XXXXX



ok i found out that when you spawn the Projectile Episodic Weapon 18 and "Throw" it that it is not affected by Gravity effects and flies as fast as a Weapon's Bullet so it has something to do with the weapon itself (Episodic 8) which is the AA12 in my case barf8bd.gif
PM
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG