Difference between revisions of "047B"

From GTAMods Wiki
Jump to navigation Jump to search
(bugged behavior)
Line 1: Line 1:
{{Icon|3}} '''LOCATE_SNIPER_BULLET_2D'''
+
{{OpCode
<hr />
+
| games      = {{Icon|3}}
'''Description'''
+
| command    = LOCATE_SNIPER_BULLET_2D
: Checks if there is a sniper bullet within the specified 2d area
+
| description = Checks if there is a sniper bullet within the specified 2d area
'''Syntax'''
+
| syntax1    = 047B: locate_sniper_bullet_at [''flt1''] [''flt2''] offset [''flt3''] [''flt4''] sphere [''int'']
:047B: locate_sniper_bullet_at [''flt1''] [''flt2''] offset [''flt3''] [''flt4''] sphere [''int'']
+
| p1t        = [''flt1'']
'''Parameter'''
+
| p1d        = X-coordinate
: [''flt1'']
+
| p2t        = [''flt2'']
:: X-coordinate
+
| p2d        = Y-coordinate
: [''flt2'']
+
| p3t        = [''flt3'']
:: Y-coordinate
+
| p3d        = X-radius offset
: [''flt3'']
+
| p4t        = [''flt4'']
:: X-radius offset
+
| p4d        = Y-radius offset
: [''flt4'']
+
| p5t        = [''int'']
:: Y-radius offset
+
| p5d        = Show cylindrical marker
: [''int'']
+
}}
:: Display a debug [[blip]]
 
  
This opcode checks if there is a sniper bullet within the specified 2d area. If the ''int'' parameter set to 1, it also highlights the area with a blue [[blip]]. For the blip to be visible continuously this opcode must be placed in a loop with a [[0001|wait]] of 0.
+
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]].
  
[[Category:OpCodes]]
+
== Keywords ==
 +
check, locate, sniper, bullet, 2d, area, rectangle

Revision as of 16:16, 13 December 2016

GTA III LOCATE_SNIPER_BULLET_2D


Description
Checks if there is a sniper bullet within the specified 2d area
Syntax
047B: locate_sniper_bullet_at [flt1] [flt2] offset [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.

Keywords

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