mirror of
https://github.com/notwa/mm
synced 2024-11-05 21:39:03 -08:00
update animation watcher for oot
not that it needs it
This commit is contained in:
parent
736804be40
commit
d098b237f1
3 changed files with 12 additions and 3 deletions
|
@ -307,5 +307,5 @@ return {
|
||||||
lin_vel = AA(0xAD0, 'f'),
|
lin_vel = AA(0xAD0, 'f'),
|
||||||
movement_angle = AA(0xAD4, 2),
|
movement_angle = AA(0xAD4, 2),
|
||||||
active_sword = AA(0xADB, 1),
|
active_sword = AA(0xADB, 1),
|
||||||
}, {__index = Actor(AA(0,0).addr)})
|
}, {__index = Actor(AA(0,0).addr)}),
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,4 +169,13 @@ return {
|
||||||
|
|
||||||
z_cursor_actor = AG(0x1CC8, 4),
|
z_cursor_actor = AG(0x1CC8, 4),
|
||||||
z_target_actor = AG(0x1CCC, 4),
|
z_target_actor = AG(0x1CCC, 4),
|
||||||
|
|
||||||
|
link_actor = setmetatable({
|
||||||
|
--item_in_hand = AA(0x148, 1),
|
||||||
|
animation_id = AA(0x1BE, 2),
|
||||||
|
--link_flags = AA(0xA6C, 0xC),
|
||||||
|
--lin_vel = AA(0xAD0, 'f'),
|
||||||
|
--movement_angle = AA(0xAD4, 2),
|
||||||
|
--active_sword = AA(0xADB, 1),
|
||||||
|
}, {__index = Actor(AA(0,0).addr)}),
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,10 +2,10 @@ require "addrs.init"
|
||||||
require "serialize"
|
require "serialize"
|
||||||
|
|
||||||
local anim_addr = addrs.link_actor.animation_id.addr
|
local anim_addr = addrs.link_actor.animation_id.addr
|
||||||
local fn = 'data/_anims_seen.lua'
|
local fn = mm and 'data/_anims_seen.lua' or 'data/_anims_seen_oot.lua'
|
||||||
local anims_seen = deserialize(fn) or {}
|
local anims_seen = deserialize(fn) or {}
|
||||||
|
|
||||||
while mm do
|
while mm or oot do
|
||||||
local anim_id = mainmemory.read_u16_be(anim_addr)
|
local anim_id = mainmemory.read_u16_be(anim_addr)
|
||||||
local actor_loaded = mainmemory.read_u8(anim_addr - 2) == 4
|
local actor_loaded = mainmemory.read_u8(anim_addr - 2) == 4
|
||||||
local hexid = ('%04X'):format(anim_id)
|
local hexid = ('%04X'):format(anim_id)
|
||||||
|
|
Loading…
Reference in a new issue