$80:B379

From ZAMN Hacking
Revision as of 19:35, 10 July 2024 by Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x78|type=Code|name=findShootDirection|description=Finds a direction to shoot at a victim or player|args=X = [int16] X position<br/>Y = [int16] Y position<br/>Returns A = [direction x2] direction|ret_type=RTL}} Will shoot at the first victim or player that is within 8 pixels of the given position on a single axis. Returns 'none' if there is no such victim or player.")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
ROM address data
Length 0x78
Type Code
Name findShootDirection
Description Finds a direction to shoot at a victim or player
Arguments/Return value X = [int16] X position
Y = [int16] Y position
Returns A = [direction x2] direction
Return type RTL

Will shoot at the first victim or player that is within 8 pixels of the given position on a single axis. Returns 'none' if there is no such victim or player.