bullet gravity and velocity

Status
Not open for further replies.

xAmUser

Active Member
Joined
Feb 23, 2018
Messages
37
Likes
2
Points
23
5
#1
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

Well-Known Member
Joined
Aug 1, 2013
Messages
1,696
Likes
112
Points
208
Website
youtube.com
#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.
 
OP
OP
X

xAmUser

Active Member
Joined
Feb 23, 2018
Messages
37
Likes
2
Points
23
5
#3
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

Well-Known Member
Joined
Aug 1, 2013
Messages
1,696
Likes
112
Points
208
Website
youtube.com
#4
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.
 
OP
OP
X

xAmUser

Active Member
Joined
Feb 23, 2018
Messages
37
Likes
2
Points
23
5
#5
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.
what values do i need to change gravity or bullet speed?
 

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
2,282
Likes
472
Points
113
Location
Lithuania
Website
ugbase.eu
20
#7
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