Difference between revisions of "047C"

From GTAMods Wiki
Jump to navigation Jump to search
(bugged behavior)
Line 1: Line 1:
{{Icon|3}} '''LOCATE_SNIPER_BULLET_3D'''
+
{{OpCode
<hr />
+
| games      = {{Icon|3}}
'''Description'''
+
| command    = LOCATE_SNIPER_BULLET_3D
: Checks if there is a sniper bullet within the specified 3d area
+
| description = Checks if there is a sniper bullet within the specified 3d area
'''Syntax'''
+
| syntax1    = 047C: locate_sniper_bullet_at [''flt1''] [''flt2''] [''flt3''] offset [''flt4''] [''flt5''] [''flt6''] sphere [''int'']
:047C: locate_sniper_bullet_at [''flt1''] [''flt2''] [''flt3''] offset [''flt4''] [''flt5''] [''flt6''] sphere [''int'']
+
| p1t        = [''flt1'']
'''Parameter'''
+
| p1d        = X-coordinate
: [''flt1'']
+
| p2t        = [''flt2'']
:: X-coordinate
+
| p2d        = Y-coordinate
: [''flt2'']
+
| p3t        = [''flt3'']
:: Y-coordinate
+
| p3d        = Z-coordinate
: [''flt3'']
+
| p4t        = [''flt4'']
:: Z-coordinate
+
| p4d        = X-radius offset
: [''flt4'']
+
| p5t        = [''flt5'']
:: X-radius offset
+
| p5d        = Y-radius offset
: [''flt5'']
+
| p6t        = [''flt6'']
:: Y-radius offset
+
| p6d        = Z-radius offset
: [''flt6'']
+
| p7t        = [''int'']
:: Z-radius offset
+
| p7d        = Show cylindrical marker
: [''int'']
+
}}
:: Display a debug [[blip]]
 
  
This opcode checks if there is a sniper bullet within the specified 3d 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 3d 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, any y-coordinate greater than the specified y-coordinate minus the y-radius, and any z-coordinate greater than the specified z-coordinate minus the z-radius. Its cylindrical marker does not reflect the bug and behaves similarly to opcode [[0057]].
  
[[Category:OpCodes]]
+
== Keywords ==
 +
check, locate, sniper, bullet, 3d, area, cube

Revision as of 10:35, 14 December 2016

GTA III LOCATE_SNIPER_BULLET_3D


Description
Checks if there is a sniper bullet within the specified 3d area
Syntax
047C: locate_sniper_bullet_at [flt1] [flt2] [flt3] offset [flt4] [flt5] [flt6] sphere [int]
Parameter
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate
[flt4]
X-radius offset
[flt5]
Y-radius offset
[flt6]
Z-radius offset
[int]
Show cylindrical marker

This conditional opcode supposedly returns true if there is a sniper bullet within the specified 3d 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, any y-coordinate greater than the specified y-coordinate minus the y-radius, and any z-coordinate greater than the specified z-coordinate minus the z-radius. Its cylindrical marker does not reflect the bug and behaves similarly to opcode 0057.

Keywords

check, locate, sniper, bullet, 3d, area, cube