Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (84,703 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

aStiffSausage

[SA] Weapon.dat

Recommended Posts

aStiffSausage

So I did a little search at Tutorials-section, and didn't find any tutorial for San Andreas for file weapon.dat.

 

So let's begin, shall we?

 

 

A: Identifier

Used to easily identify weapon, can be present multiple times for some weapons as they require multiple entries because of weapon skill levels.

 

B: Fire Type

Defines if the weapon will have regular/instant hit bullets or sniper bullets, or if they are projectiles or area-effect weapons, for example grenade is projectile and flamethrower has area-effect.

 

C: Target Range

Range in meters where you can lock-on when aiming or where you will see the health of pedestarian. Higher values will result longer lock-on range.

 

D: Range

Range in meters how far bullets hit. Higher values will result longer-travelling bullets.

 

E: Weapon ID

General ID of weapon, used to find matching data from other files.

 

F: Secondary Weapon ID

ID for secondary weapon used by primary weapon. Great example is Satchel Charge, where the bomb is primary weapon and detonator is secondary.

 

G: Weapon Group

Weapon group of weapon. On regular San Andreas, 0 is for fists/brass knuckles, 1 for melee and so on. There are total of 13 different groups to be used, from 0 to 12.

 

H: Magazine

Size of magazine.

 

I: Weapon Damage

Damage which weapon does on hit. Also increases recoil. Does not affect projectiles.

 

J, K, L: FLOAT_FIRE_SET [x,y,z]

Unknown, probably used to calculate position of muzzle flash when there isn't one supplied with model of the weapon.

 

M: Skill Level

Defines skill level of current configuration-line. 0 is for poor skill level, 1 for gangster and 2 for hitman.

 

O: Skill Needed

Amount of skill needed to acquire next skill level. Usually varies between 0 and 1000.

 

P: Accuracy

Defines accuracy of weapon, really high values can make weapon fully accurate even at full automatic fire.

 

Q: Movement Speed

Movement speed while aiming/firing weapon. 1.0 is for regular walk-speed, and lower values will make player walk slower.

 

R: Animation Loop [standing] [beginning, End, Firing]

Used to calculate correct animations while firing and also affects rate of fire. For fast rate of fire, low values should be used. NOTE: Usually "End"-value should be higher than "Beginning" or "Firing", otherwise bugs may occur. And too low values will make shooting a weapon impossible.

 

S: Animation Loop [Crouching] [beginning, End, Firing]

Same as "Section R", but used when crouching with the weapon.

 

T: BreakOutTime

Unknown.

 

U: HEX-Flags

Used to define special characters of weapon. HEX-flags are written in reverse, so first HEX-flag is actually the last number. To use multiple HEX-flags, you only need to know values of each HEX-flag you want to add (written in weapon.dat) and then add them together. If the values is higher than 9, then alphabetics are used. 10 equals A, 11 for B and so on.

 

 

 

 

Suggestions, improvements, comments? All welcome! smile.gif

Edited by oksa8

Share this post


Link to post
Share on other sites
johnny404

Slight bump but the breakout time is the time it takes for CJ to aim down the weapon and then start to walk/run (M4, Shotgun, spas, deagle, etc.) if you set it to 0 you can start to sprint straight after shooting without having to wait for any cool down

 

EDIT: say you wanted to edit the deagle so that you could run while shooting it, the flag you need to change is the last one. for the deagle it would be 7001, 7011, the second to last 1 means that it is set to gangster level, and then 7031, the 3, means that it is set to to hitman level, the 7 means that you can not run while shooting with this weapon

 

uzis and pistols have these flags "3013" the number 3 will let you run and shoot, the 1 means that it is set to noob level, if you change it to 3 then that becomes gangster/hitman, and if you replace the 0 with an 8 it will make it so you dual wield the weapon

Edited by Jony.

Share this post


Link to post
Share on other sites
Hussein Sanabsi

Did you can make any shotgun or ak47 or m4 shoot a tear gas ? (Tear gas bullet )!!

Share this post


Link to post
Share on other sites
Jeansowaty

Where can I define the fire rate?

Share this post


Link to post
Share on other sites
pogo_01

I think it's hardcoded. I can't define the fire rate,too. :(

Share this post


Link to post
Share on other sites
Jeansowaty

I think it's hardcoded. I can't define the fire rate,too. :(

I'm using a mod by Ss4gogeta0 which is the Additional Weapon Spawn v2 (I know I use an outdated version lol) and I would like to edit the fire rate of some guns. They fire like rifles and not like Assaults :/

Share this post


Link to post
Share on other sites
Hussein Sanabsi

Who can make tear gas bullets mod ???????

How I can make tear gas bullets mod ??????

Share this post


Link to post
Share on other sites
Pounc3r

Where can I define the fire rate?

the 2nd and the 5th number of section R.the lesser,the faster and less acurrate.(P.S. do you know how to improve accuracy (in another method)?if u do please tell me i'm trying to fix my micro_uzi it is kicking like a mule)

 

 

If you really don't know gimme your weapon.dat and i'll edit for you

Who can make tear gas bullets mod ???????

How I can make tear gas bullets mod ??????

you need a cleo mod for that,not an edit in weapons.dat

Edited by Leonnex Frost

Share this post


Link to post
Share on other sites
TJGM

Don't bump a topic just so you can reply to old posts.

 

Locked with OP's permission.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×

Important Information

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