CLEO Help bullet gravity and velocity

CLEO related
Status
Not open for further replies.

xAmUser

Active member
Joined
Feb 23, 2018
Messages
55
Reaction score
2
how to find out the speed and gravity of a bullet on an assault rifle or pistol, and if there are none then what are the static values?
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,692
Reaction score
105
Weapon.dat. Pretty sure bullets just travel instantly and there is no gravity, yet you can still edit some properties about the bullets if you just read through the weapon struct.
 

xAmUser

Active member
Joined
Feb 23, 2018
Messages
55
Reaction score
2
Weapon.dat. Pretty sure bullets just travel instantly and there is no gravity, yet you can still edit some properties about the bullets if you just read through the weapon struct.

bullet properties can only be edited with a sniper rifle, but like an assault rifle or a pistol?
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,692
Reaction score
105
bullet properties can only be edited with a sniper rifle, but like an assault rifle or a pistol?
No you edit them for every weapon, you can look in the actual weapon.dat in your gta sa folder\data\weapon.dat for default values.
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,133
Solutions
5
Reaction score
885
Location
Lithuania
PHP:
weapon.dat
Start 0xC8AAB8
Size 0x70
Num 0x51

+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
 
Status
Not open for further replies.
Top