Difference between revisions of "Weapon"

From GTAMods Wiki
Jump to navigation Jump to search
(Lists of Weapons)
(San Andreas)
Line 223: Line 223:
 
[[San Andreas]] is the first GTA that lets you dual wield weapons. Information on weapons, melee combat, textures, and models are located in the same files as in Vice City.
 
[[San Andreas]] is the first GTA that lets you dual wield weapons. Information on weapons, melee combat, textures, and models are located in the same files as in Vice City.
  
{| class="mw-collapsible mw-collapsed sortable wikitable" style="width: 41em;"
+
{| class="collapsible sortable wikitable" style="width: 41em;"
 
! Name
 
! Name
 
! ID
 
! ID
Line 229: Line 229:
 
! Group
 
! Group
 
! Number
 
! Number
 +
! style="width: 64px" |Icon
 
|-
 
|-
 
| Unarmed
 
| Unarmed
Line 235: Line 236:
 
| 1
 
| 1
 
| 0
 
| 0
 +
| [[File:Sa fist.png]]
 
|-
 
|-
 
| Brass Knuckle
 
| Brass Knuckle
Line 241: Line 243:
 
| 1
 
| 1
 
| 1
 
| 1
 +
| [[File:Sa brassknukle.png]]
 
|-
 
|-
 
| Golf Club
 
| Golf Club
Line 247: Line 250:
 
| 2
 
| 2
 
| 2
 
| 2
 +
| [[File:Sa golfclub.png]]
 
|-
 
|-
 
| Night Stick
 
| Night Stick
Line 253: Line 257:
 
| 2
 
| 2
 
| 3
 
| 3
 +
| [[File:Sa nitestick.png]]
 
|-
 
|-
 
| Knife
 
| Knife
Line 259: Line 264:
 
| 2
 
| 2
 
| 4
 
| 4
 +
| [[File:Sa knifecur.png]]
 
|-
 
|-
 
| Baseball Bat
 
| Baseball Bat
Line 265: Line 271:
 
| 2
 
| 2
 
| 5
 
| 5
 +
| [[File:Sa bat.png]]
 
|-
 
|-
 
| Shovel
 
| Shovel
Line 271: Line 278:
 
| 2
 
| 2
 
| 6
 
| 6
 +
| [[File:Sa shovel.png]]
 
|-
 
|-
 
| Pool Cue
 
| Pool Cue
Line 277: Line 285:
 
| 2
 
| 2
 
| 7
 
| 7
 +
| [[File:Sa poolcue.png]]
 
|-
 
|-
 
| Katana
 
| Katana
Line 283: Line 292:
 
| 2
 
| 2
 
| 8
 
| 8
 +
| [[File:Sa katana.png]]
 
|-
 
|-
 
| Chainsaw
 
| Chainsaw
Line 289: Line 299:
 
| 2
 
| 2
 
| 9
 
| 9
 +
| [[File:Sa chnsaw.png]]
 
|-
 
|-
 
| Purple Dildo
 
| Purple Dildo
Line 295: Line 306:
 
| 11
 
| 11
 
| 10
 
| 10
 +
| [[File:Sa gun dildo1.png]]
 
|-
 
|-
 
| White Dildo
 
| White Dildo
Line 301: Line 313:
 
| 11
 
| 11
 
| 11
 
| 11
 +
| [[File:Sa gun dildo2.png]]
 
|-
 
|-
 
| Long White Vibrator
 
| Long White Vibrator
Line 307: Line 320:
 
| 11
 
| 11
 
| 12
 
| 12
 +
| [[File:Sa gun vibe1.png]]
 
|-
 
|-
 
| Short White Vibrator
 
| Short White Vibrator
Line 313: Line 327:
 
| 11
 
| 11
 
| 13
 
| 13
 +
| [[File:Sa gun vibe2.png]]
 
|-
 
|-
 
| Flowers
 
| Flowers
Line 319: Line 334:
 
| 11
 
| 11
 
| 14
 
| 14
 +
| [[File:Sa flowera.png]]
 
|-
 
|-
 
| Cane
 
| Cane
Line 325: Line 341:
 
| 11
 
| 11
 
| 15
 
| 15
 +
| [[File:Sa gun_cane.png]]
 
|-
 
|-
 
| Grenade
 
| Grenade
Line 331: Line 348:
 
| 9
 
| 9
 
| 16
 
| 16
 +
| [[File:Sa grenade.png]]
 
|-
 
|-
 
| Tear Gas
 
| Tear Gas
Line 337: Line 355:
 
| 9
 
| 9
 
| 17
 
| 17
 +
| [[File:Sa teargas.png]]
 
|-
 
|-
 
| Molotov Cocktail
 
| Molotov Cocktail
Line 343: Line 362:
 
| 9
 
| 9
 
| 18
 
| 18
 +
| [[File:Sa molotov.png]]
 
|-
 
|-
 
| Pistol
 
| Pistol
Line 349: Line 369:
 
| 3
 
| 3
 
| 22
 
| 22
 +
| [[File:Sa colt45.png]]
 
|-
 
|-
 
| Silenced Pistol
 
| Silenced Pistol
Line 355: Line 376:
 
| 3
 
| 3
 
| 23
 
| 23
 +
| [[File:Sa silenced.png]]
 
|-
 
|-
 
| Desert Eagle
 
| Desert Eagle
Line 361: Line 383:
 
| 3
 
| 3
 
| 24
 
| 24
 +
| [[File:Sa desert eagle.png]]
 
|-
 
|-
 
| Shotgun
 
| Shotgun
Line 367: Line 390:
 
| 4
 
| 4
 
| 25
 
| 25
 +
| [[File:Sa chromegun.png]]
 
|-
 
|-
 
| Sawnoff Shotgun
 
| Sawnoff Shotgun
Line 373: Line 397:
 
| 4
 
| 4
 
| 26
 
| 26
 +
| [[File:Sa sawnoff.png]]
 
|-
 
|-
 
| Combat Shotgun
 
| Combat Shotgun
Line 379: Line 404:
 
| 4
 
| 4
 
| 27
 
| 27
 +
| [[File:Sa shotgspa.png]]
 
|-
 
|-
 
| Micro SMG
 
| Micro SMG
Line 385: Line 411:
 
| 5
 
| 5
 
| 28
 
| 28
 +
| [[File:Sa micro uzi.png]]
 
|-
 
|-
 
| SMG
 
| SMG
Line 391: Line 418:
 
| 5
 
| 5
 
| 29
 
| 29
 +
| [[File:Sa mp5lng.png]]
 
|-
 
|-
 
| AK47
 
| AK47
Line 397: Line 425:
 
| 6
 
| 6
 
| 30
 
| 30
 +
| [[File:Sa ak47.png]]
 
|-
 
|-
 
| M4
 
| M4
Line 403: Line 432:
 
| 6
 
| 6
 
| 31
 
| 31
 +
| [[File:Sa m4.png]]
 
|-
 
|-
 
| Tec9
 
| Tec9
Line 409: Line 439:
 
| 5
 
| 5
 
| 32
 
| 32
 +
| [[File:Sa tec9.png]]
 
|-
 
|-
 
| Rifle
 
| Rifle
Line 415: Line 446:
 
| 7
 
| 7
 
| 33
 
| 33
 +
| [[File:Sa cuntgun.png]]
 
|-
 
|-
 
| Sniper Rifle
 
| Sniper Rifle
Line 421: Line 453:
 
| 7
 
| 7
 
| 34
 
| 34
 +
| [[File:Sa sniper.png]]
 
|-
 
|-
 
| Rocket Launcher
 
| Rocket Launcher
Line 427: Line 460:
 
| 8
 
| 8
 
| 35
 
| 35
 +
| [[File:Sa rocketla.png]]
 
|-
 
|-
 
| Heat Seeking Rocket Launcher
 
| Heat Seeking Rocket Launcher
Line 433: Line 467:
 
| 8
 
| 8
 
| 36
 
| 36
 +
| [[File:Sa heatseek.png]]
 
|-
 
|-
 
| Flame Thrower
 
| Flame Thrower
Line 439: Line 474:
 
| 8
 
| 8
 
| 37
 
| 37
 +
| [[File:Sa flame.png]]
 
|-
 
|-
 
| Minigun
 
| Minigun
Line 445: Line 481:
 
| 8
 
| 8
 
| 38
 
| 38
 +
| [[File:Sa minigun.png]]
 
|-
 
|-
 
| Satchel Charges
 
| Satchel Charges
Line 451: Line 488:
 
| 9
 
| 9
 
| 39
 
| 39
 +
| [[File:Sa satchel.png]]
 
|-
 
|-
 
| Detonator
 
| Detonator
Line 457: Line 495:
 
| 13
 
| 13
 
| 40
 
| 40
 +
| [[File:Sa bomb.png]]
 
|-
 
|-
 
| Spray Paint
 
| Spray Paint
Line 463: Line 502:
 
| 10
 
| 10
 
| 41
 
| 41
 +
| [[File:Sa spraycan.png]]
 
|-
 
|-
 
| Fire Extinguisher
 
| Fire Extinguisher
Line 469: Line 509:
 
| 10
 
| 10
 
| 42
 
| 42
 +
| [[File:Sa fire ex.png]]
 
|-
 
|-
 
| Camera
 
| Camera
Line 475: Line 516:
 
| 10
 
| 10
 
| 43
 
| 43
 +
| [[File:Sa camera.png]]
 
|-
 
|-
 
| Night-vision Goggles
 
| Night-vision Goggles
Line 481: Line 523:
 
| 12
 
| 12
 
| 44
 
| 44
 +
| [[File:Sa nvgoggles.png]]
 
|-
 
|-
 
| Thermal Goggles
 
| Thermal Goggles
Line 487: Line 530:
 
| 12
 
| 12
 
| 45
 
| 45
 +
| [[File:Sa irgoggles.png]]
 
|-
 
|-
 
| Parachute
 
| Parachute
Line 493: Line 537:
 
| 12
 
| 12
 
| 46
 
| 46
 +
| [[File:Sa gun paraIcon.png]]
 
|}
 
|}
  

Revision as of 15:02, 7 March 2015

This article contains information about weapons related to mission scripting. For the definition of weapons through IDE files see WEAP and for the placement using IPL see PICK.

A weapon is anything that can damage other objects, including vehicles and pedestrians. It is one of the core gameplay features of Grand Theft Auto.

Mission Script

The following opcodes is related to weapons. Some of the opcodes are specific to one game so click on the opcode to see more information about it, if it exists.

  • 0114, sets an actor's weapon ammo while in a vehicle
  • 017B, sets an actor's weapon ammo
  • 01B2, gives an actor a weapon
  • 01B9, sets an actor's currently armed weapon
  • 0237, sets a gang's weapons
  • 02D6, checks if a weapon is being fired in a location
  • 02D8, checks the current weapon an actor is holding
  • 02E2, sets an actor's weapon accuracy
  • 031D, checks if an actor is hit by a weapon
  • 031E, checks if a vehicle is hit by a weapon
  • 032B, creates a pickup with ammo info – usually used for weapons
  • 041A, gets the current amount of ammo for the weapon
  • 0467, resets 031D
  • 0468, resets 031E
  • 0470, gets an actor's current weapon
  • 048F, removes weapons from an actor
  • 0491, checks if an actor has the weapon
  • 04B8, gets the weapon's data from an actor
  • 0501, sets the player's ability to drive by
  • 0555, removes a specific weapon from an actor
  • 0563, sets the player's drive by ammo
  • 06AB, hides all weapons
  • 0713, makes an actor do drive bys
  • 081A, sets an actor's weapon skill
  • 087E, sets an actor to drop weapons after a death
  • 0881, sets an actor be able to shoot
  • 0946, sets an actor oblivious to weapon fire
  • 0992, sets the player's ability to scroll through weapons

Native functions

This section is incomplete. You can help by fixing and expanding it.

Lists of Weapons

GTA III

Unlike in Vice City and San Andreas, where each weapon has a separate mesh and texture, GTA3's weapons are stored in a single DFF and TXD file, namely weapons.dff and generic.txd; only the selected object from the model hierarchy, e.g. pistol or Uzi is visible when the player chooses a weapon. Most of the information on the weapons are located in the weapon.dat file.

Name ID Model Number Icon
Unarmed 0 Gta3 fist.png
Bat 172 #bat 1 Gta3 bat.png
Pistol 173 #pistol 2 Gta3 pistol.png
Uzi 178 #uzi 3 Gta3 uzi.png
Shotgun 176 #shotgun 4 Gta3 shotgun.png
AK47 171 #ak47 5 Gta3 ak47.png
M16 180 #m16 6 Gta3 m16.png
Sniper Rifle 177 #sniper 7 Gta3 sniper.png
Rocket Launcher 175 #rocket 8 Gta3 rocket.png
Flamethrower 181 #flame 9 Gta3 flame.png
Molotov Cocktail 174 #molotov 10 Gta3 molotov.png
Grenade 170 #grenade 11 Gta3 grenade.png
Detonator 12 Gta3 detonator.png

Vice City

Vice City is the first GTA that lets you replace a weapon of the same type. Most of the information on the weapons are located in the weapon.dat file. Information on melee combat is located in the melee.dat file. The textures and models of the weapons are located in the gta3.img file. The HUD icon of the first is located in the hud.txd file. All sound effects listed here are hardcoded and their values correspond to the SFX file.

Number Name ID DFF/TXD name Icon Group Swing[1] Hit[2] Reload[3] Fire[4] Halt fire[5]
0 Unarmed VC fist.png 0 81 167-170 - - -
1 Brass Knuckle 259 brassknuckle VC brassknuckle.png 0 81 174-175 - - -
2 Screw Driver 260 screwdriver VC screwdriver.png 1 171 172-173 - - -
3 Golf Club 261 golfclub VC golfclub.png 1 81 165-166 - - -
4 Night Stick 262 nitestick VC nitestick.png 1 81 165-166 - - -
5 Knife 263 knifecur VC knifecur.png 1 171 172-173 - - -
6 Baseball Bat 264 bat VC bat.png 1 81 165-166 - - -
7 Hammer 265 hammer VC hammer.png 1 81 174-175 - - -
8 Cleaver 266 cleaver VC cleaver.png 1 171 172-173 - - -
9 Machete 267 machete VC machete.png 1 171 172-173 - - -
10 Katana 268 katana VC katana.png 1 171 172-173 - - -
11 Chainsaw 269 chnsaw VC chnsaw.png 1 - - - - -
12 Grenade 270 grenade VC grenade.png 2 - - - - -
13 Remote Detonator 291 bomb VC grenade.pngVC bomb.png 2 - - - - -
14 Tear Gas 271 teargas VC teargas.png 2 - - - - -
15 Molotov 272 molotov VC molotov.png 2 - - - - -
16 Missile 273 missile - 2 - - 79 59-60 -
17 Colt .45 (Pistol) 274 colt45 VC colt45.png 3 - - 77 50-51 -
18 Python (.357) 275 python VC python.png 3 - - 77 88-89 -
19 Chrome Shotgun 277 chromegun VC chromegun.png 4 - - 78 66-67 -
20 Spaz Shotgun (S.P.A.S. 12) 278 shotgspa VC shotgspa.png 4 - - 78 85-86 87
21 Stubby Shotgun 279 buddyshot VC buddyshot.png 4 - - 78 66-67 -
22 Tec-9 281 tec9 VC tec9.png 5 - - 78 71-72 73
23 Uzi 9mm (Uz-I) 282 uzi VC uzi.png 5 - - 78 54-55 56
24 Ingram Mac 10 283 ingramsl VC ingramsl.png 5 - - 78 71-72 73
25 MP5 (MP) 284 mp5lng VC mp5lng.png 5 - - 78 90-91 56
26 M4 280 m4 VC m4.png 6 - - 78 74-75 76
27 Ruger (Kruger) 276 ruger VC ruger.png 6 - - 78 74-75 76
28 Sniper Rifle 285 sniper VC sniper.png 8 - - 80 57-58 76
29 PSG-1 (.308 Sniper) 286 laser VC laser.png 8 - - 80 57-58 76
30 Rocket Launcher 287 rocketla VC rocketla.png 7 - - 79 59-60 -
31 Flame Thrower 288 flame VC flame.png 7 - - - - -
32 M60 289 m60 VC m60.png 7 - - 78 68-69 70
33 Minigun 290 minigun VC minigun.png 7 - - - 54-55 -
34 Detonator VC bomb.png 9 - - - - -
35 HeliCanon - 7 - - 78 68-69 70
36 Camera 292 camera VC camera.png 9 - - - - -

For VC v1.0:

  1. ^ Array starts at 0x6B6558, for group 1 weapons only.
  2. ^ Array starts at 0x6B657C, for group 1 weapons only.
  3. ^ Array starts at 0x6B65A0.
  4. ^ Array starts at 0x6B65F0.
  5. ^ Array starts at 0x6B6660.

Note that some weapons share the same SFX but plays them differently (M4 and Ruger firing sound for example).

San Andreas

San Andreas is the first GTA that lets you dual wield weapons. Information on weapons, melee combat, textures, and models are located in the same files as in Vice City.

Name ID Model Group Number Icon
Unarmed 1 0 Sa fist.png
Brass Knuckle 331 #brassknuckle 1 1 Sa brassknukle.png
Golf Club 333 #golfclub 2 2 Sa golfclub.png
Night Stick 334 #nitestick 2 3 Sa nitestick.png
Knife 335 #knifecur 2 4 Sa knifecur.png
Baseball Bat 336 #bat 2 5 Sa bat.png
Shovel 337 #shovel 2 6 Sa shovel.png
Pool Cue 338 #poolcue 2 7 Sa poolcue.png
Katana 339 #katana 2 8 Sa katana.png
Chainsaw 341 #chnsaw 2 9 Sa chnsaw.png
Purple Dildo 321 #gun_dildo1 11 10 Sa gun dildo1.png
White Dildo 322 #gun_dildo2 11 11 Sa gun dildo2.png
Long White Vibrator 323 #gun_vibe1 11 12 Sa gun vibe1.png
Short White Vibrator 324 #gun_vibe2 11 13 Sa gun vibe2.png
Flowers 325 #flowera 11 14 Sa flowera.png
Cane 326 #gun_cane 11 15 Sa gun cane.png
Grenade 342 #grenade 9 16 Sa grenade.png
Tear Gas 343 #teargas 9 17 Sa teargas.png
Molotov Cocktail 344 #molotov 9 18 Sa molotov.png
Pistol 346 #colt45 3 22 Sa colt45.png
Silenced Pistol 347 #silenced 3 23 Sa silenced.png
Desert Eagle 348 #desert_eagle 3 24 Sa desert eagle.png
Shotgun 349 #chromegun 4 25 Sa chromegun.png
Sawnoff Shotgun 350 #sawnoff 4 26 Sa sawnoff.png
Combat Shotgun 351 #shotgspa 4 27 Sa shotgspa.png
Micro SMG 352 #micro_uzi 5 28 Sa micro uzi.png
SMG 353 #mp5lng 5 29 Sa mp5lng.png
AK47 355 #ak47 6 30 Sa ak47.png
M4 356 #m4 6 31 Sa m4.png
Tec9 372 #tec9 5 32 Sa tec9.png
Rifle 357 #cuntgun 7 33 Sa cuntgun.png
Sniper Rifle 358 #sniper 7 34 Sa sniper.png
Rocket Launcher 359 #rocketla 8 35 Sa rocketla.png
Heat Seeking Rocket Launcher 360 #heatseek 8 36 Sa heatseek.png
Flame Thrower 361 #flame 8 37 Sa flame.png
Minigun 362 #minigun 8 38 Sa minigun.png
Satchel Charges 363 #satchel 9 39 Sa satchel.png
Detonator 364 #bomb 13 40 Sa bomb.png
Spray Paint 365 #spraycan 10 41 Sa spraycan.png
Fire Extinguisher 366 #fire_ex 10 42 Sa fire ex.png
Camera 367 #camera 10 43 Sa camera.png
Night-vision Goggles 368 #nvgoggles 12 44 Sa nvgoggles.png
Thermal Goggles 369 #irgoggles 12 45 Sa irgoggles.png
Parachute 371 #gun_para 12 46 Sa gun paraIcon.png

GTA IV

Main article: List of Weapons (GTA4)

External links