Difference between revisions of "02AB"

From GTAMods Wiki
Jump to navigation Jump to search
(added table for vc)
(Vice City)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Icon|trilogy}} '''SET_CHAR_PROOFS'''
+
{{TocRight}}
<hr />
+
{{OpCode
'''Description'''
+
| games      = {{Icon|t}}
: Sets the proofs of a character
+
| command    = SET_CHAR_PROOFS
'''Syntax'''
+
| description = Sets the proofs of the character
: 02AB: set_actor [''char handle''] immunities [''int1''] [''int2''] [''int3''] [''int4''] [''int5'']
+
| syntax1    = 02AB: set_actor [''char handle''] immunities [''int1''] [''int2''] [''int3''] [''int4''] [''int5'']
: 02AB: set_actor [''char handle''] immunities BP [''int1''] FP [''int2''] EP [''int3''] CP [''int4''] MP [''int5'']
+
| syntax2    = 02AB: set_actor [''char handle''] immunities BP [''int1''] FP [''int2''] EP [''int3''] CP [''int4''] MP [''int5'']
'''Parameter'''
+
| p1t        = [''char handle'']
: [''char handle'']
+
| p1d        = The handle of the character
:: The handle of the character
+
| p2t        = [''int1'']
: [''int1'']
+
| p2d        = Bullet-proof
:: Bullet-proof
+
| p3t        = [''int2'']
: [''int2'']
+
| p3d        = Fire-proof
:: Fire-proof
+
| p4t        = [''int3'']
: [''int3'']
+
| p4d        = Explosion-proof
:: Explosion-proof
+
| p5t        = [''int4'']
: [''int4'']
+
| p5d        = Collision-proof
:: Collision-proof
+
| p6t        = [''int5'']
: [''int5'']
+
| p6d        = Melee-proof
:: Melee-proof
+
| native      = [[SET_CHAR_PROOFS]]
'''Native analog'''
+
}}
: [[SET_CHAR_PROOFS]]
 
  
This opcode sets the proofs of a character. Bullet-proof will prevent the character from being damaged by bullets. Fire-proof will prevent the character from being damaged by fire. Explosion-proof will prevent the character from being damaged by explosions. Collision-proof will prevent the character from being damaged by collisions. Melee-proof will prevent the character from being damaged by melee-type weapons (fists, chainsaw, etc.).
+
This opcode sets the proofs of the character. Bullet-proof will prevent the character from being damaged by bullets. Fire-proof will prevent the character from being damaged by fire. Explosion-proof will prevent the character from being damaged by explosions. Collision-proof will prevent the character from being damaged by collisions. Melee-proof will prevent the character from being damaged by melee-type weapons (fists, chainsaw, etc.).
 +
 
 +
== Assigned weapon types ==
 +
The following tables show which proof is assigned to which weapon or environment type, which is mostly intuitive but there are a few oddities.
 +
=== GTA III ===
 +
{|class="wikitable sortable"
 +
!Proof ||Weapon ||Type ||Notes
 +
|-
 +
|5 ||Unarmed ||0 ||
 +
|-
 +
|5 ||Bat ||1 ||
 +
|-
 +
|1 ||Pistol ||2 ||
 +
|-
 +
|1 ||Uzi ||3 ||
 +
|-
 +
|1 ||Shotgun ||4 ||
 +
|-
 +
|1 ||AK47 ||5 ||
 +
|-
 +
|1 ||M16 ||6 ||
 +
|-
 +
|1 ||Sniper Rifle ||7 ||
 +
|-
 +
|3 ||Rocket Launcher ||8 ||
 +
|-
 +
|2 ||Flamethrower ||9 ||Assigned to all fire-based damage
 +
|-
 +
|3 ||Molotov Cocktail ||10 ||The fiery explosion is assigned to weapon number 9
 +
|-
 +
|3 ||Grenade ||11 ||
 +
|-
 +
| - ||Detonator ||12 ||
 +
|-
 +
|4 ||Rammed by car ||16 ||[[031D#Environmental damage values|Environment damage]]
 +
|-
 +
|4 ||Run over by car ||17 ||[[031D#Environmental damage values|Environment damage]]
 +
|-
 +
|3 ||Explosion ||18 ||[[031D#Environmental damage values|Environment damage]]
 +
|-
 +
| - ||Uzi driveby ||19 ||[[031D#Environmental damage values|Environment damage]]
 +
|-
 +
| - ||Drowning ||20 ||[[031D#Environmental damage values|Environment damage]]
 +
|-
 +
|4 ||Fall ||21 ||[[031D#Environmental damage values|Environment damage]]
 +
|}
  
== Assigned weapon numbers ==
 
This table shows which proof is assigned to which weapon number, which is already intuitive but is listed for completion.
 
 
=== Vice City ===
 
=== Vice City ===
{| class="wikitable sortable"
+
{|class="wikitable sortable"
! Proof || Enum || Weapon number || Notes
+
!Proof ||Weapon ||Type ||Notes
 
|-
 
|-
| 5 || WEAPONTYPE_UNARMED || 0 ||
+
|5 ||Unarmed ||0 ||
 
|-
 
|-
| 5 || WEAPONTYPE_BRASSKNUCKLE || 1 ||
+
|5 ||Brass Knuckle ||1 ||
 
|-
 
|-
| 5 || WEAPONTYPE_SCREWDRIVER || 2 ||
+
|5 ||Screw Driver ||2 ||
 
|-
 
|-
| 5 || WEAPONTYPE_GOLFCLUB || 3 ||
+
|5 ||Golf Club ||3 ||
 
|-
 
|-
| 5 || WEAPONTYPE_NIGHTSTICK || 4 ||
+
|5 ||Night Stick ||4 ||
 
|-
 
|-
| 5 || WEAPONTYPE_KNIFE || 5 ||
+
|5 ||Knife ||5 ||
 
|-
 
|-
| 5 || WEAPONTYPE_BASEBALLBAT || 6 ||
+
|5 ||Baseball Bat ||6 ||
 
|-
 
|-
| 5 || WEAPONTYPE_HAMMER || 7 ||
+
|5 ||Hammer ||7 ||
 
|-
 
|-
| 5 || WEAPONTYPE_CLEAVER || 8 ||
+
|5 ||Cleaver ||8 ||
 
|-
 
|-
| 5 || WEAPONTYPE_MACHETE || 9 ||
+
|5 ||Machete ||9 ||
 
|-
 
|-
| 5 || WEAPONTYPE_KATANA || 10 ||
+
|5 ||Katana ||10 ||
 
|-
 
|-
| 5 || WEAPONTYPE_CHAINSAW || 11 ||
+
|5 ||Chainsaw ||11 ||
 
|-
 
|-
| 3 || WEAPONTYPE_GRENADE || 12 ||
+
|3 ||Grenade ||12 ||
 
|-
 
|-
| - || WEAPONTYPE_DETONATOR_GRENADE || 13 || The explosion is assigned to weapon number 41
+
| - ||Remote Detonator ||13 ||The explosion is assigned to weapon number 41
 
|-
 
|-
| - || WEAPONTYPE_TEARGAS || 14 ||
+
| - ||Tear Gas ||14 ||
 
|-
 
|-
| 3 || WEAPONTYPE_MOLOTOV || 15 || The fiery explosion is assigned to weapon number 31
+
|3 ||Molotov ||15 ||The fiery explosion is assigned to weapon number 31
 
|-
 
|-
| - || WEAPONTYPE_ROCKET || 16 ||
+
| - ||Missile ||16 ||
 
|-
 
|-
| 1 || WEAPONTYPE_PISTOL || 17 ||
+
|1 ||Colt .45 (Pistol) ||17 ||
 
|-
 
|-
| - || WEAPONTYPE_PYTHON || 18 || Unexpected
+
| - ||Python (.357) ||18 ||Unexpected bug (Character is still vulnerable to this weapon even with BP set to 1)
 
|-
 
|-
| 1 || WEAPONTYPE_SHOTGUN || 19 ||
+
|1 ||Chrome Shotgun ||19 ||
 
|-
 
|-
| 1 || WEAPONTYPE_SPAS12_SHOTGUN || 20 ||
+
|1 ||Spaz Shotgun (S.P.A.S. 12) ||20 ||
 
|-
 
|-
| 1 || WEAPONTYPE_STUBBY_SHOTGUN || 21 ||
+
|1 ||Stubby Shotgun ||21 ||
 
|-
 
|-
| 1 || WEAPONTYPE_TEC9 || 22 ||
+
|1 ||Tec-9 ||22 ||
 
|-
 
|-
| 1 || WEAPONTYPE_UZI || 23 ||
+
|1 ||Uzi 9mm (Uz-I) ||23 ||
 
|-
 
|-
| 1 || WEAPONTYPE_SILENCED_INGRAM || 24 ||
+
|1 ||Ingram Mac 10 ||24 ||
 
|-
 
|-
| 1 || WEAPONTYPE_MP5 || 25 ||
+
|1 ||MP5 (MP) ||25 ||
 
|-
 
|-
| 1 || WEAPONTYPE_M4 || 26 ||
+
|1 ||M4 ||26 ||
 
|-
 
|-
| 1 || WEAPONTYPE_RUGER || 27 ||
+
|1 ||Ruger (Kruger) ||27 ||
 
|-
 
|-
| 1 || WEAPONTYPE_SNIPERRIFLE || 28 ||
+
|1 ||Sniper Rifle ||28 ||
 
|-
 
|-
| 1 || WEAPONTYPE_LASERSCOPE || 29 ||
+
|1 ||PSG-1 (.308 Sniper) ||29 ||
 
|-
 
|-
| 3 || WEAPONTYPE_ROCKETLAUNCHER || 30 ||
+
|3 ||Rocket Launcher ||30 ||
 
|-
 
|-
| 2 || WEAPONTYPE_FLAMETHROWER || 31 || Assigned to all fire-based damage
+
|2 ||Flame Thrower ||31 ||Assigned to all fire-based damage
 
|-
 
|-
| 1 || WEAPONTYPE_M60 || 32 ||
+
|1 ||M60 ||32 ||
 
|-
 
|-
| 1 || WEAPONTYPE_MINIGUN || 33 ||
+
|1 ||Minigun ||33 ||
 
|-
 
|-
| - || WEAPONTYPE_DETONATOR || 34 ||
+
| - ||Detonator ||34 ||
 
|-
 
|-
| - || WEAPONTYPE_HELICANNON || 35 ||
+
| - ||HeliCanon ||35 ||
 
|-
 
|-
| - || WEAPONTYPE_CAMERA || 36 ||
+
| - ||Camera ||36 ||
 
|-
 
|-
| - || WEAPONTYPE_PAD37 || 37 ||
+
| - ||PAD37 ||37 ||
 
|-
 
|-
| - || WEAPONTYPE_ARMOUR || 38 ||
+
| - ||Armour ||38 ||
 
|-
 
|-
| 4 || WEAPONTYPE_RAMMEDBYCAR || 39 ||
+
|4 ||Rammed by car ||39 ||[[031D#Environmental damage values|Environment damage]]
 
|-
 
|-
| 4 || WEAPONTYPE_RUNOVERBYCAR || 40 ||
+
|4 ||Run over by car ||40 ||[[031D#Environmental damage values|Environment damage]]
 
|-
 
|-
| 3 || WEAPONTYPE_EXPLOSION || 41 ||
+
|3 ||Explosion ||41 ||[[031D#Environmental damage values|Environment damage]]
 
|-
 
|-
| 1 || WEAPONTYPE_UZI_DRIVEBY || 42 ||
+
|1 ||Uzi driveby ||42 ||[[031D#Environmental damage values|Environment damage]]
 
|-
 
|-
| - || WEAPONTYPE_DROWNING || 43 ||
+
| - ||Drowning ||43 ||[[031D#Environmental damage values|Environment damage]]
 
|-
 
|-
| 4 || WEAPONTYPE_FALL || 44 ||
+
|4 ||Fall ||44 ||[[031D#Environmental damage values|Environment damage]]
 
|}
 
|}
  
Line 124: Line 166:
 
set, actor, character, immunity, immunities, immune, proof, damage, everythingproof, bulletproof, fireproof, explosionproof, collisionproof, dentproof, everything-proof, bullet-proof, fire-proof, explosion-proof, collision-proof, dent-proof
 
set, actor, character, immunity, immunities, immune, proof, damage, everythingproof, bulletproof, fireproof, explosionproof, collisionproof, dentproof, everything-proof, bullet-proof, fire-proof, explosion-proof, collision-proof, dent-proof
  
[[Category:OpCodes]]
+
== See also ==
 +
* {{Icon|t}} [[02AC]], sets the proofs of the vehicle

Latest revision as of 06:18, 20 November 2024

GTA III Vice City San Andreas SET_CHAR_PROOFS


Description
Sets the proofs of the character
Syntax
02AB: set_actor [char handle] immunities [int1] [int2] [int3] [int4] [int5]
02AB: set_actor [char handle] immunities BP [int1] FP [int2] EP [int3] CP [int4] MP [int5]
Parameter
[char handle]
The handle of the character
[int1]
Bullet-proof
[int2]
Fire-proof
[int3]
Explosion-proof
[int4]
Collision-proof
[int5]
Melee-proof
Native analog
SET_CHAR_PROOFS

This opcode sets the proofs of the character. Bullet-proof will prevent the character from being damaged by bullets. Fire-proof will prevent the character from being damaged by fire. Explosion-proof will prevent the character from being damaged by explosions. Collision-proof will prevent the character from being damaged by collisions. Melee-proof will prevent the character from being damaged by melee-type weapons (fists, chainsaw, etc.).

Assigned weapon types

The following tables show which proof is assigned to which weapon or environment type, which is mostly intuitive but there are a few oddities.

GTA III

Proof Weapon Type Notes
5 Unarmed 0
5 Bat 1
1 Pistol 2
1 Uzi 3
1 Shotgun 4
1 AK47 5
1 M16 6
1 Sniper Rifle 7
3 Rocket Launcher 8
2 Flamethrower 9 Assigned to all fire-based damage
3 Molotov Cocktail 10 The fiery explosion is assigned to weapon number 9
3 Grenade 11
- Detonator 12
4 Rammed by car 16 Environment damage
4 Run over by car 17 Environment damage
3 Explosion 18 Environment damage
- Uzi driveby 19 Environment damage
- Drowning 20 Environment damage
4 Fall 21 Environment damage

Vice City

Proof Weapon Type Notes
5 Unarmed 0
5 Brass Knuckle 1
5 Screw Driver 2
5 Golf Club 3
5 Night Stick 4
5 Knife 5
5 Baseball Bat 6
5 Hammer 7
5 Cleaver 8
5 Machete 9
5 Katana 10
5 Chainsaw 11
3 Grenade 12
- Remote Detonator 13 The explosion is assigned to weapon number 41
- Tear Gas 14
3 Molotov 15 The fiery explosion is assigned to weapon number 31
- Missile 16
1 Colt .45 (Pistol) 17
- Python (.357) 18 Unexpected bug (Character is still vulnerable to this weapon even with BP set to 1)
1 Chrome Shotgun 19
1 Spaz Shotgun (S.P.A.S. 12) 20
1 Stubby Shotgun 21
1 Tec-9 22
1 Uzi 9mm (Uz-I) 23
1 Ingram Mac 10 24
1 MP5 (MP) 25
1 M4 26
1 Ruger (Kruger) 27
1 Sniper Rifle 28
1 PSG-1 (.308 Sniper) 29
3 Rocket Launcher 30
2 Flame Thrower 31 Assigned to all fire-based damage
1 M60 32
1 Minigun 33
- Detonator 34
- HeliCanon 35
- Camera 36
- PAD37 37
- Armour 38
4 Rammed by car 39 Environment damage
4 Run over by car 40 Environment damage
3 Explosion 41 Environment damage
1 Uzi driveby 42 Environment damage
- Drowning 43 Environment damage
4 Fall 44 Environment damage

Keywords

set, actor, character, immunity, immunities, immune, proof, damage, everythingproof, bulletproof, fireproof, explosionproof, collisionproof, dentproof, everything-proof, bullet-proof, fire-proof, explosion-proof, collision-proof, dent-proof

See also

  • GTA III Vice City San Andreas 02AC, sets the proofs of the vehicle