Difference between revisions of "047C"
Jump to navigation
Jump to search
(Created page with "{{Icon|3}} '''LOCATE_SNIPER_BULLET_3D''' <hr /> '''Description''' : Checks if there is a sniper bullet within the specified 3d area '''Syntax''' :047C: locate_sniper_bullet_at...") |
m |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{Icon|3}} | + | {{OpCode |
− | + | | games = {{Icon|3}} | |
− | + | | command = LOCATE_SNIPER_BULLET_3D | |
− | + | | description = Checks if a sniper bullet is in the 3d area | |
− | + | | syntax1 = 047C: sniper_bullet_at [''flt1''] [''flt2''] [''flt3''] radius [''flt4''] [''flt5''] [''flt6''] sphere [''int''] | |
− | + | | p1t = [''flt1''] | |
− | + | | p1d = X-coordinate | |
− | + | | p2t = [''flt2''] | |
− | + | | p2d = Y-coordinate | |
− | + | | p3t = [''flt3''] | |
− | + | | p3d = Z-coordinate | |
− | + | | p4t = [''flt4''] | |
− | + | | p4d = X-radius offset | |
− | + | | p5t = [''flt5''] | |
− | + | | p5d = Y-radius offset | |
− | + | | p6t = [''flt6''] | |
− | + | | p6d = Z-radius offset | |
− | + | | p7t = [''int''] | |
− | + | | p7d = Show cylindrical marker | |
− | + | }} | |
− | |||
− | This opcode | + | 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]]. This opcode was never called in the [[Main.scm|original script]] of GTA III. |
− | [[ | + | == Keywords == |
+ | check, locate, sniper, bullet, 3d, area, cube | ||
+ | |||
+ | == See also == | ||
+ | * {{Icon|3}} {{Icon|VC}} [[037E]], checks if a sniper bullet is in the 3d area | ||
+ | * {{Icon|3}} [[047B]], checks if a sniper bullet in the 2d area |
Latest revision as of 12:26, 14 December 2016
- Description
- Checks if a sniper bullet is in the 3d area
- Syntax
- 047C: sniper_bullet_at [flt1] [flt2] [flt3] radius [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. This opcode was never called in the original script of GTA III.
Keywords
check, locate, sniper, bullet, 3d, area, cube