Difference between revisions of "Weapon"

From GTAMods Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
A '''weapon''' is anything that can damage other objects, including vehicles and pedestrians. It is one of the core gameplay feature of Grand Theft Auto.
 
A '''weapon''' is anything that can damage other objects, including vehicles and pedestrians. It is one of the core gameplay feature 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.<br>
 +
[[0114]] - Sets an actor's weapon ammo while in a vehicle<br>
 +
[[017B]] - Sets an actor's weapon ammo<br>
 +
[[01B2]] - Gives an actor a weapon<br>
 +
[[01B9]] - Sets an actor's currently armed weapon<br>
 +
[[0237]] - Sets a gang's weapons<br>
 +
[[02D6]] - Checks if a weapon is being fired in a location<br>
 +
[[02D8]] - Checks the current weapon an actor is holding<br>
 +
[[02E2]] - Sets an actor's weapon accuracy<br>
 +
[[031D]] - Checks if an actor is hit by a weapon<br>
 +
[[031E]] - Checks if a vehicle is hit by a weapon<br>
 +
[[032B]] - Creates a weapon pickup<br>
 +
[[041A]] - Gets the current amount of ammo for the weapon<br>
 +
[[0467]] - Resets 031D<br>
 +
[[0468]] - Resets 031E<br>
 +
[[0470]] - Gets an actor's current weapon<br>
 +
[[048F]] - Removes weapons from an actor<br>
 +
[[0491]] - Checks if an actor has the weapon<br>
 +
[[04B8]] - Gets the weapon's data from an actor<br>
 +
[[0501]] - Sets the player's ability to drive by<br>
 +
[[0555]] - Removes a specific weapon from an actor<br>
 +
[[0563]] - Sets the player's drive by ammo<br>
 +
[[06AB]] - Hides all weapons<br>
 +
[[0713]] - Makes an actor do drive bys<br>
 +
[[081A]] - Sets an actor's weapon skill<br>
 +
[[087E]] - Sets an actor to drop weapons after a death<br>
 +
[[0881]] - Sets an actor be able to shoot<br>
 +
[[0946]] - Sets an actor oblivious to weapon fire<br>
 +
[[0992]] - Sets the player's ability to scroll through weapons
 +
 
==GTA3==
 
==GTA3==
 
==Vice City==
 
==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 <code>[[weapon.dat]]</code> file. Information on melee combat is located in the <code>[[melee.dat]]</code> file. The textures and models of the weapons are located in the <code>gta3.img</code> file. The HUD icon of the first is located in the <code>hud.txd</code> file.
 +
{|
 +
! Name
 +
! ID
 +
! Model
 +
! Group
 +
! Number
 +
|-
 +
| Unarmed
 +
|
 +
|
 +
|
 +
| 0
 +
|-
 +
| Brass Knuckle
 +
| 259
 +
| #brassknuckle
 +
|
 +
| 1
 +
|-
 +
| Screw Driver
 +
| 260
 +
| #screwdriver
 +
|
 +
| 2
 +
|-
 +
| Golf Club
 +
| 261
 +
| #golfclub
 +
|
 +
| 3
 +
|-
 +
| Night Stick
 +
| 262
 +
| #nitestick
 +
|
 +
| 4
 +
|-
 +
| Knife
 +
| 263
 +
| #knifecur
 +
|
 +
| 5
 +
|-
 +
| Baseball Bat
 +
| 264
 +
| #bat
 +
|
 +
| 6
 +
|-
 +
| Hammer
 +
| 265
 +
| #hammer
 +
|
 +
| 7
 +
|-
 +
| Cleaver
 +
| 266
 +
| #cleaver
 +
|
 +
| 8
 +
|-
 +
| Machete
 +
| 267
 +
| #machete
 +
|
 +
| 9
 +
|-
 +
| Katana
 +
| 268
 +
| #katana
 +
|
 +
| 10
 +
|-
 +
| Chainsaw
 +
| 269
 +
| #chnsaw
 +
|
 +
| 11
 +
|-
 +
| Grenade
 +
| 270
 +
| #grenade
 +
| 2
 +
| 12
 +
|-
 +
| Remote Detonator
 +
| 291
 +
| #bomb
 +
| 2
 +
| 13
 +
|-
 +
| Tear Gas
 +
| 271
 +
| #teargas
 +
| 2
 +
| 14
 +
|-
 +
| Molotov
 +
| 272
 +
| #molotov
 +
| 2
 +
| 15
 +
|-
 +
| Missile
 +
| 273
 +
| #missile
 +
| 2
 +
| 16
 +
|-
 +
| Colt .45 (Pistol)
 +
| 274
 +
| #colt45
 +
| 3
 +
| 17
 +
|-
 +
| Python (.357)
 +
| 275
 +
| #python
 +
| 3
 +
| 18
 +
|-
 +
| Chrome Shotgun
 +
| 276
 +
| #chromegun
 +
| 4
 +
| 19
 +
|-
 +
| Spaz Shotgun (S.P.A.S. 12)
 +
| 277
 +
| #shotgspa
 +
| 4
 +
| 20
 +
|-
 +
| Stubby Shotgun
 +
| 278
 +
| #buddyshot
 +
| 4
 +
| 21
 +
|-
 +
| Tec-9
 +
| 281
 +
| #tec9
 +
| 5
 +
| 22
 +
|-
 +
| Uzi 9mm (Uz-I)
 +
| 282
 +
| #uzi
 +
| 5
 +
| 23
 +
|-
 +
| Ingram Mac 10
 +
| 283
 +
| #ingramsl
 +
| 5
 +
| 24
 +
|-
 +
| MP5 (MP)
 +
| 284
 +
| #mp5lng
 +
| 5
 +
| 25
 +
|-
 +
| M4
 +
| 280
 +
| #m4
 +
| 6
 +
| 26
 +
|-
 +
| Ruger (Kruger)
 +
| 276
 +
| #ruger
 +
| 6
 +
| 27
 +
|-
 +
| Rocket Launcher
 +
| 287
 +
| #rocketla
 +
| 7
 +
| 30
 +
|-
 +
| Flame Thrower
 +
| 288
 +
| #flame
 +
| 7
 +
| 31
 +
|-
 +
| M60
 +
| 289
 +
| #M60
 +
| 7
 +
| 32
 +
|}
 
==San Andreas==
 
==San Andreas==
San Andreas is the first GTA that lets you dual wield weapons. Most of the information on the weapons are located in the <code>[[weapon.dat]]</code> file. Information on melee combat is located in the <code>[[melee.dat]]</code> file. The textures and models of the weapons are located in the <code>gta3.img</code> file. The HUD icon of the first is located in the <code>hud.txd</code> file.
+
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
 
! Name
Line 149: Line 374:
 
| 31
 
| 31
 
|-
 
|-
| Tec 9
+
| Tec-9
 
| 372
 
| 372
 
| #tec9
 
| #tec9
Line 239: Line 464:
 
| 46
 
| 46
 
|}
 
|}
 +
 +
[[Category:Map Formats]][[Category:Mission Script]][[Category:GTA 3]][[Category:GTA VC]][[Category:GTA SA]][[Category:GTA LCS]][[Category:GTA VCS]]

Revision as of 01:11, 21 January 2008

A weapon is anything that can damage other objects, including vehicles and pedestrians. It is one of the core gameplay feature 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 weapon pickup
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

GTA3

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.

Name ID Model Group Number
Unarmed 0
Brass Knuckle 259 #brassknuckle 1
Screw Driver 260 #screwdriver 2
Golf Club 261 #golfclub 3
Night Stick 262 #nitestick 4
Knife 263 #knifecur 5
Baseball Bat 264 #bat 6
Hammer 265 #hammer 7
Cleaver 266 #cleaver 8
Machete 267 #machete 9
Katana 268 #katana 10
Chainsaw 269 #chnsaw 11
Grenade 270 #grenade 2 12
Remote Detonator 291 #bomb 2 13
Tear Gas 271 #teargas 2 14
Molotov 272 #molotov 2 15
Missile 273 #missile 2 16
Colt .45 (Pistol) 274 #colt45 3 17
Python (.357) 275 #python 3 18
Chrome Shotgun 276 #chromegun 4 19
Spaz Shotgun (S.P.A.S. 12) 277 #shotgspa 4 20
Stubby Shotgun 278 #buddyshot 4 21
Tec-9 281 #tec9 5 22
Uzi 9mm (Uz-I) 282 #uzi 5 23
Ingram Mac 10 283 #ingramsl 5 24
MP5 (MP) 284 #mp5lng 5 25
M4 280 #m4 6 26
Ruger (Kruger) 276 #ruger 6 27
Rocket Launcher 287 #rocketla 7 30
Flame Thrower 288 #flame 7 31
M60 289 #M60 7 32

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
Unarmed 1 0
Brass Knuckle 331 #brassknuckle 1 1
Golf Club 333 #golfclub 2 2
Night Stick 334 #nitestick 2 3
Knife 335 #knifecur 2 4
Baseball Bat 336 #bat 2 5
Shovel 337 #shovel 2 6
Pool Cue 338 #poolcue 2 7
Katana 339 #katana 2 8
Chainsaw 341 #chnsaw 2 9
Grenade 342 #grenade 9 16
Tear Gas 343 #teargas 9 17
Molotov Cocktail 344 #molotov 9 18
Pistol 346 #colt45 3 22
Silenced Pistol 347 #silenced 3 23
Desert Eagle 348 #desert_eagle 3 24
Shotgun 349 #chromegun 4 25
Sawn Off Shotgun 350 #sawnoff 4 26
Combat Shotgun 351 #shotgspa 4 27
Micro Uzi 352 #micro_uzi 5 28
MP5 353 #mp5lng 5 29
AK-47 355 #ak47 6 30
M4 356 #m4 6 31
Tec-9 372 #tec9 5 32
Country Rifle 357 #cuntgun 7 33
Sniper Rifle 358 #sniper 7 34
Rocket Launcher 359 #rocketla 8 35
Heat-seeking Rocket Launcher 360 #heatseek 8 36
Flame Thrower 361 #flame 8 37
Minigun 362 #minigun 8 38
Sachet Charges 363 #satchel 9 39
Detonator 364 #bomb 13 40
Spray Paint 365 #spraycan 10 41
Fire Extinguisher 366 #fire_ex 10 42
Camera 367 #camera 10 43
Nightvision Goggles 368 #nvgoggles 12 44
Thermal Goggles 369 #irgoggles 12 45
Parachute 371 #gun_para 12 46