Weapon.dat is a data text file, it stores weapons, stats.
It can be opened and edited, with any text editor.
For melee weapons, the following exist:
In order
Value:
For all weapons, the following exist:
In order:
Value:
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
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