GTA: Modification Area

A website for the GTA modding scene

Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Big-game starts raising Schneider's profile
Sun Mar 04, 2012 2:28 am by lavivi

» [Help] cleo created lighting
Thu Oct 14, 2010 1:03 am by findmy012

» Mission Question
Thu Oct 14, 2010 1:02 am by findmy012

» [IV] Spoiler Script
Thu Oct 14, 2010 1:02 am by findmy012

» Mission mod [help]
Sat Sep 18, 2010 5:50 pm by jayd00

» Bc7 Mod Help
Fri Aug 20, 2010 11:19 am by pengpeng

» Found a bug
Fri Dec 18, 2009 4:22 am by _CJ360_

» [IV] Novitec Rosso 599 GTB
Tue Nov 17, 2009 4:22 pm by Kotton

» Hello/Guidance Request
Mon Oct 12, 2009 6:45 am by Adler

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Affiliates
image

Image

Image

Image

Image

Image

Image

Image

Image

Image

image

Image

steve-m.com

Image


----- Русский -----

Если ваш сайт содержит большую коллекцию SCM/CLEO-скриптов (больше 16), напишите на мой e-mail, и я добавлю его в список. Приветствуются скрипты, которые не встречаются на других сайтах ... Спасибо. ))))


----- English -----

If your website has a big enough collection of SCM/CLEO scripts (more than 16) notify me by e-mail
, and I will add it to the list. The unique scripts are preferable ... Thank you. ))))

Log in

I forgot my password



December 2016
MonTueWedThuFriSatSun
   1234
567891011
12131415161718
19202122232425
262728293031 

Calendar Calendar


You are not connected. Please login or register

Weapon.dat File

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Weapon.dat File on Sun Feb 08, 2009 8:48 am

Weapon.dat is a data text file, it stores weapons, stats.
It can be opened and edited, with any text editor.


Editing


For melee weapons, the following exist:

Code:

A: = string weaponType
B: = string eFireType
C,D: = float targetRange, weaponRange
E,F: = int modelId1, modelId2
G,H: = int reloadSampleTime1, reloadSampleTime2
I: = int weaponslot
J: = string baseCombo
K: = int numCombos
L: = HEX flags
M: = steathanimgrp

In order

Code:

A               B       C     D   E    F     I       J        K         L         M


Value:

Code:

£ UNARMED      MELEE   10.0  1.6   -1   -1      0      UNARMED      4         1      null

For all weapons, the following exist:

Code:

A: = string weaponType
B: = string eFireType
C,D: = float targetRange, weaponRange
E,F: = int modelId1, modelId2
G,H: = int reloadSampleTime1, reloadSampleTime2
I: = int weaponslot
J: = string baseCombo
K: = int numCombos
L: = HEX flags
M,N,O:   float fireOffset x, y, z
P:      int skillLevel    0:POOR   1:STD   2:PRO
Q:      req stat level to get this weapon skill level
R, S:   float accuracy (0.5 - 2.0f), move speed (0.5 - 1.5)
T,U,V:   int animLoop start, end, fire
W,X,Y:   int  animLoop2 start, end, fire
Z:      int breakoutTime
a:      hex flags
b,c:   float speed, radius
d,e:   float lifespan, spread

In order:

Code:

A            B         C    D      E   F      I   J         K    L      M    N    O      P  Q   R   S       T  U  V      W  X  Y    Z        a   

Value:

Code:

$ DESERT_EAGLE      INSTANT_HIT   25.0 30.0   348   -1      2   pythonbad   7    70      0.41  0.03  0.12    0  0   0.75 1.0     7 36  8    6 30  7  40   7001


Weapon.dat Struct


Code:

Start 0xC8AAB8
Size 0x70
Num 0x51

Code:

+0x00 DWord eFireType
+0x04 Float targetRange
+0x08 Float weaponRange
+0x0C Long modelId1
+0x10 Long modelId2
+0x14 DWord weaponslot
+0x18 DWord flags
+0x1C DWord AssocGroupId
+0x20 Word ammoClip
+0x22 Word damage
+0x24 Float fireOffset x
+0x28 Float fireOffset y
+0x2C Float fireOffset z
+0x30 DWord skillLevel
+0x34 DWord req stat level to get this weapon skill level
+0x38 Float accuracy
+0x3C Float move speed
+0x40 Float animLoop start / 30.0
+0x44 Float animLoop end / 30.0
+0x48 Float animLoop fire / 30.0
+0x4C Float animLoop2 start / 30.0
+0x50 Float animLoop2 end / 30.0
+0x54 Float animLoop2 fire / 30.0
+0x58 Float breakoutTime
+0x5C Float speed
+0x60 Float radius
+0x64 Float lifespan
+0x68 Float spread
+0x6C Byte AssocGroupId
+0x6D Byte Unknown 0
+0x6E Byte baseCombo
+0x6F Byte Unknown 1

Index 0 - 46 : Weapon 0 - 46 : Gangsta
Index 47 - 57 : Weapon 22 - 32 : Poor
Index 58 - 68 : Weapon 22 - 32 : Hitman
Index 69 : Weapon 22 : Cop

View user profile http://gtamodding.com

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum