1
0
Fork 0
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:
Connor Olding 2015-05-01 13:34:23 -07:00
parent 736804be40
commit d098b237f1
3 changed files with 12 additions and 3 deletions

View file

@ -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)}),
} }

View file

@ -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)}),
} }

View file

@ -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)