Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (85,031 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

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

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

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

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

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

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. 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

    2. Red Dead Redemption

    3. 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. Forum Support

    2. Site Suggestions

resignator

[DOC] WeaponInfo.xml

Recommended Posts

aceship

So is My Knife Hit People But Not Knocks Them Down?

,Is There Any Thing To Bring The Projectile to Bullet Damage To ppl?

 

 

Share this post


Link to post
Share on other sites
Costar

ace- I'd say that your knife wont knock ppl down cuz it doesnt have sufficient "weight" "mass".. Jus like in reality, a brick is heavier than a knife.. So unless you can find a way to edit the knife's properties to act like a HEAVY object then ...

 

Share this post


Link to post
Share on other sites
lessthan3

It says projectile and bullet, shouldn't it be a physics object?

Share this post


Link to post
Share on other sites
aceship

So ,Can Be The Knive Acts Like A bullet?

It Cannot Only Push Ppl But Add some Damage Like Bullet

edit:

I found The mass and Weight In Object.dat ,i don't Know If it Right or not

I found this on the object.dat

 

; (A) Object Name    [256 chars max]

; (B) Mass    [kilograms 1 to 50000]

; © TurnMass    [kg m^3 or some such dimension]

; (D) Air Resistance    [scale 0 (total resistance) to 1 (zero resistance)]

; (E) Elasticity    [scale 0 (no bounce) to 1 (full bounce)]

; (F) Percent Submerged    [percentage 10 to 120]

; (G) Uproot Limit    [force magnitude required to uproot]

; (H) Collision Damage Multiplier  [0.1 - 5.0 ish]

;

; (I) Collision Damage Effect 

;  0:none

;  1:change_model

;  20:smash_completely

;  21:change_then_smash

;  200:breakable

;  202:breakable then removed (ie. never regenerated after destroyed)

;

; (J) Special Collision Response Cases 

;  0:none(default)

;  1:lampost

;  2:smallbox

;  3:bigbox

;  4:fencepart

;  5:grenade

;  6:SWINGDOOR

;  7:LOCKDOOR

;  8:HANGING

;    9:OB_COL_POOLBALL

;         

; (K) Camera to avoid this object (0) for no (1) for yes

;

; (L) Causes Explosion    - if this is no zero then an effect must be specified which is played when this object explodes

 

 

 

Edited by aceship

Share this post


Link to post
Share on other sites
Costar

Well heck, edit it to do so & see if it does ace ..

 

I jus tried puttin a cop in the gun, lol he fires out of it too BUT you can't see him, you jus see his blood spatter on somethin, you can see that his body impacts ppl or objects but jus cant see his body yet ...

Share this post


Link to post
Share on other sites
aceship

It likely You To much add physic force in the projectile or weapon range on the weapon

,This can Add some Strengh To the Projectile To push

,But it seems Your Projectile Are Too Fast That Can Push Someone Into The Space

 

I Already Tried To Change The object .dat But it Seems Nothing Chance After All

If Anyone Tried That And Got A success Please tell "We" how to do it

Share this post


Link to post
Share on other sites
lessthan3

I found a value for GunshotFired in the ShockingEvents.dat file, now I just need help finding where exactly this is mentioned in the weapon files, so I can change it for each separate weapon.

The xml file doesn't mention that.

 

Theoretically I would then just be able to switch the gunshot to something that isn't a gunshot and isn't threatening unless watched, such as SeenMeleeAction and that would effectively make the weapon suppressed.

Anyone know where I might want to look for that one?

Share this post


Link to post
Share on other sites
Costar

lessthan - There are some behaviors you can see in pedpersonality, arent so much worded like that but generally it lists what individual peds/cops do, like "murderattack" so they see a murder they attack you or whoever did it. "murdercallpolice", "watchfight" etc ..

 

I was thinkin of a way to alter the values in shockingevents so that w/ each event you can decide what ppl react to or dont or how they react.. The fuzzy thing is, alotta the things in the file pretty much anyone can react to by running away like gunshot, helioverhead, seencarstolen, gunfight, explosion, I mean all of those I've seen peds run away..

 

Some (as defined in ped personality I guess) will do something different, ram into you or your car w/ theirs, fight you, shoot you etc .. I can say this, I did manage a few weeks ago to get the cops to kinda runaway so they dont chase or shoot me but I've edited quite abita stuff I'm not 100% on ATM.

 

I wish they woulda put more details in SHevents, cuz I can only speculate what H W G A F stands for.. I wonder if for now the "watch times" can be set high to generally make ppl stand and watch, then again, I wondered if that leaves random ppl cuz the others in the pedpersonality will run away regardless. hmm..

Share this post


Link to post
Share on other sites
The_Serion

I have to say Guys, I think Im going to become a permanent resident here, you guys are very helpful and friendly.

Thanks for posting the whole rocket pistol code, with this, I shall add it to my MP5 and the cops wont be able to touch me.

Bwahhahahah. Until that is, they start shooting confused.gif

 

Reason I wanted it for the deagle, is because cops don't use deagles tounge.gif

Thanks so much guys, Hours of fun with this new code. I'm sure you'll see me posting in other areas around the forum aswell.

Share this post


Link to post
Share on other sites
JostVice

Hey there, I though it would be a good idea to start cleaning info around here, so I made a page about this file on the wiki:

 

Weaponinfo.xml on gtamodding.com You can log in with your GTANet account and edit the page as you want.

Share this post


Link to post
Share on other sites
Costar

ace- I dint realize, I thought you found somethin diff.. I only found I think "knifecur" in object.dat but that dint seem to affect it so unless someone knows where to find the weapon-knife properties..

 

As for the force, its not that, I'm simply not able to implement the "skin" for lacka better word..

I can alter certain values where the cop shoots out like a "bullet" fast/far or where the body just practically falls outta the gun, I can hear when I fire, the body plop on the ground beside me...

 

Otherwise I can shoot it into somethin, see blood spats & hear it fall or whaever and ofcoruse it then explodes.. You can also see people get knocked down, cars move etc when he is fired into them, I've just not figured out how to make the body visible yet ..

 

 

Serion, its cool havin you here, I really liked your MP5, its the funniest watchin ppl shoot off like rockets & such, lol Only thing I've seen is sometimes doesnt want to fire from inside the car..

Yea so why not put the rocket into the Deagle and keep your MP5 as it is ? THe code I posted was using the DEAGLE! Heck put a rocket into the AK47, thats where I had put Res's rocket w/ "ship_destroy" explosion, after someone suggested it. That explosion is HUGE, largest of all, but it does require abit more work to create that one. I then tried others like HI_OCTANE I think .. somewhat smaller explosions..

 

Jost - that loox really neat, well-organized!

Share this post


Link to post
Share on other sites
aceship

i got something,if you use sniper rifle and change the timebeetwenshot,it can be faster than uzi ,m4 ,mp5.

It Just some Tweaking When I killed by another enemies weapon that i tweaked, so i choose sniper and delete the first person flag,it just like m4 but faster and better.

Btw How to Use The Sniper While I'm Walking?

 

Edit:

Costar:sorry For making A trouble ,And What is action_table.xls for?

Edited by aceship

Share this post


Link to post
Share on other sites
lessthan3

Where is the information about accuracy? I saw the chouchoffset and those but they're really just for the crosshair, right?

Share this post


Link to post
Share on other sites
aceship

there are script now, so can anyone build the weapon spawner?

my computer gta4 crash when load it, so not for me i guess.

 

Share this post


Link to post
Share on other sites
Mcwaffle

How would you successfully edit the pistol to shoot rockets like in Opium_addicts videos on youtube? I always end up with some weird results. Can somebody write me the code?

Share this post


Link to post
Share on other sites
aceship

I made a nailgun That previously crashed,it use amb_nailgun and use small pistol animation

 

 

Share this post


Link to post
Share on other sites
Costar
How would you successfully edit the pistol to shoot rockets like in Opium_addicts videos on youtube? I always end up with some weird results. Can somebody write me the code?

McWaffle, check back to Resignators post, he posted the code for the pistol rocket, page (5) 6th post, down ... Be warned when you do this using the pistol, you know that any ped w/ the handgun or cop will have the same ability as you ... Your other option is to use the Deagle its the handgun in the Weapons Tier 1, its unique to you . I am not sure if later in the game during certain missions a drug dealer or someone might have it.. I've only been doin some modding not so much playing missions ..

 

ace- I havent lookt at action_table " wonders where Res is ", he's good w/ this stuff ..

Yea it seems like only certain things can be used as weapons, I'm not an expert tho .. I've tried diff tools/objects but they dont work, cept that dogon brick6, odd ..

 

I kinda gave up on the cop bullet, lol .. I had even tried spawning a car at one point and it spawned sorta "on top" of Niko, not so much it appeared on top of his body as if he lay under it but more like it became his head, lol .. All you could see was the dash of the car and the gun appeared inside it. O well ..

 

 

 

 

Share this post


Link to post
Share on other sites
resignator
How would you successfully edit the pistol to shoot rockets like in Opium_addicts videos on youtube? I always end up with some weird results. Can somebody write me the code?

McWaffle, check back to Resignators post, he posted the code for the pistol rocket, page (5) 6th post, down ... Be warned when you do this using the pistol, you know that any ped w/ the handgun or cop will have the same ability as you ... Your other option is to use the Deagle its the handgun in the Weapons Tier 1, its unique to you . I am not sure if later in the game during certain missions a drug dealer or someone might have it.. I've only been doin some modding not so much playing missions ..

 

ace- I havent lookt at action_table " wonders where Res is ", he's good w/ this stuff ..

Yea it seems like only certain things can be used as weapons, I'm not an expert tho .. I've tried diff tools/objects but they dont work, cept that dogon brick6, odd ..

 

I kinda gave up on the cop bullet, lol .. I had even tried spawning a car at one point and it spawned sorta "on top" of Niko, not so much it appeared on top of his body as if he lay under it but more like it became his head, lol .. All you could see was the dash of the car and the gun appeared inside it. O well ..

Ace...action_table.csv looks like it contains hit reaction animations for Niko and the AI. You can use it to do things like make the AI react like they are getting cut by a knife when Niko is kicking them.

 

Costar...I remember you talking about your cop bullet. I dont have time to check atm but my big guess is you have added impact data to the weapon and not the cop model to the projectile. If that isnt the case, then I bet projectiles and thrown weapons have to have an entry in another file somewhere to define their flight characteristics and such. Perhaps, objects.dat holds the key. You could add your cop model there and define it to test.

 

Hope this helps...

Share this post


Link to post
Share on other sites
aceship

so we can use it to make projectile To Hit People Like Being Cut?!

It will Be Perfect For My KnifeUzi!

Share this post


Link to post
Share on other sites
resignator
so we can use it to make projectile To Hit People Like Being Cut?!

It will Be Perfect For My KnifeUzi!

I didnt see any projectiles such as bullets being defined in there. If they were you would be able to make people act like they are being hit by a knife when they are shot. It has nothing to do with making the bullet model a knife one if that is what you are getting at....it only alters the reaction.

 

That file looks like it also contains attack move data. So you could change Niko's normal punch to a kick, etc.

Share this post


Link to post
Share on other sites
aceship

I didn't Say About Changing Model ,All i Say is To Change The Reaction Of People To Not Ducking And Rolling Because projectile Are Force Them To Do That

,But Reacting Like hitted By bullet

Is That Can Be Done?

 

Edit: I already Make that , so only The reaction Is Not Done

Share this post


Link to post
Share on other sites
resignator

 

I didn't Say About Changing Model ,All i Say is To Change The Reaction Of People To Not Ducking And Rolling Because projectile Are Force Them To Do That

,But Reacting Like hitted By bullet

Is That Can Be Done? 

 

Edit: I already Make that , so only The reaction Is Not Done

Didnt see any projectile impact reaction types in there. Also, after looking at it for the third time I think it only contains Niko's reactions, moves, attacks, etc. There is no ped data in there at all. Will check it again later when I am not so tired tounge.gif

Share this post


Link to post
Share on other sites
aceship

What is CrackHead Anyway?

And How To change all Car into A taxi(All Car Can Be A Taxi Like)

Edited by aceship

Share this post


Link to post
Share on other sites
resignator
What is CrackHead Anyway?

And How To change all Car into A taxi(All Car Can Be A Taxi Like)

Crackhead just means I post here very often.

 

Making all cars able to taxi wont be easy. First, you are going to have to figure out how to get the taxi dash in every car or at least provide a way to select different waypoints.

Share this post


Link to post
Share on other sites
Stone-D

As this thread is about weapons editing primarily, I'd just like to point out my thread on playing with fire. I've successfully created incendiary bullets - any bullet can be made incendiary, but it gets ridiculous so the sample I posted only alters the deagle. Its admittedly more fun doing drivebys with the MP5, though...

 

Download and extract to your base GTAIV directory (where the exe is).

 

In case of problems, there is only one file : bloodfx.dat

 

This file goes in \Grand Theft Auto IV\common\data\effects

 

Incendiary Bullets

Share this post


Link to post
Share on other sites
Costar

Ace...action_table.csv looks like it contains hit reaction animations for Niko and the AI. You can use it to do things like make the AI react like they are getting cut by a knife when Niko is kicking them.

 

Costar...I remember you talking about your cop bullet. I dont have time to check atm but my big guess is you have added impact data to the weapon and not the cop model to the projectile. If that isnt the case, then I bet projectiles and thrown weapons have to have an entry in another file somewhere to define their flight characteristics and such. Perhaps, objects.dat holds the key. You could add your cop model there and define it to test.

 

Hope this helps...

 

 

I had put the cop model in the projectile section I think it was &/ or at the asset section .. It still dint make the body appear, I can't be sure how reliable it was as I kept changing things so much to get the body to appear and I was having lockups so.. I think in that one version it was proly reliable where you could jus see the blood splats and ppl get knocked down, cars move upon impact etc..

 

Thats still kinda bad cuz as you can imagine, it'd be like throwing invisible grenades around, not sure exactly where they're at .. I even tried "create_ordnance" anything to get the body to be visible but no luck .. I wish we could more easily use objects as projectiles, make laser weapons just cool things. Frankly I wish we could destroy more of the environment, they atleast added better damage to vehicles/glass and even damage/cracks to impacted objects but still lacking..

 

 

 

Stone D, the human torch lol I'm guessin that is only temporary according to a "weapon" you have selected, otherwise I spose gettin in a car would pose a definite health hazard, as would an attempt to be intimate w/ your date LOL .. It all sounds pretty cool, so I'm guessin you basically made them using properties of molotovs ?! The weapon in the vid is the same as SWAT has tho isnt it ? I'll have to try the bullets when I have time.

Share this post


Link to post
Share on other sites
averybign00bert

omg thank you so much for that unaltered link... it sure saved me biggrin.gif

Share this post


Link to post
Share on other sites
resignator
omg thank you so much for that unaltered link... it sure saved me biggrin.gif

Some people never learn tounge.gif Kidding of course, glad I could help.

Share this post


Link to post
Share on other sites
Costar

It seemt to me you'd have had to do more than this but I switched out the bloodfx Stone but the result produced was that of frags of "paper", no "flame bullets" ..

Share this post


Link to post
Share on other sites
aceship

My Best ten Original Weapon With Spawner.

Link

 

Copy Weaponinfo to Common/Data Folder

And Copy Weapon Spawner To Alice Folder

 

Edit: Must!

Add This

()
On
if (IsKeyPressed(96) == 1) then

        ExSkeletonBaseballBat

        Wait(2000)

    end

On
ExSkeletonBaseballBat
Add It After ExSkeletonBaseballBat Edited by aceship

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

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