047C

From GTAMods Wiki
Revision as of 10:35, 14 December 2016 by Spaceeinstein (talk | contribs) (bugged behavior)
Jump to navigation Jump to search

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