Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

resignator

[DOC] WeaponInfo.xml

Recommended Posts

aceship

My Post Has Been edited, Forgot It

Too Much Problem, Not Bug Thought

Share this post


Link to post
Share on other sites
Marcel051182

error Message "Unknown Native Get_Player_id

Edited by Marcel051182

Share this post


Link to post
Share on other sites
aceship

Maybe You Are Too Much Editing A Script, To Help This

Make A new Lua File, Copy Your Lua To The New Lua , Set nAme , Delete The Old One, And Done,Thats My Script Works

Share this post


Link to post
Share on other sites
Marcel051182

thx its working

Share this post


Link to post
Share on other sites
Costar

ace- What is this "Alice" folder, I dont have a folder named "Alice" in my games directory.. Are you referring to the "Script" folder ?

 

 

 

The following is what I used for the AK47, ofcourse it still fires the same rapid-succession but w/ rockets and I used the HI_OCTANE for explosion type.

 

This is a snap of what the explosion loox like, since vid editor dont display such things.. I simply altered some values in explosionFx.dat

 

http://img84.imageshack.us/img84/521/ak47explosub9.jpg

 

The line in explosionFx.dat

 

HI_OCTANE 500.0 400.0 2.0 1.0 20.0 100.0 -2.0 90.0 0.0080 0.0 0.0 exp_fireball exp_fireball_air 1.0 0 0 0.0 0.0 0.5 EXPLOSION 0 0.8 0.1 4.1 450.0 24.0 1.5 2

 

 

 

_______________________________________________________________

 

I highlight in red what I altered in Weaponinfo.xml

 

 

<weapon type="AK47">

<data slot="RIFLE" firetype="PROJECTILE" damagetype="EXPLOSIVE" group="ROCKET" targetrange="900.0" weaponrange="600.0" clipsize="750" ammomax="1600" timebetweenshots="133">

<damage base="30" networkplayermod="2.0" networkpedmod="1.0"/>

<physics force="75.0"/>

<reload time="1066" fasttime="1066" crouchtime="2066"/>

 

<aiming accuracy="0.5">

<offset x="0.16" y="1.0" z="0.55"/>

<crouchedoffset x="0.1" y="1.0" z="0.12"/>

<reticule standing="0.6" ducked="0.5" scale="0.3"/>

</aiming>

 

<pickup regentime="480000" 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>

 

<projectile>

<typetocreate type="EPISODIC_2"/>

<offset x="180.54" y="0.0" z="0.055"/>

<rotoffset x="0.0" y="0.0" z="-1.571"/>

</projectile>

</data>

 

<assets model="w_ak47">

<anim group="[email protected]">

<rates firerate="1.2" blindfirerate="1.2"/>

</anim>

 

<effects>

<muzzle fx="muz_machine"/>

<shell fx="weap_ejected_rifle"/>

</effects>

</assets>

</weapon>

 

 

Now for the "EPISODIC_2" part, I originally entered this at the end of the "Weaponinfo.xml" file doesnt matter where really so long as the format remains consistent that weapons begin and end <weapon type="name"> ..... </weapon> It may be more convenient to enter these near the weapon they belong to..

 

 

<weapon type="EPISODIC_2">

<data slot="THROWN" firetype="PROJECTILE" damagetype="EXPLOSIVE" group="ROCKET" targetrange="900.0" weaponrange="500.0" clipsize="750" stattype="RLAUNCHER">

<damage networkplayermod="1.0" networkpedmod="1.0"/>

 

<aiming accuracy="1.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.3"/>

</aiming>

 

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

 

<controller>

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

</controller>

 

<flags>

<flag>THROWN</flag>

</flags>

 

<projectile type="ROCKET">

<explosion type="HI_OCTANE"/>

<physics force="300.0"/>

</projectile>

</data>

 

<assets model="cj_rpg_rocket">

<effects>

<trail fx="weap_rocket_player"/>

</effects>

</assets>

</weapon>

 

 

Edited by Costar

Share this post


Link to post
Share on other sites
aceship

See the first alice forum,And Download that, i heard alex is updatimg the alice, i don't know when finished, but i think its great

 

i think you edited the color of your explosion

Edited by aceship

Share this post


Link to post
Share on other sites
Costar

O ok, I had read something about "Alice" elsewhere but dint know what it was .. I'll have to check that out then ..

 

Yea, I edited the colors, Res had his "SHIP_DESTROY" have a green flash .. so I jus edited color a lil I've not playt much w/ them but its jus diff to look at. I dont understand why those colors dont show up in your video when you capture ... Thats why I did a pic it loox cooler having the color flashes..

 

Say, I wondered if you knew or anyone, is there a place we can access our vids on our pc ? I've only captured a few things but dont want to upload to SClub, others load to YT so I wondered how they did it ? If is a place on your pc where the vids are stored and you can extract/alter upload elsewhere stead of to SClub..

 

 

Share this post


Link to post
Share on other sites
aceship

You Can Do it but, it will be harder than register in youtube and login and upload the video

Share this post


Link to post
Share on other sites
resignator
O ok, I had read something about "Alice" elsewhere but dint know what it was .. I'll have to check that out then ..

 

Yea, I edited the colors, Res had his "SHIP_DESTROY" have a green flash .. so I jus edited color a lil I've not playt much w/ them but its jus diff to look at. I dont understand why those colors dont show up in your video when you capture ... Thats why I did a pic it loox cooler having the color flashes..

 

Say, I wondered if you knew or anyone, is there a place we can access our vids on our pc ? I've only captured a few things but dont want to upload to SClub, others load to YT so I wondered how they did it ? If is a place on your pc where the vids are stored and you can extract/alter upload elsewhere stead of to SClub..

You can find all your rendered videos under "My Documents\Rockstar Games\GTA IV\Videos\rendered". All movies rendered in the editor will show up there in .wmv format.

Share this post


Link to post
Share on other sites
aceship

Where are the explosion forum?

i cant search the tutorial of the changing the color, i am only know i have seen it before

Share this post


Link to post
Share on other sites
Costar

Ty Res, I guess I dint "render" anything, tis empty.. but I do have them saved atleast, I thought thats all you needed to do but ...

 

ace- I read several pages of the "Alice" topic, its good it seems but I see even you had to get the patch!! I wanted to know, has it caused you any problems, when the patch came out ppl reported lotsa problems, potentially those us thats modded their game files .. I was hoping to NOT have to revert all files back to original and not be able to edit them anymore after the patch ?

If thats the case I'd proly soon do w/ out the patch, until I felt that the new scripting idea held enough reason for me to get it .. Invincibility is cool but heck gettin axed is sometimes cool footage..

 

I dont really have to worry about ppl shootin me cept in missions which I've never died much in missions, I dont have to worry about cops so .. I had some footage from that and I got really messt up las night, I was caught inside an "invisible box" at one of the cops barracades, a place where being able to "die" was necessary aside from reloading my game, so I wonder if Alex has or will institute a provision incase you play a mission, finish then get "stuck" and need to die or you lose all your previous progress from having to reload your game - in which he said the script dont load after reloading the game, only from start ..

Share this post


Link to post
Share on other sites
aceship

you should backup your modified then, after that, update, if your modified one gone,copy what you need to the gta 4 folder,or where it was originally

Share this post


Link to post
Share on other sites
Costar

Welp, I do keep backups of all my files, I'm careful when making changes to keep the originals and then modded files apart from other changes if I'm not sure I can revert ..

 

I think for now I'll hold off on the patch..

I decided to revise my viddy of "neutralized" cops..

 

http://www.youtube.com/watch?v=SJln0w14EE4

Edited by Costar

Share this post


Link to post
Share on other sites
topeira

hey guys

 

do u have any idea how to make all the bullets fired from fire arms into having tracers?

 

it seems like only about 30% of the bullets have tracers. i would like to make the tracers more common. the purpose to to have a better indication of where the bullets are flying. i like seeing a lot of whizzes and trails of bullets.

 

sometimes it seems like bullets have tracers, sometimes they leave a trail of smoke behind and sometimes nothing.

how can i control that?

 

any ideas?

Share this post


Link to post
Share on other sites
Costar

Hi topeira, I havent tried but as I recall seeing the "trail.." effects for the rocket, I was thinkin maybe it'd be possible to use it as an effect.. I havent lookt for "tracers" for bullets so I don know if there is a setting for adjusting these,

Edited by Costar

Share this post


Link to post
Share on other sites
Kendeura
I don't usually register to forums, Im more of a Lurker, but this thread caught my eye.

I want to make the deagle (Or any gun infact) Shoot some Rockets, Is this possible by just editing the WeaponsInfo.xml?

Yes, it is very simple. Here you go:

 

 

	<weapon type="PISTOL"> <data slot="HANDGUN" firetype="PROJECTILE" damagetype="EXPLOSIVE" group="ROCKET" targetrange="45.0" weaponrange="50.0" clipsize="17" 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> 	<projectile>   <typetocreate type="ROCKET"/>   <offset    x="0.54" y="0.0" z="0.055"/>   <rotoffset x="0.0"  y="0.0" z="-1.571"/> 	</projectile> </data> <assets model="w_glock"> 	<anim group="[email protected]" meleegroup1="firearm_core"/> 	<effects>   <muzzle fx="muz_pistol_small"/>   <shell fx="weap_ejected_pistol"/> 	</effects> </assets></weapon>

 

 

Have fun smile.gif

I used this, and after doing this my GTA won't boot, why?

Share this post


Link to post
Share on other sites
MadsHilde

WOW, we really need a guide like the one i post #1 just for GTAIV Handling Editor instead. Great job.

Share this post


Link to post
Share on other sites
rebel_36

btw resignator, you should correct the aiming stuff, its not only for auto aim, plus the offsets are for how niko is holding the weapon

Share this post


Link to post
Share on other sites
aceship

need to ask:

How many <muzzle fx

and <shell fx

and <effects>?

Share this post


Link to post
Share on other sites
resignator
btw resignator, you should correct the aiming stuff, its not only for auto aim, plus the offsets are for how niko is holding the weapon

Thanks, I will update. I havent been able to browse here as often. I just bought a new house and have been busy renovating it smile.gif

Share this post


Link to post
Share on other sites
Brayzie

I didn't want to open a new topic for this question, so I'm gonna ask it here.

How do I make a weapon spawn in certain place?

Share this post


Link to post
Share on other sites
L0uNGeR

That's far from the current topic, you should open a new topic for that, I am also interested in that.

Share this post


Link to post
Share on other sites
jluk

i have a friend which had been able to modify SMG to fire rockets, well the point is that if he press left mouse 1 time it fires one shot BUT the projectile fired divides into about 10 rockets so he makes bigger blast with 1 shot never getting out of ammo.. amazing IMHO.. does anyone knows which part of the XML do i have to modify to get the projectile divided? many thanks smile.gif

Share this post


Link to post
Share on other sites
aceship

Maybe the projectile Clip

 

 

Share this post


Link to post
Share on other sites
nick007

how do u make mega punch?

Share this post


Link to post
Share on other sites
skaarlaw
i have a friend which had been able to modify SMG to fire rockets, well the point is that if he press left mouse 1 time it fires one shot BUT the projectile fired divides into about 10 rockets so he makes bigger blast with 1 shot never getting out of ammo.. amazing IMHO.. does anyone knows which part of the XML do i have to modify to get the projectile divided? many thanks smile.gif

most likely using two creations

 

i.e. creating a projectile, that shoots projectiles after a certain distance

Share this post


Link to post
Share on other sites
Anna&I

Do you think it will be possible to make exploding bullets ? ( the ammo will look like bullets , but will explode when hit target)

 

Share this post


Link to post
Share on other sites
Flamingnun

Anyone know how i can fix it so the chopper doesn't get randomly knocked off course when modded to fire rockets?

 

Currently using:

 

 

<weapon type="MINIGUN"> <data slot="HEAVY" firetype="PROJECTILE" damagetype="EXPLOSIVE" group="ROCKET" targetrange="10000.0" weaponrange="40000.0" clipsize="9999" timebetweenshots="36"> 	<damage base="1000" networkplayermod="2.0" networkpedmod="1.0"/> 	<physics force="50000.0"/> 	<reload time="3000" fasttime="3000" crouchtime="3000"/> 	<aiming accuracy="1.0">   <offset         x="0.0" y="1.0" z="0.0"/>   <crouchedoffset x="0.0" y="1.0" z="0.0"/> 	</aiming> 	<pickup regentime="0" ammoonstreet="500"/> 	<controller>   <rumble duration="60" intensity="0.3"/> 	</controller>                       <projectile>   <typetocreate type="ROCKET"/>   <offset    x="0.54" y="0.0" z="0.055"/>   <rotoffset x="0.0"  y="0.0" z="-1.571"/> 	</projectile> 	<flags>   <flag>GUN</flag>   <flag>CAN_FREE_AIM</flag>   <flag>HEAVY</flag> 	</flags> </data> <assets> 	<effects>   <muzzle fx="muz_machine"/> 	</effects> </assets></weapon>

 

 

 

Also tried it with Grenade's, which is awesome, although has a tendancy to randomly explode the chopper and kill you when firing sad.gif

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.