Difference between revisions of "047B"

From GTAMods Wiki
Jump to navigation Jump to search
(bugged behavior)
m
 
Line 2: Line 2:
 
| games      = {{Icon|3}}
 
| games      = {{Icon|3}}
 
| command    = LOCATE_SNIPER_BULLET_2D
 
| command    = LOCATE_SNIPER_BULLET_2D
| description = Checks if there is a sniper bullet within the specified 2d area
+
| description = Checks if a sniper bullet is in the 2d area
| syntax1    = 047B: locate_sniper_bullet_at [''flt1''] [''flt2''] offset [''flt3''] [''flt4''] sphere [''int'']
+
| syntax1    = 047B:   sniper_bullet_at [''flt1''] [''flt2''] radius [''flt3''] [''flt4''] sphere [''int'']
 
| p1t        = [''flt1'']
 
| p1t        = [''flt1'']
 
| p1d        = X-coordinate
 
| p1d        = X-coordinate
Line 16: Line 16:
 
}}
 
}}
  
This conditional opcode supposedly returns true if there is a sniper bullet within the specified 2d area, but its area detection seems to be bugged. It returns true if a sniper bullet is within any x-coordinate greater than the specified x-coordinate minus the x-radius, and any y-coordinate greater than the specified y-coordinate minus the y-radius. Its cylindrical marker does not reflect the bug and behaves similarly to opcode [[0056]].
+
This conditional opcode supposedly returns true if there is a sniper bullet within the specified 2d area, but its area detection seems to be bugged. It returns true if a sniper bullet is within any x-coordinate greater than the specified x-coordinate minus the x-radius, and any y-coordinate greater than the specified y-coordinate minus the y-radius. Its cylindrical marker does not reflect the bug and behaves similarly to opcode [[0056]]. This opcode was never called in the [[Main.scm|original script]] of GTA III.
  
 
== Keywords ==
 
== Keywords ==
 
check, locate, sniper, bullet, 2d, area, rectangle
 
check, locate, sniper, bullet, 2d, area, rectangle
 +
 +
== See also ==
 +
* {{Icon|3}} {{Icon|VC}} [[037E]], checks if a sniper bullet is in the 3d area
 +
* {{Icon|3}} [[047C]], checks if a sniper bullet in the 3d area

Latest revision as of 12:26, 14 December 2016

GTA III LOCATE_SNIPER_BULLET_2D


Description
Checks if a sniper bullet is in the 2d area
Syntax
047B:   sniper_bullet_at [flt1] [flt2] radius [flt3] [flt4] sphere [int]
Parameter
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
X-radius offset
[flt4]
Y-radius offset
[int]
Show cylindrical marker

This conditional opcode supposedly returns true if there is a sniper bullet within the specified 2d area, but its area detection seems to be bugged. It returns true if a sniper bullet is within any x-coordinate greater than the specified x-coordinate minus the x-radius, and any y-coordinate greater than the specified y-coordinate minus the y-radius. Its cylindrical marker does not reflect the bug and behaves similarly to opcode 0056. This opcode was never called in the original script of GTA III.

Keywords

check, locate, sniper, bullet, 2d, area, rectangle

See also

  • GTA III Vice City 037E, checks if a sniper bullet is in the 3d area
  • GTA III 047C, checks if a sniper bullet in the 3d area