summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPepper0ni <93387759+Pepper0ni@users.noreply.github.com>2025-01-16 03:02:23 +0000
committerGitHub <noreply@github.com>2025-01-16 04:02:23 +0100
commit47fdaabd1bc47ec11e8be1e98ab512980c3ef9cc (patch)
treece8657a67f9b1221b2a3e438e85885781383b096
parent88a432aac5fdddef7be68ea744b3ea3dd18ce9ff (diff)
Update Actor Flags to decomp (#4822)
-rw-r--r--soh/include/z64actor.h132
-rw-r--r--soh/soh/ActorDB.cpp2
-rw-r--r--soh/soh/Enhancements/TimeSavers/SkipMiscInteractions/SkipChildRutoInteractions.cpp2
-rw-r--r--soh/soh/Enhancements/debugger/MessageViewer.cpp2
-rw-r--r--soh/soh/Enhancements/nametag.cpp2
-rw-r--r--soh/soh/Enhancements/randomizer/fishsanity.cpp2
-rw-r--r--soh/soh/Enhancements/randomizer/hook_handlers.cpp6
-rw-r--r--soh/soh/Enhancements/timesaver_hook_handlers.cpp4
-rw-r--r--soh/src/code/code_800430A0.c2
-rw-r--r--soh/src/code/z_actor.c68
-rw-r--r--soh/src/code/z_en_a_keep.c6
-rw-r--r--soh/src/code/z_en_item00.c6
-rw-r--r--soh/src/code/z_player_call.c2
-rw-r--r--soh/src/code/z_player_lib.c2
-rw-r--r--soh/src/overlays/actors/ovl_Arms_Hook/z_arms_hook.c8
-rw-r--r--soh/src/overlays/actors/ovl_Arrow_Fire/z_arrow_fire.c2
-rw-r--r--soh/src/overlays/actors/ovl_Arrow_Ice/z_arrow_ice.c2
-rw-r--r--soh/src/overlays/actors/ovl_Arrow_Light/z_arrow_light.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Bdan_Objects/z_bg_bdan_objects.c4
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Bdan_Switch/z_bg_bdan_switch.c4
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Bom_Guard/z_bg_bom_guard.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Bowl_Wall/z_bg_bowl_wall.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Breakwall/z_bg_breakwall.c4
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Ddan_Jd/z_bg_ddan_jd.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Ddan_Kd/z_bg_ddan_kd.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Dy_Yoseizo/z_bg_dy_yoseizo.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Ganon_Otyuka/z_bg_ganon_otyuka.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Gnd_Darkmeiro/z_bg_gnd_darkmeiro.c4
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Gnd_Firemeiro/z_bg_gnd_firemeiro.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Gnd_Iceblock/z_bg_gnd_iceblock.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Gnd_Nisekabe/z_bg_gnd_nisekabe.c8
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Haka_Gate/z_bg_haka_gate.c12
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Haka_Huta/z_bg_haka_huta.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Haka_Megane/z_bg_haka_megane.c8
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Haka_MeganeBG/z_bg_haka_meganebg.c6
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Haka_Sgami/z_bg_haka_sgami.c8
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Haka_Ship/z_bg_haka_ship.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Haka_Trap/z_bg_haka_trap.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Haka_Tubo/z_bg_haka_tubo.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Haka_Water/z_bg_haka_water.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Haka_Zou/z_bg_haka_zou.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Heavy_Block/z_bg_heavy_block.c8
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Hidan_Curtain/z_bg_hidan_curtain.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Hidan_Dalm/z_bg_hidan_dalm.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Hidan_Fslift/z_bg_hidan_fslift.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Hidan_Fwbig/z_bg_hidan_fwbig.c4
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Hidan_Hrock/z_bg_hidan_hrock.c6
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Hidan_Kousi/z_bg_hidan_kousi.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Hidan_Rock/z_bg_hidan_rock.c6
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Hidan_Syoku/z_bg_hidan_syoku.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Ice_Objects/z_bg_ice_objects.c6
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Ice_Shutter/z_bg_ice_shutter.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Jya_1flift/z_bg_jya_1flift.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Jya_Bigmirror/z_bg_jya_bigmirror.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Jya_Bombchuiwa/z_bg_jya_bombchuiwa.c4
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Jya_Cobra/z_bg_jya_cobra.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Jya_Goroiwa/z_bg_jya_goroiwa.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Jya_Haheniron/z_bg_jya_haheniron.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Jya_Lift/z_bg_jya_lift.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Jya_Zurerukabe/z_bg_jya_zurerukabe.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Menkuri_Eye/z_bg_menkuri_eye.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Menkuri_Kaiten/z_bg_menkuri_kaiten.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Menkuri_Nisekabe/z_bg_menkuri_nisekabe.c6
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Mizu_Bwall/z_bg_mizu_bwall.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Mizu_Movebg/z_bg_mizu_movebg.c4
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Mizu_Shutter/z_bg_mizu_shutter.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Mizu_Water/z_bg_mizu_water.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Mjin/z_bg_mjin.c4
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Mori_Bigst/z_bg_mori_bigst.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Mori_Elevator/z_bg_mori_elevator.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Mori_Hashigo/z_bg_mori_hashigo.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Mori_Hashira4/z_bg_mori_hashira4.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Mori_Hineri/z_bg_mori_hineri.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Mori_Idomizu/z_bg_mori_idomizu.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Mori_Rakkatenjo/z_bg_mori_rakkatenjo.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Po_Event/z_bg_po_event.c4
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Relay_Objects/z_bg_relay_objects.c6
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Spot00_Hanebasi/z_bg_spot00_hanebasi.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Spot01_Fusya/z_bg_spot01_fusya.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Spot01_Idohashira/z_bg_spot01_idohashira.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Spot01_Idomizu/z_bg_spot01_idomizu.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Spot01_Idosoko/z_bg_spot01_idosoko.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Spot01_Objects2/z_bg_spot01_objects2.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Spot02_Objects/z_bg_spot02_objects.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Spot03_Taki/z_bg_spot03_taki.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Spot05_Soko/z_bg_spot05_soko.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Spot06_Objects/z_bg_spot06_objects.c8
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Spot07_Taki/z_bg_spot07_taki.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Spot11_Bakudankabe/z_bg_spot11_bakudankabe.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Spot11_Oasis/z_bg_spot11_oasis.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Spot16_Bombstone/z_bg_spot16_bombstone.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Spot17_Funen/z_bg_spot17_funen.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Spot18_Basket/z_bg_spot18_basket.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Spot18_Shutter/z_bg_spot18_shutter.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Sst_Floor/z_bg_sst_floor.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Toki_Hikari/z_bg_toki_hikari.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Toki_Swd/z_bg_toki_swd.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Treemouth/z_bg_treemouth.c6
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Umajump/z_bg_umajump.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Ydan_Hasi/z_bg_ydan_hasi.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Ydan_Sp/z_bg_ydan_sp.c2
-rw-r--r--soh/src/overlays/actors/ovl_Bg_Zg/z_bg_zg.c2
-rw-r--r--soh/src/overlays/actors/ovl_Boss_Dodongo/z_boss_dodongo.c10
-rw-r--r--soh/src/overlays/actors/ovl_Boss_Fd/z_boss_fd.c8
-rw-r--r--soh/src/overlays/actors/ovl_Boss_Fd2/z_boss_fd2.c12
-rw-r--r--soh/src/overlays/actors/ovl_Boss_Ganon/z_boss_ganon.c14
-rw-r--r--soh/src/overlays/actors/ovl_Boss_Ganon2/z_boss_ganon2.c8
-rw-r--r--soh/src/overlays/actors/ovl_Boss_Ganondrof/z_boss_ganondrof.c16
-rw-r--r--soh/src/overlays/actors/ovl_Boss_Goma/z_boss_goma.c10
-rw-r--r--soh/src/overlays/actors/ovl_Boss_Mo/z_boss_mo.c34
-rw-r--r--soh/src/overlays/actors/ovl_Boss_Sst/z_boss_sst.c36
-rw-r--r--soh/src/overlays/actors/ovl_Boss_Tw/z_boss_tw.c24
-rw-r--r--soh/src/overlays/actors/ovl_Boss_Va/z_boss_va.c50
-rw-r--r--soh/src/overlays/actors/ovl_Demo_6K/z_demo_6k.c4
-rw-r--r--soh/src/overlays/actors/ovl_Demo_Du/z_demo_du.c2
-rw-r--r--soh/src/overlays/actors/ovl_Demo_Ec/z_demo_ec.c2
-rw-r--r--soh/src/overlays/actors/ovl_Demo_Effect/z_demo_effect.c4
-rw-r--r--soh/src/overlays/actors/ovl_Demo_Ext/z_demo_ext.c2
-rw-r--r--soh/src/overlays/actors/ovl_Demo_Geff/z_demo_geff.c2
-rw-r--r--soh/src/overlays/actors/ovl_Demo_Gj/z_demo_gj.c2
-rw-r--r--soh/src/overlays/actors/ovl_Demo_Go/z_demo_go.c2
-rw-r--r--soh/src/overlays/actors/ovl_Demo_Gt/z_demo_gt.c2
-rw-r--r--soh/src/overlays/actors/ovl_Demo_Ik/z_demo_ik.c2
-rw-r--r--soh/src/overlays/actors/ovl_Demo_Im/z_demo_im.c12
-rw-r--r--soh/src/overlays/actors/ovl_Demo_Kankyo/z_demo_kankyo.c4
-rw-r--r--soh/src/overlays/actors/ovl_Demo_Kekkai/z_demo_kekkai.c2
-rw-r--r--soh/src/overlays/actors/ovl_Demo_Sa/z_demo_sa.c2
-rw-r--r--soh/src/overlays/actors/ovl_Demo_Shd/z_demo_shd.c2
-rw-r--r--soh/src/overlays/actors/ovl_Demo_Tre_Lgt/z_demo_tre_lgt.c2
-rw-r--r--soh/src/overlays/actors/ovl_Door_Ana/z_door_ana.c6
-rw-r--r--soh/src/overlays/actors/ovl_Door_Killer/z_door_killer.c2
-rw-r--r--soh/src/overlays/actors/ovl_Door_Shutter/z_door_shutter.c2
-rw-r--r--soh/src/overlays/actors/ovl_Efc_Erupc/z_efc_erupc.c2
-rw-r--r--soh/src/overlays/actors/ovl_Eff_Dust/z_eff_dust.c2
-rw-r--r--soh/src/overlays/actors/ovl_Elf_Msg/z_elf_msg.c2
-rw-r--r--soh/src/overlays/actors/ovl_Elf_Msg2/z_elf_msg2.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Am/z_en_am.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_Ani/z_en_ani.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Anubice/z_en_anubice.c10
-rw-r--r--soh/src/overlays/actors/ovl_En_Anubice_Fire/z_en_anubice_fire.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Anubice_Tag/z_en_anubice_tag.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Arow_Trap/z_en_arow_trap.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Arrow/z_en_arrow.c12
-rw-r--r--soh/src/overlays/actors/ovl_En_Attack_Niw/z_en_attack_niw.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Ba/z_en_ba.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Bb/z_en_bb.c22
-rw-r--r--soh/src/overlays/actors/ovl_En_Bdfire/z_en_bdfire.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Bigokuta/z_en_bigokuta.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_Bili/z_en_bili.c18
-rw-r--r--soh/src/overlays/actors/ovl_En_Blkobj/z_en_blkobj.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Bom/z_en_bom.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Bom_Bowl_Man/z_en_bom_bowl_man.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Bom_Bowl_Pit/z_en_bom_bowl_pit.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Bom_Chu/z_en_bom_chu.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Bombf/z_en_bombf.c18
-rw-r--r--soh/src/overlays/actors/ovl_En_Boom/z_en_boom.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Box/z_en_box.c20
-rw-r--r--soh/src/overlays/actors/ovl_En_Brob/z_en_brob.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Bubble/z_en_bubble.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Butte/z_en_butte.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Bw/z_en_bw.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_Bx/z_en_bx.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Changer/z_en_changer.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Clear_Tag/z_en_clear_tag.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Cow/z_en_cow.c14
-rw-r--r--soh/src/overlays/actors/ovl_En_Crow/z_en_crow.c14
-rw-r--r--soh/src/overlays/actors/ovl_En_Cs/z_en_cs.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Daiku/z_en_daiku.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Daiku_Kakariko/z_en_daiku_kakariko.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Dekubaba/z_en_dekubaba.c10
-rw-r--r--soh/src/overlays/actors/ovl_En_Dekunuts/z_en_dekunuts.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Dh/z_en_dh.c14
-rw-r--r--soh/src/overlays/actors/ovl_En_Dha/z_en_dha.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Diving_Game/z_en_diving_game.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Dns/z_en_dns.c12
-rw-r--r--soh/src/overlays/actors/ovl_En_Dnt_Demo/z_en_dnt_demo.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Dnt_Jiji/z_en_dnt_jiji.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_Dnt_Nomal/z_en_dnt_nomal.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Dodojr/z_en_dodojr.c14
-rw-r--r--soh/src/overlays/actors/ovl_En_Dodongo/z_en_dodongo.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_Door/z_en_door.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Ds/z_en_ds.c12
-rw-r--r--soh/src/overlays/actors/ovl_En_Du/z_en_du.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Dy_Extra/z_en_dy_extra.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Eg/z_en_eg.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Eiyer/z_en_eiyer.c16
-rw-r--r--soh/src/overlays/actors/ovl_En_Elf/z_en_elf.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_Encount1/z_en_encount1.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Encount2/z_en_encount2.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Ex_Item/z_en_ex_item.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Ex_Ruppy/z_en_ex_ruppy.c10
-rw-r--r--soh/src/overlays/actors/ovl_En_Fd/z_en_fd.c12
-rw-r--r--soh/src/overlays/actors/ovl_En_Fd_Fire/z_en_fd_fire.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Fhg_Fire/z_en_fhg_fire.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Fire_Rock/z_en_fire_rock.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Firefly/z_en_firefly.c14
-rw-r--r--soh/src/overlays/actors/ovl_En_Fish/z_en_fish.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Floormas/z_en_floormas.c24
-rw-r--r--soh/src/overlays/actors/ovl_En_Fr/z_en_fr.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_Fu/z_en_fu.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Fw/z_en_fw.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Fz/z_en_fz.c14
-rw-r--r--soh/src/overlays/actors/ovl_En_G_Switch/z_en_g_switch.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Ganon_Mant/z_en_ganon_mant.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Ganon_Organ/z_en_ganon_organ.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Gb/z_en_gb.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Ge1/z_en_ge1.c10
-rw-r--r--soh/src/overlays/actors/ovl_En_Ge2/z_en_ge2.c10
-rw-r--r--soh/src/overlays/actors/ovl_En_Ge3/z_en_ge3.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_GeldB/z_en_geldb.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_GirlA/z_en_girla.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_Gm/z_en_gm.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Go/z_en_go.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Go2/z_en_go2.c24
-rw-r--r--soh/src/overlays/actors/ovl_En_Goma/z_en_goma.c10
-rw-r--r--soh/src/overlays/actors/ovl_En_Goroiwa/z_en_goroiwa.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Gs/z_en_gs.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Guest/z_en_guest.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Heishi1/z_en_heishi1.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Heishi2/z_en_heishi2.c10
-rw-r--r--soh/src/overlays/actors/ovl_En_Heishi4/z_en_heishi4.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Hintnuts/z_en_hintnuts.c26
-rw-r--r--soh/src/overlays/actors/ovl_En_Holl/z_en_holl.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Honotrap/z_en_honotrap.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Horse/z_en_horse.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Horse_Game_Check/z_en_horse_game_check.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Horse_Ganon/z_en_horse_ganon.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Horse_Link_Child/z_en_horse_link_child.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Horse_Normal/z_en_horse_normal.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Horse_Zelda/z_en_horse_zelda.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Hs/z_en_hs.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Hs2/z_en_hs2.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Hy/z_en_hy.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Ice_Hono/z_en_ice_hono.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Ik/z_en_ik.c10
-rw-r--r--soh/src/overlays/actors/ovl_En_In/z_en_in.c12
-rw-r--r--soh/src/overlays/actors/ovl_En_Insect/z_en_insect.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Ishi/z_en_ishi.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Jj/z_en_jj.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Js/z_en_js.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Jsjutan/z_en_jsjutan.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Kakasi/z_en_kakasi.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Kakasi2/z_en_kakasi2.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_Kakasi3/z_en_kakasi3.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Kanban/z_en_kanban.c14
-rw-r--r--soh/src/overlays/actors/ovl_En_Karebaba/z_en_karebaba.c12
-rw-r--r--soh/src/overlays/actors/ovl_En_Ko/z_en_ko.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_Kusa/z_en_kusa.c18
-rw-r--r--soh/src/overlays/actors/ovl_En_Kz/z_en_kz.c10
-rw-r--r--soh/src/overlays/actors/ovl_En_Lightbox/z_en_lightbox.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Ma1/z_en_ma1.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Ma2/z_en_ma2.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_Ma3/z_en_ma3.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_Mag/z_en_mag.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Mb/z_en_mb.c14
-rw-r--r--soh/src/overlays/actors/ovl_En_Md/z_en_md.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Mk/z_en_mk.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Mm/z_en_mm.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Mm2/z_en_mm2.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Ms/z_en_ms.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Mu/z_en_mu.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Nb/z_en_nb.c16
-rw-r--r--soh/src/overlays/actors/ovl_En_Niw/z_en_niw.c16
-rw-r--r--soh/src/overlays/actors/ovl_En_Niw_Girl/z_en_niw_girl.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Niw_Lady/z_en_niw_lady.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Nutsball/z_en_nutsball.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Nwc/z_en_nwc.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Ny/z_en_ny.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_OE2/z_en_oe2.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Okarina_Effect/z_en_okarina_effect.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Okarina_Tag/z_en_okarina_tag.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_Okuta/z_en_okuta.c14
-rw-r--r--soh/src/overlays/actors/ovl_En_Ossan/z_en_ossan.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Owl/z_en_owl.c12
-rw-r--r--soh/src/overlays/actors/ovl_En_Part/z_en_part.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Partner/z_en_partner.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Peehat/z_en_peehat.c10
-rw-r--r--soh/src/overlays/actors/ovl_En_Po_Desert/z_en_po_desert.c10
-rw-r--r--soh/src/overlays/actors/ovl_En_Po_Field/z_en_po_field.c18
-rw-r--r--soh/src/overlays/actors/ovl_En_Po_Relay/z_en_po_relay.c10
-rw-r--r--soh/src/overlays/actors/ovl_En_Po_Sisters/z_en_po_sisters.c20
-rw-r--r--soh/src/overlays/actors/ovl_En_Poh/z_en_poh.c24
-rw-r--r--soh/src/overlays/actors/ovl_En_Pu_box/z_en_pu_box.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Rd/z_en_rd.c12
-rw-r--r--soh/src/overlays/actors/ovl_En_Reeba/z_en_reeba.c16
-rw-r--r--soh/src/overlays/actors/ovl_En_River_Sound/z_en_river_sound.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Rl/z_en_rl.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Rr/z_en_rr.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_Ru1/z_en_ru1.c18
-rw-r--r--soh/src/overlays/actors/ovl_En_Ru2/z_en_ru2.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Sa/z_en_sa.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Sb/z_en_sb.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Sda/z_en_sda.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Shopnuts/z_en_shopnuts.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Si/z_en_si.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Siofuki/z_en_siofuki.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Skb/z_en_skb.c10
-rw-r--r--soh/src/overlays/actors/ovl_En_Skj/z_en_skj.c18
-rw-r--r--soh/src/overlays/actors/ovl_En_Skjneedle/z_en_skjneedle.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Ssh/z_en_ssh.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_St/z_en_st.c12
-rw-r--r--soh/src/overlays/actors/ovl_En_Sth/z_en_sth.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Stream/z_en_stream.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Sw/z_en_sw.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Syateki_Itm/z_en_syateki_itm.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Syateki_Man/z_en_syateki_man.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Syateki_Niw/z_en_syateki_niw.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Ta/z_en_ta.c14
-rw-r--r--soh/src/overlays/actors/ovl_En_Takara_Man/z_en_takara_man.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Tana/z_en_tana.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Test/z_en_test.c26
-rw-r--r--soh/src/overlays/actors/ovl_En_Tg/z_en_tg.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Tite/z_en_tite.c12
-rw-r--r--soh/src/overlays/actors/ovl_En_Tk/z_en_tk.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Torch2/z_en_torch2.c12
-rw-r--r--soh/src/overlays/actors/ovl_En_Toryo/z_en_toryo.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Tp/z_en_tp.c12
-rw-r--r--soh/src/overlays/actors/ovl_En_Tr/z_en_tr.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Trap/z_en_trap.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Tubo_Trap/z_en_tubo_trap.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Vali/z_en_vali.c20
-rw-r--r--soh/src/overlays/actors/ovl_En_Vase/z_en_vase.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Vb_Ball/z_en_vb_ball.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Viewer/z_en_viewer.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Vm/z_en_vm.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Wall_Tubo/z_en_wall_tubo.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Wallmas/z_en_wallmas.c14
-rw-r--r--soh/src/overlays/actors/ovl_En_Weather_Tag/z_en_weather_tag.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Weiyer/z_en_weiyer.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Wf/z_en_wf.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_Wonder_Item/z_en_wonder_item.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Wonder_Talk/z_en_wonder_talk.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Wonder_Talk2/z_en_wonder_talk2.c12
-rw-r--r--soh/src/overlays/actors/ovl_En_Wood02/z_en_wood02.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Xc/z_en_xc.c6
-rw-r--r--soh/src/overlays/actors/ovl_En_Yabusame_Mark/z_en_yabusame_mark.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Yukabyun/z_en_yukabyun.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_Zf/z_en_zf.c10
-rw-r--r--soh/src/overlays/actors/ovl_En_Zl1/z_en_zl1.c4
-rw-r--r--soh/src/overlays/actors/ovl_En_Zl2/z_en_zl2.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Zl3/z_en_zl3.c48
-rw-r--r--soh/src/overlays/actors/ovl_En_Zl4/z_en_zl4.c2
-rw-r--r--soh/src/overlays/actors/ovl_En_Zo/z_en_zo.c8
-rw-r--r--soh/src/overlays/actors/ovl_En_fHG/z_en_fhg.c2
-rw-r--r--soh/src/overlays/actors/ovl_End_Title/z_end_title.c2
-rw-r--r--soh/src/overlays/actors/ovl_Fishing/z_fishing.c26
-rw-r--r--soh/src/overlays/actors/ovl_Item_Etcetera/z_item_etcetera.c2
-rw-r--r--soh/src/overlays/actors/ovl_Item_Inbox/z_item_inbox.c2
-rw-r--r--soh/src/overlays/actors/ovl_Item_Ocarina/z_item_ocarina.c2
-rw-r--r--soh/src/overlays/actors/ovl_Item_Shield/z_item_shield.c2
-rw-r--r--soh/src/overlays/actors/ovl_Magic_Dark/z_magic_dark.c2
-rw-r--r--soh/src/overlays/actors/ovl_Magic_Fire/z_magic_fire.c2
-rw-r--r--soh/src/overlays/actors/ovl_Magic_Wind/z_magic_wind.c2
-rw-r--r--soh/src/overlays/actors/ovl_Mir_Ray/z_mir_ray.c2
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Bean/z_obj_bean.c8
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Dekujr/z_obj_dekujr.c2
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Hsblock/z_obj_hsblock.c4
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Ice_Poly/z_obj_ice_poly.c2
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Kibako/z_obj_kibako.c2
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Kibako2/z_obj_kibako2.c2
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Lift/z_obj_lift.c2
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Lightswitch/z_obj_lightswitch.c4
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Makekinsuta/z_obj_makekinsuta.c2
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Makeoshihiki/z_obj_makeoshihiki.c2
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Mure/z_obj_mure.c8
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Mure2/z_obj_mure2.c4
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Mure3/z_obj_mure3.c4
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Oshihiki/z_obj_oshihiki.c2
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Roomtimer/z_obj_roomtimer.c2
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Switch/z_obj_switch.c4
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Syokudai/z_obj_syokudai.c2
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Timeblock/z_obj_timeblock.c2
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Tsubo/z_obj_tsubo.c6
-rw-r--r--soh/src/overlays/actors/ovl_Obj_Warp2block/z_obj_warp2block.c2
-rw-r--r--soh/src/overlays/actors/ovl_Object_Kankyo/z_object_kankyo.c2
-rw-r--r--soh/src/overlays/actors/ovl_Oceff_Spot/z_oceff_spot.c2
-rw-r--r--soh/src/overlays/actors/ovl_Oceff_Storm/z_oceff_storm.c2
-rw-r--r--soh/src/overlays/actors/ovl_Oceff_Wipe/z_oceff_wipe.c2
-rw-r--r--soh/src/overlays/actors/ovl_Oceff_Wipe2/z_oceff_wipe2.c2
-rw-r--r--soh/src/overlays/actors/ovl_Oceff_Wipe3/z_oceff_wipe3.c2
-rw-r--r--soh/src/overlays/actors/ovl_Oceff_Wipe4/z_oceff_wipe4.c2
-rw-r--r--soh/src/overlays/actors/ovl_Shot_Sun/z_shot_sun.c10
-rw-r--r--soh/src/overlays/actors/ovl_player_actor/z_player.c52
383 files changed, 1251 insertions, 1165 deletions
diff --git a/soh/include/z64actor.h b/soh/include/z64actor.h
index 272237d21..6d8fd3ca0 100644
--- a/soh/include/z64actor.h
+++ b/soh/include/z64actor.h
@@ -94,34 +94,120 @@ typedef struct {
/* 0x18 */ Vec3f feetPos[2]; // Update by using `Actor_SetFeetPos` in PostLimbDraw
} ActorShape; // size = 0x30
-#define ACTOR_FLAG_TARGETABLE (1 << 0)
+// Actor is discoverable by the Attention System. This enables Navi to hover over the actor when it is in range.
+// The actor can also be locked onto (as long as `ACTOR_FLAG_LOCK_ON_DISABLED` is not set).
+#define ACTOR_FLAG_ATTENTION_ENABLED (1 << 0)
+
+// Actor is hostile toward the Player. Player has specific "battle" behavior when locked onto hostile actors.
+// Enemy background music will also be played when the player is close enough to a hostile actor.
+// Note: This must be paired with `ACTOR_FLAG_ATTENTION_ENABLED` to have any effect
#define ACTOR_FLAG_HOSTILE (1 << 2)
+
+// Actor is considered "friendly"; Opposite flag of `ACTOR_FLAG_HOSTILE`.
+// Note that this flag doesn't have any effect on either the actor, or Player's behavior.
+// What actually matters is the presence or lack of `ACTOR_FLAG_HOSTILE`.
#define ACTOR_FLAG_FRIENDLY (1 << 3)
-#define ACTOR_FLAG_UPDATE_WHILE_CULLED (1 << 4)
-#define ACTOR_FLAG_DRAW_WHILE_CULLED (1 << 5)
-#define ACTOR_FLAG_ACTIVE (1 << 6)
-#define ACTOR_FLAG_LENS (1 << 7)
-#define ACTOR_FLAG_PLAYER_TALKED_TO (1 << 8)
-#define ACTOR_FLAG_HOOKSHOT_DRAGS (1 << 9)
-#define ACTOR_FLAG_DRAGGED_BY_HOOKSHOT (1 << 10)
-#define ACTOR_FLAG_ENKUSA_CUT (1 << 11)
+
+// Culling of the actor's update process is disabled.
+// In other words, the actor will keep updating even if the actor is outside its own culling volume.
+// See `Actor_CullingCheck` for more information about culling.
+// See `Actor_CullingVolumeTest` for more information on the test used to determine if an actor should be culled.
+#define ACTOR_FLAG_UPDATE_CULLING_DISABLED (1 << 4)
+
+// Culling of the actor's draw process is disabled.
+// In other words, the actor will keep drawing even if the actor is outside its own culling volume.
+// See `Actor_CullingCheck` for more information about culling.
+// See `Actor_CullingVolumeTest` for more information on the test used to determine if an actor should be culled.
+// (The original name for this flag is `NO_CULL_DRAW`, known from the Majora's Mask Debug ROM)
+#define ACTOR_FLAG_DRAW_CULLING_DISABLED (1 << 5)
+
+// Set if the actor is currently within the bounds of its culling volume.
+// In most cases, this flag can be used to determine whether or not an actor is currently culled.
+// However this flag still updates even if `ACTOR_FLAG_UPDATE_CULLING_DISABLED` or `ACTOR_FLAG_DRAW_CULLING_DISABLED`
+// are set. Meaning, the flag can still have a value of "false" even if it is not actually culled.
+// (The original name for this flag is `NO_CULL_FLAG`, known from the Majora's Mask Debug ROM)
+#define ACTOR_FLAG_INSIDE_CULLING_VOLUME (1 << 6)
+
+// hidden or revealed by Lens of Truth (depending on room lensMode)
+#define ACTOR_FLAG_REACT_TO_LENS (1 << 7)
+
+// Signals that player has accepted an offer to talk to an actor
+// Player will retain this flag until the player is finished talking
+// Actor will retain this flag until `Actor_TalkOfferAccepted` is called or manually turned off by the actor
+#define ACTOR_FLAG_TALK (1 << 8)
+
+// When the hookshot attaches to this actor, the actor will be pulled back as the hookshot retracts.
+#define ACTOR_FLAG_HOOKSHOT_PULLS_ACTOR (1 << 9)
+
+// When the hookshot attaches to this actor, Player will be pulled by the hookshot and fly to the actor.
+#define ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER (1 << 10)
+
+// A clump of grass (EN_KUSA) has been destroyed.
+// This flag is used to communicate with the spawner actor (OBJ_MURE).
+#define ACTOR_FLAG_GRASS_DESTROYED (1 << 11)
+
+// Actor will not shake when a quake occurs
#define ACTOR_FLAG_IGNORE_QUAKE (1 << 12)
+
+// The hookshot is currently attached to this actor.
+// The behavior that occurs after attachment is determined by `ACTOR_FLAG_HOOKSHOT_PULLS_ACTOR` and `ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER`.
+// If neither of those flags are set attachment cannot occur, and the hookshot will simply act as a damage source.
+//
+// This flag is also reused to indicate that an actor is attached to the boomerang.
+// This only has an effect for Gold Skulltula Tokens (EN_SI) which has overlapping behavior for hookshot and boomerang.
#define ACTOR_FLAG_HOOKSHOT_ATTACHED (1 << 13)
-#define ACTOR_FLAG_ARROW_DRAGGABLE (1 << 14)
-#define ACTOR_FLAG_DRAGGED_BY_ARROW (1 << 15)
-#define ACTOR_FLAG_WILL_TALK (1 << 16)
-#define ACTOR_FLAG_PILLAR_PICKUP (1 << 17)
-#define ACTOR_FLAG_NAVI_HAS_INFO (1 << 18)
-#define ACTOR_FLAG_SFX_AT_POS (1 << 19)
-#define ACTOR_FLAG_SFX_AT_CENTER (1 << 20)
-#define ACTOR_FLAG_SFX_AT_CENTER2 (1 << 21)
+
+// When hit by an arrow, the actor will be able to attach to the arrow and fly with it in the air
+#define ACTOR_FLAG_CAN_ATTACH_TO_ARROW (1 << 14)
+
+// Actor is currently attached to an arrow and flying with it in the air
+#define ACTOR_FLAG_ATTACHED_TO_ARROW (1 << 15)
+
+// Player automatically accepts a Talk Offer without needing to press the A button.
+// Player still has to meet all conditions to be able to receive a talk offer (for example, being in range).
+#define ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED (1 << 16)
+
+// Actor will be influenced by the pitch (x rot) of Player's left hand when being carried,
+// instead of Player's yaw which is the default actor carry behavior.
+// This flag is helpful for something like the `BG_HEAVY_BLOCK` actor which Player carries underhanded.
+#define ACTOR_FLAG_CARRY_X_ROT_INFLUENCE (1 << 17)
+
+// When locked onto an actor with this flag set, the C-Up button can be used to talk to this actor.
+// A C-Up button labeled "Navi" will appear on the HUD when locked on which indicates the actor can be checked with Navi.
+// With this flag Player talks directly to the actor with C-Up. It is expected that the resulting dialog should appear
+// to be coming from Navi, even though she is not involved at all with this interaction.
+#define ACTOR_FLAG_TALK_WITH_C_UP (1 << 18)
+
+// Flags controlling the use of `Actor.sfx`. Do not use directly.
+#define ACTOR_FLAG_SFX_ACTOR_POS_2 (1 << 19)
+#define ACTOR_AUDIO_FLAG_SFX_CENTERED_1 (1 << 20)
+#define ACTOR_AUDIO_FLAG_SFX_CENTERED_2 (1 << 21)
+
+// ignores point lights but not directional lights (such as environment lights)
#define ACTOR_FLAG_IGNORE_POINTLIGHTS (1 << 22)
-#define ACTOR_FLAG_ALWAYS_THROWN (1 << 23)
-#define ACTOR_FLAG_PLAY_HIT_SFX (1 << 24)
-#define ACTOR_FLAG_NO_FREEZE_OCARINA (1 << 25)
-#define ACTOR_FLAG_CAN_PRESS_SWITCH (1 << 26)
-#define ACTOR_FLAG_NO_LOCKON (1 << 27)
-#define ACTOR_FLAG_SFX_AS_TIMER (1 << 28)
+
+// When Player is carrying this actor, it can only be thrown, not dropped/placed.
+// Typically an actor can only be thrown when moving, but this allows an actor to be thrown when standing still.
+#define ACTOR_FLAG_THROW_ONLY (1 << 23)
+
+// When colliding with Player's body AC collider, a "thump" sound will play indicating his body has been hit
+#define ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT (1 << 24)
+
+// Actor can update even if Player is currently using the ocarina.
+// Typically an actor will halt while the ocarina is active (depending on category).
+// This flag allows a given actor to be an exception.
+#define ACTOR_FLAG_UPDATE_DURING_OCARINA (1 << 25)
+
+// Actor can press and hold down switches.
+// See usages of `DynaPolyActor_SetSwitchPressed` and `DynaPolyActor_IsSwitchPressed` for more context on how switches work.
+#define ACTOR_FLAG_CAN_PRESS_SWITCHES (1 << 26)
+
+// Player is not able to lock onto the actor.
+// Navi will still be able to hover over the actor, assuming `ACTOR_FLAG_ATTENTION_ENABLED` is set.
+#define ACTOR_FLAG_LOCK_ON_DISABLED (1 << 27)
+
+// Flag controlling the use of `Actor.sfx`. Do not use directly. See Actor_PlaySfx_FlaggedTimer
+#define ACTOR_FLAG_SFX_TIMER (1 << 28)
typedef struct Actor {
/* 0x000 */ s16 id; // Actor ID
diff --git a/soh/soh/ActorDB.cpp b/soh/soh/ActorDB.cpp
index 604d48804..880b2dab9 100644
--- a/soh/soh/ActorDB.cpp
+++ b/soh/soh/ActorDB.cpp
@@ -598,7 +598,7 @@ static ActorDBInit EnPartnerInit = {
"En_Partner",
"Ivan",
ACTORCAT_ITEMACTION,
- (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_DRAGGED_BY_HOOKSHOT | ACTOR_FLAG_CAN_PRESS_SWITCH),
+ (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER | ACTOR_FLAG_CAN_PRESS_SWITCHES),
OBJECT_GAMEPLAY_KEEP,
sizeof(EnPartner),
(ActorFunc)EnPartner_Init,
diff --git a/soh/soh/Enhancements/TimeSavers/SkipMiscInteractions/SkipChildRutoInteractions.cpp b/soh/soh/Enhancements/TimeSavers/SkipMiscInteractions/SkipChildRutoInteractions.cpp
index aaaf1b39f..7d676e6f8 100644
--- a/soh/soh/Enhancements/TimeSavers/SkipMiscInteractions/SkipChildRutoInteractions.cpp
+++ b/soh/soh/Enhancements/TimeSavers/SkipMiscInteractions/SkipChildRutoInteractions.cpp
@@ -85,7 +85,7 @@ void SkipChildRutoInteractions_Register() {
if (enRu1->action == 22) {
enRu1->action = 27;
enRu1->drawConfig = 1;
- enRu1->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
+ enRu1->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
Animation_Change(&enRu1->skelAnime, (AnimationHeader*)&gRutoChildSittingAnim, 1.0f, 0.0f,
Animation_GetLastFrame((void*)&gRutoChildSittingAnim), ANIMMODE_LOOP, 0.0f);
}
diff --git a/soh/soh/Enhancements/debugger/MessageViewer.cpp b/soh/soh/Enhancements/debugger/MessageViewer.cpp
index 7ae34b4a8..4c3f62693 100644
--- a/soh/soh/Enhancements/debugger/MessageViewer.cpp
+++ b/soh/soh/Enhancements/debugger/MessageViewer.cpp
@@ -174,7 +174,7 @@ void MessageDebug_StartTextBox(const char* tableId, uint16_t textId, uint8_t lan
PlayState* play = gPlayState;
static int16_t messageStaticIndices[] = { 0, 1, 3, 2 };
const auto player = GET_PLAYER(gPlayState);
- player->actor.flags |= ACTOR_FLAG_PLAYER_TALKED_TO;
+ player->actor.flags |= ACTOR_FLAG_TALK;
MessageContext* msgCtx = &play->msgCtx;
msgCtx->ocarinaAction = 0xFFFF;
Font* font = &msgCtx->font;
diff --git a/soh/soh/Enhancements/nametag.cpp b/soh/soh/Enhancements/nametag.cpp
index c2d72eae0..49b0891fa 100644
--- a/soh/soh/Enhancements/nametag.cpp
+++ b/soh/soh/Enhancements/nametag.cpp
@@ -83,7 +83,7 @@ void DrawNameTag(PlayState* play, const NameTag* nameTag) {
// Prefer the highest between world position and focus position if targetable
float posY = nameTag->actor->world.pos.y;
- if (nameTag->actor->flags & ACTOR_FLAG_TARGETABLE) {
+ if (nameTag->actor->flags & ACTOR_FLAG_ATTENTION_ENABLED) {
posY = std::max(posY, nameTag->actor->focus.pos.y);
}
diff --git a/soh/soh/Enhancements/randomizer/fishsanity.cpp b/soh/soh/Enhancements/randomizer/fishsanity.cpp
index f3ff89d70..71c18727c 100644
--- a/soh/soh/Enhancements/randomizer/fishsanity.cpp
+++ b/soh/soh/Enhancements/randomizer/fishsanity.cpp
@@ -440,7 +440,7 @@ namespace Rando {
// Reset fish group counter when the group gets culled
if (actor->id == ACTOR_OBJ_MURE && gPlayState->sceneNum == SCENE_ZORAS_DOMAIN && fishGroupCounter > 0 &&
- !(actor->flags & ACTOR_FLAG_UPDATE_WHILE_CULLED) && fs->GetOverworldFishShuffled()) {
+ !(actor->flags & ACTOR_FLAG_UPDATE_CULLING_DISABLED) && fs->GetOverworldFishShuffled()) {
fishGroupCounter = 0;
}
}
diff --git a/soh/soh/Enhancements/randomizer/hook_handlers.cpp b/soh/soh/Enhancements/randomizer/hook_handlers.cpp
index 5624bb56b..2d9778243 100644
--- a/soh/soh/Enhancements/randomizer/hook_handlers.cpp
+++ b/soh/soh/Enhancements/randomizer/hook_handlers.cpp
@@ -1113,7 +1113,7 @@ void RandomizerOnVanillaBehaviorHandler(GIVanillaBehavior id, bool* should, va_l
enJs->actor.parent = NULL;
enJs->actor.textId = TEXT_CARPET_SALESMAN_ARMS_DEALER;
enJs->actionFunc = (EnJsActionFunc)func_80A890C0;
- enJs->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ enJs->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
Flags_SetRandomizerInf(RAND_INF_MERCHANTS_CARPET_SALESMAN);
*should = true;
}
@@ -1196,7 +1196,7 @@ void RandomizerOnVanillaBehaviorHandler(GIVanillaBehavior id, bool* should, va_l
Flags_SetItemGetInf(ITEMGETINF_30);
granny->actor.textId = 0x504F;
granny->actionFunc = (EnDsActionFunc)EnDs_TalkAfterGiveOddPotion;
- granny->actor.flags &= ~ACTOR_FLAG_PLAYER_TALKED_TO;
+ granny->actor.flags &= ~ACTOR_FLAG_TALK;
*should = false;
break;
}
@@ -1586,7 +1586,7 @@ void RandomizerOnVanillaBehaviorHandler(GIVanillaBehavior id, bool* should, va_l
case VB_TRADE_TIMER_EYEDROPS:{
EnMk* enMk = va_arg(args, EnMk*);
Flags_SetRandomizerInf(RAND_INF_ADULT_TRADES_LH_TRADE_FROG);
- enMk->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ enMk->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
enMk->actionFunc = EnMk_Wait;
enMk->flags |= 1;
*should = false;
diff --git a/soh/soh/Enhancements/timesaver_hook_handlers.cpp b/soh/soh/Enhancements/timesaver_hook_handlers.cpp
index 1056f9c9b..75d41d531 100644
--- a/soh/soh/Enhancements/timesaver_hook_handlers.cpp
+++ b/soh/soh/Enhancements/timesaver_hook_handlers.cpp
@@ -50,7 +50,7 @@ void EnMa1_EndTeachSong(EnMa1* enMa1, PlayState* play) {
if (Message_GetState(&gPlayState->msgCtx) == TEXT_STATE_CLOSING) {
Flags_SetRandomizerInf(RAND_INF_LEARNED_EPONA_SONG);
Sfx_PlaySfxCentered(NA_SE_SY_CORRECT_CHIME);
- enMa1->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ enMa1->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
play->msgCtx.ocarinaMode = OCARINA_MODE_04;
enMa1->actionFunc = func_80AA0D88;
enMa1->unk_1E0 = 1;
@@ -63,7 +63,7 @@ void EnFu_EndTeachSong(EnFu* enFu, PlayState* play) {
if (Message_GetState(&gPlayState->msgCtx) == TEXT_STATE_CLOSING) {
Sfx_PlaySfxCentered(NA_SE_SY_CORRECT_CHIME);
enFu->actionFunc = EnFu_WaitAdult;
- enFu->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ enFu->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
play->msgCtx.ocarinaMode = OCARINA_MODE_04;
Flags_SetEventChkInf(EVENTCHKINF_PLAYED_SONG_OF_STORMS_IN_WINDMILL);
diff --git a/soh/src/code/code_800430A0.c b/soh/src/code/code_800430A0.c
index 6047b2fc0..d1ccacc0d 100644
--- a/soh/src/code/code_800430A0.c
+++ b/soh/src/code/code_800430A0.c
@@ -62,7 +62,7 @@ void func_80043334(CollisionContext* colCtx, Actor* actor, s32 bgId) {
if (dynaActor != NULL) {
DynaPolyActor_SetActorOnTop(dynaActor);
- if (CHECK_FLAG_ALL(actor->flags, ACTOR_FLAG_CAN_PRESS_SWITCH)) {
+ if (CHECK_FLAG_ALL(actor->flags, ACTOR_FLAG_CAN_PRESS_SWITCHES)) {
DynaPolyActor_SetSwitchPressed(dynaActor);
}
}
diff --git a/soh/src/code/z_actor.c b/soh/src/code/z_actor.c
index 306a4f89c..5a5dc328e 100644
--- a/soh/src/code/z_actor.c
+++ b/soh/src/code/z_actor.c
@@ -529,7 +529,7 @@ void func_8002C124(TargetContext* targetCtx, PlayState* play) {
}
actor = targetCtx->unk_94;
- if ((actor != NULL) && !(actor->flags & ACTOR_FLAG_NO_LOCKON)) {
+ if ((actor != NULL) && !(actor->flags & ACTOR_FLAG_LOCK_ON_DISABLED)) {
FrameInterpolation_RecordOpenChild(actor, 1);
NaviColor* naviColor = &sNaviColorList[actor->category];
@@ -624,7 +624,7 @@ void func_8002C7BC(TargetContext* targetCtx, Player* player, Actor* actorArg, Pl
targetCtx->unk_48 = 0;
}
- lockOnSfxId = CHECK_FLAG_ALL(actorArg->flags, ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE) ? NA_SE_SY_LOCK_ON
+ lockOnSfxId = CHECK_FLAG_ALL(actorArg->flags, ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE) ? NA_SE_SY_LOCK_ON
: NA_SE_SY_LOCK_ON_HUMAN;
Sfx_PlaySfxCentered(lockOnSfxId);
}
@@ -1178,7 +1178,7 @@ void Actor_Kill(Actor* actor) {
GameInteractor_ExecuteOnActorKill(actor);
actor->draw = NULL;
actor->update = NULL;
- actor->flags &= ~ACTOR_FLAG_TARGETABLE;
+ actor->flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
void Actor_SetWorldToHome(Actor* actor) {
@@ -1854,7 +1854,7 @@ f32 func_8002EFC0(Actor* actor, Player* player, s16 arg2) {
s16 yawTempAbs = ABS(yawTemp);
if (player->focusActor != NULL) {
- if ((yawTempAbs > 0x4000) || (actor->flags & ACTOR_FLAG_NO_LOCKON)) {
+ if ((yawTempAbs > 0x4000) || (actor->flags & ACTOR_FLAG_LOCK_ON_DISABLED)) {
return FLT_MAX;
} else {
f32 ret =
@@ -1890,7 +1890,7 @@ u32 func_8002F090(Actor* actor, f32 arg1) {
}
s32 func_8002F0C8(Actor* actor, Player* player, s32 flag) {
- if ((actor->update == NULL) || !(actor->flags & ACTOR_FLAG_TARGETABLE)) {
+ if ((actor->update == NULL) || !(actor->flags & ACTOR_FLAG_ATTENTION_ENABLED)) {
return true;
}
@@ -1912,8 +1912,8 @@ s32 func_8002F0C8(Actor* actor, Player* player, s32 flag) {
}
u32 Actor_ProcessTalkRequest(Actor* actor, PlayState* play) {
- if (actor->flags & ACTOR_FLAG_PLAYER_TALKED_TO) {
- actor->flags &= ~ACTOR_FLAG_PLAYER_TALKED_TO;
+ if (actor->flags & ACTOR_FLAG_TALK) {
+ actor->flags &= ~ACTOR_FLAG_TALK;
return true;
}
@@ -1924,7 +1924,7 @@ s32 func_8002F1C4(Actor* actor, PlayState* play, f32 arg2, f32 arg3, u32 exchang
Player* player = GET_PLAYER(play);
// This is convoluted but it seems like it must be a single if statement to match
- if ((player->actor.flags & ACTOR_FLAG_PLAYER_TALKED_TO) || ((exchangeItemId != EXCH_ITEM_NONE) && Player_InCsMode(play)) ||
+ if ((player->actor.flags & ACTOR_FLAG_TALK) || ((exchangeItemId != EXCH_ITEM_NONE) && Player_InCsMode(play)) ||
(!actor->isTargeted &&
((arg3 < fabsf(actor->yDistToPlayer)) || (player->talkActorDistance < actor->xzDistToPlayer) ||
(arg2 < actor->xzDistToPlayer)))) {
@@ -2235,30 +2235,30 @@ void func_8002F850(PlayState* play, Actor* actor) {
void func_8002F8F0(Actor* actor, u16 sfxId) {
actor->sfx = sfxId;
- actor->flags |= ACTOR_FLAG_SFX_AT_POS;
- actor->flags &= ~(ACTOR_FLAG_SFX_AT_CENTER | ACTOR_FLAG_SFX_AT_CENTER2 | ACTOR_FLAG_SFX_AS_TIMER);
+ actor->flags |= ACTOR_FLAG_SFX_ACTOR_POS_2;
+ actor->flags &= ~(ACTOR_AUDIO_FLAG_SFX_CENTERED_1 | ACTOR_AUDIO_FLAG_SFX_CENTERED_2 | ACTOR_FLAG_SFX_TIMER);
}
void func_8002F91C(Actor* actor, u16 sfxId) {
actor->sfx = sfxId;
- actor->flags |= ACTOR_FLAG_SFX_AT_CENTER;
- actor->flags &= ~(ACTOR_FLAG_SFX_AT_POS | ACTOR_FLAG_SFX_AT_CENTER2 | ACTOR_FLAG_SFX_AS_TIMER);
+ actor->flags |= ACTOR_AUDIO_FLAG_SFX_CENTERED_1;
+ actor->flags &= ~(ACTOR_FLAG_SFX_ACTOR_POS_2 | ACTOR_AUDIO_FLAG_SFX_CENTERED_2 | ACTOR_FLAG_SFX_TIMER);
}
void func_8002F948(Actor* actor, u16 sfxId) {
actor->sfx = sfxId;
- actor->flags |= ACTOR_FLAG_SFX_AT_CENTER2;
- actor->flags &= ~(ACTOR_FLAG_SFX_AT_POS | ACTOR_FLAG_SFX_AT_CENTER | ACTOR_FLAG_SFX_AS_TIMER);
+ actor->flags |= ACTOR_AUDIO_FLAG_SFX_CENTERED_2;
+ actor->flags &= ~(ACTOR_FLAG_SFX_ACTOR_POS_2 | ACTOR_AUDIO_FLAG_SFX_CENTERED_1 | ACTOR_FLAG_SFX_TIMER);
}
void func_8002F974(Actor* actor, u16 sfxId) {
- actor->flags &= ~(ACTOR_FLAG_SFX_AT_POS | ACTOR_FLAG_SFX_AT_CENTER | ACTOR_FLAG_SFX_AT_CENTER2 | ACTOR_FLAG_SFX_AS_TIMER);
+ actor->flags &= ~(ACTOR_FLAG_SFX_ACTOR_POS_2 | ACTOR_AUDIO_FLAG_SFX_CENTERED_1 | ACTOR_AUDIO_FLAG_SFX_CENTERED_2 | ACTOR_FLAG_SFX_TIMER);
actor->sfx = sfxId;
}
void func_8002F994(Actor* actor, s32 arg1) {
- actor->flags |= ACTOR_FLAG_SFX_AS_TIMER;
- actor->flags &= ~(ACTOR_FLAG_SFX_AT_POS | ACTOR_FLAG_SFX_AT_CENTER | ACTOR_FLAG_SFX_AT_CENTER2);
+ actor->flags |= ACTOR_FLAG_SFX_TIMER;
+ actor->flags &= ~(ACTOR_FLAG_SFX_ACTOR_POS_2 | ACTOR_AUDIO_FLAG_SFX_CENTERED_1 | ACTOR_AUDIO_FLAG_SFX_CENTERED_2);
if (arg1 < 40) {
actor->sfx = NA_SE_PL_WALK_DIRT - SFX_FLAG;
} else if (arg1 < 100) {
@@ -2567,7 +2567,7 @@ void Actor_UpdateAll(PlayState* play, ActorContext* actorCtx) {
sp80 = &D_80116068[0];
if (player->stateFlags2 & PLAYER_STATE2_OCARINA_PLAYING) {
- unkFlag = ACTOR_FLAG_NO_FREEZE_OCARINA;
+ unkFlag = ACTOR_FLAG_UPDATE_DURING_OCARINA;
}
if ((player->stateFlags1 & PLAYER_STATE1_TALKING) && ((player->actor.textId & 0xFF00) != 0x600)) {
@@ -2622,9 +2622,9 @@ void Actor_UpdateAll(PlayState* play, ActorContext* actorCtx) {
actor->xyzDistToPlayerSq = SQ(actor->xzDistToPlayer) + SQ(actor->yDistToPlayer);
actor->yawTowardsPlayer = Actor_WorldYawTowardActor(actor, &player->actor);
- actor->flags &= ~ACTOR_FLAG_PLAY_HIT_SFX;
+ actor->flags &= ~ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
- if ((DECR(actor->freezeTimer) == 0) && (actor->flags & (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_ACTIVE))) {
+ if ((DECR(actor->freezeTimer) == 0) && (actor->flags & (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_INSIDE_CULLING_VOLUME))) {
if (actor == player->focusActor) {
actor->isTargeted = true;
} else {
@@ -2766,13 +2766,13 @@ void Actor_Draw(PlayState* play, Actor* actor) {
}
void func_80030ED8(Actor* actor) {
- if (actor->flags & ACTOR_FLAG_SFX_AT_POS) {
+ if (actor->flags & ACTOR_FLAG_SFX_ACTOR_POS_2) {
Audio_PlaySoundGeneral(actor->sfx, &actor->projectedPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb);
- } else if (actor->flags & ACTOR_FLAG_SFX_AT_CENTER) {
+ } else if (actor->flags & ACTOR_AUDIO_FLAG_SFX_CENTERED_1) {
Sfx_PlaySfxCentered(actor->sfx);
- } else if (actor->flags & ACTOR_FLAG_SFX_AT_CENTER2) {
+ } else if (actor->flags & ACTOR_AUDIO_FLAG_SFX_CENTERED_2) {
Sfx_PlaySfxCentered2(actor->sfx);
- } else if (actor->flags & ACTOR_FLAG_SFX_AS_TIMER) {
+ } else if (actor->flags & ACTOR_FLAG_SFX_TIMER) {
func_800F4C58(&gSfxDefaultPos, NA_SE_SY_TIMER - SFX_FLAG, (s8)(actor->sfx - 1));
} else {
Sfx_PlaySfxAtPos(&actor->projectedPos, actor->sfx);
@@ -3032,15 +3032,15 @@ void func_800315AC(PlayState* play, ActorContext* actorCtx) {
&shipShouldUpdate);
if (shipShouldUpdate) {
- actor->flags |= ACTOR_FLAG_ACTIVE;
+ actor->flags |= ACTOR_FLAG_INSIDE_CULLING_VOLUME;
} else {
- actor->flags &= ~ACTOR_FLAG_ACTIVE;
+ actor->flags &= ~ACTOR_FLAG_INSIDE_CULLING_VOLUME;
}
} else {
if (func_800314B0(play, actor)) {
- actor->flags |= ACTOR_FLAG_ACTIVE;
+ actor->flags |= ACTOR_FLAG_INSIDE_CULLING_VOLUME;
} else {
- actor->flags &= ~ACTOR_FLAG_ACTIVE;
+ actor->flags &= ~ACTOR_FLAG_INSIDE_CULLING_VOLUME;
}
}
}
@@ -3049,9 +3049,9 @@ void func_800315AC(PlayState* play, ActorContext* actorCtx) {
if ((HREG(64) != 1) || ((HREG(65) != -1) && (HREG(65) != HREG(66))) || (HREG(71) == 0)) {
if ((actor->init == NULL) && (actor->draw != NULL) &&
- ((actor->flags & (ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_ACTIVE)) || shipShouldDraw)) {
+ ((actor->flags & (ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_INSIDE_CULLING_VOLUME)) || shipShouldDraw)) {
// #endregion
- if ((actor->flags & ACTOR_FLAG_LENS) &&
+ if ((actor->flags & ACTOR_FLAG_REACT_TO_LENS) &&
((play->roomCtx.curRoom.lensMode == LENS_MODE_HIDE_ACTORS) ||
play->actorCtx.lensActive || (actor->room != play->roomCtx.curRoom.num))) {
assert(invisibleActorCounter < INVISIBLE_ACTOR_MAX);
@@ -3499,11 +3499,11 @@ void func_800328D4(PlayState* play, ActorContext* actorCtx, Player* player, u32
sp84 = player->focusActor;
while (actor != NULL) {
- if ((actor->update != NULL) && ((Player*)actor != player) && CHECK_FLAG_ALL(actor->flags, ACTOR_FLAG_TARGETABLE)) {
+ if ((actor->update != NULL) && ((Player*)actor != player) && CHECK_FLAG_ALL(actor->flags, ACTOR_FLAG_ATTENTION_ENABLED)) {
// This block below is for determining the closest actor to player in determining the volume
// used while playing enemy bgm music
- if ((actorCategory == ACTORCAT_ENEMY) && CHECK_FLAG_ALL(actor->flags, ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE) &&
+ if ((actorCategory == ACTORCAT_ENEMY) && CHECK_FLAG_ALL(actor->flags, ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE) &&
(actor->xyzDistToPlayerSq < SQ(500.0f)) && (actor->xyzDistToPlayerSq < sbgmEnemyDistSq)) {
actorCtx->targetCtx.bgmEnemy = actor;
sbgmEnemyDistSq = actor->xyzDistToPlayerSq;
@@ -4557,10 +4557,10 @@ s16 Actor_UpdateAlphaByDistance(Actor* actor, PlayState* play, s16 alpha, f32 ra
}
if (radius < distance) {
- actor->flags &= ~ACTOR_FLAG_TARGETABLE;
+ actor->flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Math_SmoothStepToS(&alpha, 0, 6, 0x14, 1);
} else {
- actor->flags |= ACTOR_FLAG_TARGETABLE;
+ actor->flags |= ACTOR_FLAG_ATTENTION_ENABLED;
Math_SmoothStepToS(&alpha, 0xFF, 6, 0x14, 1);
}
diff --git a/soh/src/code/z_en_a_keep.c b/soh/src/code/z_en_a_keep.c
index 9b29b666e..128b214fc 100644
--- a/soh/src/code/z_en_a_keep.c
+++ b/soh/src/code/z_en_a_keep.c
@@ -3,7 +3,7 @@
#include "objects/gameplay_keep/gameplay_keep.h"
#include <objects/object_d_hsblock/object_d_hsblock.h>
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnAObj_Init(Actor* thisx, PlayState* play);
void EnAObj_Destroy(Actor* thisx, PlayState* play);
@@ -142,7 +142,7 @@ void EnAObj_Init(Actor* thisx, PlayState* play) {
break;
case A_OBJ_UNKNOWN_6:
// clang-format off
- thisx->flags |= ACTOR_FLAG_TARGETABLE; this->dyna.bgId = 5; this->focusYoffset = 10.0f;
+ thisx->flags |= ACTOR_FLAG_ATTENTION_ENABLED; this->dyna.bgId = 5; this->focusYoffset = 10.0f;
// clang-format on
thisx->gravity = -2.0f;
EnAObj_SetupWaitTalk(this, thisx->params);
@@ -156,7 +156,7 @@ void EnAObj_Init(Actor* thisx, PlayState* play) {
case A_OBJ_SIGNPOST_ARROW:
thisx->textId = (this->textId & 0xFF) | 0x300;
// clang-format off
- thisx->flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY; thisx->targetArrowOffset = 500.0f;
+ thisx->flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY; thisx->targetArrowOffset = 500.0f;
// clang-format on
this->focusYoffset = 45.0f;
EnAObj_SetupWaitTalk(this, thisx->params);
diff --git a/soh/src/code/z_en_item00.c b/soh/src/code/z_en_item00.c
index 6b977650d..40a8ccbaa 100644
--- a/soh/src/code/z_en_item00.c
+++ b/soh/src/code/z_en_item00.c
@@ -1618,7 +1618,7 @@ EnItem00* Item_DropCollectible(PlayState* play, Vec3f* spawnPos, s16 params) {
(spawnedActor->actor.params != ITEM00_HEART_CONTAINER)) {
spawnedActor->actor.room = -1;
}
- spawnedActor->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ spawnedActor->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
}
}
@@ -1652,7 +1652,7 @@ EnItem00* Item_DropCollectible2(PlayState* play, Vec3f* spawnPos, s16 params) {
spawnedActor->actor.speedXZ = 0.0f;
spawnedActor->actor.gravity = param4000 ? 0.0f : -0.9f;
spawnedActor->actor.world.rot.y = Rand_CenteredFloat(65536.0f);
- spawnedActor->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ spawnedActor->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
}
}
@@ -1766,7 +1766,7 @@ void Item_DropCollectibleRandom(PlayState* play, Actor* fromActor, Vec3f* spawnP
spawnedActor->actor.world.rot.y = Rand_ZeroOne() * 40000.0f;
Actor_SetScale(&spawnedActor->actor, 0.0f);
EnItem00_SetupAction(spawnedActor, func_8001E304);
- spawnedActor->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ spawnedActor->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
if ((spawnedActor->actor.params != ITEM00_SMALL_KEY) &&
(spawnedActor->actor.params != ITEM00_HEART_PIECE) &&
(spawnedActor->actor.params != ITEM00_HEART_CONTAINER)) {
diff --git a/soh/src/code/z_player_call.c b/soh/src/code/z_player_call.c
index 89d093383..3b17c7acf 100644
--- a/soh/src/code/z_player_call.c
+++ b/soh/src/code/z_player_call.c
@@ -1,6 +1,6 @@
#include "global.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA | ACTOR_FLAG_CAN_PRESS_SWITCH)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA | ACTOR_FLAG_CAN_PRESS_SWITCHES)
void (*sPlayerCallInitFunc)(Actor* thisx, PlayState* play);
void (*sPlayerCallDestroyFunc)(Actor* thisx, PlayState* play);
diff --git a/soh/src/code/z_player_lib.c b/soh/src/code/z_player_lib.c
index 3207abaf6..33a8c5bb5 100644
--- a/soh/src/code/z_player_lib.c
+++ b/soh/src/code/z_player_lib.c
@@ -1876,7 +1876,7 @@ void Player_PostLimbDrawGameplay(PlayState* play, s32 limbIndex, Gfx** dList, Ve
Matrix_Get(&sp14C);
Matrix_MtxFToYXZRotS(&sp14C, &spB8, 0);
- if (hookedActor->flags & ACTOR_FLAG_PILLAR_PICKUP) {
+ if (hookedActor->flags & ACTOR_FLAG_CARRY_X_ROT_INFLUENCE) {
hookedActor->world.rot.x = hookedActor->shape.rot.x = spB8.x - this->unk_3BC.x;
} else {
hookedActor->world.rot.y = hookedActor->shape.rot.y = this->actor.shape.rot.y + this->unk_3BC.y;
diff --git a/soh/src/overlays/actors/ovl_Arms_Hook/z_arms_hook.c b/soh/src/overlays/actors/ovl_Arms_Hook/z_arms_hook.c
index ea1b6f0d6..d2103f9b5 100644
--- a/soh/src/overlays/actors/ovl_Arms_Hook/z_arms_hook.c
+++ b/soh/src/overlays/actors/ovl_Arms_Hook/z_arms_hook.c
@@ -1,7 +1,7 @@
#include "z_arms_hook.h"
#include "objects/object_link_boy/object_link_boy.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void ArmsHook_Init(Actor* thisx, PlayState* play);
void ArmsHook_Destroy(Actor* thisx, PlayState* play);
@@ -121,7 +121,7 @@ s32 ArmsHook_CheckForCancel(ArmsHook* this) {
Player* player = (Player*)this->actor.parent;
if (Player_HoldsHookshot(player)) {
- if ((player->itemAction != player->heldItemAction) || (player->actor.flags & ACTOR_FLAG_PLAYER_TALKED_TO) ||
+ if ((player->itemAction != player->heldItemAction) || (player->actor.flags & ACTOR_FLAG_TALK) ||
((player->stateFlags1 & (PLAYER_STATE1_DEAD | PLAYER_STATE1_DAMAGED)))) {
this->timer = 0;
ArmsHook_DetachHookFromActor(this);
@@ -172,10 +172,10 @@ void ArmsHook_Shoot(ArmsHook* this, PlayState* play) {
if ((this->timer != 0) && (this->collider.base.atFlags & AT_HIT) &&
(this->collider.info.atHitInfo->elemType != ELEMTYPE_UNK4)) {
touchedActor = this->collider.base.at;
- if ((touchedActor->update != NULL) && (touchedActor->flags & (ACTOR_FLAG_HOOKSHOT_DRAGS | ACTOR_FLAG_DRAGGED_BY_HOOKSHOT))) {
+ if ((touchedActor->update != NULL) && (touchedActor->flags & (ACTOR_FLAG_HOOKSHOT_PULLS_ACTOR | ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER))) {
if (this->collider.info.atHitInfo->bumperFlags & BUMP_HOOKABLE) {
ArmsHook_AttachHookToActor(this, touchedActor);
- if (CHECK_FLAG_ALL(touchedActor->flags, ACTOR_FLAG_DRAGGED_BY_HOOKSHOT)) {
+ if (CHECK_FLAG_ALL(touchedActor->flags, ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER)) {
func_80865044(this);
}
}
diff --git a/soh/src/overlays/actors/ovl_Arrow_Fire/z_arrow_fire.c b/soh/src/overlays/actors/ovl_Arrow_Fire/z_arrow_fire.c
index 984bf8ecd..ae9aff6b3 100644
--- a/soh/src/overlays/actors/ovl_Arrow_Fire/z_arrow_fire.c
+++ b/soh/src/overlays/actors/ovl_Arrow_Fire/z_arrow_fire.c
@@ -7,7 +7,7 @@
#include "z_arrow_fire.h"
#include "overlays/actors/ovl_En_Arrow/z_en_arrow.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void ArrowFire_Init(Actor* thisx, PlayState* play);
void ArrowFire_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Arrow_Ice/z_arrow_ice.c b/soh/src/overlays/actors/ovl_Arrow_Ice/z_arrow_ice.c
index 64ea63131..38f49e40f 100644
--- a/soh/src/overlays/actors/ovl_Arrow_Ice/z_arrow_ice.c
+++ b/soh/src/overlays/actors/ovl_Arrow_Ice/z_arrow_ice.c
@@ -8,7 +8,7 @@
#include "overlays/actors/ovl_En_Arrow/z_en_arrow.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void ArrowIce_Init(Actor* thisx, PlayState* play);
void ArrowIce_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Arrow_Light/z_arrow_light.c b/soh/src/overlays/actors/ovl_Arrow_Light/z_arrow_light.c
index f42a0bcef..6fa6a7002 100644
--- a/soh/src/overlays/actors/ovl_Arrow_Light/z_arrow_light.c
+++ b/soh/src/overlays/actors/ovl_Arrow_Light/z_arrow_light.c
@@ -8,7 +8,7 @@
#include "overlays/actors/ovl_En_Arrow/z_en_arrow.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void ArrowLight_Init(Actor* thisx, PlayState* play);
void ArrowLight_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Bdan_Objects/z_bg_bdan_objects.c b/soh/src/overlays/actors/ovl_Bg_Bdan_Objects/z_bg_bdan_objects.c
index e46758bd0..7b8932432 100644
--- a/soh/src/overlays/actors/ovl_Bg_Bdan_Objects/z_bg_bdan_objects.c
+++ b/soh/src/overlays/actors/ovl_Bg_Bdan_Objects/z_bg_bdan_objects.c
@@ -7,7 +7,7 @@
#include "z_bg_bdan_objects.h"
#include "objects/object_bdan_objects/object_bdan_objects.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgBdanObjects_Init(Actor* thisx, PlayState* play);
void BgBdanObjects_Destroy(Actor* thisx, PlayState* play);
@@ -115,7 +115,7 @@ void BgBdanObjects_Init(Actor* thisx, PlayState* play) {
this->switchFlag = (thisx->params >> 8) & 0x3F;
thisx->params &= 0xFF;
if (thisx->params == 2) {
- thisx->flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED;
+ thisx->flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED;
play->colCtx.colHeader->waterBoxes[7].ySurface = thisx->world.pos.y;
this->actionFunc = func_8086C9A8;
return;
diff --git a/soh/src/overlays/actors/ovl_Bg_Bdan_Switch/z_bg_bdan_switch.c b/soh/src/overlays/actors/ovl_Bg_Bdan_Switch/z_bg_bdan_switch.c
index 13ecc51bb..d2b896c24 100644
--- a/soh/src/overlays/actors/ovl_Bg_Bdan_Switch/z_bg_bdan_switch.c
+++ b/soh/src/overlays/actors/ovl_Bg_Bdan_Switch/z_bg_bdan_switch.c
@@ -8,7 +8,7 @@
#include "objects/object_bdan_objects/object_bdan_objects.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgBdanSwitch_Init(Actor* thisx, PlayState* play);
void BgBdanSwitch_Destroy(Actor* thisx, PlayState* play);
@@ -162,7 +162,7 @@ void BgBdanSwitch_Init(Actor* thisx, PlayState* play) {
case YELLOW_TALL_1:
case YELLOW_TALL_2:
BgBdanSwitch_InitCollision(this, play);
- this->dyna.actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->dyna.actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->dyna.actor.targetMode = 4;
break;
}
diff --git a/soh/src/overlays/actors/ovl_Bg_Bom_Guard/z_bg_bom_guard.c b/soh/src/overlays/actors/ovl_Bg_Bom_Guard/z_bg_bom_guard.c
index ed84bbc1c..323816674 100644
--- a/soh/src/overlays/actors/ovl_Bg_Bom_Guard/z_bg_bom_guard.c
+++ b/soh/src/overlays/actors/ovl_Bg_Bom_Guard/z_bg_bom_guard.c
@@ -9,7 +9,7 @@
#include "objects/object_bowl/object_bowl.h"
#include "vt.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgBomGuard_Init(Actor* thisx, PlayState* play);
void BgBomGuard_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Bowl_Wall/z_bg_bowl_wall.c b/soh/src/overlays/actors/ovl_Bg_Bowl_Wall/z_bg_bowl_wall.c
index 0f5436b28..45e4a330a 100644
--- a/soh/src/overlays/actors/ovl_Bg_Bowl_Wall/z_bg_bowl_wall.c
+++ b/soh/src/overlays/actors/ovl_Bg_Bowl_Wall/z_bg_bowl_wall.c
@@ -10,7 +10,7 @@
#include "objects/object_bowl/object_bowl.h"
#include "vt.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgBowlWall_Init(Actor* thisx, PlayState* play);
void BgBowlWall_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Breakwall/z_bg_breakwall.c b/soh/src/overlays/actors/ovl_Bg_Breakwall/z_bg_breakwall.c
index 621fe3901..95d12046a 100644
--- a/soh/src/overlays/actors/ovl_Bg_Breakwall/z_bg_breakwall.c
+++ b/soh/src/overlays/actors/ovl_Bg_Breakwall/z_bg_breakwall.c
@@ -12,7 +12,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
typedef struct {
/* 0x00 */ CollisionHeader* colHeader;
@@ -245,7 +245,7 @@ void BgBreakwall_WaitForObject(BgBreakwall* this, PlayState* play) {
this->dyna.actor.objBankIndex = this->bankIndex;
Actor_SetObjectDependency(play, &this->dyna.actor);
- this->dyna.actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->dyna.actor.draw = BgBreakwall_Draw;
CollisionHeader_GetVirtual(sBombableWallInfo[wallType].colHeader, &colHeader);
this->dyna.bgId = DynaPoly_SetBgActor(play, &play->colCtx.dyna, &this->dyna.actor, colHeader);
diff --git a/soh/src/overlays/actors/ovl_Bg_Ddan_Jd/z_bg_ddan_jd.c b/soh/src/overlays/actors/ovl_Bg_Ddan_Jd/z_bg_ddan_jd.c
index 70f055e6d..f27caa933 100644
--- a/soh/src/overlays/actors/ovl_Bg_Ddan_Jd/z_bg_ddan_jd.c
+++ b/soh/src/overlays/actors/ovl_Bg_Ddan_Jd/z_bg_ddan_jd.c
@@ -7,7 +7,7 @@
#include "z_bg_ddan_jd.h"
#include "objects/object_ddan_objects/object_ddan_objects.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgDdanJd_Init(Actor* thisx, PlayState* play);
void BgDdanJd_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Ddan_Kd/z_bg_ddan_kd.c b/soh/src/overlays/actors/ovl_Bg_Ddan_Kd/z_bg_ddan_kd.c
index 20334c893..2fbad32cb 100644
--- a/soh/src/overlays/actors/ovl_Bg_Ddan_Kd/z_bg_ddan_kd.c
+++ b/soh/src/overlays/actors/ovl_Bg_Ddan_Kd/z_bg_ddan_kd.c
@@ -7,7 +7,7 @@
#include "z_bg_ddan_kd.h"
#include "objects/object_ddan_objects/object_ddan_objects.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgDdanKd_Init(Actor* thisx, PlayState* play);
void BgDdanKd_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Dy_Yoseizo/z_bg_dy_yoseizo.c b/soh/src/overlays/actors/ovl_Bg_Dy_Yoseizo/z_bg_dy_yoseizo.c
index 83a9e3d3e..ce8cebd01 100644
--- a/soh/src/overlays/actors/ovl_Bg_Dy_Yoseizo/z_bg_dy_yoseizo.c
+++ b/soh/src/overlays/actors/ovl_Bg_Dy_Yoseizo/z_bg_dy_yoseizo.c
@@ -15,7 +15,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
typedef enum {
/* 0 */ FAIRY_UPGRADE_MAGIC,
diff --git a/soh/src/overlays/actors/ovl_Bg_Ganon_Otyuka/z_bg_ganon_otyuka.c b/soh/src/overlays/actors/ovl_Bg_Ganon_Otyuka/z_bg_ganon_otyuka.c
index 48362c49d..ae2067e64 100644
--- a/soh/src/overlays/actors/ovl_Bg_Ganon_Otyuka/z_bg_ganon_otyuka.c
+++ b/soh/src/overlays/actors/ovl_Bg_Ganon_Otyuka/z_bg_ganon_otyuka.c
@@ -10,7 +10,7 @@
#include "soh/frame_interpolation.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
typedef enum {
/* 0x00 */ FLASH_NONE,
diff --git a/soh/src/overlays/actors/ovl_Bg_Gnd_Darkmeiro/z_bg_gnd_darkmeiro.c b/soh/src/overlays/actors/ovl_Bg_Gnd_Darkmeiro/z_bg_gnd_darkmeiro.c
index 9c14562e2..c2ad6c164 100644
--- a/soh/src/overlays/actors/ovl_Bg_Gnd_Darkmeiro/z_bg_gnd_darkmeiro.c
+++ b/soh/src/overlays/actors/ovl_Bg_Gnd_Darkmeiro/z_bg_gnd_darkmeiro.c
@@ -7,7 +7,7 @@
#include "z_bg_gnd_darkmeiro.h"
#include "objects/object_demo_kekkai/object_demo_kekkai.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgGndDarkmeiro_Init(Actor* thisx, PlayState* play);
void BgGndDarkmeiro_Destroy(Actor* thisx, PlayState* play);
@@ -56,7 +56,7 @@ void BgGndDarkmeiro_Init(Actor* thisx, PlayState* play2) {
switch (this->dyna.actor.params & 0xFF) {
case DARKMEIRO_INVISIBLE_PATH:
this->dyna.actor.draw = BgGndDarkmeiro_DrawInvisiblePath;
- this->dyna.actor.flags |= ACTOR_FLAG_LENS;
+ this->dyna.actor.flags |= ACTOR_FLAG_REACT_TO_LENS;
break;
case DARKMEIRO_CLEAR_BLOCK:
CollisionHeader_GetVirtual(&gClearBlockCol, &colHeader);
diff --git a/soh/src/overlays/actors/ovl_Bg_Gnd_Firemeiro/z_bg_gnd_firemeiro.c b/soh/src/overlays/actors/ovl_Bg_Gnd_Firemeiro/z_bg_gnd_firemeiro.c
index e838191ae..b136c995a 100644
--- a/soh/src/overlays/actors/ovl_Bg_Gnd_Firemeiro/z_bg_gnd_firemeiro.c
+++ b/soh/src/overlays/actors/ovl_Bg_Gnd_Firemeiro/z_bg_gnd_firemeiro.c
@@ -7,7 +7,7 @@
#include "z_bg_gnd_firemeiro.h"
#include "objects/object_demo_kekkai/object_demo_kekkai.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgGndFiremeiro_Init(Actor* thisx, PlayState* play);
void BgGndFiremeiro_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Gnd_Iceblock/z_bg_gnd_iceblock.c b/soh/src/overlays/actors/ovl_Bg_Gnd_Iceblock/z_bg_gnd_iceblock.c
index 37ff09efc..7e90818ed 100644
--- a/soh/src/overlays/actors/ovl_Bg_Gnd_Iceblock/z_bg_gnd_iceblock.c
+++ b/soh/src/overlays/actors/ovl_Bg_Gnd_Iceblock/z_bg_gnd_iceblock.c
@@ -8,7 +8,7 @@
#include "objects/object_demo_kekkai/object_demo_kekkai.h"
#include <assert.h>
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
typedef enum {
/* 0 */ GNDICE_IDLE,
diff --git a/soh/src/overlays/actors/ovl_Bg_Gnd_Nisekabe/z_bg_gnd_nisekabe.c b/soh/src/overlays/actors/ovl_Bg_Gnd_Nisekabe/z_bg_gnd_nisekabe.c
index 2ffb8a98e..b710bdbd8 100644
--- a/soh/src/overlays/actors/ovl_Bg_Gnd_Nisekabe/z_bg_gnd_nisekabe.c
+++ b/soh/src/overlays/actors/ovl_Bg_Gnd_Nisekabe/z_bg_gnd_nisekabe.c
@@ -7,7 +7,7 @@
#include "z_bg_gnd_nisekabe.h"
#include "objects/object_demo_kekkai/object_demo_kekkai.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgGndNisekabe_Init(Actor* thisx, PlayState* play);
void BgGndNisekabe_Destroy(Actor* thisx, PlayState* play);
@@ -41,9 +41,9 @@ void BgGndNisekabe_Update(Actor* thisx, PlayState* play) {
BgGndNisekabe* this = (BgGndNisekabe*)thisx;
if (play->actorCtx.lensActive) {
- this->actor.flags |= ACTOR_FLAG_LENS;
+ this->actor.flags |= ACTOR_FLAG_REACT_TO_LENS;
} else {
- this->actor.flags &= ~ACTOR_FLAG_LENS;
+ this->actor.flags &= ~ACTOR_FLAG_REACT_TO_LENS;
}
}
@@ -56,7 +56,7 @@ void BgGndNisekabe_Draw(Actor* thisx, PlayState* play) {
BgGndNisekabe* this = (BgGndNisekabe*)thisx;
u32 index = this->actor.params & 0xFF;
- if (CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_LENS)) {
+ if (CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_REACT_TO_LENS)) {
Gfx_DrawDListXlu(play, dLists[index]);
} else {
Gfx_DrawDListOpa(play, dLists[index]);
diff --git a/soh/src/overlays/actors/ovl_Bg_Haka_Gate/z_bg_haka_gate.c b/soh/src/overlays/actors/ovl_Bg_Haka_Gate/z_bg_haka_gate.c
index fb6e77efc..ed60cfe3d 100644
--- a/soh/src/overlays/actors/ovl_Bg_Haka_Gate/z_bg_haka_gate.c
+++ b/soh/src/overlays/actors/ovl_Bg_Haka_Gate/z_bg_haka_gate.c
@@ -99,7 +99,7 @@ void BgHakaGate_Init(Actor* thisx, PlayState* play) {
this->actionFunc = BgHakaGate_FalseSkull;
}
this->vScrollTimer = Rand_ZeroOne() * 20.0f;
- thisx->flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ thisx->flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
if (Flags_GetSwitch(play, this->switchFlag)) {
this->vFlameScale = 350;
}
@@ -126,7 +126,7 @@ void BgHakaGate_Init(Actor* thisx, PlayState* play) {
this->actionFunc = BgHakaGate_DoNothing;
thisx->world.pos.y += 80.0f;
} else {
- thisx->flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ thisx->flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
Actor_SetFocus(thisx, 30.0f);
this->actionFunc = BgHakaGate_GateWait;
}
@@ -276,7 +276,7 @@ void BgHakaGate_GateWait(BgHakaGate* this, PlayState* play) {
void BgHakaGate_GateOpen(BgHakaGate* this, PlayState* play) {
if (Math_StepToF(&this->dyna.actor.world.pos.y, this->dyna.actor.home.pos.y + 80.0f, 1.0f)) {
Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_METALDOOR_STOP);
- this->dyna.actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actionFunc = BgHakaGate_DoNothing;
} else {
func_8002F974(&this->dyna.actor, NA_SE_EV_METALDOOR_SLIDE - SFX_FLAG);
@@ -294,9 +294,9 @@ void BgHakaGate_FalseSkull(BgHakaGate* this, PlayState* play) {
Math_StepToS(&this->vFlameScale, 350, 20);
}
if (play->actorCtx.lensActive) {
- this->dyna.actor.flags |= ACTOR_FLAG_LENS;
+ this->dyna.actor.flags |= ACTOR_FLAG_REACT_TO_LENS;
} else {
- this->dyna.actor.flags &= ~ACTOR_FLAG_LENS;
+ this->dyna.actor.flags &= ~ACTOR_FLAG_REACT_TO_LENS;
}
}
@@ -345,7 +345,7 @@ void BgHakaGate_Draw(Actor* thisx, PlayState* play) {
BgHakaGate* this = (BgHakaGate*)thisx;
MtxF currentMtxF;
- if (CHECK_FLAG_ALL(thisx->flags, ACTOR_FLAG_LENS)) {
+ if (CHECK_FLAG_ALL(thisx->flags, ACTOR_FLAG_REACT_TO_LENS)) {
Gfx_DrawDListXlu(play, object_haka_objects_DL_00F1B0);
} else {
Gfx_SetupDL_25Opa(play->state.gfxCtx);
diff --git a/soh/src/overlays/actors/ovl_Bg_Haka_Huta/z_bg_haka_huta.c b/soh/src/overlays/actors/ovl_Bg_Haka_Huta/z_bg_haka_huta.c
index 9845b91d5..ae2fc37f0 100644
--- a/soh/src/overlays/actors/ovl_Bg_Haka_Huta/z_bg_haka_huta.c
+++ b/soh/src/overlays/actors/ovl_Bg_Haka_Huta/z_bg_haka_huta.c
@@ -7,7 +7,7 @@
#include "z_bg_haka_huta.h"
#include "objects/object_hakach_objects/object_hakach_objects.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgHakaHuta_Init(Actor* thisx, PlayState* play);
void BgHakaHuta_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Haka_Megane/z_bg_haka_megane.c b/soh/src/overlays/actors/ovl_Bg_Haka_Megane/z_bg_haka_megane.c
index 5e43aa62f..3bfce6c2a 100644
--- a/soh/src/overlays/actors/ovl_Bg_Haka_Megane/z_bg_haka_megane.c
+++ b/soh/src/overlays/actors/ovl_Bg_Haka_Megane/z_bg_haka_megane.c
@@ -8,7 +8,7 @@
#include "objects/object_hakach_objects/object_hakach_objects.h"
#include "objects/object_haka_objects/object_haka_objects.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_LENS)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_REACT_TO_LENS)
void BgHakaMegane_Init(Actor* thisx, PlayState* play);
void BgHakaMegane_Destroy(Actor* thisx, PlayState* play);
@@ -110,10 +110,10 @@ void func_8087DBF0(BgHakaMegane* this, PlayState* play) {
Actor* thisx = &this->dyna.actor;
if (play->actorCtx.lensActive) {
- thisx->flags |= ACTOR_FLAG_LENS;
+ thisx->flags |= ACTOR_FLAG_REACT_TO_LENS;
func_8003EBF8(play, &play->colCtx.dyna, this->dyna.bgId);
} else {
- thisx->flags &= ~ACTOR_FLAG_LENS;
+ thisx->flags &= ~ACTOR_FLAG_REACT_TO_LENS;
func_8003EC50(play, &play->colCtx.dyna, this->dyna.bgId);
}
}
@@ -130,7 +130,7 @@ void BgHakaMegane_Update(Actor* thisx, PlayState* play) {
void BgHakaMegane_Draw(Actor* thisx, PlayState* play) {
BgHakaMegane* this = (BgHakaMegane*)thisx;
- if (CHECK_FLAG_ALL(thisx->flags, ACTOR_FLAG_LENS)) {
+ if (CHECK_FLAG_ALL(thisx->flags, ACTOR_FLAG_REACT_TO_LENS)) {
Gfx_DrawDListXlu(play, sDLists[thisx->params]);
} else {
Gfx_DrawDListOpa(play, sDLists[thisx->params]);
diff --git a/soh/src/overlays/actors/ovl_Bg_Haka_MeganeBG/z_bg_haka_meganebg.c b/soh/src/overlays/actors/ovl_Bg_Haka_MeganeBG/z_bg_haka_meganebg.c
index 28e012fae..49b6e5f7c 100644
--- a/soh/src/overlays/actors/ovl_Bg_Haka_MeganeBG/z_bg_haka_meganebg.c
+++ b/soh/src/overlays/actors/ovl_Bg_Haka_MeganeBG/z_bg_haka_meganebg.c
@@ -65,7 +65,7 @@ void BgHakaMeganeBG_Init(Actor* thisx, PlayState* play) {
if (thisx->params == 2) {
DynaPolyActor_Init(&this->dyna, DPM_UNK3);
- thisx->flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ thisx->flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
CollisionHeader_GetVirtual(&object_haka_objects_Col_005334, &colHeader);
this->actionFunc = func_8087E258;
} else {
@@ -73,7 +73,7 @@ void BgHakaMeganeBG_Init(Actor* thisx, PlayState* play) {
if (thisx->params == 0) {
CollisionHeader_GetVirtual(&object_haka_objects_Col_009168, &colHeader);
- thisx->flags |= ACTOR_FLAG_LENS;
+ thisx->flags |= ACTOR_FLAG_REACT_TO_LENS;
this->unk_16A = 20;
this->actionFunc = func_8087DFF8;
} else if (thisx->params == 3) {
@@ -84,7 +84,7 @@ void BgHakaMeganeBG_Init(Actor* thisx, PlayState* play) {
this->actionFunc = func_8087E34C;
thisx->world.pos.y = thisx->home.pos.y;
} else {
- thisx->flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ thisx->flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actionFunc = func_8087E288;
}
} else {
diff --git a/soh/src/overlays/actors/ovl_Bg_Haka_Sgami/z_bg_haka_sgami.c b/soh/src/overlays/actors/ovl_Bg_Haka_Sgami/z_bg_haka_sgami.c
index 59eabd941..31adbca41 100644
--- a/soh/src/overlays/actors/ovl_Bg_Haka_Sgami/z_bg_haka_sgami.c
+++ b/soh/src/overlays/actors/ovl_Bg_Haka_Sgami/z_bg_haka_sgami.c
@@ -8,7 +8,7 @@
#include "objects/object_haka_objects/object_haka_objects.h"
#include "objects/object_ice_objects/object_ice_objects.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
typedef enum {
/* 0 */ SCYTHE_TRAP_SHADOW_TEMPLE,
@@ -143,7 +143,7 @@ void BgHakaSgami_Init(Actor* thisx, PlayState* play) {
thisx->params = (thisx->params >> 8) & 0xFF;
if (this->unk_151 != 0) {
- thisx->flags |= ACTOR_FLAG_LENS;
+ thisx->flags |= ACTOR_FLAG_REACT_TO_LENS;
}
Collider_InitTris(play, colliderScythe);
@@ -171,7 +171,7 @@ void BgHakaSgami_Init(Actor* thisx, PlayState* play) {
if (thisx->params == SCYTHE_TRAP_SHADOW_TEMPLE) {
this->requiredObjBankIndex = Object_GetIndex(&play->objectCtx, OBJECT_HAKA_OBJECTS);
- thisx->flags &= ~ACTOR_FLAG_TARGETABLE;
+ thisx->flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
} else {
this->requiredObjBankIndex = Object_GetIndex(&play->objectCtx, OBJECT_ICE_OBJECTS);
this->colliderScytheCenter.dim.radius = 30;
@@ -201,7 +201,7 @@ void BgHakaSgami_SetupSpin(BgHakaSgami* this, PlayState* play) {
this->actor.objBankIndex = this->requiredObjBankIndex;
this->actor.draw = BgHakaSgami_Draw;
this->timer = SCYTHE_SPIN_TIME;
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actionFunc = BgHakaSgami_Spin;
}
}
diff --git a/soh/src/overlays/actors/ovl_Bg_Haka_Ship/z_bg_haka_ship.c b/soh/src/overlays/actors/ovl_Bg_Haka_Ship/z_bg_haka_ship.c
index b47a85590..aef728cdb 100644
--- a/soh/src/overlays/actors/ovl_Bg_Haka_Ship/z_bg_haka_ship.c
+++ b/soh/src/overlays/actors/ovl_Bg_Haka_Ship/z_bg_haka_ship.c
@@ -7,7 +7,7 @@
#include "z_bg_haka_ship.h"
#include "objects/object_haka_objects/object_haka_objects.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgHakaShip_Init(Actor* thisx, PlayState* play);
void BgHakaShip_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Haka_Trap/z_bg_haka_trap.c b/soh/src/overlays/actors/ovl_Bg_Haka_Trap/z_bg_haka_trap.c
index faf78019d..d16c19049 100644
--- a/soh/src/overlays/actors/ovl_Bg_Haka_Trap/z_bg_haka_trap.c
+++ b/soh/src/overlays/actors/ovl_Bg_Haka_Trap/z_bg_haka_trap.c
@@ -133,7 +133,7 @@ void BgHakaTrap_Init(Actor* thisx, PlayState* play) {
this->actionFunc = func_80880484;
} else {
DynaPolyActor_Init(&this->dyna, DPM_PLAYER);
- thisx->flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ thisx->flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
if (thisx->params == HAKA_TRAP_SPIKED_BOX) {
CollisionHeader_GetVirtual(&object_haka_objects_Col_009CD0, &colHeader);
diff --git a/soh/src/overlays/actors/ovl_Bg_Haka_Tubo/z_bg_haka_tubo.c b/soh/src/overlays/actors/ovl_Bg_Haka_Tubo/z_bg_haka_tubo.c
index 080d50814..e0316097b 100644
--- a/soh/src/overlays/actors/ovl_Bg_Haka_Tubo/z_bg_haka_tubo.c
+++ b/soh/src/overlays/actors/ovl_Bg_Haka_Tubo/z_bg_haka_tubo.c
@@ -8,7 +8,7 @@
#include "objects/gameplay_keep/gameplay_keep.h"
#include "objects/object_haka_objects/object_haka_objects.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgHakaTubo_Init(Actor* thisx, PlayState* play);
void BgHakaTubo_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Haka_Water/z_bg_haka_water.c b/soh/src/overlays/actors/ovl_Bg_Haka_Water/z_bg_haka_water.c
index 72730cdf0..08a03bcdc 100644
--- a/soh/src/overlays/actors/ovl_Bg_Haka_Water/z_bg_haka_water.c
+++ b/soh/src/overlays/actors/ovl_Bg_Haka_Water/z_bg_haka_water.c
@@ -7,7 +7,7 @@
#include "z_bg_haka_water.h"
#include "objects/object_hakach_objects/object_hakach_objects.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgHakaWater_Init(Actor* thisx, PlayState* play);
void BgHakaWater_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Haka_Zou/z_bg_haka_zou.c b/soh/src/overlays/actors/ovl_Bg_Haka_Zou/z_bg_haka_zou.c
index f41964603..577584ed0 100644
--- a/soh/src/overlays/actors/ovl_Bg_Haka_Zou/z_bg_haka_zou.c
+++ b/soh/src/overlays/actors/ovl_Bg_Haka_Zou/z_bg_haka_zou.c
@@ -8,7 +8,7 @@
#include "objects/object_hakach_objects/object_hakach_objects.h"
#include "objects/object_haka_objects/object_haka_objects.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
typedef enum {
/* 0x0 */ STA_GIANT_BIRD_STATUE,
diff --git a/soh/src/overlays/actors/ovl_Bg_Heavy_Block/z_bg_heavy_block.c b/soh/src/overlays/actors/ovl_Bg_Heavy_Block/z_bg_heavy_block.c
index 474764d7f..e4c6157b6 100644
--- a/soh/src/overlays/actors/ovl_Bg_Heavy_Block/z_bg_heavy_block.c
+++ b/soh/src/overlays/actors/ovl_Bg_Heavy_Block/z_bg_heavy_block.c
@@ -77,7 +77,7 @@ void BgHeavyBlock_InitPiece(BgHeavyBlock* this, f32 scale) {
void BgHeavyBlock_SetupDynapoly(BgHeavyBlock* this, PlayState* play) {
s32 pad[2];
CollisionHeader* colHeader = NULL;
- this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_PILLAR_PICKUP;
+ this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_CARRY_X_ROT_INFLUENCE;
DynaPolyActor_Init(&this->dyna, DPM_UNK);
CollisionHeader_GetVirtual(&gHeavyBlockCol, &colHeader);
this->dyna.bgId = DynaPoly_SetBgActor(play, &play->colCtx.dyna, &this->dyna.actor, colHeader);
@@ -101,7 +101,7 @@ void BgHeavyBlock_Init(Actor* thisx, PlayState* play) {
this->actionFunc = BgHeavyBlock_MovePiece;
BgHeavyBlock_InitPiece(this, 1.0f);
this->timer = 120;
- thisx->flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ thisx->flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->unk_164.y = -50.0f;
break;
case HEAVYBLOCK_SMALL_PIECE:
@@ -109,7 +109,7 @@ void BgHeavyBlock_Init(Actor* thisx, PlayState* play) {
this->actionFunc = BgHeavyBlock_MovePiece;
BgHeavyBlock_InitPiece(this, 2.0f);
this->timer = 120;
- thisx->flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ thisx->flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->unk_164.y = -20.0f;
break;
case HEAVYBLOCK_BREAKABLE:
@@ -474,7 +474,7 @@ void BgHeavyBlock_Land(BgHeavyBlock* this, PlayState* play) {
break;
}
} else {
- this->dyna.actor.flags &= ~(ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED);
+ this->dyna.actor.flags &= ~(ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED);
this->actionFunc = BgHeavyBlock_DoNothing;
}
}
diff --git a/soh/src/overlays/actors/ovl_Bg_Hidan_Curtain/z_bg_hidan_curtain.c b/soh/src/overlays/actors/ovl_Bg_Hidan_Curtain/z_bg_hidan_curtain.c
index 2b4849643..10e3c6a83 100644
--- a/soh/src/overlays/actors/ovl_Bg_Hidan_Curtain/z_bg_hidan_curtain.c
+++ b/soh/src/overlays/actors/ovl_Bg_Hidan_Curtain/z_bg_hidan_curtain.c
@@ -7,7 +7,7 @@
#include "z_bg_hidan_curtain.h"
#include "objects/gameplay_keep/gameplay_keep.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgHidanCurtain_Init(Actor* thisx, PlayState* play);
void BgHidanCurtain_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Hidan_Dalm/z_bg_hidan_dalm.c b/soh/src/overlays/actors/ovl_Bg_Hidan_Dalm/z_bg_hidan_dalm.c
index c1d402188..725bfacd6 100644
--- a/soh/src/overlays/actors/ovl_Bg_Hidan_Dalm/z_bg_hidan_dalm.c
+++ b/soh/src/overlays/actors/ovl_Bg_Hidan_Dalm/z_bg_hidan_dalm.c
@@ -139,7 +139,7 @@ void BgHidanDalm_Wait(BgHidanDalm* this, PlayState* play) {
this->dyna.actor.world.pos.z += 32.5f * Math_CosS(this->dyna.actor.world.rot.y);
Player_SetCsActionWithHaltedActors(play, &this->dyna.actor, 8);
- this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actionFunc = BgHidanDalm_Shrink;
this->dyna.actor.bgCheckFlags &= ~2;
this->dyna.actor.bgCheckFlags &= ~8;
diff --git a/soh/src/overlays/actors/ovl_Bg_Hidan_Fslift/z_bg_hidan_fslift.c b/soh/src/overlays/actors/ovl_Bg_Hidan_Fslift/z_bg_hidan_fslift.c
index 9ff062dd7..b25089215 100644
--- a/soh/src/overlays/actors/ovl_Bg_Hidan_Fslift/z_bg_hidan_fslift.c
+++ b/soh/src/overlays/actors/ovl_Bg_Hidan_Fslift/z_bg_hidan_fslift.c
@@ -7,7 +7,7 @@
#include "z_bg_hidan_fslift.h"
#include "objects/object_hidan_objects/object_hidan_objects.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgHidanFslift_Init(Actor* thisx, PlayState* play);
void BgHidanFslift_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Hidan_Fwbig/z_bg_hidan_fwbig.c b/soh/src/overlays/actors/ovl_Bg_Hidan_Fwbig/z_bg_hidan_fwbig.c
index 5f128bda9..11f3e9a60 100644
--- a/soh/src/overlays/actors/ovl_Bg_Hidan_Fwbig/z_bg_hidan_fwbig.c
+++ b/soh/src/overlays/actors/ovl_Bg_Hidan_Fwbig/z_bg_hidan_fwbig.c
@@ -9,7 +9,7 @@
#include "objects/gameplay_keep/gameplay_keep.h"
#include "objects/object_hidan_objects/object_hidan_objects.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
typedef enum {
/* 0 */ FWBIG_MOVE,
@@ -95,7 +95,7 @@ void BgHidanFwbig_Init(Actor* thisx, PlayState* play2) {
BgHidanFwbig_UpdatePosition(this);
Actor_SetScale(&this->actor, 0.15f);
this->collider.dim.height = 230;
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->moveState = FWBIG_MOVE;
this->actionFunc = BgHidanFwbig_WaitForPlayer;
this->actor.world.pos.y = this->actor.home.pos.y - (2400.0f * this->actor.scale.y);
diff --git a/soh/src/overlays/actors/ovl_Bg_Hidan_Hrock/z_bg_hidan_hrock.c b/soh/src/overlays/actors/ovl_Bg_Hidan_Hrock/z_bg_hidan_hrock.c
index fecd9451a..e0a1d87c4 100644
--- a/soh/src/overlays/actors/ovl_Bg_Hidan_Hrock/z_bg_hidan_hrock.c
+++ b/soh/src/overlays/actors/ovl_Bg_Hidan_Hrock/z_bg_hidan_hrock.c
@@ -126,7 +126,7 @@ void BgHidanHrock_Init(Actor* thisx, PlayState* play) {
}
} else {
if (thisx->params == 0) {
- thisx->flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED;
+ thisx->flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED;
thisx->uncullZoneForward = 3000.0f;
}
this->actionFunc = func_808896B8;
@@ -185,7 +185,7 @@ void func_8088960C(BgHidanHrock* this, PlayState* play) {
this->dyna.actor.velocity.y++;
if (Math_StepToF(&this->dyna.actor.world.pos.y, this->dyna.actor.home.pos.y, this->dyna.actor.velocity.y)) {
- this->dyna.actor.flags &= ~(ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED);
+ this->dyna.actor.flags &= ~(ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED);
Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND);
if (this->dyna.actor.params == 0) {
@@ -204,7 +204,7 @@ void func_808896B8(BgHidanHrock* this, PlayState* play) {
if (this->collider.base.acFlags & 2) {
this->collider.base.acFlags &= ~2;
this->actionFunc = func_808894B0;
- this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
if (this->dyna.actor.params == 0) {
this->dyna.actor.room = -1;
diff --git a/soh/src/overlays/actors/ovl_Bg_Hidan_Kousi/z_bg_hidan_kousi.c b/soh/src/overlays/actors/ovl_Bg_Hidan_Kousi/z_bg_hidan_kousi.c
index 4d01df395..39d642c39 100644
--- a/soh/src/overlays/actors/ovl_Bg_Hidan_Kousi/z_bg_hidan_kousi.c
+++ b/soh/src/overlays/actors/ovl_Bg_Hidan_Kousi/z_bg_hidan_kousi.c
@@ -7,7 +7,7 @@
#include "z_bg_hidan_kousi.h"
#include "objects/object_hidan_objects/object_hidan_objects.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgHidanKousi_Init(Actor* thisx, PlayState* play);
void BgHidanKousi_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Hidan_Rock/z_bg_hidan_rock.c b/soh/src/overlays/actors/ovl_Bg_Hidan_Rock/z_bg_hidan_rock.c
index 108378185..aaebd9f3c 100644
--- a/soh/src/overlays/actors/ovl_Bg_Hidan_Rock/z_bg_hidan_rock.c
+++ b/soh/src/overlays/actors/ovl_Bg_Hidan_Rock/z_bg_hidan_rock.c
@@ -93,7 +93,7 @@ void BgHidanRock_Init(Actor* thisx, PlayState* play) {
} else {
this->actionFunc = func_8088B268;
}
- thisx->flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED;
+ thisx->flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED;
CollisionHeader_GetVirtual(&gFireTempleStoneBlock1Col, &colHeader);
} else {
CollisionHeader_GetVirtual(&gFireTempleStoneBlock2Col, &colHeader);
@@ -116,7 +116,7 @@ void BgHidanRock_Destroy(Actor* thisx, PlayState* play) {
}
void func_8088B24C(BgHidanRock* this) {
- this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED;
this->actionFunc = func_8088B990;
}
@@ -250,7 +250,7 @@ void func_8088B79C(BgHidanRock* this, PlayState* play) {
} else {
this->dyna.actor.world.pos.y = this->dyna.actor.home.pos.y - 15.0f;
this->actionFunc = func_8088B90C;
- this->dyna.actor.flags &= ~(ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED);
+ this->dyna.actor.flags &= ~(ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED);
}
Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND);
diff --git a/soh/src/overlays/actors/ovl_Bg_Hidan_Syoku/z_bg_hidan_syoku.c b/soh/src/overlays/actors/ovl_Bg_Hidan_Syoku/z_bg_hidan_syoku.c
index ae8e5b530..67176037b 100644
--- a/soh/src/overlays/actors/ovl_Bg_Hidan_Syoku/z_bg_hidan_syoku.c
+++ b/soh/src/overlays/actors/ovl_Bg_Hidan_Syoku/z_bg_hidan_syoku.c
@@ -7,7 +7,7 @@
#include "z_bg_hidan_syoku.h"
#include "objects/object_hidan_objects/object_hidan_objects.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgHidanSyoku_Init(Actor* thisx, PlayState* play);
void BgHidanSyoku_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Ice_Objects/z_bg_ice_objects.c b/soh/src/overlays/actors/ovl_Bg_Ice_Objects/z_bg_ice_objects.c
index 7193d3659..a35af8227 100644
--- a/soh/src/overlays/actors/ovl_Bg_Ice_Objects/z_bg_ice_objects.c
+++ b/soh/src/overlays/actors/ovl_Bg_Ice_Objects/z_bg_ice_objects.c
@@ -142,7 +142,7 @@ void BgIceObjects_Idle(BgIceObjects* this, PlayState* play) {
if ((this->dyna.unk_150 > 0.0f) && !Player_InCsMode(play)) {
BgIceObjects_SetNextTarget(this, play);
if (Actor_WorldDistXZToPoint(thisx, &this->targetPos) > 1.0f) {
- thisx->flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ thisx->flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
Player_SetCsActionWithHaltedActors(play, thisx, 8);
thisx->params = 1;
this->actionFunc = BgIceObjects_Slide;
@@ -170,7 +170,7 @@ void BgIceObjects_Slide(BgIceObjects* this, PlayState* play) {
this->targetPos.x = thisx->world.pos.x;
this->targetPos.z = thisx->world.pos.z;
if (thisx->velocity.y <= 0.0f) {
- thisx->flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ thisx->flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
thisx->params = 0;
Player_SetCsActionWithHaltedActors(play, thisx, 7);
@@ -207,7 +207,7 @@ void BgIceObjects_Reset(BgIceObjects* this, PlayState* play) {
this->dyna.unk_150 = 0.0f;
}
if (Math_StepToF(&thisx->world.pos.y, thisx->home.pos.y, 1.0f)) {
- thisx->flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ thisx->flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
Math_Vec3f_Copy(&this->targetPos, &thisx->home.pos);
this->actionFunc = BgIceObjects_Idle;
thisx->speedXZ = 0.0f;
diff --git a/soh/src/overlays/actors/ovl_Bg_Ice_Shutter/z_bg_ice_shutter.c b/soh/src/overlays/actors/ovl_Bg_Ice_Shutter/z_bg_ice_shutter.c
index de469fd17..5c0011b21 100644
--- a/soh/src/overlays/actors/ovl_Bg_Ice_Shutter/z_bg_ice_shutter.c
+++ b/soh/src/overlays/actors/ovl_Bg_Ice_Shutter/z_bg_ice_shutter.c
@@ -7,7 +7,7 @@
#include "z_bg_ice_shutter.h"
#include "objects/object_ice_objects/object_ice_objects.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgIceShutter_Init(Actor* thisx, PlayState* play);
void BgIceShutter_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Jya_1flift/z_bg_jya_1flift.c b/soh/src/overlays/actors/ovl_Bg_Jya_1flift/z_bg_jya_1flift.c
index 270bcd9ff..8a7e364a8 100644
--- a/soh/src/overlays/actors/ovl_Bg_Jya_1flift/z_bg_jya_1flift.c
+++ b/soh/src/overlays/actors/ovl_Bg_Jya_1flift/z_bg_jya_1flift.c
@@ -7,7 +7,7 @@
#include "z_bg_jya_1flift.h"
#include "objects/object_jya_obj/object_jya_obj.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgJya1flift_Init(Actor* thisx, PlayState* play);
void BgJya1flift_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Jya_Bigmirror/z_bg_jya_bigmirror.c b/soh/src/overlays/actors/ovl_Bg_Jya_Bigmirror/z_bg_jya_bigmirror.c
index 51dc19a09..34d87f269 100644
--- a/soh/src/overlays/actors/ovl_Bg_Jya_Bigmirror/z_bg_jya_bigmirror.c
+++ b/soh/src/overlays/actors/ovl_Bg_Jya_Bigmirror/z_bg_jya_bigmirror.c
@@ -7,7 +7,7 @@
#include "z_bg_jya_bigmirror.h"
#include "objects/object_jya_obj/object_jya_obj.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgJyaBigmirror_Init(Actor* thisx, PlayState* play);
void BgJyaBigmirror_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Jya_Bombchuiwa/z_bg_jya_bombchuiwa.c b/soh/src/overlays/actors/ovl_Bg_Jya_Bombchuiwa/z_bg_jya_bombchuiwa.c
index cb36b743d..faae8e194 100644
--- a/soh/src/overlays/actors/ovl_Bg_Jya_Bombchuiwa/z_bg_jya_bombchuiwa.c
+++ b/soh/src/overlays/actors/ovl_Bg_Jya_Bombchuiwa/z_bg_jya_bombchuiwa.c
@@ -1,7 +1,7 @@
#include "z_bg_jya_bombchuiwa.h"
#include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h"
#include "objects/object_jya_obj/object_jya_obj.h"
-#define FLAGS ACTOR_FLAG_TARGETABLE
+#define FLAGS ACTOR_FLAG_ATTENTION_ENABLED
void BgJyaBombchuiwa_Init(Actor* thisx, PlayState* play);
void BgJyaBombchuiwa_Destroy(Actor* thisx, PlayState* play);
@@ -163,7 +163,7 @@ void BgJyaBombchuiwa_CleanUpAfterExplosion(BgJyaBombchuiwa* this, PlayState* pla
BgJyaBombchuiwa_SetDrawFlags(this, 4);
this->lightRayIntensity = 0.3f;
this->timer = 0;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
void func_808949B8(BgJyaBombchuiwa* this, PlayState* play) {
diff --git a/soh/src/overlays/actors/ovl_Bg_Jya_Cobra/z_bg_jya_cobra.c b/soh/src/overlays/actors/ovl_Bg_Jya_Cobra/z_bg_jya_cobra.c
index f2c821929..32961f1b8 100644
--- a/soh/src/overlays/actors/ovl_Bg_Jya_Cobra/z_bg_jya_cobra.c
+++ b/soh/src/overlays/actors/ovl_Bg_Jya_Cobra/z_bg_jya_cobra.c
@@ -7,7 +7,7 @@
#include "objects/object_jya_obj/object_jya_obj.h"
#include "vt.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgJyaCobra_Init(Actor* thisx, PlayState* play);
void BgJyaCobra_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Jya_Goroiwa/z_bg_jya_goroiwa.c b/soh/src/overlays/actors/ovl_Bg_Jya_Goroiwa/z_bg_jya_goroiwa.c
index 3af46683c..74e81c0e0 100644
--- a/soh/src/overlays/actors/ovl_Bg_Jya_Goroiwa/z_bg_jya_goroiwa.c
+++ b/soh/src/overlays/actors/ovl_Bg_Jya_Goroiwa/z_bg_jya_goroiwa.c
@@ -8,7 +8,7 @@
#include "z_bg_jya_goroiwa.h"
#include "objects/object_goroiwa/object_goroiwa.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgJyaGoroiwa_Init(Actor* thisx, PlayState* play);
void BgJyaGoroiwa_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Jya_Haheniron/z_bg_jya_haheniron.c b/soh/src/overlays/actors/ovl_Bg_Jya_Haheniron/z_bg_jya_haheniron.c
index 1fb0d4a50..cfe9f115b 100644
--- a/soh/src/overlays/actors/ovl_Bg_Jya_Haheniron/z_bg_jya_haheniron.c
+++ b/soh/src/overlays/actors/ovl_Bg_Jya_Haheniron/z_bg_jya_haheniron.c
@@ -8,7 +8,7 @@
#include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h"
#include "objects/object_jya_iron/object_jya_iron.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgJyaHaheniron_Init(Actor* thisx, PlayState* play);
void BgJyaHaheniron_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Jya_Lift/z_bg_jya_lift.c b/soh/src/overlays/actors/ovl_Bg_Jya_Lift/z_bg_jya_lift.c
index bc7b756d8..9df861735 100644
--- a/soh/src/overlays/actors/ovl_Bg_Jya_Lift/z_bg_jya_lift.c
+++ b/soh/src/overlays/actors/ovl_Bg_Jya_Lift/z_bg_jya_lift.c
@@ -8,7 +8,7 @@
#include "objects/object_jya_obj/object_jya_obj.h"
#include "soh/OTRGlobals.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgJyaLift_Init(Actor* thisx, PlayState* play);
void BgJyaLift_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Jya_Zurerukabe/z_bg_jya_zurerukabe.c b/soh/src/overlays/actors/ovl_Bg_Jya_Zurerukabe/z_bg_jya_zurerukabe.c
index 1b0f52ae8..b667dd92a 100644
--- a/soh/src/overlays/actors/ovl_Bg_Jya_Zurerukabe/z_bg_jya_zurerukabe.c
+++ b/soh/src/overlays/actors/ovl_Bg_Jya_Zurerukabe/z_bg_jya_zurerukabe.c
@@ -8,7 +8,7 @@
#include "objects/object_jya_obj/object_jya_obj.h"
#include "vt.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgJyaZurerukabe_Init(Actor* thisx, PlayState* play);
void BgJyaZurerukabe_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Menkuri_Eye/z_bg_menkuri_eye.c b/soh/src/overlays/actors/ovl_Bg_Menkuri_Eye/z_bg_menkuri_eye.c
index a2610fac6..808a71fa4 100644
--- a/soh/src/overlays/actors/ovl_Bg_Menkuri_Eye/z_bg_menkuri_eye.c
+++ b/soh/src/overlays/actors/ovl_Bg_Menkuri_Eye/z_bg_menkuri_eye.c
@@ -7,7 +7,7 @@
#include "z_bg_menkuri_eye.h"
#include "objects/object_menkuri_objects/object_menkuri_objects.h"
-#define FLAGS ACTOR_FLAG_DRAW_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_DRAW_CULLING_DISABLED
void BgMenkuriEye_Init(Actor* thisx, PlayState* play);
void BgMenkuriEye_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Menkuri_Kaiten/z_bg_menkuri_kaiten.c b/soh/src/overlays/actors/ovl_Bg_Menkuri_Kaiten/z_bg_menkuri_kaiten.c
index 90a3cbee1..3052494a5 100644
--- a/soh/src/overlays/actors/ovl_Bg_Menkuri_Kaiten/z_bg_menkuri_kaiten.c
+++ b/soh/src/overlays/actors/ovl_Bg_Menkuri_Kaiten/z_bg_menkuri_kaiten.c
@@ -7,7 +7,7 @@
#include "z_bg_menkuri_kaiten.h"
#include "objects/object_menkuri_objects/object_menkuri_objects.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgMenkuriKaiten_Init(Actor* thisx, PlayState* play);
void BgMenkuriKaiten_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Menkuri_Nisekabe/z_bg_menkuri_nisekabe.c b/soh/src/overlays/actors/ovl_Bg_Menkuri_Nisekabe/z_bg_menkuri_nisekabe.c
index ddaa5a153..47eb8bc92 100644
--- a/soh/src/overlays/actors/ovl_Bg_Menkuri_Nisekabe/z_bg_menkuri_nisekabe.c
+++ b/soh/src/overlays/actors/ovl_Bg_Menkuri_Nisekabe/z_bg_menkuri_nisekabe.c
@@ -42,9 +42,9 @@ void BgMenkuriNisekabe_Update(Actor* thisx, PlayState* play) {
BgMenkuriNisekabe* this = (BgMenkuriNisekabe*)thisx;
if (play->actorCtx.lensActive) {
- this->actor.flags |= ACTOR_FLAG_LENS;
+ this->actor.flags |= ACTOR_FLAG_REACT_TO_LENS;
} else {
- this->actor.flags &= ~ACTOR_FLAG_LENS;
+ this->actor.flags &= ~ACTOR_FLAG_REACT_TO_LENS;
}
}
@@ -52,7 +52,7 @@ void BgMenkuriNisekabe_Draw(Actor* thisx, PlayState* play) {
BgMenkuriNisekabe* this = (BgMenkuriNisekabe*)thisx;
u32 index = this->actor.params & 0xFF;
- if (CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_LENS)) {
+ if (CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_REACT_TO_LENS)) {
Gfx_DrawDListXlu(play, sDLists[index]);
} else {
Gfx_DrawDListOpa(play, sDLists[index]);
diff --git a/soh/src/overlays/actors/ovl_Bg_Mizu_Bwall/z_bg_mizu_bwall.c b/soh/src/overlays/actors/ovl_Bg_Mizu_Bwall/z_bg_mizu_bwall.c
index 89db58c0e..977025f62 100644
--- a/soh/src/overlays/actors/ovl_Bg_Mizu_Bwall/z_bg_mizu_bwall.c
+++ b/soh/src/overlays/actors/ovl_Bg_Mizu_Bwall/z_bg_mizu_bwall.c
@@ -8,7 +8,7 @@
#include "overlays/actors/ovl_Bg_Mizu_Water/z_bg_mizu_water.h"
#include "objects/object_mizu_objects/object_mizu_objects.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgMizuBwall_Init(Actor* thisx, PlayState* play);
void BgMizuBwall_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Mizu_Movebg/z_bg_mizu_movebg.c b/soh/src/overlays/actors/ovl_Bg_Mizu_Movebg/z_bg_mizu_movebg.c
index 539b72eee..fb6af1b01 100644
--- a/soh/src/overlays/actors/ovl_Bg_Mizu_Movebg/z_bg_mizu_movebg.c
+++ b/soh/src/overlays/actors/ovl_Bg_Mizu_Movebg/z_bg_mizu_movebg.c
@@ -8,7 +8,7 @@
#include "overlays/actors/ovl_Bg_Mizu_Water/z_bg_mizu_water.h"
#include "objects/object_mizu_objects/object_mizu_objects.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
#define MOVEBG_TYPE(params) (((u16)(params) >> 0xC) & 0xF)
#define MOVEBG_FLAGS(params) ((u16)(params)&0x3F)
@@ -311,7 +311,7 @@ void func_8089E318(BgMizuMovebg* this, PlayState* play) {
this->dyna.actor.child->world.pos.x = this->dyna.actor.world.pos.x + sp28.x;
this->dyna.actor.child->world.pos.y = this->dyna.actor.world.pos.y + sp28.y;
this->dyna.actor.child->world.pos.z = this->dyna.actor.world.pos.z + sp28.z;
- this->dyna.actor.child->flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->dyna.actor.child->flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
break;
}
diff --git a/soh/src/overlays/actors/ovl_Bg_Mizu_Shutter/z_bg_mizu_shutter.c b/soh/src/overlays/actors/ovl_Bg_Mizu_Shutter/z_bg_mizu_shutter.c
index 4a2d78fa0..bfd569fba 100644
--- a/soh/src/overlays/actors/ovl_Bg_Mizu_Shutter/z_bg_mizu_shutter.c
+++ b/soh/src/overlays/actors/ovl_Bg_Mizu_Shutter/z_bg_mizu_shutter.c
@@ -1,7 +1,7 @@
#include "z_bg_mizu_shutter.h"
#include "objects/object_mizu_objects/object_mizu_objects.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
#define SIZE_PARAM (((u16)this->dyna.actor.params >> 0xC) & 0xF)
#define TIMER_PARAM (((u16)this->dyna.actor.params >> 6) & 0x3F)
diff --git a/soh/src/overlays/actors/ovl_Bg_Mizu_Water/z_bg_mizu_water.c b/soh/src/overlays/actors/ovl_Bg_Mizu_Water/z_bg_mizu_water.c
index dbf5e5503..a06890d07 100644
--- a/soh/src/overlays/actors/ovl_Bg_Mizu_Water/z_bg_mizu_water.c
+++ b/soh/src/overlays/actors/ovl_Bg_Mizu_Water/z_bg_mizu_water.c
@@ -7,7 +7,7 @@
#include "z_bg_mizu_water.h"
#include "objects/object_mizu_objects/object_mizu_objects.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgMizuWater_Init(Actor* thisx, PlayState* play);
void BgMizuWater_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Mjin/z_bg_mjin.c b/soh/src/overlays/actors/ovl_Bg_Mjin/z_bg_mjin.c
index bd6b89301..493c6d950 100644
--- a/soh/src/overlays/actors/ovl_Bg_Mjin/z_bg_mjin.c
+++ b/soh/src/overlays/actors/ovl_Bg_Mjin/z_bg_mjin.c
@@ -14,7 +14,7 @@
#include "objects/object_mjin_flash/object_mjin_flash.h"
#include "objects/object_mjin_oka/object_mjin_oka.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgMjin_Init(Actor* thisx, PlayState* play);
void BgMjin_Destroy(Actor* thisx, PlayState* play);
@@ -82,7 +82,7 @@ void func_808A0850(BgMjin* this, PlayState* play) {
if (Object_IsLoaded(&play->objectCtx, this->objBankIndex)) {
colHeader = NULL;
- this->dyna.actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->dyna.actor.objBankIndex = this->objBankIndex;
Actor_SetObjectDependency(play, &this->dyna.actor);
DynaPolyActor_Init(&this->dyna, 0);
diff --git a/soh/src/overlays/actors/ovl_Bg_Mori_Bigst/z_bg_mori_bigst.c b/soh/src/overlays/actors/ovl_Bg_Mori_Bigst/z_bg_mori_bigst.c
index c95fe6fd8..86403392f 100644
--- a/soh/src/overlays/actors/ovl_Bg_Mori_Bigst/z_bg_mori_bigst.c
+++ b/soh/src/overlays/actors/ovl_Bg_Mori_Bigst/z_bg_mori_bigst.c
@@ -9,7 +9,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgMoriBigst_Init(Actor* thisx, PlayState* play);
void BgMoriBigst_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Mori_Elevator/z_bg_mori_elevator.c b/soh/src/overlays/actors/ovl_Bg_Mori_Elevator/z_bg_mori_elevator.c
index f0ca8d96c..e120916a6 100644
--- a/soh/src/overlays/actors/ovl_Bg_Mori_Elevator/z_bg_mori_elevator.c
+++ b/soh/src/overlays/actors/ovl_Bg_Mori_Elevator/z_bg_mori_elevator.c
@@ -1,7 +1,7 @@
#include "z_bg_mori_elevator.h"
#include "objects/object_mori_objects/object_mori_objects.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgMoriElevator_Init(Actor* thisx, PlayState* play);
void BgMoriElevator_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Mori_Hashigo/z_bg_mori_hashigo.c b/soh/src/overlays/actors/ovl_Bg_Mori_Hashigo/z_bg_mori_hashigo.c
index 76ffcdc33..f53ece25a 100644
--- a/soh/src/overlays/actors/ovl_Bg_Mori_Hashigo/z_bg_mori_hashigo.c
+++ b/soh/src/overlays/actors/ovl_Bg_Mori_Hashigo/z_bg_mori_hashigo.c
@@ -135,7 +135,7 @@ s32 BgMoriHashigo_SpawnLadder(BgMoriHashigo* this, PlayState* play) {
s32 BgMoriHashigo_InitClasp(BgMoriHashigo* this, PlayState* play) {
Actor_ProcessInitChain(&this->dyna.actor, sInitChainClasp);
- this->dyna.actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->dyna.actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
Actor_SetFocus(&this->dyna.actor, 55.0f);
BgMoriHashigo_InitCollider(this, play);
if ((this->dyna.actor.params == HASHIGO_CLASP) && !BgMoriHashigo_SpawnLadder(this, play)) {
diff --git a/soh/src/overlays/actors/ovl_Bg_Mori_Hashira4/z_bg_mori_hashira4.c b/soh/src/overlays/actors/ovl_Bg_Mori_Hashira4/z_bg_mori_hashira4.c
index 79bad2257..4baac6b30 100644
--- a/soh/src/overlays/actors/ovl_Bg_Mori_Hashira4/z_bg_mori_hashira4.c
+++ b/soh/src/overlays/actors/ovl_Bg_Mori_Hashira4/z_bg_mori_hashira4.c
@@ -7,7 +7,7 @@
#include "z_bg_mori_hashira4.h"
#include "objects/object_mori_objects/object_mori_objects.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgMoriHashira4_Init(Actor* thisx, PlayState* play);
void BgMoriHashira4_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Mori_Hineri/z_bg_mori_hineri.c b/soh/src/overlays/actors/ovl_Bg_Mori_Hineri/z_bg_mori_hineri.c
index 61bec679b..972dc1dd7 100644
--- a/soh/src/overlays/actors/ovl_Bg_Mori_Hineri/z_bg_mori_hineri.c
+++ b/soh/src/overlays/actors/ovl_Bg_Mori_Hineri/z_bg_mori_hineri.c
@@ -13,7 +13,7 @@
#include "objects/object_mori_hineri2a/object_mori_hineri2a.h"
#include "objects/object_mori_tex/object_mori_tex.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgMoriHineri_Init(Actor* thisx, PlayState* play);
void BgMoriHineri_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Mori_Idomizu/z_bg_mori_idomizu.c b/soh/src/overlays/actors/ovl_Bg_Mori_Idomizu/z_bg_mori_idomizu.c
index 0324c43cb..fc7fc0a6a 100644
--- a/soh/src/overlays/actors/ovl_Bg_Mori_Idomizu/z_bg_mori_idomizu.c
+++ b/soh/src/overlays/actors/ovl_Bg_Mori_Idomizu/z_bg_mori_idomizu.c
@@ -7,7 +7,7 @@
#include "z_bg_mori_idomizu.h"
#include "objects/object_mori_objects/object_mori_objects.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgMoriIdomizu_Init(Actor* thisx, PlayState* play);
void BgMoriIdomizu_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Mori_Rakkatenjo/z_bg_mori_rakkatenjo.c b/soh/src/overlays/actors/ovl_Bg_Mori_Rakkatenjo/z_bg_mori_rakkatenjo.c
index 4202768a4..860b12c6d 100644
--- a/soh/src/overlays/actors/ovl_Bg_Mori_Rakkatenjo/z_bg_mori_rakkatenjo.c
+++ b/soh/src/overlays/actors/ovl_Bg_Mori_Rakkatenjo/z_bg_mori_rakkatenjo.c
@@ -7,7 +7,7 @@
#include "z_bg_mori_rakkatenjo.h"
#include "objects/object_mori_objects/object_mori_objects.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgMoriRakkatenjo_Init(Actor* thisx, PlayState* play);
void BgMoriRakkatenjo_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Po_Event/z_bg_po_event.c b/soh/src/overlays/actors/ovl_Bg_Po_Event/z_bg_po_event.c
index c706b68a7..06f3c8aad 100644
--- a/soh/src/overlays/actors/ovl_Bg_Po_Event/z_bg_po_event.c
+++ b/soh/src/overlays/actors/ovl_Bg_Po_Event/z_bg_po_event.c
@@ -156,7 +156,7 @@ void BgPoEvent_InitBlocks(BgPoEvent* this, PlayState* play) {
CollisionHeader* colHeader = NULL;
s32 bgId;
- this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED;
CollisionHeader_GetVirtual(&gPoSistersAmyBlockCol, &colHeader);
this->dyna.bgId = DynaPoly_SetBgActor(play, &play->colCtx.dyna, &this->dyna.actor, colHeader);
if ((this->type == 0) && (this->index != 3)) {
@@ -309,7 +309,7 @@ void BgPoEvent_BlockFall(BgPoEvent* this, PlayState* play) {
this->dyna.actor.velocity.y++;
if (Math_StepToF(&this->dyna.actor.world.pos.y, 433.0f, this->dyna.actor.velocity.y)) {
- this->dyna.actor.flags &= ~ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->dyna.actor.flags &= ~ACTOR_FLAG_DRAW_CULLING_DISABLED;
this->dyna.actor.velocity.y = 0.0f;
sBgPoEventBlocksAtRest++;
if (this->type != 1) {
diff --git a/soh/src/overlays/actors/ovl_Bg_Relay_Objects/z_bg_relay_objects.c b/soh/src/overlays/actors/ovl_Bg_Relay_Objects/z_bg_relay_objects.c
index 58458fd1c..2b0802e00 100644
--- a/soh/src/overlays/actors/ovl_Bg_Relay_Objects/z_bg_relay_objects.c
+++ b/soh/src/overlays/actors/ovl_Bg_Relay_Objects/z_bg_relay_objects.c
@@ -7,7 +7,7 @@
#include "z_bg_relay_objects.h"
#include "objects/object_relay_objects/object_relay_objects.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
typedef enum {
/* 0 */ WINDMILL_ROTATING_GEAR,
@@ -64,7 +64,7 @@ void BgRelayObjects_Init(Actor* thisx, PlayState* play) {
}
func_800F5718();
thisx->room = -1;
- thisx->flags |= ACTOR_FLAG_DRAW_WHILE_CULLED;
+ thisx->flags |= ACTOR_FLAG_DRAW_CULLING_DISABLED;
if (D_808A9508 & 2) {
thisx->params = 0xFF;
Actor_Kill(thisx);
@@ -156,7 +156,7 @@ void func_808A9234(BgRelayObjects* this, PlayState* play) {
return;
}
Flags_UnsetSwitch(play, this->switchFlag);
- this->dyna.actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
if (play->roomCtx.curRoom.num == 4) {
gSaveContext.timer1State = 0xF;
}
diff --git a/soh/src/overlays/actors/ovl_Bg_Spot00_Hanebasi/z_bg_spot00_hanebasi.c b/soh/src/overlays/actors/ovl_Bg_Spot00_Hanebasi/z_bg_spot00_hanebasi.c
index 2d0263afd..37d038cb6 100644
--- a/soh/src/overlays/actors/ovl_Bg_Spot00_Hanebasi/z_bg_spot00_hanebasi.c
+++ b/soh/src/overlays/actors/ovl_Bg_Spot00_Hanebasi/z_bg_spot00_hanebasi.c
@@ -9,7 +9,7 @@
#include "objects/gameplay_keep/gameplay_keep.h"
#include "soh/frame_interpolation.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
typedef enum {
/* -1 */ DT_DRAWBRIDGE = -1,
diff --git a/soh/src/overlays/actors/ovl_Bg_Spot01_Fusya/z_bg_spot01_fusya.c b/soh/src/overlays/actors/ovl_Bg_Spot01_Fusya/z_bg_spot01_fusya.c
index 3a18e3650..7fd5974bb 100644
--- a/soh/src/overlays/actors/ovl_Bg_Spot01_Fusya/z_bg_spot01_fusya.c
+++ b/soh/src/overlays/actors/ovl_Bg_Spot01_Fusya/z_bg_spot01_fusya.c
@@ -7,7 +7,7 @@
#include "z_bg_spot01_fusya.h"
#include "objects/object_spot01_objects/object_spot01_objects.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgSpot01Fusya_Init(Actor* thisx, PlayState* play);
void BgSpot01Fusya_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Spot01_Idohashira/z_bg_spot01_idohashira.c b/soh/src/overlays/actors/ovl_Bg_Spot01_Idohashira/z_bg_spot01_idohashira.c
index 59ef31c4f..13ab5563b 100644
--- a/soh/src/overlays/actors/ovl_Bg_Spot01_Idohashira/z_bg_spot01_idohashira.c
+++ b/soh/src/overlays/actors/ovl_Bg_Spot01_Idohashira/z_bg_spot01_idohashira.c
@@ -8,7 +8,7 @@
#include "objects/object_spot01_objects/object_spot01_objects.h"
#include "vt.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgSpot01Idohashira_Init(Actor* thisx, PlayState* play);
void BgSpot01Idohashira_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Spot01_Idomizu/z_bg_spot01_idomizu.c b/soh/src/overlays/actors/ovl_Bg_Spot01_Idomizu/z_bg_spot01_idomizu.c
index b287a5da6..579edda22 100644
--- a/soh/src/overlays/actors/ovl_Bg_Spot01_Idomizu/z_bg_spot01_idomizu.c
+++ b/soh/src/overlays/actors/ovl_Bg_Spot01_Idomizu/z_bg_spot01_idomizu.c
@@ -7,7 +7,7 @@
#include "z_bg_spot01_idomizu.h"
#include "objects/object_spot01_objects/object_spot01_objects.h"
-#define FLAGS ACTOR_FLAG_DRAW_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_DRAW_CULLING_DISABLED
void BgSpot01Idomizu_Init(Actor* thisx, PlayState* play);
void BgSpot01Idomizu_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Spot01_Idosoko/z_bg_spot01_idosoko.c b/soh/src/overlays/actors/ovl_Bg_Spot01_Idosoko/z_bg_spot01_idosoko.c
index a914c204c..d4aa6b076 100644
--- a/soh/src/overlays/actors/ovl_Bg_Spot01_Idosoko/z_bg_spot01_idosoko.c
+++ b/soh/src/overlays/actors/ovl_Bg_Spot01_Idosoko/z_bg_spot01_idosoko.c
@@ -8,7 +8,7 @@
#include "objects/object_spot01_matoya/object_spot01_matoya.h"
#include "soh/OTRGlobals.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgSpot01Idosoko_Init(Actor* thisx, PlayState* play);
void BgSpot01Idosoko_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Spot01_Objects2/z_bg_spot01_objects2.c b/soh/src/overlays/actors/ovl_Bg_Spot01_Objects2/z_bg_spot01_objects2.c
index 61a9e5d18..0cced2389 100644
--- a/soh/src/overlays/actors/ovl_Bg_Spot01_Objects2/z_bg_spot01_objects2.c
+++ b/soh/src/overlays/actors/ovl_Bg_Spot01_Objects2/z_bg_spot01_objects2.c
@@ -8,7 +8,7 @@
#include "objects/object_spot01_matoya/object_spot01_matoya.h"
#include "objects/object_spot01_matoyab/object_spot01_matoyab.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgSpot01Objects2_Init(Actor* thisx, PlayState* play);
void BgSpot01Objects2_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Spot02_Objects/z_bg_spot02_objects.c b/soh/src/overlays/actors/ovl_Bg_Spot02_Objects/z_bg_spot02_objects.c
index cebaa088c..0cd3bc51d 100644
--- a/soh/src/overlays/actors/ovl_Bg_Spot02_Objects/z_bg_spot02_objects.c
+++ b/soh/src/overlays/actors/ovl_Bg_Spot02_Objects/z_bg_spot02_objects.c
@@ -8,7 +8,7 @@
#include "objects/object_spot02_objects/object_spot02_objects.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgSpot02Objects_Init(Actor* thisx, PlayState* play);
void BgSpot02Objects_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Spot03_Taki/z_bg_spot03_taki.c b/soh/src/overlays/actors/ovl_Bg_Spot03_Taki/z_bg_spot03_taki.c
index 979a0eb0d..499a0d11a 100644
--- a/soh/src/overlays/actors/ovl_Bg_Spot03_Taki/z_bg_spot03_taki.c
+++ b/soh/src/overlays/actors/ovl_Bg_Spot03_Taki/z_bg_spot03_taki.c
@@ -8,7 +8,7 @@
#include "objects/object_spot03_object/object_spot03_object.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgSpot03Taki_Init(Actor* thisx, PlayState* play);
void BgSpot03Taki_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Spot05_Soko/z_bg_spot05_soko.c b/soh/src/overlays/actors/ovl_Bg_Spot05_Soko/z_bg_spot05_soko.c
index 9f5c01218..5f0b37a35 100644
--- a/soh/src/overlays/actors/ovl_Bg_Spot05_Soko/z_bg_spot05_soko.c
+++ b/soh/src/overlays/actors/ovl_Bg_Spot05_Soko/z_bg_spot05_soko.c
@@ -62,7 +62,7 @@ void BgSpot05Soko_Init(Actor* thisx, PlayState* play) {
Actor_Kill(thisx);
} else {
this->actionFunc = func_808AE5B4;
- thisx->flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ thisx->flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
}
this->dyna.bgId = DynaPoly_SetBgActor(play, &play->colCtx.dyna, thisx, colHeader);
diff --git a/soh/src/overlays/actors/ovl_Bg_Spot06_Objects/z_bg_spot06_objects.c b/soh/src/overlays/actors/ovl_Bg_Spot06_Objects/z_bg_spot06_objects.c
index 823a65040..ce8ce0ea8 100644
--- a/soh/src/overlays/actors/ovl_Bg_Spot06_Objects/z_bg_spot06_objects.c
+++ b/soh/src/overlays/actors/ovl_Bg_Spot06_Objects/z_bg_spot06_objects.c
@@ -8,7 +8,7 @@
#include "objects/object_spot06_objects/object_spot06_objects.h"
#include "soh/Enhancements/custom-message/CustomMessageTypes.h"
-#define FLAGS ACTOR_FLAG_HOOKSHOT_DRAGS
+#define FLAGS ACTOR_FLAG_HOOKSHOT_PULLS_ACTOR
typedef enum {
/* 0x0 */ LHO_WATER_TEMPLE_ENTRACE_GATE,
@@ -154,7 +154,7 @@ void BgSpot06Objects_Init(Actor* thisx, PlayState* play) {
break;
case LHO_WATER_PLANE:
Actor_ProcessInitChain(thisx, sInitChainWaterPlane);
- thisx->flags = ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED;
+ thisx->flags = ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED;
if (LINK_IS_ADULT && !Flags_GetEventChkInf(EVENTCHKINF_RAISED_LAKE_HYLIA_WATER)) {
if (gSaveContext.sceneSetupIndex < 4) {
@@ -322,7 +322,7 @@ void BgSpot06Objects_LockWait(BgSpot06Objects* this, PlayState* play) {
if (this->collider.base.acFlags & 2) {
this->timer = 130;
- this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
sin = Math_SinS(this->dyna.actor.world.rot.y);
cos = Math_CosS(this->dyna.actor.world.rot.y);
this->dyna.actor.world.pos.x += (3.0f * sin);
@@ -395,7 +395,7 @@ void BgSpot06Objects_LockSwimToSurface(BgSpot06Objects* this, PlayState* play) {
this->dyna.actor.world.pos.z - (Math_CosS(this->dyna.actor.shape.rot.y) * 16.0f);
this->dyna.actor.world.pos.y = -1993.0f;
this->timer = 32;
- this->dyna.actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->collider.elements[0].dim.worldSphere.radius = this->collider.elements[0].dim.modelSphere.radius * 2;
this->actionFunc = BgSpot06Objects_LockFloat;
}
diff --git a/soh/src/overlays/actors/ovl_Bg_Spot07_Taki/z_bg_spot07_taki.c b/soh/src/overlays/actors/ovl_Bg_Spot07_Taki/z_bg_spot07_taki.c
index 5de544a4e..769bcfcc9 100644
--- a/soh/src/overlays/actors/ovl_Bg_Spot07_Taki/z_bg_spot07_taki.c
+++ b/soh/src/overlays/actors/ovl_Bg_Spot07_Taki/z_bg_spot07_taki.c
@@ -7,7 +7,7 @@
#include "z_bg_spot07_taki.h"
#include "objects/object_spot07_object/object_spot07_object.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgSpot07Taki_Init(Actor* thisx, PlayState* play);
void BgSpot07Taki_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Spot11_Bakudankabe/z_bg_spot11_bakudankabe.c b/soh/src/overlays/actors/ovl_Bg_Spot11_Bakudankabe/z_bg_spot11_bakudankabe.c
index 3b7f7c7e4..635fff4e9 100644
--- a/soh/src/overlays/actors/ovl_Bg_Spot11_Bakudankabe/z_bg_spot11_bakudankabe.c
+++ b/soh/src/overlays/actors/ovl_Bg_Spot11_Bakudankabe/z_bg_spot11_bakudankabe.c
@@ -9,7 +9,7 @@
#include "objects/object_spot11_obj/object_spot11_obj.h"
#include "objects/gameplay_field_keep/gameplay_field_keep.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgSpot11Bakudankabe_Init(Actor* thisx, PlayState* play);
void BgSpot11Bakudankabe_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Spot11_Oasis/z_bg_spot11_oasis.c b/soh/src/overlays/actors/ovl_Bg_Spot11_Oasis/z_bg_spot11_oasis.c
index 65e70a4b6..0305fd652 100644
--- a/soh/src/overlays/actors/ovl_Bg_Spot11_Oasis/z_bg_spot11_oasis.c
+++ b/soh/src/overlays/actors/ovl_Bg_Spot11_Oasis/z_bg_spot11_oasis.c
@@ -8,7 +8,7 @@
#include "overlays/actors/ovl_En_Elf/z_en_elf.h"
#include "objects/object_spot11_obj/object_spot11_obj.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgSpot11Oasis_Init(Actor* thisx, PlayState* play);
void BgSpot11Oasis_Update(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Spot16_Bombstone/z_bg_spot16_bombstone.c b/soh/src/overlays/actors/ovl_Bg_Spot16_Bombstone/z_bg_spot16_bombstone.c
index 5f24d06e8..503aa1d66 100644
--- a/soh/src/overlays/actors/ovl_Bg_Spot16_Bombstone/z_bg_spot16_bombstone.c
+++ b/soh/src/overlays/actors/ovl_Bg_Spot16_Bombstone/z_bg_spot16_bombstone.c
@@ -4,7 +4,7 @@
#include "overlays/actors/ovl_En_Bombf/z_en_bombf.h"
#include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgSpot16Bombstone_Init(Actor* thisx, PlayState* play);
void BgSpot16Bombstone_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Spot17_Funen/z_bg_spot17_funen.c b/soh/src/overlays/actors/ovl_Bg_Spot17_Funen/z_bg_spot17_funen.c
index d919b300d..5c6e55c7c 100644
--- a/soh/src/overlays/actors/ovl_Bg_Spot17_Funen/z_bg_spot17_funen.c
+++ b/soh/src/overlays/actors/ovl_Bg_Spot17_Funen/z_bg_spot17_funen.c
@@ -7,7 +7,7 @@
#include "z_bg_spot17_funen.h"
#include "objects/object_spot17_obj/object_spot17_obj.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgSpot17Funen_Init(Actor* thisx, PlayState* play);
void BgSpot17Funen_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Spot18_Basket/z_bg_spot18_basket.c b/soh/src/overlays/actors/ovl_Bg_Spot18_Basket/z_bg_spot18_basket.c
index 9e31efbdd..994c18d44 100644
--- a/soh/src/overlays/actors/ovl_Bg_Spot18_Basket/z_bg_spot18_basket.c
+++ b/soh/src/overlays/actors/ovl_Bg_Spot18_Basket/z_bg_spot18_basket.c
@@ -2,7 +2,7 @@
#include "objects/object_spot18_obj/object_spot18_obj.h"
#include "vt.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgSpot18Basket_Init(Actor* thisx, PlayState* play);
void BgSpot18Basket_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Spot18_Shutter/z_bg_spot18_shutter.c b/soh/src/overlays/actors/ovl_Bg_Spot18_Shutter/z_bg_spot18_shutter.c
index d2a9c9899..2ee80beee 100644
--- a/soh/src/overlays/actors/ovl_Bg_Spot18_Shutter/z_bg_spot18_shutter.c
+++ b/soh/src/overlays/actors/ovl_Bg_Spot18_Shutter/z_bg_spot18_shutter.c
@@ -7,7 +7,7 @@
#include "z_bg_spot18_shutter.h"
#include "objects/object_spot18_obj/object_spot18_obj.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgSpot18Shutter_Init(Actor* thisx, PlayState* play);
void BgSpot18Shutter_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Sst_Floor/z_bg_sst_floor.c b/soh/src/overlays/actors/ovl_Bg_Sst_Floor/z_bg_sst_floor.c
index bf4d7c934..6a8ed3e0d 100644
--- a/soh/src/overlays/actors/ovl_Bg_Sst_Floor/z_bg_sst_floor.c
+++ b/soh/src/overlays/actors/ovl_Bg_Sst_Floor/z_bg_sst_floor.c
@@ -8,7 +8,7 @@
#include "objects/object_sst/object_sst.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgSstFloor_Init(BgSstFloor* this, PlayState* play);
void BgSstFloor_Destroy(BgSstFloor* this, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Toki_Hikari/z_bg_toki_hikari.c b/soh/src/overlays/actors/ovl_Bg_Toki_Hikari/z_bg_toki_hikari.c
index 98904f138..f08d10fd5 100644
--- a/soh/src/overlays/actors/ovl_Bg_Toki_Hikari/z_bg_toki_hikari.c
+++ b/soh/src/overlays/actors/ovl_Bg_Toki_Hikari/z_bg_toki_hikari.c
@@ -7,7 +7,7 @@
#include "z_bg_toki_hikari.h"
#include "objects/object_toki_objects/object_toki_objects.h"
-#define FLAGS ACTOR_FLAG_DRAW_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_DRAW_CULLING_DISABLED
void BgTokiHikari_Init(Actor* thisx, PlayState* play);
void BgTokiHikari_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Toki_Swd/z_bg_toki_swd.c b/soh/src/overlays/actors/ovl_Bg_Toki_Swd/z_bg_toki_swd.c
index d8edfd736..b4158aced 100644
--- a/soh/src/overlays/actors/ovl_Bg_Toki_Swd/z_bg_toki_swd.c
+++ b/soh/src/overlays/actors/ovl_Bg_Toki_Swd/z_bg_toki_swd.c
@@ -9,7 +9,7 @@
#include "soh/OTRGlobals.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgTokiSwd_Init(Actor* thisx, PlayState* play);
void BgTokiSwd_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Treemouth/z_bg_treemouth.c b/soh/src/overlays/actors/ovl_Bg_Treemouth/z_bg_treemouth.c
index 334161c2d..a86329cdc 100644
--- a/soh/src/overlays/actors/ovl_Bg_Treemouth/z_bg_treemouth.c
+++ b/soh/src/overlays/actors/ovl_Bg_Treemouth/z_bg_treemouth.c
@@ -10,7 +10,7 @@
#include "soh/OTRGlobals.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgTreemouth_Init(Actor* thisx, PlayState* play);
void BgTreemouth_Destroy(Actor* thisx, PlayState* play);
@@ -145,9 +145,9 @@ void func_808BC8B8(BgTreemouth* this, PlayState* play) {
if (!LINK_IS_ADULT) {
if (Flags_GetEventChkInf(EVENTCHKINF_MET_DEKU_TREE)) {
if (Actor_IsFacingAndNearPlayer(&this->dyna.actor, 1658.0f, 0x7530)) {
- this->dyna.actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->dyna.actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
if (this->dyna.actor.isTargeted) {
- this->dyna.actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->dyna.actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
play->csCtx.segment = D_808BD2A0;
gSaveContext.cutsceneTrigger = 1;
BgTreemouth_SetupAction(this, func_808BC9EC);
diff --git a/soh/src/overlays/actors/ovl_Bg_Umajump/z_bg_umajump.c b/soh/src/overlays/actors/ovl_Bg_Umajump/z_bg_umajump.c
index a19ef2338..a1fb12329 100644
--- a/soh/src/overlays/actors/ovl_Bg_Umajump/z_bg_umajump.c
+++ b/soh/src/overlays/actors/ovl_Bg_Umajump/z_bg_umajump.c
@@ -46,7 +46,7 @@ void BgUmaJump_Init(Actor* thisx, PlayState* play) {
Actor_Kill(&this->dyna.actor);
return;
}
- this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED;
}
}
diff --git a/soh/src/overlays/actors/ovl_Bg_Ydan_Hasi/z_bg_ydan_hasi.c b/soh/src/overlays/actors/ovl_Bg_Ydan_Hasi/z_bg_ydan_hasi.c
index 16ea4e0e7..ddd05391b 100644
--- a/soh/src/overlays/actors/ovl_Bg_Ydan_Hasi/z_bg_ydan_hasi.c
+++ b/soh/src/overlays/actors/ovl_Bg_Ydan_Hasi/z_bg_ydan_hasi.c
@@ -7,7 +7,7 @@
#include "z_bg_ydan_hasi.h"
#include "objects/object_ydan_objects/object_ydan_objects.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BgYdanHasi_Init(Actor* thisx, PlayState* play);
void BgYdanHasi_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Bg_Ydan_Sp/z_bg_ydan_sp.c b/soh/src/overlays/actors/ovl_Bg_Ydan_Sp/z_bg_ydan_sp.c
index 1307971c7..18d659dce 100644
--- a/soh/src/overlays/actors/ovl_Bg_Ydan_Sp/z_bg_ydan_sp.c
+++ b/soh/src/overlays/actors/ovl_Bg_Ydan_Sp/z_bg_ydan_sp.c
@@ -298,7 +298,7 @@ void BgYdanSp_FloorWebIdle(BgYdanSp* this, PlayState* play) {
if (this->dyna.actor.xzDistToPlayer < 80.0f) {
this->unk_16C = 200.0f;
this->dyna.actor.room = -1;
- this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->timer = 40;
Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_WEB_BROKEN);
this->actionFunc = BgYdanSp_FloorWebBreaking;
diff --git a/soh/src/overlays/actors/ovl_Bg_Zg/z_bg_zg.c b/soh/src/overlays/actors/ovl_Bg_Zg/z_bg_zg.c
index b0e6779cc..0f6355ed4 100644
--- a/soh/src/overlays/actors/ovl_Bg_Zg/z_bg_zg.c
+++ b/soh/src/overlays/actors/ovl_Bg_Zg/z_bg_zg.c
@@ -8,7 +8,7 @@
#include "objects/object_zg/object_zg.h"
#include "vt.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void BgZg_Init(Actor* thisx, PlayState* play);
void BgZg_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Boss_Dodongo/z_boss_dodongo.c b/soh/src/overlays/actors/ovl_Boss_Dodongo/z_boss_dodongo.c
index 4702d8376..679f472b6 100644
--- a/soh/src/overlays/actors/ovl_Boss_Dodongo/z_boss_dodongo.c
+++ b/soh/src/overlays/actors/ovl_Boss_Dodongo/z_boss_dodongo.c
@@ -11,7 +11,7 @@
#include <stdlib.h> // malloc
#include <string.h> // memcpy
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
#define LAVA_TEX_WIDTH 32
#define LAVA_TEX_HEIGHT 64
@@ -347,7 +347,7 @@ void BossDodongo_Init(Actor* thisx, PlayState* play) {
}
}
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
// #region SOH [General]
// Init mask values for all KD blended textures
@@ -652,7 +652,7 @@ void BossDodongo_SetupWalk(BossDodongo* this) {
this->unk_1AA = 0;
this->actionFunc = BossDodongo_Walk;
this->unk_1DA = 0;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->unk_1E4 = 0.0f;
}
@@ -907,7 +907,7 @@ void BossDodongo_Roll(BossDodongo* this, PlayState* play) {
f32 sp4C;
f32 sp48;
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
SkelAnime_Update(&this->skelAnime);
if (this->unk_1DA == 10) {
@@ -1528,7 +1528,7 @@ void BossDodongo_SetupDeathCutscene(BossDodongo* this) {
Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_DEAD);
this->unk_1DA = 0;
this->csState = 0;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE);
this->unk_1BC = 1;
Audio_QueueSeqCmd(0x1 << 28 | SEQ_PLAYER_BGM_MAIN << 24 | 0x100FF);
}
diff --git a/soh/src/overlays/actors/ovl_Boss_Fd/z_boss_fd.c b/soh/src/overlays/actors/ovl_Boss_Fd/z_boss_fd.c
index c44810f0b..f350ac308 100644
--- a/soh/src/overlays/actors/ovl_Boss_Fd/z_boss_fd.c
+++ b/soh/src/overlays/actors/ovl_Boss_Fd/z_boss_fd.c
@@ -17,7 +17,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
typedef enum {
/* 0 */ INTRO_FLY_EMERGE,
@@ -699,7 +699,7 @@ void BossFd_Fly(BossFd* this, PlayState* play) {
}
break;
case BOSSFD_FLY_CHASE:
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
temp_y = Math_SinS(this->work[BFD_MOVE_TIMER] * 2396.0f) * 30.0f + this->fwork[BFD_TARGET_Y_OFFSET];
this->targetPosition.x = player->actor.world.pos.x;
this->targetPosition.y = player->actor.world.pos.y + temp_y + 30.0f;
@@ -1279,9 +1279,9 @@ void BossFd_Effects(BossFd* this, PlayState* play) {
}
if ((this->actor.world.pos.y < 90.0f) || (700.0f < this->actor.world.pos.y) || (this->actionFunc == BossFd_Wait)) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
} else {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
}
}
diff --git a/soh/src/overlays/actors/ovl_Boss_Fd2/z_boss_fd2.c b/soh/src/overlays/actors/ovl_Boss_Fd2/z_boss_fd2.c
index a30091ad3..ec25be184 100644
--- a/soh/src/overlays/actors/ovl_Boss_Fd2/z_boss_fd2.c
+++ b/soh/src/overlays/actors/ovl_Boss_Fd2/z_boss_fd2.c
@@ -12,7 +12,7 @@
#include "soh/frame_interpolation.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
typedef enum {
/* 0 */ DEATH_START,
@@ -531,7 +531,7 @@ void BossFd2_Vulnerable(BossFd2* this, PlayState* play) {
s16 i;
this->disableAT = true;
- this->actor.flags |= ACTOR_FLAG_DRAGGED_BY_HOOKSHOT;
+ this->actor.flags |= ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER;
SkelAnime_Update(&this->skelAnime);
switch (this->work[FD2_ACTION_STATE]) {
case 0:
@@ -619,7 +619,7 @@ void BossFd2_SetupDeath(BossFd2* this, PlayState* play) {
Animation_Change(&this->skelAnime, &gHoleVolvagiaDamagedAnim, 1.0f, 0.0f, this->fwork[FD2_END_FRAME],
ANIMMODE_ONCE_INTERP, -3.0f);
this->actionFunc = BossFd2_Death;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->deathState = DEATH_START;
}
@@ -968,7 +968,7 @@ void BossFd2_Update(Actor* thisx, PlayState* play2) {
osSyncPrintf("FD2 move start \n");
this->disableAT = false;
- this->actor.flags &= ~ACTOR_FLAG_DRAGGED_BY_HOOKSHOT;
+ this->actor.flags &= ~ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER;
this->work[FD2_VAR_TIMER]++;
this->work[FD2_UNK_TIMER]++;
@@ -1003,9 +1003,9 @@ void BossFd2_Update(Actor* thisx, PlayState* play2) {
this->fwork[FD2_TEX2_SCROLL_X] += 3.0f;
this->fwork[FD2_TEX2_SCROLL_Y] -= 2.0f;
if (this->actor.focus.pos.y < 90.0f) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
} else {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
}
}
diff --git a/soh/src/overlays/actors/ovl_Boss_Ganon/z_boss_ganon.c b/soh/src/overlays/actors/ovl_Boss_Ganon/z_boss_ganon.c
index a418ced3a..4c6e0f841 100644
--- a/soh/src/overlays/actors/ovl_Boss_Ganon/z_boss_ganon.c
+++ b/soh/src/overlays/actors/ovl_Boss_Ganon/z_boss_ganon.c
@@ -16,7 +16,7 @@
#include <string.h>
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BossGanon_Init(Actor* thisx, PlayState* play);
void BossGanon_Destroy(Actor* thisx, PlayState* play);
@@ -383,7 +383,7 @@ void BossGanon_Init(Actor* thisx, PlayState* play2) {
0.0f, 0.0f, 0, 0, 0, 1);
Actor_ChangeCategory(play, &play->actorCtx, thisx, ACTORCAT_BOSS);
} else {
- thisx->flags &= ~ACTOR_FLAG_TARGETABLE;
+ thisx->flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->fwork[GDF_FWORK_1] = 255.0f;
if (thisx->params >= 0xC8) {
@@ -2582,7 +2582,7 @@ void BossGanon_Vulnerable(BossGanon* this, PlayState* play) {
Vec3f sp40;
if (this->timers[3] == 0) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
}
SkelAnime_Update(&this->skelAnime);
@@ -2631,7 +2631,7 @@ void BossGanon_Vulnerable(BossGanon* this, PlayState* play) {
this->fwork[GDF_FWORK_1] = Animation_GetLastFrame(&gGanondorfLandAnim);
Animation_MorphToPlayOnce(&this->skelAnime, &gGanondorfLandAnim, 0.0f);
this->timers[0] = 70;
- this->actor.flags |= ACTOR_FLAG_DRAGGED_BY_HOOKSHOT;
+ this->actor.flags |= ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER;
}
break;
@@ -2664,7 +2664,7 @@ void BossGanon_Vulnerable(BossGanon* this, PlayState* play) {
this->unk_2E6 = 80;
this->unk_2E8 = 0;
- this->actor.flags &= ~ACTOR_FLAG_DRAGGED_BY_HOOKSHOT;
+ this->actor.flags &= ~ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER;
}
break;
@@ -2732,7 +2732,7 @@ void BossGanon_SetupDamaged(BossGanon* this, PlayState* play) {
}
void BossGanon_Damaged(BossGanon* this, PlayState* play) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
SkelAnime_Update(&this->skelAnime);
@@ -2894,7 +2894,7 @@ void BossGanon_Update(Actor* thisx, PlayState* play2) {
this->collider.base.colType = 3;
sBossGanonCape->gravity = -3.0f;
this->shockGlow = false;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->unk_1A2++;
this->unk_1A4++;
diff --git a/soh/src/overlays/actors/ovl_Boss_Ganon2/z_boss_ganon2.c b/soh/src/overlays/actors/ovl_Boss_Ganon2/z_boss_ganon2.c
index 5270402fe..611b008c6 100644
--- a/soh/src/overlays/actors/ovl_Boss_Ganon2/z_boss_ganon2.c
+++ b/soh/src/overlays/actors/ovl_Boss_Ganon2/z_boss_ganon2.c
@@ -13,7 +13,7 @@
#include <string.h>
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void BossGanon2_Init(Actor* thisx, PlayState* play);
void BossGanon2_Destroy(Actor* thisx, PlayState* play);
@@ -209,7 +209,7 @@ void func_808FD4D4(BossGanon2* this, PlayState* play, s16 arg2, s16 arg3) {
void func_808FD5C4(BossGanon2* this, PlayState* play) {
this->actionFunc = func_808FD5F4;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.world.pos.y = -3000.0f;
}
@@ -926,7 +926,7 @@ void func_808FD5F4(BossGanon2* this, PlayState* play) {
this->unk_337 = 1;
func_808FFDB0(this, play);
this->unk_1A2[1] = 50;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
sBossGanon2Zelda->unk_3C8 = 7;
}
break;
@@ -1097,7 +1097,7 @@ void func_808FFDB0(BossGanon2* this, PlayState* play) {
}
this->unk_336 = 1;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->unk_228 = 1.0f;
this->unk_224 = 1.0f;
} else {
diff --git a/soh/src/overlays/actors/ovl_Boss_Ganondrof/z_boss_ganondrof.c b/soh/src/overlays/actors/ovl_Boss_Ganondrof/z_boss_ganondrof.c
index 1ac0d2c90..cf34863c0 100644
--- a/soh/src/overlays/actors/ovl_Boss_Ganondrof/z_boss_ganondrof.c
+++ b/soh/src/overlays/actors/ovl_Boss_Ganondrof/z_boss_ganondrof.c
@@ -14,7 +14,7 @@
#include "soh/OTRGlobals.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
typedef enum {
/* 0 */ THROW_NORMAL,
@@ -231,7 +231,7 @@ void BossGanondrof_Init(Actor* thisx, PlayState* play) {
Collider_InitCylinder(play, &this->colliderSpear);
Collider_SetCylinder(play, &this->colliderBody, &this->actor, &sCylinderInitBody);
Collider_SetCylinder(play, &this->colliderSpear, &this->actor, &sCylinderInitSpear);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if (Flags_GetClear(play, play->roomCtx.curRoom.num)) {
Actor_Kill(&this->actor);
if (GameInteractor_Should(VB_SPAWN_BLUE_WARP, true, this)) {
@@ -397,7 +397,7 @@ void BossGanondrof_Paintings(BossGanondrof* this, PlayState* play) {
EnfHG* horseTemp;
Animation_MorphToPlayOnce(&this->skelAnime, &gPhantomGanonRideSpearRaiseAnim, -2.0f);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
horseTemp = (EnfHG*)this->actor.child;
Actor_SpawnAsChild(&play->actorCtx, &this->actor, play, ACTOR_EN_FHG_FIRE, this->spearTip.x,
this->spearTip.y, this->spearTip.z, 30, FHGFIRE_LIGHT_GREEN, 0, FHGFIRE_SPEAR_LIGHT);
@@ -408,7 +408,7 @@ void BossGanondrof_Paintings(BossGanondrof* this, PlayState* play) {
Animation_MorphToPlayOnce(&this->skelAnime, &gPhantomGanonRideSpearResetAnim, -2.0f);
} else if (horse->bossGndSignal == FHG_RIDE) {
Animation_MorphToLoop(&this->skelAnime, &gPhantomGanonRideAnim, -2.0f);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
osSyncPrintf("RUN 3\n");
@@ -435,7 +435,7 @@ void BossGanondrof_Paintings(BossGanondrof* this, PlayState* play) {
void BossGanondrof_SetupNeutral(BossGanondrof* this, f32 arg1) {
Animation_MorphToLoop(&this->skelAnime, &gPhantomGanonNeutralAnim, arg1);
this->actionFunc = BossGanondrof_Neutral;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->fwork[GND_FLOAT_SPEED] = 0.0f;
this->timers[0] = (s16)(Rand_ZeroOne() * 64.0f) + 30;
}
@@ -707,7 +707,7 @@ void BossGanondrof_Stunned(BossGanondrof* this, PlayState* play) {
Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_DAMAGE2);
}
- this->actor.flags |= ACTOR_FLAG_DRAGGED_BY_HOOKSHOT;
+ this->actor.flags |= ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER;
}
osSyncPrintf("TIME0 %d ********************************************\n", this->timers[0]);
@@ -890,7 +890,7 @@ void BossGanondrof_SetupDeath(BossGanondrof* this, PlayState* play) {
Audio_QueueSeqCmd(0x1 << 28 | SEQ_PLAYER_BGM_MAIN << 24 | 0x100FF);
Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_DEAD);
this->deathState = DEATH_START;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->work[GND_VARIANCE_TIMER] = 0;
this->shockTimer = 50;
}
@@ -1263,7 +1263,7 @@ void BossGanondrof_Update(Actor* thisx, PlayState* play) {
EnfHG* horse;
osSyncPrintf("MOVE START %d\n", this->actor.params);
- this->actor.flags &= ~ACTOR_FLAG_DRAGGED_BY_HOOKSHOT;
+ this->actor.flags &= ~ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER;
this->colliderBody.base.colType = COLTYPE_HIT3;
if (this->killActor) {
Actor_Kill(&this->actor);
diff --git a/soh/src/overlays/actors/ovl_Boss_Goma/z_boss_goma.c b/soh/src/overlays/actors/ovl_Boss_Goma/z_boss_goma.c
index fdc16fd1e..e4ce76cdc 100644
--- a/soh/src/overlays/actors/ovl_Boss_Goma/z_boss_goma.c
+++ b/soh/src/overlays/actors/ovl_Boss_Goma/z_boss_goma.c
@@ -8,7 +8,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
// IRIS_FOLLOW: gohma looks towards the player (iris rotation)
// BONUS_IFRAMES: gain invincibility frames when the player does something (throwing things?), or
@@ -403,7 +403,7 @@ void BossGoma_SetupDefeated(BossGoma* this, PlayState* play) {
this->noBackfaceCulling = false;
this->framesUntilNextAction = 1200;
this->actionState = 0;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE);
this->actor.speedXZ = 0.0f;
this->actor.shape.shadowScale = 0.0f;
Audio_QueueSeqCmd(0x1 << 28 | SEQ_PLAYER_BGM_MAIN << 24 | 0x100FF);
@@ -632,7 +632,7 @@ void BossGoma_SetupEncounterState4(BossGoma* this, PlayState* play) {
camera = Play_GetCamera(play, 0);
player = GET_PLAYER(play);
this->actionState = 4;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
func_80064520(play, &play->csCtx);
Player_SetCsActionWithHaltedActors(play, &this->actor, 1);
this->subCameraId = Play_CreateSubCamera(play);
@@ -722,7 +722,7 @@ void BossGoma_Encounter(BossGoma* this, PlayState* play) {
this->framesUntilNextAction = 50;
this->timer = 80;
this->frameCount = 0;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
// fall-through
case 2: // zoom on player from room center
// room entrance, towards center
@@ -1306,7 +1306,7 @@ void BossGoma_FloorPrepareAttack(BossGoma* this, PlayState* play) {
void BossGoma_FloorAttack(BossGoma* this, PlayState* play) {
s16 i;
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
SkelAnime_Update(&this->skelanime);
switch (this->actionState) {
diff --git a/soh/src/overlays/actors/ovl_Boss_Mo/z_boss_mo.c b/soh/src/overlays/actors/ovl_Boss_Mo/z_boss_mo.c
index c1d0f7bae..717922d60 100644
--- a/soh/src/overlays/actors/ovl_Boss_Mo/z_boss_mo.c
+++ b/soh/src/overlays/actors/ovl_Boss_Mo/z_boss_mo.c
@@ -17,7 +17,7 @@
#include <string.h>
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
#define MO_WATER_LEVEL(play) play->colCtx.colHeader->waterBoxes[0].ySurface
@@ -577,7 +577,7 @@ void BossMo_Tentacle(BossMo* this, PlayState* play) {
}
switch (this->work[MO_TENT_ACTION_STATE]) {
case MO_TENT_WAIT:
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if (this == sMorphaTent2) {
this->work[MO_TENT_ACTION_STATE] = MO_TENT_SPAWN;
this->timers[0] = 70;
@@ -671,7 +671,7 @@ void BossMo_Tentacle(BossMo* this, PlayState* play) {
}
break;
case MO_TENT_ATTACK:
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
Sfx_PlaySfxAtPos(&this->tentTipPos, NA_SE_EN_MOFER_ATTACK - SFX_FLAG);
Math_ApproachF(&this->waterLevelMod, -5.0f, 0.1f, 0.4f);
for (indS1 = 0; indS1 < 41; indS1++) {
@@ -941,7 +941,7 @@ void BossMo_Tentacle(BossMo* this, PlayState* play) {
Math_ApproachF(&this->tentMaxAngle, 0.5f, 1.0f, 0.01);
Math_ApproachF(&this->tentSpeed, 320.0f, 1.0f, 50.0f);
if (this->timers[0] == 0) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Math_ApproachF(&this->baseAlpha, 0.0, 1.0f, 5.0f);
for (indS1 = 0; indS1 < 40; indS1++) {
if (sMorphaTent2 && sMorphaTent2->tentSpawnPos) {}
@@ -986,7 +986,7 @@ void BossMo_Tentacle(BossMo* this, PlayState* play) {
}
break;
case MO_TENT_DESPAWN:
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Math_ApproachF(&this->baseAlpha, 0, 1.0f, 5.0f);
if ((this->baseAlpha <= 0.5f) && (this->timers[0] == 0)) {
this->meltIndex = 0;
@@ -1013,7 +1013,7 @@ void BossMo_Tentacle(BossMo* this, PlayState* play) {
case MO_TENT_DEATH_3:
this->baseBubblesTimer = 20;
Math_ApproachF(&sMorphaCore->waterLevel, -300.0f, 0.1f, 0.8f);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
for (indS1 = 0; indS1 < 41; indS1++) {
sin = Math_SinS(((s16)this->fwork[MO_TENT_SWING_LAG_X] * indS1) + this->xSwing);
tempf1 = this->fwork[MO_TENT_SWING_SIZE_X] * (indS1 * 0.025f * sin);
@@ -1380,8 +1380,8 @@ void BossMo_IntroCs(BossMo* this, PlayState* play) {
this->cameraZoom = 60.0f;
this->actor.world.pos = sMorphaTent1->actor.world.pos;
this->work[MO_TENT_ACTION_STATE] = MO_CORE_INTRO_REVEAL;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
- sMorphaTent1->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
+ sMorphaTent1->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
} else {
sMorphaTent1->xSwing = 0xCEC;
sMorphaTent1->fwork[MO_TENT_SWING_RATE_X] = 0.0f;
@@ -1588,7 +1588,7 @@ void BossMo_DeathCs(BossMo* this, PlayState* play) {
Rand_ZeroFloat(0.08f) + 0.13f);
}
this->drawActor = false;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_MOFER_CORE_JUMP);
SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 70, NA_SE_EN_MOFER_LASTVOICE);
}
@@ -1826,7 +1826,7 @@ void BossMo_CoreCollisionCheck(BossMo* this, PlayState* play) {
sMorphaTent1->cutScale = 1.0f;
sMorphaTent1->work[MO_TENT_ACTION_STATE] = MO_TENT_CUT;
sMorphaTent1->timers[0] = 40;
- sMorphaTent1->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ sMorphaTent1->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if (player->actor.parent == &sMorphaTent1->actor) {
player->av2.actionVar2 = 0x65;
player->actor.parent = NULL;
@@ -1900,7 +1900,7 @@ void BossMo_Core(BossMo* this, PlayState* play) {
if ((this->csState != MO_BATTLE) && (this->csState < MO_DEATH_START)) {
BossMo_IntroCs(this, play);
if (this->work[MO_TENT_ACTION_STATE] == MO_CORE_INTRO_WAIT) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
return;
}
} else if (this->csState >= MO_DEATH_START) {
@@ -1933,7 +1933,7 @@ void BossMo_Core(BossMo* this, PlayState* play) {
}
switch (this->work[MO_TENT_ACTION_STATE]) {
case MO_CORE_MOVE:
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
if ((this->timers[0] == 0) &&
((sMorphaTent1->work[MO_TENT_ACTION_STATE] == MO_TENT_WAIT) ||
(sMorphaTent1->work[MO_TENT_ACTION_STATE] == MO_TENT_READY)) &&
@@ -1972,7 +1972,7 @@ void BossMo_Core(BossMo* this, PlayState* play) {
}
break;
case MO_CORE_STUNNED:
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
if (this->timers[0] == 0) {
this->work[MO_TENT_ACTION_STATE] = MO_CORE_MOVE;
this->timers[0] = 30;
@@ -1989,7 +1989,7 @@ void BossMo_Core(BossMo* this, PlayState* play) {
if (this->timers[0] == 0) {
switch (this->work[MO_TENT_ACTION_STATE]) {
case MO_CORE_ATTACK:
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->work[MO_CORE_POS_IN_TENT]++;
if (sMorphaTent1->work[MO_TENT_ACTION_STATE] == MO_TENT_ATTACK) {
temp = (s16)(Math_SinS(this->work[MO_TENT_MOVE_TIMER] * 0x300) * 10.0f) + 15;
@@ -2014,7 +2014,7 @@ void BossMo_Core(BossMo* this, PlayState* play) {
this->timers[0] = 0;
break;
case MO_CORE_INTRO_REVEAL:
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->work[MO_CORE_POS_IN_TENT]++;
temp = (s16)(Math_SinS(this->work[MO_TENT_MOVE_TIMER] * 0x500) * 10.0f) + 15;
if (this->work[MO_CORE_POS_IN_TENT] >= temp) {
@@ -2242,7 +2242,7 @@ void BossMo_UpdateCore(Actor* thisx, PlayState* play) {
} else {
MO_WATER_LEVEL(play) = sMorphaTent2->waterLevelMod + ((s16)this->waterLevel + sMorphaTent1->waterLevelMod);
}
- this->actor.flags |= ACTOR_FLAG_HOOKSHOT_DRAGS;
+ this->actor.flags |= ACTOR_FLAG_HOOKSHOT_PULLS_ACTOR;
this->actor.focus.pos = this->actor.world.pos;
this->work[MO_TENT_VAR_TIMER]++;
@@ -2271,7 +2271,7 @@ void BossMo_UpdateCore(Actor* thisx, PlayState* play) {
}
BossMo_UpdateEffects(this, play);
if (player->actor.parent != NULL) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
BossMo_Unknown();
}
diff --git a/soh/src/overlays/actors/ovl_Boss_Sst/z_boss_sst.c b/soh/src/overlays/actors/ovl_Boss_Sst/z_boss_sst.c
index edd5c032f..3e3aadfcf 100644
--- a/soh/src/overlays/actors/ovl_Boss_Sst/z_boss_sst.c
+++ b/soh/src/overlays/actors/ovl_Boss_Sst/z_boss_sst.c
@@ -15,7 +15,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_DRAGGED_BY_HOOKSHOT)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER)
#define vParity actionVar
#define vVanish actionVar
@@ -316,7 +316,7 @@ void BossSst_Init(Actor* thisx, PlayState* play2) {
sHands[LEFT]->actor.child = &sHands[RIGHT]->actor;
sHands[RIGHT]->actor.child = &sHands[LEFT]->actor;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.update = BossSst_UpdateHead;
this->actor.draw = BossSst_DrawHead;
this->radius = -650.0f;
@@ -341,7 +341,7 @@ void BossSst_Init(Actor* thisx, PlayState* play2) {
ActorShape_Init(&this->actor.shape, 0.0f, ActorShadow_DrawCircle, 95.0f);
this->handZPosMod = -3500;
this->actor.targetArrowOffset = 5000.0f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
BossSst_HandSetupWait(this);
}
}
@@ -425,8 +425,8 @@ void BossSst_HeadIntro(BossSst* this, PlayState* play) {
}
if (this->timer == 0) {
- sHands[RIGHT]->actor.flags |= ACTOR_FLAG_TARGETABLE;
- sHands[LEFT]->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ sHands[RIGHT]->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
+ sHands[LEFT]->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
player->stateFlags1 &= ~PLAYER_STATE1_INPUT_DISABLED;
func_80064534(play, &play->csCtx);
Player_SetCsActionWithHaltedActors(play, &this->actor, 7);
@@ -600,7 +600,7 @@ void BossSst_HeadIntro(BossSst* this, PlayState* play) {
sCameraEye.y += 400.0f * 0.01f;
sCameraEye.z += 1550.0f * 0.01f;
this->vVanish = true;
- this->actor.flags |= ACTOR_FLAG_LENS;
+ this->actor.flags |= ACTOR_FLAG_REACT_TO_LENS;
} else if (revealStateTimer < 40) {
sCameraAt.x += 125.0f * 0.01f;
sCameraAt.y += 350.0f * 0.01f;
@@ -836,7 +836,7 @@ void BossSst_HeadSetupStunned(BossSst* this) {
this->colliderJntSph.base.atFlags &= ~(AT_ON | AT_HIT);
this->colliderCyl.base.acFlags &= ~AC_ON;
this->vVanish = false;
- this->actor.flags &= ~ACTOR_FLAG_LENS;
+ this->actor.flags &= ~ACTOR_FLAG_REACT_TO_LENS;
BossSst_HeadSfx(this, NA_SE_EN_SHADEST_FREEZE);
this->actionFunc = BossSst_HeadStunned;
}
@@ -1412,7 +1412,7 @@ void BossSst_HandSetupRetreat(BossSst* this) {
Animation_MorphToPlayOnce(&this->skelAnime, sHandHangPoses[this->actor.params], 10.0f);
this->colliderJntSph.base.atFlags &= ~(AT_ON | AT_HIT);
this->colliderJntSph.base.acFlags |= AC_ON;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
BossSst_HandSetInvulnerable(this, false);
this->timer = 0;
this->actionFunc = BossSst_HandRetreat;
@@ -2065,7 +2065,7 @@ void BossSst_HandShake(BossSst* this, PlayState* play) {
this->timer = 80;
}
} else if (this->timer == 0) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
BossSst_HandSetupSlam(this);
}
}
@@ -2545,7 +2545,7 @@ void BossSst_HandCollisionCheck(BossSst* this, PlayState* play) {
BossSst_HandSetupRetreat(OTHER_HAND(this));
}
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if (this->actor.colChkInfo.damageEffect == 3) {
BossSst_HandSetupFrozen(this);
} else {
@@ -2662,9 +2662,9 @@ void BossSst_UpdateHead(Actor* thisx, PlayState* play) {
this->actionFunc(this, play);
if (this->vVanish) {
if (!play->actorCtx.lensActive || (thisx->colorFilterTimer != 0)) {
- this->actor.flags &= ~ACTOR_FLAG_LENS;
+ this->actor.flags &= ~ACTOR_FLAG_REACT_TO_LENS;
} else {
- this->actor.flags |= ACTOR_FLAG_LENS;
+ this->actor.flags |= ACTOR_FLAG_REACT_TO_LENS;
}
}
@@ -2684,13 +2684,13 @@ void BossSst_UpdateHead(Actor* thisx, PlayState* play) {
}
BossSst_MoveAround(this);
- if ((!this->vVanish || CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_LENS)) &&
+ if ((!this->vVanish || CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_REACT_TO_LENS)) &&
((this->actionFunc == BossSst_HeadReadyCharge) || (this->actionFunc == BossSst_HeadCharge) ||
(this->actionFunc == BossSst_HeadFrozenHand) || (this->actionFunc == BossSst_HeadStunned) ||
(this->actionFunc == BossSst_HeadVulnerable) || (this->actionFunc == BossSst_HeadDamage))) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
} else {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
if (this->actionFunc == BossSst_HeadCharge) {
@@ -2797,7 +2797,7 @@ s32 BossSst_OverrideHeadDraw(PlayState* play, s32 limbIndex, Gfx** dList, Vec3f*
s32 timer12;
f32 shakeMod;
- if (!CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_LENS) && this->vVanish) {
+ if (!CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_REACT_TO_LENS) && this->vVanish) {
*dList = NULL;
} else if (this->actionFunc == BossSst_HeadThrash) { // Animation modifications for death cutscene
shakeAmp = (this->timer / 10) + 1;
@@ -2888,7 +2888,7 @@ void BossSst_DrawHead(Actor* thisx, PlayState* play) {
OPEN_DISPS(play->state.gfxCtx);
- if (!CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_LENS)) {
+ if (!CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_REACT_TO_LENS)) {
Gfx_SetupDL_25Opa(play->state.gfxCtx);
gDPSetPrimColor(POLY_OPA_DISP++, 0x00, 0x80, sBodyColor.r, sBodyColor.g, sBodyColor.b, 255);
if (!sBodyStatic) {
@@ -2915,7 +2915,7 @@ void BossSst_DrawHead(Actor* thisx, PlayState* play) {
Matrix_RotateY(-randYaw, MTXMODE_APPLY);
}
- if (!CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_LENS)) {
+ if (!CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_REACT_TO_LENS)) {
POLY_OPA_DISP = SkelAnime_DrawFlex(play, this->skelAnime.skeleton, this->skelAnime.jointTable,
this->skelAnime.dListCount, BossSst_OverrideHeadDraw, BossSst_PostHeadDraw,
this, POLY_OPA_DISP);
diff --git a/soh/src/overlays/actors/ovl_Boss_Tw/z_boss_tw.c b/soh/src/overlays/actors/ovl_Boss_Tw/z_boss_tw.c
index a0df96d42..a70d972ae 100644
--- a/soh/src/overlays/actors/ovl_Boss_Tw/z_boss_tw.c
+++ b/soh/src/overlays/actors/ovl_Boss_Tw/z_boss_tw.c
@@ -9,7 +9,7 @@
#include <string.h>
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
typedef enum {
/* 0x00 */ TW_KOTAKE,
@@ -423,7 +423,7 @@ void BossTw_Init(Actor* thisx, PlayState* play2) {
Actor_SetScale(&this->actor, 0.01f);
this->actor.update = BossTw_BlastUpdate;
this->actor.draw = BossTw_BlastDraw;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Collider_InitCylinder(play, &this->collider);
Collider_SetCylinder(play, &this->collider, &this->actor, &sCylinderInitBlasts);
@@ -618,7 +618,7 @@ void BossTw_SetupFlyTo(BossTw* this, PlayState* play) {
BossTw* otherTw = (BossTw*)this->actor.parent;
this->unk_5F8 = 1;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = BossTw_FlyTo;
this->rotateSpeed = 0.0f;
Animation_MorphToLoop(&this->skelAnime, &gTwinrovaKotakeKoumeFlyAnim, -10.0f);
@@ -1442,7 +1442,7 @@ void BossTw_SetupWait(BossTw* this, PlayState* play) {
this->actionFunc = BossTw_Wait;
this->visible = false;
this->actor.world.pos.y = -2000.0f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
void BossTw_Wait(BossTw* this, PlayState* play) {
@@ -1604,7 +1604,7 @@ void BossTw_TwinrovaMergeCS(BossTw* this, PlayState* play) {
this->csState1 = 1;
this->visible = true;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.shape.rot.y = 0;
BossTw_SetupWait(sKotakePtr, play);
BossTw_SetupWait(sKoumePtr, play);
@@ -1725,7 +1725,7 @@ void BossTw_SetupCSWait(BossTw* this, PlayState* play) {
this->actionFunc = BossTw_CSWait;
this->visible = false;
this->actor.world.pos.y = -2000.0f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
/**
@@ -1738,7 +1738,7 @@ void BossTw_TwinrovaSetupIntroCS(BossTw* this, PlayState* play) {
this->actionFunc = BossTw_TwinrovaIntroCS;
this->visible = false;
this->actor.world.pos.y = -2000.0f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
void BossTw_TwinrovaIntroCS(BossTw* this, PlayState* play) {
@@ -2344,7 +2344,7 @@ void BossTw_TwinrovaSetupDeathCS(BossTw* this, PlayState* play) {
this->actionFunc = BossTw_TwinrovaDeathCS;
Animation_MorphToLoop(&this->skelAnime, &gTwinrovaDamageAnim, -3.0f);
this->actor.world.rot.y = this->actor.shape.rot.y;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->csState2 = this->csState1 = 0;
this->work[CS_TIMER_1] = this->work[CS_TIMER_2] = 0;
this->work[INVINC_TIMER] = 10000;
@@ -2659,7 +2659,7 @@ void BossTw_TwinrovaDeathCS(BossTw* this, PlayState* play) {
Actor_SpawnAsChild(&play->actorCtx, &this->actor, play, ACTOR_BOSS_TW,
this->actor.world.pos.x, this->actor.world.pos.y, this->actor.world.pos.z, 0, 0,
0, TW_DEATHBALL_KOTAKE);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
}
Actor_SetScale(&this->actor, this->actor.scale.x);
@@ -2712,7 +2712,7 @@ void BossTw_TwinrovaDeathCS(BossTw* this, PlayState* play) {
sKoumePtr->work[YAW_TGT] = sKotakePtr->work[YAW_TGT] = sKoumePtr->actor.shape.rot.x =
sKotakePtr->actor.shape.rot.x = sKoumePtr->actor.shape.rot.y = sKotakePtr->actor.shape.rot.y = 0;
Player_SetCsActionWithHaltedActors(play, &sKoumePtr->actor, 1);
- sKoumePtr->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ sKoumePtr->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
}
break;
case 2:
@@ -2962,7 +2962,7 @@ void BossTw_TwinrovaUpdate(Actor* thisx, PlayState* play2) {
BossTw* this = (BossTw*)thisx;
Player* player = GET_PLAYER(play);
- this->actor.flags &= ~ACTOR_FLAG_DRAGGED_BY_HOOKSHOT;
+ this->actor.flags &= ~ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER;
this->unk_5F8 = 0;
this->collider.base.colType = COLTYPE_HIT3;
@@ -5311,7 +5311,7 @@ void BossTw_TwinrovaStun(BossTw* this, PlayState* play) {
s16 cloudType;
this->unk_5F8 = 1;
- this->actor.flags |= ACTOR_FLAG_DRAGGED_BY_HOOKSHOT;
+ this->actor.flags |= ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER;
cloudType = sTwinrovaBlastType == 0 ? 3 : 2;
diff --git a/soh/src/overlays/actors/ovl_Boss_Va/z_boss_va.c b/soh/src/overlays/actors/ovl_Boss_Va/z_boss_va.c
index 18bc927d5..045ee412c 100644
--- a/soh/src/overlays/actors/ovl_Boss_Va/z_boss_va.c
+++ b/soh/src/overlays/actors/ovl_Boss_Va/z_boss_va.c
@@ -19,7 +19,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
#define GET_BODY(this) ((BossVa*)(this)->actor.parent)
#define vaGorePulse offset.x
@@ -602,7 +602,7 @@ void BossVa_Init(Actor* thisx, PlayState* play2) {
//sFightPhase = 0;
//sBodyState = 1;
SkelAnime_Init(play, &this->skelAnime, &gBarinadeBodySkel, &gBarinadeBodyAnim, NULL, NULL, 0);
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
break;
case BOSSVA_SUPPORT_1:
case BOSSVA_SUPPORT_2:
@@ -622,7 +622,7 @@ void BossVa_Init(Actor* thisx, PlayState* play2) {
SkelAnime_InitFlex(play, &this->skelAnime, &gBarinadeStumpSkel, &gBarinadeStumpAnim, NULL, NULL, 0);
break;
default:
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
SkelAnime_Init(play, &this->skelAnime, &gBarinadeBariSkel, &gBarinadeBariAnim, NULL, NULL, 0);
this->actor.shape.yOffset = 400.0f;
break;
@@ -781,7 +781,7 @@ void BossVa_SetupIntro(BossVa* this) {
Animation_Change(&this->skelAnime, &gBarinadeBodyAnim, 1.0f, lastFrame, lastFrame, ANIMMODE_ONCE, 0.0f);
this->actor.shape.yOffset = -450.0f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
BossVa_SetupAction(this, BossVa_BodyIntro);
}
@@ -1073,7 +1073,7 @@ void BossVa_SetupBodyPhase1(BossVa* this) {
Animation_Change(&this->skelAnime, &gBarinadeBodyAnim, 1.0f, lastFrame, lastFrame, ANIMMODE_ONCE, 0.0f);
this->actor.shape.yOffset = -450.0f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->timer = 25;
sBodyState = 0x80;
BossVa_SetupAction(this, BossVa_BodyPhase1);
@@ -1140,7 +1140,7 @@ void BossVa_SetupBodyPhase2(BossVa* this, PlayState* play) {
}
this->invincibilityTimer = 0;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
BossVa_SetupAction(this, BossVa_BodyPhase2);
}
@@ -1206,10 +1206,10 @@ void BossVa_BodyPhase2(BossVa* this, PlayState* play) {
Math_SmoothStepToS(&this->actor.shape.rot.z, this->actor.world.rot.z, 1, 0xC8, 0);
Math_SmoothStepToF(&this->actor.shape.yOffset, -1000.0f, 1.0f, 20.0f, 0.0f);
if (!(sPhase2Timer & 0x100)) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.speedXZ = 1.0f;
} else {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.speedXZ = 0.0f;
}
@@ -1272,7 +1272,7 @@ void BossVa_BodyPhase3(BossVa* this, PlayState* play) {
Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_FAINT);
sBodyState = 1;
this->timer = 131;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
} else {
sBodyState = 0;
if (this->timer == 0) {
@@ -1282,7 +1282,7 @@ void BossVa_BodyPhase3(BossVa* this, PlayState* play) {
}
Math_SmoothStepToF(&this->actor.speedXZ, 3.0f, 1.0f, 0.15f, 0.0f);
}
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
} else {
this->timer--;
if (this->timer < 35) {
@@ -1357,7 +1357,7 @@ void BossVa_BodyPhase3(BossVa* this, PlayState* play) {
void BossVa_SetupBodyPhase4(BossVa* this, PlayState* play) {
this->unk_1AC = 0;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->vaBodySpinRate = this->unk_1AC;
this->actor.world.rot.y = this->actor.yawTowardsPlayer;
this->timer2 = (s16)(Rand_ZeroOne() * 150.0f) + 300;
@@ -1537,7 +1537,7 @@ void BossVa_BodyPhase4(BossVa* this, PlayState* play) {
void BossVa_SetupBodyDeath(BossVa* this, PlayState* play) {
func_800F436C(&this->actor.projectedPos, NA_SE_EN_BALINADE_LEVEL - SFX_FLAG, 1.0f);
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE);
Audio_QueueSeqCmd(0x1 << 28 | SEQ_PLAYER_BGM_MAIN << 24 | 0x100FF);
this->vaCamRotMod = 0xC31;
sCsState = DEATH_START;
@@ -1831,7 +1831,7 @@ void BossVa_SupportCut(BossVa* this, PlayState* play) {
lastFrame = Animation_GetLastFrame(&gBarinadeSupportDetachedAnim);
Animation_Change(&this->skelAnime, &gBarinadeSupportDetachedAnim, 1.0f, 0.0f, lastFrame, ANIMMODE_LOOP_INTERP,
0.0f);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
if ((this->timer == 0) && (sCsState < DEATH_START)) {
@@ -1885,7 +1885,7 @@ void BossVa_SupportCut(BossVa* this, PlayState* play) {
void BossVa_SetupStump(BossVa* this, PlayState* play) {
Animation_Change(&this->skelAnime, &gBarinadeStumpAnim, 1.0f, 0.0f, Animation_GetLastFrame(&gBarinadeStumpAnim),
ANIMMODE_ONCE, 0.0f);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
BossVa_SetupAction(this, BossVa_Stump);
}
@@ -1904,7 +1904,7 @@ void BossVa_SetupZapperIntro(BossVa* this, PlayState* play) {
Animation_Change(&this->skelAnime, &gBarinadeZapperIdleAnim, 1.0f, lastFrame - 1.0f, lastFrame,
ANIMMODE_LOOP_INTERP, -6.0f);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
BossVa_SetupAction(this, BossVa_ZapperIntro);
}
@@ -1931,7 +1931,7 @@ void BossVa_SetupZapperAttack(BossVa* this, PlayState* play) {
Animation_Change(&this->skelAnime, &gBarinadeZapperIdleAnim, 1.0f, lastFrame - 1.0f, lastFrame,
ANIMMODE_LOOP_INTERP, -6.0f);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
BossVa_SetupAction(this, BossVa_ZapperAttack);
}
@@ -2428,7 +2428,7 @@ void BossVa_SetupBariIntro(BossVa* this, PlayState* play) {
this->actor.world.pos.y = sInitPosOffsets[this->actor.params + 10].y + this->actor.home.pos.y;
this->actor.world.pos.z = sInitPosOffsets[this->actor.params + 10].z + this->actor.home.pos.z;
this->timer = 45;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
BossVa_SetupAction(this, BossVa_BariIntro);
}
@@ -2549,7 +2549,7 @@ void BossVa_SetupBariPhase3Attack(BossVa* this, PlayState* play) {
this->unk_1F0 = 0x78;
this->unk_1A0 = 60.0f;
this->unk_1A8 = 0.0f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
BossVa_SetupAction(this, BossVa_BariPhase3Attack);
}
@@ -2636,7 +2636,7 @@ void BossVa_SetupBariPhase2Attack(BossVa* this, PlayState* play) {
this->unk_1F0 = 0x78;
this->unk_1A0 = 60.0f;
this->unk_1A8 = 0.0f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
BossVa_SetupAction(this, BossVa_BariPhase2Attack);
}
@@ -2686,7 +2686,7 @@ void BossVa_BariPhase2Attack(BossVa* this, PlayState* play) {
if (!(sPhase2Timer & 0x100) && (GET_BODY(this)->actor.colorFilterTimer == 0)) {
sp4C = 200.0f;
BossVa_Spark(play, this, 1, 125, 15.0f, 7.0f, SPARK_TETHER, 1.0f, true);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if (this->actor.params & 1) {
sp4C = -200.0f;
}
@@ -2709,7 +2709,7 @@ void BossVa_BariPhase2Attack(BossVa* this, PlayState* play) {
CollisionCheck_SetAT(play, &play->colChkCtx, &this->colliderLightning.base);
CollisionCheck_SetAT(play, &play->colChkCtx, &this->colliderSph.base);
} else {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
Math_SmoothStepToS(&this->unk_1AC, sp50 + 150, 1, 0x3C, 0);
if (GET_BODY(this)->actor.colorFilterTimer == 0) {
Math_SmoothStepToF(&this->unk_1A0, 180.0f, 1.0f, 1.5f, 0.0f);
@@ -2749,7 +2749,7 @@ void BossVa_BariPhase2Attack(BossVa* this, PlayState* play) {
}
void BossVa_SetupBariPhase3Stunned(BossVa* this, PlayState* play) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->timer = GET_BODY(this)->timer;
Actor_SetColorFilter(&this->actor, 0, 255, 0x2000, this->timer);
BossVa_SetupAction(this, BossVa_BariPhase3Stunned);
@@ -2782,7 +2782,7 @@ void BossVa_BariPhase3Stunned(BossVa* this, PlayState* play) {
} else {
BossVa_Spark(play, this, 1, 85, 15.0f, 0.0f, SPARK_TETHER, 1.0f, true);
if (this->timer2 >= 0x10) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->timer2 = 0x80;
BossVa_SetupAction(this, BossVa_BariPhase3Attack);
}
@@ -2791,7 +2791,7 @@ void BossVa_BariPhase3Stunned(BossVa* this, PlayState* play) {
}
void BossVa_SetupBariDeath(BossVa* this) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->timer = 30;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_BL_DEAD);
this->isDead++;
@@ -2809,7 +2809,7 @@ void BossVa_SetupDoor(BossVa* this, PlayState* play) {
if (sCsState >= INTRO_SPAWN_BARI) {
sDoorState = 100;
}
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
BossVa_SetupAction(this, BossVa_Door);
}
diff --git a/soh/src/overlays/actors/ovl_Demo_6K/z_demo_6k.c b/soh/src/overlays/actors/ovl_Demo_6K/z_demo_6k.c
index 8b68506f2..51963f5d0 100644
--- a/soh/src/overlays/actors/ovl_Demo_6K/z_demo_6k.c
+++ b/soh/src/overlays/actors/ovl_Demo_6K/z_demo_6k.c
@@ -14,7 +14,7 @@
#include <assert.h>
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void Demo6K_Init(Actor* thisx, PlayState* play);
void Demo6K_Destroy(Actor* thisx, PlayState* play);
@@ -168,7 +168,7 @@ void Demo6K_Init(Actor* thisx, PlayState* play) {
case 17:
case 18:
case 19:
- this->actor.flags |= ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_DRAW_CULLING_DISABLED;
this->drawFunc = func_8096865C;
this->initActionFunc = func_80967410;
this->flags |= 1;
diff --git a/soh/src/overlays/actors/ovl_Demo_Du/z_demo_du.c b/soh/src/overlays/actors/ovl_Demo_Du/z_demo_du.c
index dd1e97e05..273c30df4 100644
--- a/soh/src/overlays/actors/ovl_Demo_Du/z_demo_du.c
+++ b/soh/src/overlays/actors/ovl_Demo_Du/z_demo_du.c
@@ -5,7 +5,7 @@
#include "vt.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
typedef void (*DemoDuActionFunc)(DemoDu*, PlayState*);
typedef void (*DemoDuDrawFunc)(Actor*, PlayState*);
diff --git a/soh/src/overlays/actors/ovl_Demo_Ec/z_demo_ec.c b/soh/src/overlays/actors/ovl_Demo_Ec/z_demo_ec.c
index 1ce6aa7b8..b2772a9ec 100644
--- a/soh/src/overlays/actors/ovl_Demo_Ec/z_demo_ec.c
+++ b/soh/src/overlays/actors/ovl_Demo_Ec/z_demo_ec.c
@@ -37,7 +37,7 @@
#include "objects/object_bba/object_bba.h"
#include "objects/object_ane/object_ane.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void DemoEc_Init(Actor* thisx, PlayState* play);
void DemoEc_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Demo_Effect/z_demo_effect.c b/soh/src/overlays/actors/ovl_Demo_Effect/z_demo_effect.c
index b15b5b17e..b64d2bcde 100644
--- a/soh/src/overlays/actors/ovl_Demo_Effect/z_demo_effect.c
+++ b/soh/src/overlays/actors/ovl_Demo_Effect/z_demo_effect.c
@@ -13,7 +13,7 @@
#include "soh/OTRGlobals.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void DemoEffect_Init(Actor* thisx, PlayState* play);
void DemoEffect_Destroy(Actor* thisx, PlayState* play);
@@ -464,7 +464,7 @@ void DemoEffect_Init(Actor* thisx, PlayState* play2) {
case DEMO_EFFECT_TIMEWARP_TIMEBLOCK_LARGE:
case DEMO_EFFECT_TIMEWARP_TIMEBLOCK_SMALL:
- this->actor.flags |= ACTOR_FLAG_NO_FREEZE_OCARINA;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_DURING_OCARINA;
case DEMO_EFFECT_TIMEWARP_MASTERSWORD:
this->initDrawFunc = DemoEffect_DrawTimeWarp;
this->initUpdateFunc = DemoEffect_InitTimeWarp;
diff --git a/soh/src/overlays/actors/ovl_Demo_Ext/z_demo_ext.c b/soh/src/overlays/actors/ovl_Demo_Ext/z_demo_ext.c
index 175785126..333e279a4 100644
--- a/soh/src/overlays/actors/ovl_Demo_Ext/z_demo_ext.c
+++ b/soh/src/overlays/actors/ovl_Demo_Ext/z_demo_ext.c
@@ -8,7 +8,7 @@
#include "vt.h"
#include "objects/object_fhg/object_fhg.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
typedef enum {
/* 0x00 */ EXT_WAIT,
diff --git a/soh/src/overlays/actors/ovl_Demo_Geff/z_demo_geff.c b/soh/src/overlays/actors/ovl_Demo_Geff/z_demo_geff.c
index 1f9ebe90d..5623e861b 100644
--- a/soh/src/overlays/actors/ovl_Demo_Geff/z_demo_geff.c
+++ b/soh/src/overlays/actors/ovl_Demo_Geff/z_demo_geff.c
@@ -8,7 +8,7 @@
#include "objects/object_geff/object_geff.h"
#include "vt.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void DemoGeff_Init(Actor* thisx, PlayState* play);
void DemoGeff_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Demo_Gj/z_demo_gj.c b/soh/src/overlays/actors/ovl_Demo_Gj/z_demo_gj.c
index e678721ef..e07d8f0be 100644
--- a/soh/src/overlays/actors/ovl_Demo_Gj/z_demo_gj.c
+++ b/soh/src/overlays/actors/ovl_Demo_Gj/z_demo_gj.c
@@ -9,7 +9,7 @@
#include "objects/object_geff/object_geff.h"
#include "vt.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void DemoGj_Init(Actor* thisx, PlayState* play);
void DemoGj_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Demo_Go/z_demo_go.c b/soh/src/overlays/actors/ovl_Demo_Go/z_demo_go.c
index 227ad7ed1..1ccf9f0c8 100644
--- a/soh/src/overlays/actors/ovl_Demo_Go/z_demo_go.c
+++ b/soh/src/overlays/actors/ovl_Demo_Go/z_demo_go.c
@@ -8,7 +8,7 @@
#include "objects/object_oF1d_map/object_oF1d_map.h"
#include "vt.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void DemoGo_Init(Actor* thisx, PlayState* play);
void DemoGo_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Demo_Gt/z_demo_gt.c b/soh/src/overlays/actors/ovl_Demo_Gt/z_demo_gt.c
index 083d74b88..e7138958e 100644
--- a/soh/src/overlays/actors/ovl_Demo_Gt/z_demo_gt.c
+++ b/soh/src/overlays/actors/ovl_Demo_Gt/z_demo_gt.c
@@ -4,7 +4,7 @@
#include "vt.h"
#include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void DemoGt_Init(Actor* thisx, PlayState* play);
void DemoGt_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Demo_Ik/z_demo_ik.c b/soh/src/overlays/actors/ovl_Demo_Ik/z_demo_ik.c
index c641f72bf..d5881b220 100644
--- a/soh/src/overlays/actors/ovl_Demo_Ik/z_demo_ik.c
+++ b/soh/src/overlays/actors/ovl_Demo_Ik/z_demo_ik.c
@@ -3,7 +3,7 @@
#include "objects/object_ik/object_ik.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void DemoIk_Init(Actor* thisx, PlayState* play);
void DemoIk_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Demo_Im/z_demo_im.c b/soh/src/overlays/actors/ovl_Demo_Im/z_demo_im.c
index 9be309322..0b234a630 100644
--- a/soh/src/overlays/actors/ovl_Demo_Im/z_demo_im.c
+++ b/soh/src/overlays/actors/ovl_Demo_Im/z_demo_im.c
@@ -14,7 +14,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void DemoIm_Init(Actor* thisx, PlayState* play);
void DemoIm_Destroy(Actor* thisx, PlayState* play);
@@ -840,7 +840,7 @@ s32 func_809869F8(DemoIm* this, PlayState* play) {
f32 playerPosX = player->actor.world.pos.x;
f32 thisPosX = this->actor.world.pos.x;
- if ((thisPosX - (kREG(16) + 30.0f) > playerPosX) && !(this->actor.flags & ACTOR_FLAG_ACTIVE)) {
+ if ((thisPosX - (kREG(16) + 30.0f) > playerPosX) && !(this->actor.flags & ACTOR_FLAG_INSIDE_CULLING_VOLUME)) {
return true;
} else {
return false;
@@ -860,7 +860,7 @@ s32 func_80986A5C(DemoIm* this, PlayState* play) {
}
s32 func_80986AD0(DemoIm* this, PlayState* play) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
if (!Actor_ProcessTalkRequest(&this->actor, play)) {
this->actor.textId = 0x708E;
func_8002F2F4(&this->actor, play);
@@ -958,7 +958,7 @@ void func_80986DC8(DemoIm* this, PlayState* play) {
DemoIm_UpdateSkelAnime(this);
func_80984BE0(this);
func_80984E58(this, play);
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
}
void func_80986E20(DemoIm* this, PlayState* play) {
@@ -1005,7 +1005,7 @@ void func_80986FA8(DemoIm* this, PlayState* play) {
DemoIm_UpdateSkelAnime(this);
func_80984BE0(this);
func_80984E58(this, play);
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
DemoIm_UpdateCollider(this, play);
func_80986CFC(this, play);
}
@@ -1123,7 +1123,7 @@ void DemoIm_Init(Actor* thisx, PlayState* play) {
ActorShape_Init(&this->actor.shape, 0.0f, ActorShadow_DrawCircle, 30.0f);
DemoIm_InitCollider(thisx, play);
SkelAnime_InitFlex(play, &this->skelAnime, &gImpaSkel, NULL, this->jointTable, this->morphTable, 17);
- thisx->flags &= ~ACTOR_FLAG_TARGETABLE;
+ thisx->flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
switch (this->actor.params) {
case 2:
diff --git a/soh/src/overlays/actors/ovl_Demo_Kankyo/z_demo_kankyo.c b/soh/src/overlays/actors/ovl_Demo_Kankyo/z_demo_kankyo.c
index a7a637d3e..6dc694303 100644
--- a/soh/src/overlays/actors/ovl_Demo_Kankyo/z_demo_kankyo.c
+++ b/soh/src/overlays/actors/ovl_Demo_Kankyo/z_demo_kankyo.c
@@ -7,7 +7,7 @@
#include <assert.h>
#include "soh/OTRGlobals.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void DemoKankyo_Init(Actor* thisx, PlayState* play);
void DemoKankyo_Destroy(Actor* thisx, PlayState* play);
@@ -252,7 +252,7 @@ void DemoKankyo_Init(Actor* thisx, PlayState* play) {
case DEMOKANKYO_WARP_OUT:
case DEMOKANKYO_WARP_IN:
Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_ITEMACTION);
- this->actor.flags |= ACTOR_FLAG_NO_FREEZE_OCARINA;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_DURING_OCARINA;
this->actor.room = -1;
this->warpTimer = 35;
this->sparkleCounter = 0;
diff --git a/soh/src/overlays/actors/ovl_Demo_Kekkai/z_demo_kekkai.c b/soh/src/overlays/actors/ovl_Demo_Kekkai/z_demo_kekkai.c
index b85ccf744..411f294d4 100644
--- a/soh/src/overlays/actors/ovl_Demo_Kekkai/z_demo_kekkai.c
+++ b/soh/src/overlays/actors/ovl_Demo_Kekkai/z_demo_kekkai.c
@@ -9,7 +9,7 @@
#include "scenes/dungeons/ganontika/ganontika_scene.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void DemoKekkai_Init(Actor* thisx, PlayState* play);
void DemoKekkai_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Demo_Sa/z_demo_sa.c b/soh/src/overlays/actors/ovl_Demo_Sa/z_demo_sa.c
index c78c3a897..5b24dd416 100644
--- a/soh/src/overlays/actors/ovl_Demo_Sa/z_demo_sa.c
+++ b/soh/src/overlays/actors/ovl_Demo_Sa/z_demo_sa.c
@@ -12,7 +12,7 @@
#include "vt.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void DemoSa_Init(Actor* thisx, PlayState* play);
void DemoSa_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Demo_Shd/z_demo_shd.c b/soh/src/overlays/actors/ovl_Demo_Shd/z_demo_shd.c
index 26ce36f95..41f6c1a0e 100644
--- a/soh/src/overlays/actors/ovl_Demo_Shd/z_demo_shd.c
+++ b/soh/src/overlays/actors/ovl_Demo_Shd/z_demo_shd.c
@@ -6,7 +6,7 @@
#include "z_demo_shd.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void DemoShd_Init(Actor* thisx, PlayState* play);
void DemoShd_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Demo_Tre_Lgt/z_demo_tre_lgt.c b/soh/src/overlays/actors/ovl_Demo_Tre_Lgt/z_demo_tre_lgt.c
index fa7cb0123..d4388e066 100644
--- a/soh/src/overlays/actors/ovl_Demo_Tre_Lgt/z_demo_tre_lgt.c
+++ b/soh/src/overlays/actors/ovl_Demo_Tre_Lgt/z_demo_tre_lgt.c
@@ -3,7 +3,7 @@
#include "objects/object_box/object_box.h"
#include <assert.h>
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void DemoTreLgt_Init(Actor* thisx, PlayState* play);
void DemoTreLgt_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Door_Ana/z_door_ana.c b/soh/src/overlays/actors/ovl_Door_Ana/z_door_ana.c
index d4d3d8b60..01ff92184 100644
--- a/soh/src/overlays/actors/ovl_Door_Ana/z_door_ana.c
+++ b/soh/src/overlays/actors/ovl_Door_Ana/z_door_ana.c
@@ -10,7 +10,7 @@
#include "soh/Enhancements/randomizer/randomizer_grotto.h"
#include "soh/OTRGlobals.h"
-#define FLAGS ACTOR_FLAG_NO_FREEZE_OCARINA
+#define FLAGS ACTOR_FLAG_UPDATE_DURING_OCARINA
void DoorAna_Init(Actor* thisx, PlayState* play);
void DoorAna_Destroy(Actor* thisx, PlayState* play);
@@ -77,7 +77,7 @@ void DoorAna_Init(Actor* thisx, PlayState* play) {
Collider_InitCylinder(play, &this->collider);
Collider_SetCylinder(play, &this->collider, &this->actor, &sCylinderInit);
} else {
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
Actor_SetScale(&this->actor, 0);
DoorAna_SetupAction(this, DoorAna_WaitClosed);
@@ -104,7 +104,7 @@ void DoorAna_WaitClosed(DoorAna* this, PlayState* play) {
// opening with song of storms
if (this->actor.xyzDistToPlayerSq < 40000.0f && Flags_GetEnv(play, 5)) {
openGrotto = true;
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
} else {
// bombing/hammering open a grotto
diff --git a/soh/src/overlays/actors/ovl_Door_Killer/z_door_killer.c b/soh/src/overlays/actors/ovl_Door_Killer/z_door_killer.c
index f29b23450..e3ba837b2 100644
--- a/soh/src/overlays/actors/ovl_Door_Killer/z_door_killer.c
+++ b/soh/src/overlays/actors/ovl_Door_Killer/z_door_killer.c
@@ -13,7 +13,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
typedef enum {
/* 0 */ DOOR_KILLER_DOOR,
diff --git a/soh/src/overlays/actors/ovl_Door_Shutter/z_door_shutter.c b/soh/src/overlays/actors/ovl_Door_Shutter/z_door_shutter.c
index c842571e7..222b535c5 100644
--- a/soh/src/overlays/actors/ovl_Door_Shutter/z_door_shutter.c
+++ b/soh/src/overlays/actors/ovl_Door_Shutter/z_door_shutter.c
@@ -25,7 +25,7 @@
#include "objects/object_ouke_haka/object_ouke_haka.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void DoorShutter_Init(Actor* thisx, PlayState* play);
void DoorShutter_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Efc_Erupc/z_efc_erupc.c b/soh/src/overlays/actors/ovl_Efc_Erupc/z_efc_erupc.c
index 77821cd33..d72388e0f 100644
--- a/soh/src/overlays/actors/ovl_Efc_Erupc/z_efc_erupc.c
+++ b/soh/src/overlays/actors/ovl_Efc_Erupc/z_efc_erupc.c
@@ -2,7 +2,7 @@
#include "objects/object_efc_erupc/object_efc_erupc.h"
#include "soh/frame_interpolation.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EfcErupc_Init(Actor* thisx, PlayState* play);
void EfcErupc_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Eff_Dust/z_eff_dust.c b/soh/src/overlays/actors/ovl_Eff_Dust/z_eff_dust.c
index a81ed473a..3b6896477 100644
--- a/soh/src/overlays/actors/ovl_Eff_Dust/z_eff_dust.c
+++ b/soh/src/overlays/actors/ovl_Eff_Dust/z_eff_dust.c
@@ -8,7 +8,7 @@
#include "objects/gameplay_keep/gameplay_keep.h"
#include "soh/frame_interpolation.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EffDust_Init(Actor* thisx, PlayState* play);
void EffDust_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Elf_Msg/z_elf_msg.c b/soh/src/overlays/actors/ovl_Elf_Msg/z_elf_msg.c
index 53a0d749c..7c7a2325e 100644
--- a/soh/src/overlays/actors/ovl_Elf_Msg/z_elf_msg.c
+++ b/soh/src/overlays/actors/ovl_Elf_Msg/z_elf_msg.c
@@ -9,7 +9,7 @@
#include "overlays/actors/ovl_En_Elf/z_en_elf.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void ElfMsg_Init(Actor* thisx, PlayState* play);
void ElfMsg_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Elf_Msg2/z_elf_msg2.c b/soh/src/overlays/actors/ovl_Elf_Msg2/z_elf_msg2.c
index 5a291d249..9e3745622 100644
--- a/soh/src/overlays/actors/ovl_Elf_Msg2/z_elf_msg2.c
+++ b/soh/src/overlays/actors/ovl_Elf_Msg2/z_elf_msg2.c
@@ -7,7 +7,7 @@
#include "z_elf_msg2.h"
#include "vt.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void ElfMsg2_Init(Actor* thisx, PlayState* play);
void ElfMsg2_Destroy(Actor* thisx, PlayState* play);
@@ -83,7 +83,7 @@ void ElfMsg2_Init(Actor* thisx, PlayState* play) {
ElfMsg2_SetupAction(this, ElfMsg2_WaitUntilActivated);
} else {
ElfMsg2_SetupAction(this, ElfMsg2_WaitForTextRead);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_NAVI_HAS_INFO; // Make actor targetable and Navi-checkable
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_TALK_WITH_C_UP; // Make actor targetable and Navi-checkable
this->actor.textId = ElfMsg2_GetMessageId(this);
}
this->actor.shape.rot.x = this->actor.shape.rot.y = this->actor.shape.rot.z = 0;
@@ -135,7 +135,7 @@ void ElfMsg2_WaitUntilActivated(ElfMsg2* this, PlayState* play) {
if ((this->actor.world.rot.y >= 0x41) && (this->actor.world.rot.y <= 0x80) &&
(Flags_GetSwitch(play, (this->actor.world.rot.y - 0x41)))) {
ElfMsg2_SetupAction(this, ElfMsg2_WaitForTextRead);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_NAVI_HAS_INFO; // Make actor targetable and Navi-checkable
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_TALK_WITH_C_UP; // Make actor targetable and Navi-checkable
this->actor.textId = ElfMsg2_GetMessageId(this);
}
}
diff --git a/soh/src/overlays/actors/ovl_En_Am/z_en_am.c b/soh/src/overlays/actors/ovl_En_Am/z_en_am.c
index 70a6ae5da..8ac02d7ab 100644
--- a/soh/src/overlays/actors/ovl_En_Am/z_en_am.c
+++ b/soh/src/overlays/actors/ovl_En_Am/z_en_am.c
@@ -10,7 +10,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_CAN_PRESS_SWITCH)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_CAN_PRESS_SWITCHES)
void EnAm_Init(Actor* thisx, PlayState* play);
void EnAm_Destroy(Actor* thisx, PlayState* play);
@@ -290,7 +290,7 @@ void EnAm_SetupStatue(EnAm* this) {
f32 lastFrame = Animation_GetLastFrame(&gArmosRicochetAnim);
Animation_Change(&this->skelAnime, &gArmosRicochetAnim, 0.0f, lastFrame, lastFrame, ANIMMODE_LOOP, 0.0f);
- this->dyna.actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->dyna.actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->behavior = AM_BEHAVIOR_DO_NOTHING;
this->dyna.actor.speedXZ = 0.0f;
EnAm_SetupAction(this, EnAm_Statue);
@@ -391,7 +391,7 @@ void EnAm_Sleep(EnAm* this, PlayState* play) {
if (this->textureBlend >= 240) {
this->attackTimer = 200;
this->textureBlend = 255;
- this->dyna.actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->dyna.actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->dyna.actor.shape.yOffset = 0.0f;
EnAm_SetupLunge(this);
} else {
@@ -412,7 +412,7 @@ void EnAm_Sleep(EnAm* this, PlayState* play) {
this->textureBlend -= 10;
} else {
this->textureBlend = 0;
- this->dyna.actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->dyna.actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if (this->dyna.bgId < 0) {
this->unk_264 = 0;
diff --git a/soh/src/overlays/actors/ovl_En_Ani/z_en_ani.c b/soh/src/overlays/actors/ovl_En_Ani/z_en_ani.c
index 8126a1425..28eb43edd 100644
--- a/soh/src/overlays/actors/ovl_En_Ani/z_en_ani.c
+++ b/soh/src/overlays/actors/ovl_En_Ani/z_en_ani.c
@@ -10,7 +10,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnAni_Init(Actor* thisx, PlayState* play);
void EnAni_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Anubice/z_en_anubice.c b/soh/src/overlays/actors/ovl_En_Anubice/z_en_anubice.c
index 67d2b39a5..0fbef201b 100644
--- a/soh/src/overlays/actors/ovl_En_Anubice/z_en_anubice.c
+++ b/soh/src/overlays/actors/ovl_En_Anubice/z_en_anubice.c
@@ -12,7 +12,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnAnubice_Init(Actor* thisx, PlayState* play);
void EnAnubice_Destroy(Actor* thisx, PlayState* play);
@@ -149,7 +149,7 @@ void EnAnubice_Init(Actor* thisx, PlayState* play) {
this->actor.colChkInfo.mass = MASS_IMMOVABLE;
this->actor.shape.yOffset = -4230.0f;
this->focusHeightOffset = 0.0f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->home = this->actor.world.pos;
this->actor.targetMode = 3;
this->actionFunc = EnAnubice_FindFlameCircles;
@@ -198,7 +198,7 @@ void EnAnubice_FindFlameCircles(EnAnubice* this, PlayState* play) {
}
this->hasSearchedForFlameCircles = true;
}
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = EnAnubice_SetupIdle;
}
}
@@ -377,7 +377,7 @@ void EnAnubice_Update(Actor* thisx, PlayState* play) {
(fabsf(this->flameCircles[i]->actor.world.pos.z - this->actor.world.pos.z) < 60.0f) &&
(flameCircle->timer != 0)) {
Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_PROP);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Enemy_StartFinishingBlow(play, &this->actor);
Audio_PlayActorSound2(&this->actor, NA_SE_EN_ANUBIS_DEAD);
this->actionFunc = EnAnubice_SetupDie;
@@ -389,7 +389,7 @@ void EnAnubice_Update(Actor* thisx, PlayState* play) {
this->collider.base.acFlags &= ~AC_HIT;
if (this->actor.colChkInfo.damageEffect == ANUBICE_DMGEFF_FIRE) {
Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_PROP);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Enemy_StartFinishingBlow(play, &this->actor);
Audio_PlayActorSound2(&this->actor, NA_SE_EN_ANUBIS_DEAD);
this->actionFunc = EnAnubice_SetupDie;
diff --git a/soh/src/overlays/actors/ovl_En_Anubice_Fire/z_en_anubice_fire.c b/soh/src/overlays/actors/ovl_En_Anubice_Fire/z_en_anubice_fire.c
index 1f1934c64..2c142362b 100644
--- a/soh/src/overlays/actors/ovl_En_Anubice_Fire/z_en_anubice_fire.c
+++ b/soh/src/overlays/actors/ovl_En_Anubice_Fire/z_en_anubice_fire.c
@@ -9,7 +9,7 @@
#include "objects/object_anubice/object_anubice.h"
#include "soh/frame_interpolation.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnAnubiceFire_Init(Actor* thisx, PlayState* play);
void EnAnubiceFire_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Anubice_Tag/z_en_anubice_tag.c b/soh/src/overlays/actors/ovl_En_Anubice_Tag/z_en_anubice_tag.c
index 3b74c38ba..91ba3b918 100644
--- a/soh/src/overlays/actors/ovl_En_Anubice_Tag/z_en_anubice_tag.c
+++ b/soh/src/overlays/actors/ovl_En_Anubice_Tag/z_en_anubice_tag.c
@@ -7,7 +7,7 @@
#include "z_en_anubice_tag.h"
#include "vt.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnAnubiceTag_Init(Actor* thisx, PlayState* play);
void EnAnubiceTag_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Arow_Trap/z_en_arow_trap.c b/soh/src/overlays/actors/ovl_En_Arow_Trap/z_en_arow_trap.c
index 3622e5f5f..5a838c579 100644
--- a/soh/src/overlays/actors/ovl_En_Arow_Trap/z_en_arow_trap.c
+++ b/soh/src/overlays/actors/ovl_En_Arow_Trap/z_en_arow_trap.c
@@ -6,7 +6,7 @@
#include "z_en_arow_trap.h"
#include "overlays/actors/ovl_En_Arrow/z_en_arrow.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnArowTrap_Init(Actor* thisx, PlayState* play);
void EnArowTrap_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Arrow/z_en_arrow.c b/soh/src/overlays/actors/ovl_En_Arrow/z_en_arrow.c
index 0669d43d6..8a62ff4ba 100644
--- a/soh/src/overlays/actors/ovl_En_Arrow/z_en_arrow.c
+++ b/soh/src/overlays/actors/ovl_En_Arrow/z_en_arrow.c
@@ -8,7 +8,7 @@
#include "objects/gameplay_keep/gameplay_keep.h"
#include "objects/object_gi_nuts/object_gi_nuts.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnArrow_Init(Actor* thisx, PlayState* play);
void EnArrow_Destroy(Actor* thisx, PlayState* play);
@@ -193,7 +193,7 @@ void EnArrow_Destroy(Actor* thisx, PlayState* play) {
Collider_DestroyQuad(play, &this->collider);
if ((this->hitActor != NULL) && (this->hitActor->update != NULL)) {
- this->hitActor->flags &= ~ACTOR_FLAG_DRAGGED_BY_ARROW;
+ this->hitActor->flags &= ~ACTOR_FLAG_ATTACHED_TO_ARROW;
}
}
@@ -333,11 +333,11 @@ void EnArrow_Fly(EnArrow* this, PlayState* play) {
hitActor = this->collider.base.at;
if ((hitActor->update != NULL) && (!(this->collider.base.atFlags & AT_BOUNCED)) &&
- (hitActor->flags & ACTOR_FLAG_ARROW_DRAGGABLE)) {
+ (hitActor->flags & ACTOR_FLAG_CAN_ATTACH_TO_ARROW)) {
this->hitActor = hitActor;
EnArrow_CarryActor(this, play);
Math_Vec3f_Diff(&hitActor->world.pos, &this->actor.world.pos, &this->unk_250);
- hitActor->flags |= ACTOR_FLAG_DRAGGED_BY_ARROW;
+ hitActor->flags |= ACTOR_FLAG_ATTACHED_TO_ARROW;
this->collider.base.atFlags &= ~AT_HIT;
this->actor.speedXZ /= 2.0f;
this->actor.velocity.y /= 2.0f;
@@ -396,14 +396,14 @@ void EnArrow_Fly(EnArrow* this, PlayState* play) {
this->hitActor->world.pos.y = hitPoint.y + ((sp54.y <= hitPoint.y) ? 1.0f : -1.0f);
this->hitActor->world.pos.z = hitPoint.z + ((sp54.z <= hitPoint.z) ? 1.0f : -1.0f);
Math_Vec3f_Diff(&this->hitActor->world.pos, &this->actor.world.pos, &this->unk_250);
- this->hitActor->flags &= ~ACTOR_FLAG_DRAGGED_BY_ARROW;
+ this->hitActor->flags &= ~ACTOR_FLAG_ATTACHED_TO_ARROW;
this->hitActor = NULL;
} else {
Math_Vec3f_Sum(&this->actor.world.pos, &this->unk_250, &this->hitActor->world.pos);
}
if (this->touchedPoly && (this->hitActor != NULL)) {
- this->hitActor->flags &= ~ACTOR_FLAG_DRAGGED_BY_ARROW;
+ this->hitActor->flags &= ~ACTOR_FLAG_ATTACHED_TO_ARROW;
this->hitActor = NULL;
}
} else {
diff --git a/soh/src/overlays/actors/ovl_En_Attack_Niw/z_en_attack_niw.c b/soh/src/overlays/actors/ovl_En_Attack_Niw/z_en_attack_niw.c
index 8876b6e4e..aa455739e 100644
--- a/soh/src/overlays/actors/ovl_En_Attack_Niw/z_en_attack_niw.c
+++ b/soh/src/overlays/actors/ovl_En_Attack_Niw/z_en_attack_niw.c
@@ -9,7 +9,7 @@
#include "overlays/actors/ovl_En_Niw/z_en_niw.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnAttackNiw_Init(Actor* thisx, PlayState* play);
void EnAttackNiw_Destroy(Actor* thisx, PlayState* play);
@@ -55,7 +55,7 @@ void EnAttackNiw_Init(Actor* thisx, PlayState* play) {
this->unk_298.y = Rand_CenteredFloat(10.0f);
this->unk_298.z = Rand_CenteredFloat(100.0f);
Actor_SetScale(&this->actor, 0.01f);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.shape.rot.y = this->actor.world.rot.y = (Rand_ZeroOne() - 0.5f) * 60000.0f;
this->actionFunc = func_809B5670;
}
diff --git a/soh/src/overlays/actors/ovl_En_Ba/z_en_ba.c b/soh/src/overlays/actors/ovl_En_Ba/z_en_ba.c
index 953b4b212..6914adfc3 100644
--- a/soh/src/overlays/actors/ovl_En_Ba/z_en_ba.c
+++ b/soh/src/overlays/actors/ovl_En_Ba/z_en_ba.c
@@ -9,7 +9,7 @@
#include "soh/frame_interpolation.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnBa_Init(Actor* thisx, PlayState* play);
void EnBa_Destroy(Actor* thisx, PlayState* play);
@@ -150,7 +150,7 @@ void EnBa_Idle(EnBa* this, PlayState* play) {
if ((this->actor.colChkInfo.mass == MASS_IMMOVABLE) && (this->actor.xzDistToPlayer > 175.0f)) {
Math_SmoothStepToF(&this->actor.world.pos.y, this->actor.home.pos.y + 330.0f, 1.0f, 7.0f, 0.0f);
} else {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
Math_SmoothStepToF(&this->actor.world.pos.y, this->actor.home.pos.y + 100.0f, 1.0f, 10.0f, 0.0f);
}
this->unk_2FC = this->actor.world.pos;
@@ -399,7 +399,7 @@ void func_809B75A0(EnBa* this, PlayState* play2) {
Matrix_Translate(this->actor.world.pos.x, this->actor.world.pos.y, this->actor.world.pos.z, MTXMODE_NEW);
Matrix_RotateZYX(this->actor.shape.rot.x - 0x8000, this->actor.shape.rot.y, 0, MTXMODE_APPLY);
Matrix_MultVec3f(&D_809B8080, &this->unk_158[0]);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
for (i = 5; i < 13; i++) {
Math_SmoothStepToS(&this->unk_2A8[i].x, this->unk_2A8[5].x, 1, this->unk_31C, 0);
Math_SmoothStepToS(&this->unk_2A8[i].y, this->unk_2A8[5].y, 1, this->unk_31C, 0);
diff --git a/soh/src/overlays/actors/ovl_En_Bb/z_en_bb.c b/soh/src/overlays/actors/ovl_En_Bb/z_en_bb.c
index b03b6490a..ead1e54be 100644
--- a/soh/src/overlays/actors/ovl_En_Bb/z_en_bb.c
+++ b/soh/src/overlays/actors/ovl_En_Bb/z_en_bb.c
@@ -10,7 +10,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_PLAY_HIT_SFX)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT)
#define vBombHopPhase actionVar1
#define vTrailIdx actionVar1
@@ -347,7 +347,7 @@ void EnBb_Init(Actor* thisx, PlayState* play) {
this->flamePrimBlue = this->flameEnvColor.b = 255;
thisx->world.pos.y += 50.0f;
EnBb_SetupBlue(this);
- thisx->flags |= ACTOR_FLAG_ARROW_DRAGGABLE;
+ thisx->flags |= ACTOR_FLAG_CAN_ATTACH_TO_ARROW;
break;
case ENBB_RED:
thisx->naviEnemyId = 0x24;
@@ -376,7 +376,7 @@ void EnBb_Init(Actor* thisx, PlayState* play) {
EnBb_SetupWhite(play, this);
EnBb_SetWaypoint(this, play);
EnBb_FaceWaypoint(this);
- thisx->flags |= ACTOR_FLAG_ARROW_DRAGGABLE;
+ thisx->flags |= ACTOR_FLAG_CAN_ATTACH_TO_ARROW;
break;
case ENBB_GREEN_BIG:
this->path = this->actionState >> 4;
@@ -412,7 +412,7 @@ void EnBb_Destroy(Actor* thisx, PlayState* play) {
void EnBb_SetupFlameTrail(EnBb* this) {
this->action = BB_FLAME_TRAIL;
this->moveMode = BBMOVE_NOCLIP;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.velocity.y = 0.0f;
this->actor.gravity = 0.0f;
this->actor.speedXZ = 0.0f;
@@ -705,7 +705,7 @@ void EnBb_Down(EnBb* this, PlayState* play) {
this->moveMode = BBMOVE_HIDDEN;
this->timer = 10;
this->actionState++;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->action = BB_RED;
EnBb_SetupAction(this, EnBb_Red);
return;
@@ -770,7 +770,7 @@ void EnBb_SetupRed(PlayState* play, EnBb* this) {
this->actor.home.pos = this->actor.world.pos;
this->actor.velocity.y = this->actor.gravity = this->actor.speedXZ = 0.0f;
this->actor.bgCheckFlags &= ~1;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
this->action = BB_RED;
EnBb_SetupAction(this, EnBb_Red);
@@ -804,7 +804,7 @@ void EnBb_Red(EnBb* this, PlayState* play) {
case BBRED_ATTACK:
if (this->timer == 0) {
this->moveMode = BBMOVE_NORMAL;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
}
this->bobPhase += Rand_ZeroOne();
Math_SmoothStepToF(&this->flameScaleY, 80.0f, 1.0f, 10.0f, 0.0f);
@@ -823,7 +823,7 @@ void EnBb_Red(EnBb* this, PlayState* play) {
this->moveMode = BBMOVE_HIDDEN;
this->timer = 10;
this->actionState++;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
} else {
this->actor.velocity.y *= -1.06f;
if (this->actor.velocity.y > 13.0f) {
@@ -1132,7 +1132,7 @@ void EnBb_Stunned(EnBb* this, PlayState* play) {
EnBb_SetupDown(this);
}
} else {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
EnBb_SetupDeath(this, play);
}
}
@@ -1197,7 +1197,7 @@ void EnBb_CollisionCheck(EnBb* this, PlayState* play) {
}
}
if (this->actor.colChkInfo.health == 0) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if (this->actor.params == ENBB_RED) {
EnBb_KillFlameTrail(this);
}
@@ -1239,7 +1239,7 @@ void EnBb_Update(Actor* thisx, PlayState* play2) {
if (this->actor.colChkInfo.damageEffect != 0xD) {
this->actionFunc(this, play);
if ((this->actor.params <= ENBB_BLUE) && (this->actor.speedXZ >= -6.0f) &&
- ((this->actor.flags & ACTOR_FLAG_DRAGGED_BY_ARROW) == 0)) {
+ ((this->actor.flags & ACTOR_FLAG_ATTACHED_TO_ARROW) == 0)) {
Actor_MoveXZGravity(&this->actor);
}
if (this->moveMode == BBMOVE_NORMAL) {
diff --git a/soh/src/overlays/actors/ovl_En_Bdfire/z_en_bdfire.c b/soh/src/overlays/actors/ovl_En_Bdfire/z_en_bdfire.c
index eeeec465c..12255f599 100644
--- a/soh/src/overlays/actors/ovl_En_Bdfire/z_en_bdfire.c
+++ b/soh/src/overlays/actors/ovl_En_Bdfire/z_en_bdfire.c
@@ -7,7 +7,7 @@
#include "z_en_bdfire.h"
#include "objects/object_kingdodongo/object_kingdodongo.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnBdfire_Init(Actor* thisx, PlayState* play);
void EnBdfire_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Bigokuta/z_en_bigokuta.c b/soh/src/overlays/actors/ovl_En_Bigokuta/z_en_bigokuta.c
index aa53182c5..27ba0e3f2 100644
--- a/soh/src/overlays/actors/ovl_En_Bigokuta/z_en_bigokuta.c
+++ b/soh/src/overlays/actors/ovl_En_Bigokuta/z_en_bigokuta.c
@@ -3,7 +3,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnBigokuta_Init(Actor* thisx, PlayState* play);
void EnBigokuta_Destroy(Actor* thisx, PlayState* play);
@@ -388,7 +388,7 @@ void func_809BD6B8(EnBigokuta* this) {
void func_809BD768(EnBigokuta* this) {
this->unk_194 = Rand_ZeroOne() < 0.5f ? -1 : 1;
this->unk_19A = 0;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->cylinder[0].base.atFlags &= ~AT_ON;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_DAIOCTA_SINK);
this->actionFunc = func_809BE4A4;
@@ -690,7 +690,7 @@ void func_809BE4A4(EnBigokuta* this, PlayState* play) {
void func_809BE518(EnBigokuta* this, PlayState* play) {
if (Math_StepToF(&this->actor.world.pos.y, this->actor.home.pos.y, 10.0f)) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
func_809BD3F8(this);
}
}
@@ -791,7 +791,7 @@ void EnBigokuta_Update(Actor* thisx, PlayState* play2) {
for (i = 0; i < ARRAY_COUNT(this->cylinder); i++) {
CollisionCheck_SetAT(play, &play->colChkCtx, &this->cylinder[i].base);
}
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
} else {
for (i = 0; i < ARRAY_COUNT(this->cylinder); i++) {
CollisionCheck_SetOC(play, &play->colChkCtx, &this->cylinder[i].base);
diff --git a/soh/src/overlays/actors/ovl_En_Bili/z_en_bili.c b/soh/src/overlays/actors/ovl_En_Bili/z_en_bili.c
index cd927a5c2..0f9090a9c 100644
--- a/soh/src/overlays/actors/ovl_En_Bili/z_en_bili.c
+++ b/soh/src/overlays/actors/ovl_En_Bili/z_en_bili.c
@@ -9,7 +9,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_IGNORE_QUAKE | ACTOR_FLAG_ARROW_DRAGGABLE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_IGNORE_QUAKE | ACTOR_FLAG_CAN_ATTACH_TO_ARROW)
void EnBili_Init(Actor* thisx, PlayState* play);
void EnBili_Destroy(Actor* thisx, PlayState* play);
@@ -224,7 +224,7 @@ void EnBili_SetupBurnt(EnBili* this) {
this->timer = 20;
this->collider.base.atFlags &= ~AT_ON;
this->collider.base.acFlags &= ~AC_ON;
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actor.speedXZ = 0.0f;
Actor_SetColorFilter(&this->actor, 0x4000, 0xC8, 0x2000, 0x14);
this->actionFunc = EnBili_Burnt;
@@ -232,7 +232,7 @@ void EnBili_SetupBurnt(EnBili* this) {
void EnBili_SetupDie(EnBili* this) {
this->timer = 18;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = EnBili_Die;
this->actor.speedXZ = 0.0f;
GameInteractor_ExecuteOnEnemyDefeat(&this->actor);
@@ -256,7 +256,7 @@ void EnBili_SetupFrozen(EnBili* this, PlayState* play) {
s32 i;
Vec3f effectPos;
- if (!(this->actor.flags & ACTOR_FLAG_DRAGGED_BY_ARROW)) {
+ if (!(this->actor.flags & ACTOR_FLAG_ATTACHED_TO_ARROW)) {
this->actor.gravity = -1.0f;
}
@@ -461,7 +461,7 @@ void EnBili_Recoil(EnBili* this, PlayState* play) {
void EnBili_Burnt(EnBili* this, PlayState* play) {
SkelAnime_Update(&this->skelAnime);
- if (this->actor.flags & ACTOR_FLAG_DRAGGED_BY_ARROW) {
+ if (this->actor.flags & ACTOR_FLAG_ATTACHED_TO_ARROW) {
this->actor.colorFilterTimer = 20;
} else {
if (this->timer != 0) {
@@ -482,7 +482,7 @@ void EnBili_Die(EnBili* this, PlayState* play) {
s32 i;
if (this->actor.draw != NULL) {
- if (this->actor.flags & ACTOR_FLAG_DRAGGED_BY_ARROW) {
+ if (this->actor.flags & ACTOR_FLAG_ATTACHED_TO_ARROW) {
return;
}
this->actor.draw = NULL;
@@ -538,7 +538,7 @@ void EnBili_Frozen(EnBili* this, PlayState* play) {
this->timer--;
}
- if (!(this->actor.flags & ACTOR_FLAG_DRAGGED_BY_ARROW)) {
+ if (!(this->actor.flags & ACTOR_FLAG_ATTACHED_TO_ARROW)) {
this->actor.gravity = -1.0f;
}
@@ -561,7 +561,7 @@ void EnBili_UpdateDamage(EnBili* this, PlayState* play) {
if (Actor_ApplyDamage(&this->actor) == 0) {
Audio_PlayActorSound2(&this->actor, NA_SE_EN_BIRI_DEAD);
Enemy_StartFinishingBlow(play, &this->actor);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
damageEffect = this->actor.colChkInfo.damageEffect;
@@ -593,7 +593,7 @@ void EnBili_UpdateDamage(EnBili* this, PlayState* play) {
}
if (this->collider.info.acHitInfo->toucher.dmgFlags & 0x1F820) { // DMG_ARROW
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
}
}
diff --git a/soh/src/overlays/actors/ovl_En_Blkobj/z_en_blkobj.c b/soh/src/overlays/actors/ovl_En_Blkobj/z_en_blkobj.c
index 43d142fab..f31e05a9f 100644
--- a/soh/src/overlays/actors/ovl_En_Blkobj/z_en_blkobj.c
+++ b/soh/src/overlays/actors/ovl_En_Blkobj/z_en_blkobj.c
@@ -8,7 +8,7 @@
#include "objects/object_blkobj/object_blkobj.h"
#include "soh/Enhancements/game-interactor/GameInteractor.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnBlkobj_Init(Actor* thisx, PlayState* play);
void EnBlkobj_Destroy(Actor* thisx, PlayState* play);
@@ -89,7 +89,7 @@ void EnBlkobj_Wait(EnBlkobj* this, PlayState* play) {
}
void EnBlkobj_SpawnDarkLink(EnBlkobj* this, PlayState* play) {
- if (!(this->dyna.actor.flags & ACTOR_FLAG_ACTIVE)) {
+ if (!(this->dyna.actor.flags & ACTOR_FLAG_INSIDE_CULLING_VOLUME)) {
Actor_Spawn(&play->actorCtx, play, ACTOR_EN_TORCH2, this->dyna.actor.world.pos.x,
this->dyna.actor.world.pos.y, this->dyna.actor.world.pos.z, 0, this->dyna.actor.yawTowardsPlayer, 0,
0, true);
diff --git a/soh/src/overlays/actors/ovl_En_Bom/z_en_bom.c b/soh/src/overlays/actors/ovl_En_Bom/z_en_bom.c
index e5c9c2a99..1efbdd5d7 100644
--- a/soh/src/overlays/actors/ovl_En_Bom/z_en_bom.c
+++ b/soh/src/overlays/actors/ovl_En_Bom/z_en_bom.c
@@ -10,7 +10,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor.h"
#include <stdlib.h>
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnBom_Init(Actor* thisx, PlayState* play);
void EnBom_Destroy(Actor* thisx, PlayState* play);
@@ -195,7 +195,7 @@ void EnBom_Explode(EnBom* this, PlayState* play) {
Player* player;
if (this->explosionCollider.elements[0].dim.modelSphere.radius == 0) {
- this->actor.flags |= ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_DRAW_CULLING_DISABLED;
func_800AA000(this->actor.xzDistToPlayer, 0xFF, 0x14, 0x96);
}
@@ -357,7 +357,7 @@ void EnBom_Update(Actor* thisx, PlayState* play2) {
Camera_AddQuake(&play->mainCamera, 2, 0xB, 8);
thisx->params = BOMB_EXPLOSION;
this->timer = 10;
- thisx->flags |= ACTOR_FLAG_DRAW_WHILE_CULLED;
+ thisx->flags |= ACTOR_FLAG_DRAW_CULLING_DISABLED;
EnBom_SetupAction(this, EnBom_Explode);
}
}
diff --git a/soh/src/overlays/actors/ovl_En_Bom_Bowl_Man/z_en_bom_bowl_man.c b/soh/src/overlays/actors/ovl_En_Bom_Bowl_Man/z_en_bom_bowl_man.c
index ccf1150cf..9d9ed8a53 100644
--- a/soh/src/overlays/actors/ovl_En_Bom_Bowl_Man/z_en_bom_bowl_man.c
+++ b/soh/src/overlays/actors/ovl_En_Bom_Bowl_Man/z_en_bom_bowl_man.c
@@ -8,7 +8,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_NO_LOCKON)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_LOCK_ON_DISABLED)
typedef enum {
/* 0 */ CHU_GIRL_EYES_ASLEEP,
diff --git a/soh/src/overlays/actors/ovl_En_Bom_Bowl_Pit/z_en_bom_bowl_pit.c b/soh/src/overlays/actors/ovl_En_Bom_Bowl_Pit/z_en_bom_bowl_pit.c
index 6c68b3831..712a9008d 100644
--- a/soh/src/overlays/actors/ovl_En_Bom_Bowl_Pit/z_en_bom_bowl_pit.c
+++ b/soh/src/overlays/actors/ovl_En_Bom_Bowl_Pit/z_en_bom_bowl_pit.c
@@ -5,7 +5,7 @@
#include "soh/OTRGlobals.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnBomBowlPit_Init(Actor* thisx, PlayState* play);
void EnBomBowlPit_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Bom_Chu/z_en_bom_chu.c b/soh/src/overlays/actors/ovl_En_Bom_Chu/z_en_bom_chu.c
index df74e5317..e0b2bd7cb 100644
--- a/soh/src/overlays/actors/ovl_En_Bom_Chu/z_en_bom_chu.c
+++ b/soh/src/overlays/actors/ovl_En_Bom_Chu/z_en_bom_chu.c
@@ -2,7 +2,7 @@
#include "overlays/actors/ovl_En_Bom/z_en_bom.h"
#include "objects/gameplay_keep/gameplay_keep.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
#define BOMBCHU_SCALE 0.01f
@@ -240,7 +240,7 @@ void EnBomChu_WaitForRelease(EnBomChu* this, PlayState* play) {
//! @bug there is no NULL check on the floor poly. If the player is out of bounds the floor poly will be NULL
//! and will cause a crash inside this function.
EnBomChu_UpdateFloorPoly(this, this->actor.floorPoly, play);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE; // make chu targetable
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED; // make chu targetable
func_8002F850(play, &this->actor);
this->actionFunc = EnBomChu_Move;
}
diff --git a/soh/src/overlays/actors/ovl_En_Bombf/z_en_bombf.c b/soh/src/overlays/actors/ovl_En_Bombf/z_en_bombf.c
index 2be1a20fc..a002f0d1c 100644
--- a/soh/src/overlays/actors/ovl_En_Bombf/z_en_bombf.c
+++ b/soh/src/overlays/actors/ovl_En_Bombf/z_en_bombf.c
@@ -8,7 +8,7 @@
#include "objects/object_bombf/object_bombf.h"
#include "overlays/effects/ovl_Effect_Ss_Dead_Sound/z_eff_ss_dead_sound.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnBombf_Init(Actor* thisx, PlayState* play);
void EnBombf_Destroy(Actor* thisx, PlayState* play);
@@ -105,7 +105,7 @@ void EnBombf_Init(Actor* thisx, PlayState* play) {
thisx->focus.pos = thisx->world.pos;
if (Actor_FindNearby(play, thisx, ACTOR_BG_DDAN_KD, ACTORCAT_BG, 10000.0f) != NULL) {
- thisx->flags |= ACTOR_FLAG_DRAW_WHILE_CULLED;
+ thisx->flags |= ACTOR_FLAG_DRAW_CULLING_DISABLED;
}
thisx->colChkInfo.cylRadius = 10.0f;
@@ -118,7 +118,7 @@ void EnBombf_Init(Actor* thisx, PlayState* play) {
thisx->gravity = -1.5f;
Actor_ChangeCategory(play, &play->actorCtx, thisx, ACTORCAT_EXPLOSIVE);
thisx->colChkInfo.mass = 200;
- thisx->flags &= ~ACTOR_FLAG_TARGETABLE;
+ thisx->flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
EnBombf_SetupAction(this, EnBombf_Move);
} else {
thisx->colChkInfo.mass = MASS_IMMOVABLE;
@@ -158,7 +158,7 @@ void EnBombf_GrowBomb(EnBombf* this, PlayState* play) {
this->timer = 180;
this->flowerBombScale = 0.0f;
Audio_PlayActorSound2(&this->actor, NA_SE_PL_PULL_UP_ROCK);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
} else {
player->actor.child = NULL;
player->heldActor = NULL;
@@ -177,7 +177,7 @@ void EnBombf_GrowBomb(EnBombf* this, PlayState* play) {
bombFlower->isFuseEnabled = 1;
bombFlower->timer = 0;
this->timer = 180;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->flowerBombScale = 0.0f;
}
}
@@ -189,7 +189,7 @@ void EnBombf_GrowBomb(EnBombf* this, PlayState* play) {
if (bombFlower != NULL) {
bombFlower->timer = 100;
this->timer = 180;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->flowerBombScale = 0.0f;
}
} else {
@@ -209,7 +209,7 @@ void EnBombf_GrowBomb(EnBombf* this, PlayState* play) {
if (this->timer == 0) {
this->flowerBombScale += 0.05f;
if (this->flowerBombScale >= 1.0f) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
}
}
@@ -263,7 +263,7 @@ void EnBombf_Explode(EnBombf* this, PlayState* play) {
Player* player;
if (this->explosionCollider.elements[0].dim.modelSphere.radius == 0) {
- this->actor.flags |= ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_DRAW_CULLING_DISABLED;
func_800AA000(this->actor.xzDistToPlayer, 0xFF, 0x14, 0x96);
}
@@ -430,7 +430,7 @@ void EnBombf_Update(Actor* thisx, PlayState* play) {
Camera_AddQuake(&play->mainCamera, 2, 0xB, 8);
thisx->params = BOMBFLOWER_EXPLOSION;
this->timer = 10;
- thisx->flags |= ACTOR_FLAG_DRAW_WHILE_CULLED;
+ thisx->flags |= ACTOR_FLAG_DRAW_CULLING_DISABLED;
EnBombf_SetupAction(this, EnBombf_Explode);
}
}
diff --git a/soh/src/overlays/actors/ovl_En_Boom/z_en_boom.c b/soh/src/overlays/actors/ovl_En_Boom/z_en_boom.c
index 6079c1ff5..6f4d00084 100644
--- a/soh/src/overlays/actors/ovl_En_Boom/z_en_boom.c
+++ b/soh/src/overlays/actors/ovl_En_Boom/z_en_boom.c
@@ -7,7 +7,7 @@
#include "z_en_boom.h"
#include "objects/gameplay_keep/gameplay_keep.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnBoom_Init(Actor* thisx, PlayState* play);
void EnBoom_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Box/z_en_box.c b/soh/src/overlays/actors/ovl_En_Box/z_en_box.c
index aca1fc811..6977f4ee4 100644
--- a/soh/src/overlays/actors/ovl_En_Box/z_en_box.c
+++ b/soh/src/overlays/actors/ovl_En_Box/z_en_box.c
@@ -156,7 +156,7 @@ void EnBox_Init(Actor* thisx, PlayState* play2) {
EnBox_SetupAction(this, EnBox_FallOnSwitchFlag);
this->alpha = 0;
this->movementFlags |= ENBOX_MOVE_IMMOBILE;
- this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
} else if ((this->type == ENBOX_TYPE_ROOM_CLEAR_BIG || this->type == ENBOX_TYPE_ROOM_CLEAR_SMALL) &&
!Flags_GetClear(play, this->dyna.actor.room)) {
EnBox_SetupAction(this, EnBox_AppearOnRoomClear);
@@ -164,25 +164,25 @@ void EnBox_Init(Actor* thisx, PlayState* play2) {
this->movementFlags |= ENBOX_MOVE_IMMOBILE;
this->dyna.actor.world.pos.y = this->dyna.actor.home.pos.y - 50.0f;
this->alpha = 0;
- this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
} else if (this->type == ENBOX_TYPE_9 || this->type == ENBOX_TYPE_10) {
EnBox_SetupAction(this, func_809C9700);
- this->dyna.actor.flags |= ACTOR_FLAG_NO_FREEZE_OCARINA;
+ this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_DURING_OCARINA;
func_8003EBF8(play, &play->colCtx.dyna, this->dyna.bgId);
this->movementFlags |= ENBOX_MOVE_IMMOBILE;
this->dyna.actor.world.pos.y = this->dyna.actor.home.pos.y - 50.0f;
this->alpha = 0;
- this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
} else if (this->type == ENBOX_TYPE_SWITCH_FLAG_BIG && !Flags_GetSwitch(play, this->switchFlag)) {
EnBox_SetupAction(this, EnBox_AppearOnSwitchFlag);
func_8003EBF8(play, &play->colCtx.dyna, this->dyna.bgId);
this->movementFlags |= ENBOX_MOVE_IMMOBILE;
this->dyna.actor.world.pos.y = this->dyna.actor.home.pos.y - 50.0f;
this->alpha = 0;
- this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
} else {
if (this->type == ENBOX_TYPE_4 || this->type == ENBOX_TYPE_6) {
- this->dyna.actor.flags |= ACTOR_FLAG_LENS;
+ this->dyna.actor.flags |= ACTOR_FLAG_REACT_TO_LENS;
}
EnBox_SetupAction(this, EnBox_WaitOpen);
this->movementFlags |= ENBOX_MOVE_IMMOBILE;
@@ -335,7 +335,7 @@ void func_809C9700(EnBox* this, PlayState* play) {
} else if (this->unk_1FB == ENBOX_STATE_2 && play->msgCtx.ocarinaMode == OCARINA_MODE_04) {
if ((play->msgCtx.lastPlayedSong == OCARINA_SONG_LULLABY && this->type == ENBOX_TYPE_9) ||
(play->msgCtx.lastPlayedSong == OCARINA_SONG_SUNS && this->type == ENBOX_TYPE_10)) {
- this->dyna.actor.flags &= ~ACTOR_FLAG_NO_FREEZE_OCARINA;
+ this->dyna.actor.flags &= ~ACTOR_FLAG_UPDATE_DURING_OCARINA;
EnBox_SetupAction(this, EnBox_AppearInit);
OnePointCutscene_Attention(play, &this->dyna.actor);
this->unk_1A8 = 0;
@@ -466,7 +466,7 @@ void EnBox_WaitOpen(EnBox* this, PlayState* play) {
void EnBox_Open(EnBox* this, PlayState* play) {
u16 sfxId;
- this->dyna.actor.flags &= ~ACTOR_FLAG_LENS;
+ this->dyna.actor.flags &= ~ACTOR_FLAG_REACT_TO_LENS;
if (SkelAnime_Update(&this->skelanime)) {
if (this->unk_1F4 > 0) {
@@ -913,11 +913,11 @@ void EnBox_Draw(Actor* thisx, PlayState* play) {
OPEN_DISPS(play->state.gfxCtx);
/*
- this->dyna.actor.flags & ACTOR_FLAG_LENS is set by Init (if type is 4 or 6)
+ this->dyna.actor.flags & ACTOR_FLAG_REACT_TO_LENS is set by Init (if type is 4 or 6)
and cleared by Open
*/
if ((this->alpha == 255 && !(this->type == ENBOX_TYPE_4 || this->type == ENBOX_TYPE_6)) ||
- (!CHECK_FLAG_ALL(this->dyna.actor.flags, ACTOR_FLAG_LENS) &&
+ (!CHECK_FLAG_ALL(this->dyna.actor.flags, ACTOR_FLAG_REACT_TO_LENS) &&
(this->type == ENBOX_TYPE_4 || this->type == ENBOX_TYPE_6))) {
gDPPipeSync(POLY_OPA_DISP++);
gDPSetEnvColor(POLY_OPA_DISP++, 0, 0, 0, 255);
diff --git a/soh/src/overlays/actors/ovl_En_Brob/z_en_brob.c b/soh/src/overlays/actors/ovl_En_Brob/z_en_brob.c
index fbedc59bd..11dad1a11 100644
--- a/soh/src/overlays/actors/ovl_En_Brob/z_en_brob.c
+++ b/soh/src/overlays/actors/ovl_En_Brob/z_en_brob.c
@@ -8,7 +8,7 @@
#include "objects/object_brob/object_brob.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE)
void EnBrob_Init(Actor* thisx, PlayState* play);
void EnBrob_Destroy(Actor* thisx, PlayState* play);
@@ -93,7 +93,7 @@ void EnBrob_Init(Actor* thisx, PlayState* play) {
this->colliders[1].dim.height *= thisx->scale.y;
this->colliders[1].dim.yShift *= thisx->scale.y;
this->actionFunc = NULL;
- thisx->flags &= ~ACTOR_FLAG_TARGETABLE;
+ thisx->flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
func_809CADDC(this, play);
}
diff --git a/soh/src/overlays/actors/ovl_En_Bubble/z_en_bubble.c b/soh/src/overlays/actors/ovl_En_Bubble/z_en_bubble.c
index 7965d2df1..b29e9044c 100644
--- a/soh/src/overlays/actors/ovl_En_Bubble/z_en_bubble.c
+++ b/soh/src/overlays/actors/ovl_En_Bubble/z_en_bubble.c
@@ -2,7 +2,7 @@
#include "objects/object_bubble/object_bubble.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_TARGETABLE
+#define FLAGS ACTOR_FLAG_ATTENTION_ENABLED
void EnBubble_Init(Actor* thisx, PlayState* play);
void EnBubble_Destroy(Actor* thisx, PlayState* play);
@@ -80,7 +80,7 @@ void EnBubble_SetDimensions(EnBubble* this, f32 dim) {
f32 c;
f32 d;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
Actor_SetScale(&this->actor, 1.0f);
this->actor.shape.yOffset = 16.0f;
this->graphicRotSpeed = 16.0f;
@@ -149,7 +149,7 @@ s32 EnBubble_Explosion(EnBubble* this, PlayState* play) {
&sEffectEnvColor, Rand_S16Offset(100, 50), 0x19, 0);
}
Item_DropCollectibleRandom(play, NULL, &this->actor.world.pos, 0x50);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
return Rand_S16Offset(90, 60);
}
diff --git a/soh/src/overlays/actors/ovl_En_Butte/z_en_butte.c b/soh/src/overlays/actors/ovl_En_Butte/z_en_butte.c
index 3bdfe377d..8a1f3ea2d 100644
--- a/soh/src/overlays/actors/ovl_En_Butte/z_en_butte.c
+++ b/soh/src/overlays/actors/ovl_En_Butte/z_en_butte.c
@@ -353,7 +353,7 @@ void EnButte_FollowLink(EnButte* this, PlayState* play) {
void EnButte_SetupTransformIntoFairy(EnButte* this) {
this->timer = 9;
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->skelAnime.playSpeed = 1.0f;
EnButte_ResetTransformationEffect();
this->actionFunc = EnButte_TransformIntoFairy;
diff --git a/soh/src/overlays/actors/ovl_En_Bw/z_en_bw.c b/soh/src/overlays/actors/ovl_En_Bw/z_en_bw.c
index 84754caba..4c1730ae2 100644
--- a/soh/src/overlays/actors/ovl_En_Bw/z_en_bw.c
+++ b/soh/src/overlays/actors/ovl_En_Bw/z_en_bw.c
@@ -10,7 +10,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnBw_Init(Actor* thisx, PlayState* play);
void EnBw_Destroy(Actor* thisx, PlayState* play);
@@ -434,7 +434,7 @@ void func_809CF8F0(EnBw* this) {
this->unk_222 = 1000;
this->actor.velocity.y = 11.0f;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP);
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
EnBw_SetupAction(this, func_809CF984);
}
@@ -464,7 +464,7 @@ void func_809CF984(EnBw* this, PlayState* play) {
}
Actor_SpawnFloorDustRing(play, &this->actor, &this->actor.world.pos, 30.0f, 11, 4.0f, 0, 0, false);
this->unk_222 = 3000;
- this->actor.flags &= ~ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags &= ~ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
this->actor.speedXZ = 0.0f;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND);
EnBw_SetupAction(this, func_809CE884);
@@ -575,7 +575,7 @@ void func_809CFF98(EnBw* this, PlayState* play) {
void func_809D00F4(EnBw* this) {
this->unk_220 = 0;
this->unk_222 = 40;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.speedXZ = 0.0f;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLEWALK_DEAD);
EnBw_SetupAction(this, func_809D014C);
diff --git a/soh/src/overlays/actors/ovl_En_Bx/z_en_bx.c b/soh/src/overlays/actors/ovl_En_Bx/z_en_bx.c
index 626ca53bc..26e02d52e 100644
--- a/soh/src/overlays/actors/ovl_En_Bx/z_en_bx.c
+++ b/soh/src/overlays/actors/ovl_En_Bx/z_en_bx.c
@@ -8,7 +8,7 @@
#include "objects/object_bxa/object_bxa.h"
#include "soh/frame_interpolation.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnBx_Init(Actor* thisx, PlayState* play);
void EnBx_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Changer/z_en_changer.c b/soh/src/overlays/actors/ovl_En_Changer/z_en_changer.c
index 18609091b..4c4695e77 100644
--- a/soh/src/overlays/actors/ovl_En_Changer/z_en_changer.c
+++ b/soh/src/overlays/actors/ovl_En_Changer/z_en_changer.c
@@ -201,7 +201,7 @@ void EnChanger_Init(Actor* thisx, PlayState* play2) {
((this->rightChestNum & 0x1F) << 8) + (rightChestItem & 0xFF), true);
}
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = EnChanger_Wait;
}
diff --git a/soh/src/overlays/actors/ovl_En_Clear_Tag/z_en_clear_tag.c b/soh/src/overlays/actors/ovl_En_Clear_Tag/z_en_clear_tag.c
index 753c3d537..b7a6bd4a6 100644
--- a/soh/src/overlays/actors/ovl_En_Clear_Tag/z_en_clear_tag.c
+++ b/soh/src/overlays/actors/ovl_En_Clear_Tag/z_en_clear_tag.c
@@ -5,7 +5,7 @@
#include "soh/frame_interpolation.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnClearTag_Init(Actor* thisx, PlayState* play);
void EnClearTag_Destroy(Actor* thisx, PlayState* play);
@@ -266,7 +266,7 @@ void EnClearTag_Init(Actor* thisx, PlayState* play) {
Actor_ChangeCategory(play, &play->actorCtx, thisx, ACTORCAT_ENEMY);
}
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.targetMode = 5;
Collider_SetCylinder(play, &this->collider, &this->actor, &sArwingCylinderInit);
this->actor.colChkInfo.health = 3;
@@ -553,7 +553,7 @@ void EnClearTag_Update(Actor* thisx, PlayState* play2) {
if (this->drawMode != CLEAR_TAG_DRAW_MODE_ARWING) {
this->drawMode = CLEAR_TAG_DRAW_MODE_EFFECT;
this->deathTimer = 70;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
} else {
Actor_Kill(&this->actor);
}
diff --git a/soh/src/overlays/actors/ovl_En_Cow/z_en_cow.c b/soh/src/overlays/actors/ovl_En_Cow/z_en_cow.c
index 40d206ecc..ec5d0f093 100644
--- a/soh/src/overlays/actors/ovl_En_Cow/z_en_cow.c
+++ b/soh/src/overlays/actors/ovl_En_Cow/z_en_cow.c
@@ -10,7 +10,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnCow_Init(Actor* thisx, PlayState* play);
void EnCow_Destroy(Actor* thisx, PlayState* play);
@@ -141,7 +141,7 @@ void EnCow_Init(Actor* thisx, PlayState* play) {
this->actor.draw = func_809E0070;
this->actionFunc = func_809DFA84;
func_809DEF94(this);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->unk_278 = ((u32)(Rand_ZeroFloat(1000.0f)) & 0xFFFF) + 40.0f;
break;
}
@@ -198,7 +198,7 @@ void func_809DF494(EnCow* this, PlayState* play) {
void func_809DF6BC(EnCow* this, PlayState* play) {
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_EVENT) && Message_ShouldAdvance(play)) {
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
Message_CloseTextbox(play);
this->actionFunc = func_809DF96C;
}
@@ -206,7 +206,7 @@ void func_809DF6BC(EnCow* this, PlayState* play) {
void func_809DF730(EnCow* this, PlayState* play) {
if (Actor_TextboxIsClosing(&this->actor, play)) {
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
this->actionFunc = func_809DF96C;
}
}
@@ -222,7 +222,7 @@ void func_809DF778(EnCow* this, PlayState* play) {
void func_809DF7D8(EnCow* this, PlayState* play) {
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_EVENT) && Message_ShouldAdvance(play)) {
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
Message_CloseTextbox(play);
this->actionFunc = func_809DF778;
Actor_OfferGetItem(&this->actor, play, GI_MILK, 10000.0f, 100.0f);
@@ -245,7 +245,7 @@ void func_809DF8FC(EnCow* this, PlayState* play) {
if (Actor_ProcessTalkRequest(&this->actor, play)) {
this->actionFunc = func_809DF870;
} else {
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
func_8002F2CC(&this->actor, play, 170.0f);
this->actor.textId = 0x2006;
}
@@ -264,7 +264,7 @@ void func_809DF96C(EnCow* this, PlayState* play) {
DREG(53) = 0;
if (GameInteractor_Should(VB_GIVE_ITEM_FROM_COW, true, this)) {
this->actionFunc = func_809DF8FC;
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
func_8002F2CC(&this->actor, play, 170.0f);
this->actor.textId = 0x2006;
} else {
diff --git a/soh/src/overlays/actors/ovl_En_Crow/z_en_crow.c b/soh/src/overlays/actors/ovl_En_Crow/z_en_crow.c
index 2ff76ab68..9bc35295c 100644
--- a/soh/src/overlays/actors/ovl_En_Crow/z_en_crow.c
+++ b/soh/src/overlays/actors/ovl_En_Crow/z_en_crow.c
@@ -3,7 +3,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_IGNORE_QUAKE | ACTOR_FLAG_ARROW_DRAGGABLE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_IGNORE_QUAKE | ACTOR_FLAG_CAN_ATTACH_TO_ARROW)
void EnCrow_Init(Actor* thisx, PlayState* play);
void EnCrow_Destroy(Actor* thisx, PlayState* play);
@@ -180,12 +180,12 @@ void EnCrow_SetupDamaged(EnCrow* this, PlayState* play) {
Actor_SetColorFilter(&this->actor, 0x4000, 255, 0, 40);
}
- if (this->actor.flags & ACTOR_FLAG_DRAGGED_BY_ARROW) {
+ if (this->actor.flags & ACTOR_FLAG_ATTACHED_TO_ARROW) {
this->actor.speedXZ = 0.0f;
}
this->collider.base.acFlags &= ~AC_ON;
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actionFunc = EnCrow_Damaged;
}
@@ -336,7 +336,7 @@ void EnCrow_Damaged(EnCrow* this, PlayState* play) {
Math_StepToF(&this->actor.speedXZ, 0.0f, 0.5f);
this->actor.colorFilterTimer = 40;
- if (!(this->actor.flags & ACTOR_FLAG_DRAGGED_BY_ARROW)) {
+ if (!(this->actor.flags & ACTOR_FLAG_ATTACHED_TO_ARROW)) {
if (this->actor.colorFilterParams & 0x4000) {
Math_ScaledStepToS(&this->actor.shape.rot.x, 0x4000, 0x200);
this->actor.shape.rot.z += 0x1780;
@@ -411,8 +411,8 @@ void EnCrow_Respawn(EnCrow* this, PlayState* play) {
target = 0.01f;
}
if (Math_StepToF(&this->actor.scale.x, target, target * 0.1f)) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actor.colChkInfo.health = 1;
EnCrow_SetupFlyIdle(this);
}
@@ -429,7 +429,7 @@ void EnCrow_UpdateDamage(EnCrow* this, PlayState* play) {
EnCrow_SetupTurnAway(this);
} else {
Actor_ApplyDamage(&this->actor);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Enemy_StartFinishingBlow(play, &this->actor);
EnCrow_SetupDamaged(this, play);
}
diff --git a/soh/src/overlays/actors/ovl_En_Cs/z_en_cs.c b/soh/src/overlays/actors/ovl_En_Cs/z_en_cs.c
index 78d4350c6..0c8c8e59e 100644
--- a/soh/src/overlays/actors/ovl_En_Cs/z_en_cs.c
+++ b/soh/src/overlays/actors/ovl_En_Cs/z_en_cs.c
@@ -3,7 +3,7 @@
#include "objects/object_link_child/object_link_child.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnCs_Init(Actor* thisx, PlayState* play);
void EnCs_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Daiku/z_en_daiku.c b/soh/src/overlays/actors/ovl_En_Daiku/z_en_daiku.c
index 75ae78404..15c1950aa 100644
--- a/soh/src/overlays/actors/ovl_En_Daiku/z_en_daiku.c
+++ b/soh/src/overlays/actors/ovl_En_Daiku/z_en_daiku.c
@@ -4,7 +4,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
typedef struct {
Vec3f eyePosDeltaLocal;
@@ -372,7 +372,7 @@ void EnDaiku_Jailed(EnDaiku* this, PlayState* play) {
this->actionFunc = EnDaiku_WaitFreedom;
} else if (!(this->stateFlags & ENDAIKU_STATEFLAG_GERUDOFIGHTING) && !gerudo->invisible) {
this->stateFlags |= ENDAIKU_STATEFLAG_GERUDOFIGHTING;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
}
}
@@ -384,7 +384,7 @@ void EnDaiku_WaitFreedom(EnDaiku* this, PlayState* play) {
SkelAnime_Update(&this->skelAnime);
if (Flags_GetSwitch(play, this->actor.params >> 8 & 0x3F) || (IS_RANDO && Flags_GetRandomizerInf(RAND_INF_HAS_SKELETON_KEY))) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
EnDaiku_UpdateText(this, play);
}
}
diff --git a/soh/src/overlays/actors/ovl_En_Daiku_Kakariko/z_en_daiku_kakariko.c b/soh/src/overlays/actors/ovl_En_Daiku_Kakariko/z_en_daiku_kakariko.c
index 77e8bda81..3798f1adf 100644
--- a/soh/src/overlays/actors/ovl_En_Daiku_Kakariko/z_en_daiku_kakariko.c
+++ b/soh/src/overlays/actors/ovl_En_Daiku_Kakariko/z_en_daiku_kakariko.c
@@ -8,7 +8,7 @@
#include "objects/object_daiku/object_daiku.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
typedef enum {
/* 0x0 */ CARPENTER_ICHIRO, // Red and purple pants, normal hair
diff --git a/soh/src/overlays/actors/ovl_En_Dekubaba/z_en_dekubaba.c b/soh/src/overlays/actors/ovl_En_Dekubaba/z_en_dekubaba.c
index 735cb025d..21f278077 100644
--- a/soh/src/overlays/actors/ovl_En_Dekubaba/z_en_dekubaba.c
+++ b/soh/src/overlays/actors/ovl_En_Dekubaba/z_en_dekubaba.c
@@ -5,7 +5,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE)
void EnDekubaba_Init(Actor* thisx, PlayState* play);
void EnDekubaba_Destroy(Actor* thisx, PlayState* play);
@@ -408,7 +408,7 @@ void EnDekubaba_SetupPrunedSomersault(EnDekubaba* this) {
this->actor.world.rot.y = this->actor.shape.rot.y + 0x8000;
this->collider.base.acFlags &= ~AC_ON;
this->actor.speedXZ = this->size * 3.0f;
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED;
this->actionFunc = EnDekubaba_PrunedSomersault;
GameInteractor_ExecuteOnEnemyDefeat(&this->actor);
@@ -465,7 +465,7 @@ void EnDekubaba_SetupDeadStickDrop(EnDekubaba* this, PlayState* play) {
this->actor.velocity.y = 0.0f;
this->actor.shape.shadowScale = 3.0f;
Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_MISC);
- this->actor.flags &= ~ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_DRAW_CULLING_DISABLED;
this->timer = 200;
this->actionFunc = EnDekubaba_DeadStickDrop;
}
@@ -964,7 +964,7 @@ void EnDekubaba_PrunedSomersault(EnDekubaba* this, PlayState* play) {
if ((this->actor.scale.x > 0.005f) && ((this->actor.bgCheckFlags & 2) || (this->actor.bgCheckFlags & 8))) {
this->actor.scale.x = this->actor.scale.y = this->actor.scale.z = 0.0f;
this->actor.speedXZ = 0.0f;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE);
EffectSsHahen_SpawnBurst(play, &this->actor.world.pos, this->size * 3.0f, 0, this->size * 12.0f,
this->size * 5.0f, 15, HAHEN_OBJECT_DEFAULT, 10, NULL);
}
@@ -1140,7 +1140,7 @@ void EnDekubaba_Update(Actor* thisx, PlayState* play) {
}
if (this->actionFunc == EnDekubaba_Lunge) {
CollisionCheck_SetAT(play, &play->colChkCtx, &this->collider.base);
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
}
if (this->collider.base.acFlags & AC_ON) {
diff --git a/soh/src/overlays/actors/ovl_En_Dekunuts/z_en_dekunuts.c b/soh/src/overlays/actors/ovl_En_Dekunuts/z_en_dekunuts.c
index 138639f1c..4dca644a3 100644
--- a/soh/src/overlays/actors/ovl_En_Dekunuts/z_en_dekunuts.c
+++ b/soh/src/overlays/actors/ovl_En_Dekunuts/z_en_dekunuts.c
@@ -10,7 +10,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE)
#define DEKUNUTS_FLOWER 10
@@ -114,7 +114,7 @@ void EnDekunuts_Init(Actor* thisx, PlayState* play) {
Actor_ProcessInitChain(&this->actor, sInitChain);
if (thisx->params == DEKUNUTS_FLOWER) {
- thisx->flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE);
+ thisx->flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE);
} else {
ActorShape_Init(&thisx->shape, 0.0f, ActorShadow_DrawCircle, 35.0f);
SkelAnime_Init(play, &this->skelAnime, &gDekuNutsSkel, &gDekuNutsStandAnim, this->jointTable,
diff --git a/soh/src/overlays/actors/ovl_En_Dh/z_en_dh.c b/soh/src/overlays/actors/ovl_En_Dh/z_en_dh.c
index 8e4fd6413..935384c59 100644
--- a/soh/src/overlays/actors/ovl_En_Dh/z_en_dh.c
+++ b/soh/src/overlays/actors/ovl_En_Dh/z_en_dh.c
@@ -3,7 +3,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAGGED_BY_HOOKSHOT)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER)
typedef enum {
/* 0 */ DH_WAIT,
@@ -151,7 +151,7 @@ void EnDh_Init(Actor* thisx, PlayState* play) {
this->actor.colChkInfo.mass = MASS_HEAVY;
this->actor.colChkInfo.health = LINK_IS_ADULT ? 14 : 20;
this->alpha = this->unk_258 = 255;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Collider_InitCylinder(play, &this->collider1);
Collider_SetCylinder(play, &this->collider1, &this->actor, &sCylinderInit);
Collider_InitJntSph(play, &this->collider2);
@@ -197,7 +197,7 @@ void EnDh_SetupWait(EnDh* this) {
this->actor.shape.yOffset = -15000.0f;
this->dirtWaveSpread = this->actor.speedXZ = 0.0f;
this->actor.world.rot.y = this->actor.shape.rot.y;
- this->actor.flags |= ACTOR_FLAG_LENS;
+ this->actor.flags |= ACTOR_FLAG_REACT_TO_LENS;
this->dirtWavePhase = this->actionState = this->actor.params = ENDH_WAIT_UNDERGROUND;
EnDh_SetupAction(this, EnDh_Wait);
}
@@ -212,9 +212,9 @@ void EnDh_Wait(EnDh* this, PlayState* play) {
if ((this->actor.params >= ENDH_START_ATTACK_GRAB) || (this->actor.params <= ENDH_HANDS_KILLED_4)) {
switch (this->actionState) {
case 0:
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.shape.rot.y = this->actor.yawTowardsPlayer;
- this->actor.flags &= ~ACTOR_FLAG_LENS;
+ this->actor.flags &= ~ACTOR_FLAG_REACT_TO_LENS;
this->actionState++;
this->drawDirtWave++;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEADHAND_HIDE);
@@ -368,7 +368,7 @@ void EnDh_SetupBurrow(EnDh* this) {
this->actor.world.rot.y = this->actor.shape.rot.y;
this->dirtWavePhase = 0;
this->actionState = 0;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEADHAND_HIDE);
EnDh_SetupAction(this, EnDh_Burrow);
}
@@ -438,7 +438,7 @@ void EnDh_SetupDeath(EnDh* this) {
Animation_MorphToPlayOnce(&this->skelAnime, &object_dh_Anim_0032BC, -1.0f);
this->curAction = DH_DEATH;
this->timer = 300;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.speedXZ = 0.0f;
func_800F5B58();
this->actor.params = ENDH_DEATH;
diff --git a/soh/src/overlays/actors/ovl_En_Dha/z_en_dha.c b/soh/src/overlays/actors/ovl_En_Dha/z_en_dha.c
index 2b6b036b2..727669a77 100644
--- a/soh/src/overlays/actors/ovl_En_Dha/z_en_dha.c
+++ b/soh/src/overlays/actors/ovl_En_Dha/z_en_dha.c
@@ -9,7 +9,7 @@
#include "objects/object_dh/object_dh.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnDha_Init(Actor* thisx, PlayState* play);
void EnDha_Destroy(Actor* thisx, PlayState* play);
@@ -168,7 +168,7 @@ void EnDha_Init(Actor* thisx, PlayState* play) {
this->limbAngleX[0] = -0x4000;
Collider_InitJntSph(play, &this->collider);
Collider_SetJntSph(play, &this->collider, &this->actor, &sJntSphInit, this->colliderItem);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
EnDha_SetupWait(this);
}
diff --git a/soh/src/overlays/actors/ovl_En_Diving_Game/z_en_diving_game.c b/soh/src/overlays/actors/ovl_En_Diving_Game/z_en_diving_game.c
index 40663941b..ab109d607 100644
--- a/soh/src/overlays/actors/ovl_En_Diving_Game/z_en_diving_game.c
+++ b/soh/src/overlays/actors/ovl_En_Diving_Game/z_en_diving_game.c
@@ -12,7 +12,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnDivingGame_Init(Actor* thisx, PlayState* play);
void EnDivingGame_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Dns/z_en_dns.c b/soh/src/overlays/actors/ovl_En_Dns/z_en_dns.c
index 84621c60b..53308713d 100644
--- a/soh/src/overlays/actors/ovl_En_Dns/z_en_dns.c
+++ b/soh/src/overlays/actors/ovl_En_Dns/z_en_dns.c
@@ -11,7 +11,7 @@
#include "soh/OTRGlobals.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnDns_Init(Actor* thisx, PlayState* play);
void EnDns_Destroy(Actor* thisx, PlayState* play);
@@ -317,9 +317,9 @@ void EnDns_Idle(EnDns* this, PlayState* play) {
this->actionFunc = EnDns_Talk;
} else {
if ((this->collider.base.ocFlags1 & OC1_HIT) || this->actor.isTargeted) {
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
} else {
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
}
if (this->actor.xzDistToPlayer < 130.0f) {
func_8002F2F4(&this->actor, play);
@@ -408,7 +408,7 @@ void EnDns_SetupBurrow(EnDns* this, PlayState* play) {
this->dnsItemEntry->setRupeesAndFlags(this);
this->dropCollectible = 1;
this->maintainCollider = 0;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
EnDns_ChangeAnim(this, DNS_ANIM_BURROW);
this->actionFunc = EnDns_Burrow;
}
@@ -416,7 +416,7 @@ void EnDns_SetupBurrow(EnDns* this, PlayState* play) {
this->dnsItemEntry->setRupeesAndFlags(this);
this->dropCollectible = 1;
this->maintainCollider = 0;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
EnDns_ChangeAnim(this, DNS_ANIM_BURROW);
this->actionFunc = EnDns_Burrow;
}
@@ -425,7 +425,7 @@ void EnDns_SetupBurrow(EnDns* this, PlayState* play) {
void EnDns_SetupNoSaleBurrow(EnDns* this, PlayState* play) {
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_DONE) && Message_ShouldAdvance(play)) {
this->maintainCollider = 0;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
EnDns_ChangeAnim(this, DNS_ANIM_BURROW);
this->actionFunc = EnDns_Burrow;
}
diff --git a/soh/src/overlays/actors/ovl_En_Dnt_Demo/z_en_dnt_demo.c b/soh/src/overlays/actors/ovl_En_Dnt_Demo/z_en_dnt_demo.c
index ef9228dc2..f9328d729 100644
--- a/soh/src/overlays/actors/ovl_En_Dnt_Demo/z_en_dnt_demo.c
+++ b/soh/src/overlays/actors/ovl_En_Dnt_Demo/z_en_dnt_demo.c
@@ -100,7 +100,7 @@ void EnDntDemo_Init(Actor* thisx, PlayState* play2) {
osSyncPrintf(VT_FGCOL(GREEN) "☆☆☆☆☆ じじじじじじじじじじい ☆☆☆☆☆ %x\n" VT_RST, this->leader);
}
this->subCamera = 0;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = EnDntDemo_Judge;
}
diff --git a/soh/src/overlays/actors/ovl_En_Dnt_Jiji/z_en_dnt_jiji.c b/soh/src/overlays/actors/ovl_En_Dnt_Jiji/z_en_dnt_jiji.c
index 85ebef2d0..a459358dd 100644
--- a/soh/src/overlays/actors/ovl_En_Dnt_Jiji/z_en_dnt_jiji.c
+++ b/soh/src/overlays/actors/ovl_En_Dnt_Jiji/z_en_dnt_jiji.c
@@ -11,7 +11,7 @@
#include "vt.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnDntJiji_Init(Actor* thisx, PlayState* play);
void EnDntJiji_Destroy(Actor* thisx, PlayState* play);
@@ -85,7 +85,7 @@ void EnDntJiji_Init(Actor* thisx, PlayState* play) {
osSyncPrintf("\n\n");
// "Deku Scrub mask show elder"
osSyncPrintf(VT_FGCOL(YELLOW) "☆☆☆☆☆ デグナッツお面品評会長老 ☆☆☆☆☆ %x\n" VT_RST, this->stage);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.colChkInfo.mass = 0xFF;
this->actor.targetMode = 6;
this->actionFunc = EnDntJiji_SetFlower;
@@ -226,7 +226,7 @@ void EnDntJiji_SetupCower(EnDntJiji* this, PlayState* play) {
} else {
this->getItemId = GI_NUT_UPGRADE_40;
}
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.textId = 0x10DB;
this->unused = 5;
this->actionFunc = EnDntJiji_Cower;
@@ -307,7 +307,7 @@ void EnDntJiji_GivePrize(EnDntJiji* this, PlayState* play) {
this->stage->leaderSignal = DNT_SIGNAL_RETURN;
}
}
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if (!this->unburrow) {
this->actionFunc = EnDntJiji_SetupHide;
} else {
diff --git a/soh/src/overlays/actors/ovl_En_Dnt_Nomal/z_en_dnt_nomal.c b/soh/src/overlays/actors/ovl_En_Dnt_Nomal/z_en_dnt_nomal.c
index e629277f4..06d44e17a 100644
--- a/soh/src/overlays/actors/ovl_En_Dnt_Nomal/z_en_dnt_nomal.c
+++ b/soh/src/overlays/actors/ovl_En_Dnt_Nomal/z_en_dnt_nomal.c
@@ -15,7 +15,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnDntNomal_Init(Actor* thisx, PlayState* play);
void EnDntNomal_Destroy(Actor* thisx, PlayState* play);
@@ -125,7 +125,7 @@ void EnDntNomal_Init(Actor* thisx, PlayState* play) {
if (this->type < ENDNTNOMAL_TARGET) {
this->type = ENDNTNOMAL_TARGET;
}
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.colChkInfo.mass = 0xFF;
this->objId = -1;
if (this->type == ENDNTNOMAL_TARGET) {
diff --git a/soh/src/overlays/actors/ovl_En_Dodojr/z_en_dodojr.c b/soh/src/overlays/actors/ovl_En_Dodojr/z_en_dodojr.c
index 96121dfc6..6683ae032 100644
--- a/soh/src/overlays/actors/ovl_En_Dodojr/z_en_dodojr.c
+++ b/soh/src/overlays/actors/ovl_En_Dodojr/z_en_dodojr.c
@@ -10,7 +10,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE)
void EnDodojr_Init(Actor* thisx, PlayState* play);
void EnDodojr_Destroy(Actor* thisx, PlayState* play);
@@ -79,7 +79,7 @@ void EnDodojr_Init(Actor* thisx, PlayState* play) {
CollisionCheck_SetInfo2(&this->actor.colChkInfo, DamageTable_Get(4), &sColChkInit);
this->actor.naviEnemyId = 0xE;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Actor_SetScale(&this->actor, 0.02f);
@@ -209,7 +209,7 @@ void func_809F6B38(EnDodojr* this) {
void func_809F6BBC(EnDodojr* this) {
this->actor.shape.shadowDraw = NULL;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.home.pos = this->actor.world.pos;
this->actor.speedXZ = 0.0f;
this->actor.gravity = -0.8f;
@@ -321,7 +321,7 @@ s32 func_809F706C(EnDodojr* this) {
void func_809F709C(EnDodojr* this) {
Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_DEAD);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
func_809F6A20(this);
this->actionFunc = func_809F7AB8;
}
@@ -406,7 +406,7 @@ void func_809F73AC(EnDodojr* this, PlayState* play) {
-10.0f);
Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_UP);
this->actor.world.pos.y -= 60.0f;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.world.rot.x -= 0x4000;
this->actor.shape.rot.x = this->actor.world.rot.x;
this->dustPos = this->actor.world.pos;
@@ -482,7 +482,7 @@ void func_809F768C(EnDodojr* this, PlayState* play) {
void func_809F773C(EnDodojr* this, PlayState* play) {
if (DECR(this->timer3) == 0) {
func_809F64D0(this);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
func_809F6A20(this);
this->actionFunc = func_809F77AC;
}
@@ -538,7 +538,7 @@ void func_809F78EC(EnDodojr* this, PlayState* play) {
}
void func_809F799C(EnDodojr* this, PlayState* play) {
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
Actor_UpdateVelocityXZGravity(&this->actor);
if (func_809F68B0(this, play) != 0) {
diff --git a/soh/src/overlays/actors/ovl_En_Dodongo/z_en_dodongo.c b/soh/src/overlays/actors/ovl_En_Dodongo/z_en_dodongo.c
index d714093ac..7e2333805 100644
--- a/soh/src/overlays/actors/ovl_En_Dodongo/z_en_dodongo.c
+++ b/soh/src/overlays/actors/ovl_En_Dodongo/z_en_dodongo.c
@@ -5,7 +5,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
typedef enum {
DODONGO_SWEEP_TAIL,
@@ -567,12 +567,12 @@ void EnDodongo_Walk(EnDodongo* this, PlayState* play) {
if (Math_Vec3f_DistXZ(&this->actor.home.pos, &player->actor.world.pos) < 400.0f) {
Math_SmoothStepToS(&this->actor.world.rot.y, this->actor.yawTowardsPlayer, 1, 0x1F4, 0);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
if ((this->actor.xzDistToPlayer < 100.0f) && (yawDiff < 0x1388) && (this->actor.yDistToPlayer < 60.0f)) {
EnDodongo_SetupBreatheFire(this);
}
} else {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if ((Math_Vec3f_DistXZ(&this->actor.world.pos, &this->actor.home.pos) > 150.0f) || (this->retreatTimer != 0)) {
s16 yawToHome = Math_Vec3f_Yaw(&this->actor.world.pos, &this->actor.home.pos);
@@ -667,7 +667,7 @@ void EnDodongo_SetupDeath(EnDodongo* this, PlayState* play) {
this->timer = 0;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_J_DEAD);
this->actionState = DODONGO_DEATH;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.speedXZ = 0.0f;
EnDodongo_SetupAction(this, EnDodongo_Death);
GameInteractor_ExecuteOnEnemyDefeat(&this->actor);
diff --git a/soh/src/overlays/actors/ovl_En_Door/z_en_door.c b/soh/src/overlays/actors/ovl_En_Door/z_en_door.c
index 92670921d..99ce9729f 100644
--- a/soh/src/overlays/actors/ovl_En_Door/z_en_door.c
+++ b/soh/src/overlays/actors/ovl_En_Door/z_en_door.c
@@ -12,7 +12,7 @@
#include "objects/object_haka_door/object_haka_door.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
#define DOOR_AJAR_SLAM_RANGE 120.0f
#define DOOR_AJAR_OPEN_RANGE (2 * DOOR_AJAR_SLAM_RANGE)
@@ -153,7 +153,7 @@ void EnDoor_SetupType(EnDoor* this, PlayState* play) {
if (Object_IsLoaded(&play->objectCtx, this->requiredObjBankIndex)) {
doorType = this->actor.params >> 7 & 7;
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actor.objBankIndex = this->requiredObjBankIndex;
this->actionFunc = EnDoor_Idle;
if (doorType == DOOR_EVENING) {
@@ -180,7 +180,7 @@ void EnDoor_SetupType(EnDoor* this, PlayState* play) {
doorType = DOOR_SCENEEXIT;
} else {
this->actionFunc = EnDoor_WaitForCheck;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_NO_LOCKON;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_LOCK_ON_DISABLED;
}
}
// Replace the door type it was loaded with by the new type
diff --git a/soh/src/overlays/actors/ovl_En_Ds/z_en_ds.c b/soh/src/overlays/actors/ovl_En_Ds/z_en_ds.c
index 82ae493db..ebc1b07b4 100644
--- a/soh/src/overlays/actors/ovl_En_Ds/z_en_ds.c
+++ b/soh/src/overlays/actors/ovl_En_Ds/z_en_ds.c
@@ -11,7 +11,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnDs_Init(Actor* thisx, PlayState* play);
void EnDs_Destroy(Actor* thisx, PlayState* play);
@@ -48,7 +48,7 @@ void EnDs_Init(Actor* thisx, PlayState* play) {
this->actionFunc = EnDs_Wait;
this->actor.targetMode = 1;
this->unk_1E8 = 0;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->unk_1E4 = 0.0f;
}
@@ -61,7 +61,7 @@ void EnDs_Destroy(Actor* thisx, PlayState* play) {
void EnDs_Talk(EnDs* this, PlayState* play) {
if (Actor_TextboxIsClosing(&this->actor, play)) {
this->actionFunc = EnDs_Wait;
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
}
this->unk_1E8 |= 1;
}
@@ -78,7 +78,7 @@ void EnDs_TalkAfterGiveOddPotion(EnDs* this, PlayState* play) {
if (Actor_ProcessTalkRequest(&this->actor, play)) {
this->actionFunc = EnDs_Talk;
} else {
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
func_8002F2CC(&this->actor, play, 1000.0f);
}
}
@@ -87,7 +87,7 @@ void EnDs_DisplayOddPotionText(EnDs* this, PlayState* play) {
if (Actor_TextboxIsClosing(&this->actor, play)) {
this->actor.textId = 0x504F;
this->actionFunc = EnDs_TalkAfterGiveOddPotion;
- this->actor.flags &= ~ACTOR_FLAG_PLAYER_TALKED_TO;
+ this->actor.flags &= ~ACTOR_FLAG_TALK;
Flags_SetItemGetInf(ITEMGETINF_30);
}
}
@@ -201,7 +201,7 @@ void EnDs_OfferBluePotion(EnDs* this, PlayState* play) {
if(GameInteractor_Should(VB_GRANNY_TAKE_MONEY, true, this)){
Rupees_ChangeBy(-100);
}
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
if (GameInteractor_Should(VB_GIVE_ITEM_FROM_GRANNYS_SHOP, true, this)) {
GetItemEntry itemEntry = ItemTable_Retrieve(GI_POTION_BLUE);
diff --git a/soh/src/overlays/actors/ovl_En_Du/z_en_du.c b/soh/src/overlays/actors/ovl_En_Du/z_en_du.c
index 04d979127..e00124dee 100644
--- a/soh/src/overlays/actors/ovl_En_Du/z_en_du.c
+++ b/soh/src/overlays/actors/ovl_En_Du/z_en_du.c
@@ -4,7 +4,7 @@
#include "soh/OTRGlobals.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void EnDu_Init(Actor* thisx, PlayState* play);
void EnDu_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Dy_Extra/z_en_dy_extra.c b/soh/src/overlays/actors/ovl_En_Dy_Extra/z_en_dy_extra.c
index cf4ceaee2..f3cb62144 100644
--- a/soh/src/overlays/actors/ovl_En_Dy_Extra/z_en_dy_extra.c
+++ b/soh/src/overlays/actors/ovl_En_Dy_Extra/z_en_dy_extra.c
@@ -9,7 +9,7 @@
#include "vt.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnDyExtra_Init(Actor* thisx, PlayState* play);
void EnDyExtra_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Eg/z_en_eg.c b/soh/src/overlays/actors/ovl_En_Eg/z_en_eg.c
index f204e146e..2aa4a3a20 100644
--- a/soh/src/overlays/actors/ovl_En_Eg/z_en_eg.c
+++ b/soh/src/overlays/actors/ovl_En_Eg/z_en_eg.c
@@ -7,7 +7,7 @@
#include "z_en_eg.h"
#include "vt.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnEg_Init(Actor* thisx, PlayState* play);
void EnEg_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Eiyer/z_en_eiyer.c b/soh/src/overlays/actors/ovl_En_Eiyer/z_en_eiyer.c
index 70cefaa65..a0213fb02 100644
--- a/soh/src/overlays/actors/ovl_En_Eiyer/z_en_eiyer.c
+++ b/soh/src/overlays/actors/ovl_En_Eiyer/z_en_eiyer.c
@@ -3,7 +3,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE)
void EnEiyer_Init(Actor* thisx, PlayState* play);
void EnEiyer_Destroy(Actor* thisx, PlayState* play);
@@ -206,7 +206,7 @@ void EnEiyer_SetupAppearFromGround(EnEiyer* this) {
this->collider.base.atFlags &= ~AT_ON;
this->collider.base.acFlags &= ~AC_ON;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_IGNORE_QUAKE);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_IGNORE_QUAKE);
this->actor.shape.shadowScale = 0.0f;
this->actor.shape.yOffset = 0.0f;
this->actionFunc = EnEiyer_AppearFromGround;
@@ -221,12 +221,12 @@ void EnEiyer_SetupUnderground(EnEiyer* this) {
}
this->collider.base.acFlags |= AC_ON;
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
}
void EnEiyer_SetupInactive(EnEiyer* this) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.world.rot.y = this->actor.shape.rot.y;
this->actionFunc = EnEiyer_Inactive;
}
@@ -271,7 +271,7 @@ void EnEiyer_SetupDiveAttack(EnEiyer* this, PlayState* play) {
void EnEiyer_SetupLand(EnEiyer* this) {
Animation_MorphToPlayOnce(&this->skelanime, &gStingerDiveAnim, -3.0f);
this->collider.base.atFlags &= ~AT_ON;
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
// Update BgCheck info, play sound, and spawn effect on the first frame of the land action
this->timer = -1;
@@ -614,7 +614,7 @@ void EnEiyer_UpdateDamage(EnEiyer* this, PlayState* play) {
if (Actor_ApplyDamage(&this->actor) == 0) {
Enemy_StartFinishingBlow(play, &this->actor);
Audio_PlayActorSound2(&this->actor, NA_SE_EN_EIER_DEAD);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
GameInteractor_ExecuteOnEnemyDefeat(&this->actor);
}
@@ -678,7 +678,7 @@ void EnEiyer_Update(Actor* thisx, PlayState* play) {
}
}
- if (this->actor.flags & ACTOR_FLAG_TARGETABLE) {
+ if (this->actor.flags & ACTOR_FLAG_ATTENTION_ENABLED) {
this->actor.focus.pos.x = this->actor.world.pos.x + Math_SinS(this->actor.shape.rot.y) * 12.5f;
this->actor.focus.pos.z = this->actor.world.pos.z + Math_CosS(this->actor.shape.rot.y) * 12.5f;
this->actor.focus.pos.y = this->actor.world.pos.y;
diff --git a/soh/src/overlays/actors/ovl_En_Elf/z_en_elf.c b/soh/src/overlays/actors/ovl_En_Elf/z_en_elf.c
index 7b0e49674..bac3a0f5d 100644
--- a/soh/src/overlays/actors/ovl_En_Elf/z_en_elf.c
+++ b/soh/src/overlays/actors/ovl_En_Elf/z_en_elf.c
@@ -10,7 +10,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
#define FAIRY_FLAG_TIMED (1 << 8)
#define FAIRY_FLAG_BIG (1 << 9)
@@ -1387,7 +1387,7 @@ void func_80A053F0(Actor* thisx, PlayState* play) {
}
} else if (player->naviTextId < 0) {
// trigger dialog instantly for negative message IDs
- thisx->flags |= ACTOR_FLAG_WILL_TALK;
+ thisx->flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
}
if (Actor_ProcessTalkRequest(thisx, play)) {
@@ -1405,10 +1405,10 @@ void func_80A053F0(Actor* thisx, PlayState* play) {
func_80A01C38(this, 3);
if (this->elfMsg != NULL) {
- this->elfMsg->actor.flags |= ACTOR_FLAG_PLAYER_TALKED_TO;
+ this->elfMsg->actor.flags |= ACTOR_FLAG_TALK;
}
- thisx->flags &= ~ACTOR_FLAG_WILL_TALK;
+ thisx->flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
} else {
this->actionFunc(this, play);
thisx->shape.rot.y = this->unk_2BC;
diff --git a/soh/src/overlays/actors/ovl_En_Encount1/z_en_encount1.c b/soh/src/overlays/actors/ovl_En_Encount1/z_en_encount1.c
index 74d5fcd06..fb2d74969 100644
--- a/soh/src/overlays/actors/ovl_En_Encount1/z_en_encount1.c
+++ b/soh/src/overlays/actors/ovl_En_Encount1/z_en_encount1.c
@@ -2,7 +2,7 @@
#include "vt.h"
#include "overlays/actors/ovl_En_Tite/z_en_tite.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_LOCKON)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_LOCK_ON_DISABLED)
void EnEncount1_Init(Actor* thisx, PlayState* play);
void EnEncount1_Update(Actor* thisx, PlayState* play);
@@ -65,7 +65,7 @@ void EnEncount1_Init(Actor* thisx, PlayState* play) {
osSyncPrintf(VT_FGCOL(GREEN) "☆☆☆☆☆ 発生チェック範囲 ☆☆☆☆☆ %f\n" VT_RST, this->spawnRange);
osSyncPrintf("\n\n");
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
switch (this->spawnType) {
case SPAWNER_LEEVER:
this->timer = 30;
diff --git a/soh/src/overlays/actors/ovl_En_Encount2/z_en_encount2.c b/soh/src/overlays/actors/ovl_En_Encount2/z_en_encount2.c
index 8a200300f..66f2af5bf 100644
--- a/soh/src/overlays/actors/ovl_En_Encount2/z_en_encount2.c
+++ b/soh/src/overlays/actors/ovl_En_Encount2/z_en_encount2.c
@@ -4,7 +4,7 @@
#include "objects/object_efc_star_field/object_efc_star_field.h"
#include "soh/frame_interpolation.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
typedef enum {
/* 0x0 */ ENCOUNT2_INACTIVE,
diff --git a/soh/src/overlays/actors/ovl_En_Ex_Item/z_en_ex_item.c b/soh/src/overlays/actors/ovl_En_Ex_Item/z_en_ex_item.c
index 99be5f022..b3b206f79 100644
--- a/soh/src/overlays/actors/ovl_En_Ex_Item/z_en_ex_item.c
+++ b/soh/src/overlays/actors/ovl_En_Ex_Item/z_en_ex_item.c
@@ -11,7 +11,7 @@
#include "soh/OTRGlobals.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnExItem_Init(Actor* thisx, PlayState* play);
void EnExItem_Destroy(Actor* thisx, PlayState* play);
@@ -54,7 +54,7 @@ void EnExItem_Init(Actor* thisx, PlayState* play) {
s32 pad;
EnExItem* this = (EnExItem*)thisx;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->type = this->actor.params & 0xFF;
this->unusedParam = (this->actor.params >> 8) & 0xFF;
osSyncPrintf("\n\n");
diff --git a/soh/src/overlays/actors/ovl_En_Ex_Ruppy/z_en_ex_ruppy.c b/soh/src/overlays/actors/ovl_En_Ex_Ruppy/z_en_ex_ruppy.c
index 6864ad652..a97d67612 100644
--- a/soh/src/overlays/actors/ovl_En_Ex_Ruppy/z_en_ex_ruppy.c
+++ b/soh/src/overlays/actors/ovl_En_Ex_Ruppy/z_en_ex_ruppy.c
@@ -3,7 +3,7 @@
#include "../ovl_En_Diving_Game/z_en_diving_game.h"
#include "objects/gameplay_keep/gameplay_keep.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnExRuppy_Init(Actor* thisx, PlayState* play);
void EnExRuppy_Destroy(Actor* thisx, PlayState* play);
@@ -106,7 +106,7 @@ void EnExRuppy_Init(Actor* thisx, PlayState* play) {
this->unk_15A = this->actor.world.rot.z;
this->actor.world.rot.z = 0;
this->timer = 30;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = EnExRuppy_DropIntoWater;
break;
@@ -124,7 +124,7 @@ void EnExRuppy_Init(Actor* thisx, PlayState* play) {
osSyncPrintf(VT_FGCOL(GREEN) "☆☆☆☆☆ わーなーコイン ☆☆☆☆☆ \n" VT_RST);
this->actor.shape.shadowScale = 6.0f;
this->actor.shape.yOffset = 700.0f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = EnExRuppy_WaitToBlowUp;
break;
@@ -146,13 +146,13 @@ void EnExRuppy_Init(Actor* thisx, PlayState* play) {
osSyncPrintf(VT_FGCOL(GREEN) "☆☆☆☆☆ ノーマルルピー ☆☆☆☆☆ \n" VT_RST);
this->actor.shape.shadowScale = 6.0f;
this->actor.shape.yOffset = 700.0f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = EnExRuppy_WaitAsCollectible;
break;
case 4: // Progress markers in the shooting gallery
this->actor.gravity = -3.0f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Actor_SetScale(&this->actor, 0.01f);
this->actor.shape.shadowScale = 6.0f;
this->actor.shape.yOffset = -700.0f;
diff --git a/soh/src/overlays/actors/ovl_En_Fd/z_en_fd.c b/soh/src/overlays/actors/ovl_En_Fd/z_en_fd.c
index c71d8c9b7..9f16a40d5 100644
--- a/soh/src/overlays/actors/ovl_En_Fd/z_en_fd.c
+++ b/soh/src/overlays/actors/ovl_En_Fd/z_en_fd.c
@@ -11,7 +11,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_HOOKSHOT_DRAGS)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_HOOKSHOT_PULLS_ACTOR)
#define FLG_COREDEAD (0x4000)
#define FLG_COREDONE (0x8000)
@@ -296,7 +296,7 @@ s32 EnFd_ColliderCheck(EnFd* this, PlayState* play) {
return false;
}
this->invincibilityTimer = 30;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLAME_DAMAGE);
Enemy_StartFinishingBlow(play, &this->actor);
return true;
@@ -460,8 +460,8 @@ void EnFd_Init(Actor* thisx, PlayState* play) {
Collider_InitJntSph(play, &this->collider);
Collider_SetJntSph(play, &this->collider, &this->actor, &sJntSphInit, this->colSphs);
CollisionCheck_SetInfo2(&this->actor.colChkInfo, DamageTable_Get(0xF), &sColChkInit);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
Actor_SetScale(&this->actor, 0.01f);
this->firstUpdateFlag = true;
this->actor.gravity = -1.0f;
@@ -495,7 +495,7 @@ void EnFd_SpinAndGrow(EnFd* this, PlayState* play) {
this->actor.velocity.y = 6.0f;
this->actor.scale.y = 0.01f;
this->actor.world.rot.y ^= 0x8000;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.speedXZ = 8.0f;
Animation_ChangeByInfo(&this->skelAnime, sAnimationInfo, ENFD_ANIM_1);
this->actionFunc = EnFd_JumpToGround;
@@ -671,7 +671,7 @@ void EnFd_Update(Actor* thisx, PlayState* play) {
if (CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_HOOKSHOT_ATTACHED)) {
// has been hookshoted
if (EnFd_SpawnCore(this, play)) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->invincibilityTimer = 30;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLAME_DAMAGE);
Enemy_StartFinishingBlow(play, &this->actor);
diff --git a/soh/src/overlays/actors/ovl_En_Fd_Fire/z_en_fd_fire.c b/soh/src/overlays/actors/ovl_En_Fd_Fire/z_en_fd_fire.c
index 7db366ca4..29a46375f 100644
--- a/soh/src/overlays/actors/ovl_En_Fd_Fire/z_en_fd_fire.c
+++ b/soh/src/overlays/actors/ovl_En_Fd_Fire/z_en_fd_fire.c
@@ -1,7 +1,7 @@
#include "z_en_fd_fire.h"
#include "objects/gameplay_keep/gameplay_keep.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnFdFire_Init(Actor* thisx, PlayState* play);
void EnFdFire_Destroy(Actor* thisx, PlayState* play);
@@ -129,7 +129,7 @@ void EnFdFire_Init(Actor* thisx, PlayState* play) {
Collider_InitCylinder(play, &this->collider);
Collider_SetCylinder(play, &this->collider, &this->actor, &sCylinderInit);
CollisionCheck_SetInfo2(&this->actor.colChkInfo, &sDamageTable, &sColChkInit);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.gravity = -0.6f;
this->actor.speedXZ = 5.0f;
this->actor.velocity.y = 12.0f;
diff --git a/soh/src/overlays/actors/ovl_En_Fhg_Fire/z_en_fhg_fire.c b/soh/src/overlays/actors/ovl_En_Fhg_Fire/z_en_fhg_fire.c
index 1647e034c..f64023d05 100644
--- a/soh/src/overlays/actors/ovl_En_Fhg_Fire/z_en_fhg_fire.c
+++ b/soh/src/overlays/actors/ovl_En_Fhg_Fire/z_en_fhg_fire.c
@@ -11,7 +11,7 @@
#include "overlays/actors/ovl_En_fHG/z_en_fhg.h"
#include "overlays/effects/ovl_Effect_Ss_Fhg_Flash/z_eff_ss_fhg_flash.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
typedef enum {
/* 0 */ STRIKE_INIT,
diff --git a/soh/src/overlays/actors/ovl_En_Fire_Rock/z_en_fire_rock.c b/soh/src/overlays/actors/ovl_En_Fire_Rock/z_en_fire_rock.c
index e85844a2f..5be48769e 100644
--- a/soh/src/overlays/actors/ovl_En_Fire_Rock/z_en_fire_rock.c
+++ b/soh/src/overlays/actors/ovl_En_Fire_Rock/z_en_fire_rock.c
@@ -3,7 +3,7 @@
#include "vt.h"
#include "objects/object_efc_star_field/object_efc_star_field.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnFireRock_Init(Actor* thisx, PlayState* play);
void EnFireRock_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Firefly/z_en_firefly.c b/soh/src/overlays/actors/ovl_En_Firefly/z_en_firefly.c
index 46b1f502d..d8d42a659 100644
--- a/soh/src/overlays/actors/ovl_En_Firefly/z_en_firefly.c
+++ b/soh/src/overlays/actors/ovl_En_Firefly/z_en_firefly.c
@@ -10,7 +10,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_IGNORE_QUAKE | ACTOR_FLAG_ARROW_DRAGGABLE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_IGNORE_QUAKE | ACTOR_FLAG_CAN_ATTACH_TO_ARROW)
void EnFirefly_Init(Actor* thisx, PlayState* play);
void EnFirefly_Destroy(Actor* thisx, PlayState* play);
@@ -151,7 +151,7 @@ void EnFirefly_Init(Actor* thisx, PlayState* play) {
CollisionCheck_SetInfo(&this->actor.colChkInfo, &sDamageTable, &sColChkInfoInit);
if ((this->actor.params & 0x8000) != 0) {
- this->actor.flags |= ACTOR_FLAG_LENS;
+ this->actor.flags |= ACTOR_FLAG_REACT_TO_LENS;
this->actor.draw = EnFirefly_DrawInvisible;
this->actor.params &= 0x7FFF;
}
@@ -218,7 +218,7 @@ void EnFirefly_SetupFall(EnFirefly* this) {
this->actor.velocity.y = 0.0f;
Animation_Change(&this->skelAnime, &gKeeseFlyAnim, 0.5f, 0.0f, 0.0f, ANIMMODE_LOOP_INTERP, -3.0f);
Audio_PlayActorSound2(&this->actor, NA_SE_EN_FFLY_DEAD);
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
Actor_SetColorFilter(&this->actor, 0x4000, 0xFF, 0, 40);
this->actionFunc = EnFirefly_Fall;
}
@@ -267,7 +267,7 @@ void EnFirefly_SetupFrozenFall(EnFirefly* this, PlayState* play) {
s32 i;
Vec3f iceParticlePos;
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->auraType = KEESE_AURA_NONE;
this->actor.speedXZ = 0.0f;
Actor_SetColorFilter(&this->actor, 0, 0xFF, 0, 0xFF);
@@ -430,7 +430,7 @@ void EnFirefly_Fall(EnFirefly* this, PlayState* play) {
this->actor.colorFilterTimer = 40;
SkelAnime_Update(&this->skelAnime);
Math_StepToF(&this->actor.speedXZ, 0.0f, 0.5f);
- if (this->actor.flags & ACTOR_FLAG_DRAGGED_BY_ARROW) {
+ if (this->actor.flags & ACTOR_FLAG_ATTACHED_TO_ARROW) {
this->actor.colorFilterTimer = 40;
} else {
Math_ScaledStepToS(&this->actor.shape.rot.x, 0x6800, 0x200);
@@ -634,7 +634,7 @@ void EnFirefly_UpdateDamage(EnFirefly* this, PlayState* play) {
if ((this->actor.colChkInfo.damageEffect != 0) || (this->actor.colChkInfo.damage != 0)) {
if (Actor_ApplyDamage(&this->actor) == 0) {
Enemy_StartFinishingBlow(play, &this->actor);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
damageEffect = this->actor.colChkInfo.damageEffect;
@@ -690,7 +690,7 @@ void EnFirefly_Update(Actor* thisx, PlayState* play2) {
this->actionFunc(this, play);
- if (!(this->actor.flags & ACTOR_FLAG_DRAGGED_BY_ARROW)) {
+ if (!(this->actor.flags & ACTOR_FLAG_ATTACHED_TO_ARROW)) {
if ((this->actor.colChkInfo.health == 0) || (this->actionFunc == EnFirefly_Stunned)) {
Actor_MoveXZGravity(&this->actor);
} else {
diff --git a/soh/src/overlays/actors/ovl_En_Fish/z_en_fish.c b/soh/src/overlays/actors/ovl_En_Fish/z_en_fish.c
index ecf368b91..3a6b10e91 100644
--- a/soh/src/overlays/actors/ovl_En_Fish/z_en_fish.c
+++ b/soh/src/overlays/actors/ovl_En_Fish/z_en_fish.c
@@ -118,7 +118,7 @@ void EnFish_SetCutsceneData(EnFish* this) {
thisx->shape.yOffset = 600.0f;
D_80A17014 = 10.0f;
D_80A17018 = 0.0f;
- thisx->flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ thisx->flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
EnFish_SetOutOfWaterAnimation(this);
}
}
@@ -143,7 +143,7 @@ void EnFish_Init(Actor* thisx, PlayState* play) {
this->fastPhase = Rand_ZeroOne() * (0xFFFF + 0.5f);
if (params == FISH_DROPPED) {
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
ActorShape_Init(&this->actor.shape, 0.0f, ActorShadow_DrawCircle, 8.0f);
EnFish_Dropped_SetupFall(this);
} else if (params == FISH_SWIMMING_UNIQUE) {
@@ -477,7 +477,7 @@ void EnFish_Dropped_FlopOnGround(EnFish* this, PlayState* play) {
void EnFish_Dropped_SetupSwimAway(EnFish* this) {
this->actor.home.pos = this->actor.world.pos;
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->timer = 200;
this->actor.gravity = 0.0f;
this->actor.minVelocityY = 0.0f;
diff --git a/soh/src/overlays/actors/ovl_En_Floormas/z_en_floormas.c b/soh/src/overlays/actors/ovl_En_Floormas/z_en_floormas.c
index 636203c55..2695dc05b 100644
--- a/soh/src/overlays/actors/ovl_En_Floormas/z_en_floormas.c
+++ b/soh/src/overlays/actors/ovl_En_Floormas/z_en_floormas.c
@@ -9,7 +9,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_DRAGGED_BY_HOOKSHOT)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER)
#define SPAWN_INVISIBLE 0x8000
#define SPAWN_SMALL 0x10
@@ -141,13 +141,13 @@ void EnFloormas_Init(Actor* thisx, PlayState* play2) {
// s16 cast needed
this->actor.params &= (s16) ~(SPAWN_INVISIBLE);
if (invisble) {
- this->actor.flags |= ACTOR_FLAG_LENS;
+ this->actor.flags |= ACTOR_FLAG_REACT_TO_LENS;
this->actor.draw = EnFloormas_DrawHighlighted;
}
if (this->actor.params == SPAWN_SMALL) {
this->actor.draw = NULL;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = EnFloormas_SmWait;
} else {
// spawn first small floormaster
@@ -285,8 +285,8 @@ void EnFloormas_SetupLand(EnFloormas* this) {
void EnFloormas_SetupSplit(EnFloormas* this) {
Actor_SetScale(&this->actor, 0.004f);
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
- if (CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_LENS)) {
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
+ if (CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_REACT_TO_LENS)) {
this->actor.draw = EnFloormas_DrawHighlighted;
} else {
this->actor.draw = EnFloormas_Draw;
@@ -351,7 +351,7 @@ void EnFloormas_SetupGrabLink(EnFloormas* this, Player* player) {
f32 xzDelta;
Animation_Change(&this->skelAnime, &gWallmasterJumpAnim, 1.0f, 36.0f, 45.0f, ANIMMODE_ONCE, -3.0f);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.speedXZ = 0.0f;
this->actor.velocity.y = 0.0f;
EnFloormas_MakeInvulnerable(this);
@@ -390,7 +390,7 @@ void EnFloormas_SetupSmWait(EnFloormas* this) {
}
this->actor.draw = NULL;
this->actionFunc = EnFloormas_SmWait;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_UPDATE_WHILE_CULLED);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_UPDATE_CULLING_DISABLED);
}
void EnFloormas_SetupTakeDamage(EnFloormas* this) {
@@ -670,7 +670,7 @@ void EnFloormas_Land(EnFloormas* this, PlayState* play) {
void EnFloormas_Split(EnFloormas* this, PlayState* play) {
if (this->actor.bgCheckFlags & 1) {
if (SkelAnime_Update(&this->skelAnime)) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->smActionTimer = 50;
EnFloormas_SetupStand(this);
}
@@ -812,7 +812,7 @@ void EnFloormas_GrabLink(EnFloormas* this, PlayState* play) {
this->actor.shape.rot.x = 0;
this->actor.velocity.y = 6.0f;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.speedXZ = -3.0f;
EnFloormas_SetupLand(this);
} else {
@@ -919,7 +919,7 @@ void EnFloormas_Merge(EnFloormas* this, PlayState* play) {
if (SkelAnime_Update(&this->skelAnime) != 0) {
if (this->actor.scale.x >= 0.01f) {
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
EnFloormas_MakeVulnerable(this);
this->actor.params = 0;
this->collider.info.bumperFlags |= BUMP_HOOKABLE;
@@ -1004,7 +1004,7 @@ void EnFloormas_ColliderCheck(EnFloormas* this, PlayState* play) {
Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_DEAD);
}
Enemy_StartFinishingBlow(play, &this->actor);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
} else if (this->actor.colChkInfo.damage != 0) {
Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_DAMAGE);
}
@@ -1058,7 +1058,7 @@ void EnFloormas_Update(Actor* thisx, PlayState* play) {
Actor_UpdateBgCheckInfo(play, &this->actor, 20.0f, this->actor.scale.x * 3000.0f, 0.0f, 0x1D);
Collider_UpdateCylinder(&this->actor, &this->collider);
if (this->actionFunc == EnFloormas_Charge) {
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
CollisionCheck_SetAT(play, &play->colChkCtx, &this->collider.base);
}
if (this->actionFunc != EnFloormas_GrabLink) {
diff --git a/soh/src/overlays/actors/ovl_En_Fr/z_en_fr.c b/soh/src/overlays/actors/ovl_En_Fr/z_en_fr.c
index 1606fbc1d..2ce772484 100644
--- a/soh/src/overlays/actors/ovl_En_Fr/z_en_fr.c
+++ b/soh/src/overlays/actors/ovl_En_Fr/z_en_fr.c
@@ -7,7 +7,7 @@
#include "soh/OTRGlobals.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void EnFr_Init(Actor* thisx, PlayState* play);
void EnFr_Destroy(Actor* thisx, PlayState* play);
@@ -230,7 +230,7 @@ void EnFr_Init(Actor* thisx, PlayState* play) {
this->actor.destroy = NULL;
this->actor.draw = NULL;
this->actor.update = EnFr_UpdateIdle;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_UPDATE_WHILE_CULLED);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_UPDATE_CULLING_DISABLED);
this->actor.flags &= ~0;
Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_PROP);
this->actor.textId = 0x40AC;
@@ -272,7 +272,7 @@ void EnFr_Update(Actor* thisx, PlayState* play) {
s32 pad2;
if (Object_IsLoaded(&play->objectCtx, this->objBankIndex)) {
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
frogIndex = this->actor.params - 1;
sEnFrPointers.frogs[frogIndex] = this;
Actor_ProcessInitChain(&this->actor, sInitChain);
@@ -315,7 +315,7 @@ void EnFr_Update(Actor* thisx, PlayState* play) {
this->posButterflyLight.x = this->posButterfly.x = this->posLogSpot.x;
this->posButterflyLight.y = this->posButterfly.y = this->posLogSpot.y + 50.0f;
this->posButterflyLight.z = this->posButterfly.z = this->posLogSpot.z;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
}
diff --git a/soh/src/overlays/actors/ovl_En_Fu/z_en_fu.c b/soh/src/overlays/actors/ovl_En_Fu/z_en_fu.c
index 38553196c..8b9a7ae82 100644
--- a/soh/src/overlays/actors/ovl_En_Fu/z_en_fu.c
+++ b/soh/src/overlays/actors/ovl_En_Fu/z_en_fu.c
@@ -10,7 +10,7 @@
#include "soh/OTRGlobals.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
#define FU_RESET_LOOK_ANGLE (1 << 0)
#define FU_WAIT (1 << 1)
@@ -183,11 +183,11 @@ void func_80A1DBD4(EnFu* this, PlayState* play) {
if (play->msgCtx.ocarinaMode >= OCARINA_MODE_04) {
this->actionFunc = EnFu_WaitAdult;
play->msgCtx.ocarinaMode = OCARINA_MODE_04;
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
} else if (play->msgCtx.ocarinaMode == OCARINA_MODE_03) {
Sfx_PlaySfxCentered(NA_SE_SY_CORRECT_CHIME);
this->actionFunc = func_80A1DB60;
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
play->msgCtx.ocarinaMode = OCARINA_MODE_00;
Flags_SetEventChkInf(EVENTCHKINF_PLAYED_SONG_OF_STORMS_IN_WINDMILL);
diff --git a/soh/src/overlays/actors/ovl_En_Fw/z_en_fw.c b/soh/src/overlays/actors/ovl_En_Fw/z_en_fw.c
index 9603d4af0..22de733c1 100644
--- a/soh/src/overlays/actors/ovl_En_Fw/z_en_fw.c
+++ b/soh/src/overlays/actors/ovl_En_Fw/z_en_fw.c
@@ -11,7 +11,7 @@
#include "soh/frame_interpolation.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_HOOKSHOT_DRAGS)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_HOOKSHOT_PULLS_ACTOR)
void EnFw_Init(Actor* thisx, PlayState* play);
void EnFw_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Fz/z_en_fz.c b/soh/src/overlays/actors/ovl_En_Fz/z_en_fz.c
index e439bfe41..8aaab1631 100644
--- a/soh/src/overlays/actors/ovl_En_Fz/z_en_fz.c
+++ b/soh/src/overlays/actors/ovl_En_Fz/z_en_fz.c
@@ -3,7 +3,7 @@
#include "soh/frame_interpolation.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAGGED_BY_HOOKSHOT)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER)
void EnFz_Init(Actor* thisx, PlayState* play);
void EnFz_Destroy(Actor* thisx, PlayState* play);
@@ -176,7 +176,7 @@ void EnFz_Init(Actor* thisx, PlayState* play) {
Actor_SetScale(&this->actor, 0.008f);
this->actor.colChkInfo.mass = MASS_IMMOVABLE;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->unusedTimer1 = 0;
this->unusedCounter = 0;
this->updateBgInfo = true;
@@ -389,7 +389,7 @@ void EnFz_SetYawTowardsPlayer(EnFz* this) {
void EnFz_SetupDisappear(EnFz* this) {
this->state = 2;
this->isFreezing = false;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = EnFz_Disappear;
}
@@ -447,7 +447,7 @@ void EnFz_SetupAimForMove(EnFz* this) {
this->timer = 40;
this->updateBgInfo = true;
this->isFreezing = true;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = EnFz_AimForMove;
this->actor.gravity = -1.0f;
}
@@ -550,7 +550,7 @@ void EnFz_SetupDespawn(EnFz* this, PlayState* play) {
this->updateBgInfo = true;
this->isFreezing = false;
this->isDespawning = true;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->isActive = false;
this->timer = 60;
this->speedXZ = 0.0f;
@@ -572,7 +572,7 @@ void EnFz_SetupMelt(EnFz* this) {
this->state = 3;
this->isFreezing = false;
this->isDespawning = true;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = EnFz_Melt;
this->actor.speedXZ = 0.0f;
this->speedXZ = 0.0f;
@@ -603,7 +603,7 @@ void EnFz_SetupBlowSmokeStationary(EnFz* this) {
this->timer = 40;
this->updateBgInfo = true;
this->isFreezing = true;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = EnFz_BlowSmokeStationary;
this->actor.gravity = -1.0f;
}
diff --git a/soh/src/overlays/actors/ovl_En_G_Switch/z_en_g_switch.c b/soh/src/overlays/actors/ovl_En_G_Switch/z_en_g_switch.c
index cbfa88b7b..c38b83560 100644
--- a/soh/src/overlays/actors/ovl_En_G_Switch/z_en_g_switch.c
+++ b/soh/src/overlays/actors/ovl_En_G_Switch/z_en_g_switch.c
@@ -14,7 +14,7 @@
#include "objects/object_gi_rupy/object_gi_rupy.h"
#include "soh/frame_interpolation.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
typedef enum {
/* 0 */ MOVE_TARGET,
diff --git a/soh/src/overlays/actors/ovl_En_Ganon_Mant/z_en_ganon_mant.c b/soh/src/overlays/actors/ovl_En_Ganon_Mant/z_en_ganon_mant.c
index 3c3b40295..ec0138a5a 100644
--- a/soh/src/overlays/actors/ovl_En_Ganon_Mant/z_en_ganon_mant.c
+++ b/soh/src/overlays/actors/ovl_En_Ganon_Mant/z_en_ganon_mant.c
@@ -9,7 +9,7 @@
#include "soh/OTRGlobals.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnGanonMant_Init(Actor* thisx, PlayState* play);
void EnGanonMant_Destroy(Actor* thisx, PlayState* play);
@@ -105,7 +105,7 @@ static u8 sMaskTex[MANT_TEX_WIDTH * MANT_TEX_HEIGHT] = { {0} };
void EnGanonMant_Init(Actor* thisx, PlayState* play) {
EnGanonMant* this = (EnGanonMant*)thisx;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
for (int i = 0; i < ARRAY_COUNT(sMaskTex); i++) {
sMaskTex[i] = 0;
diff --git a/soh/src/overlays/actors/ovl_En_Ganon_Organ/z_en_ganon_organ.c b/soh/src/overlays/actors/ovl_En_Ganon_Organ/z_en_ganon_organ.c
index 32b875df0..aebec1aa4 100644
--- a/soh/src/overlays/actors/ovl_En_Ganon_Organ/z_en_ganon_organ.c
+++ b/soh/src/overlays/actors/ovl_En_Ganon_Organ/z_en_ganon_organ.c
@@ -7,7 +7,7 @@
#include "z_en_ganon_organ.h"
#include "overlays/actors/ovl_Boss_Ganon/z_boss_ganon.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnGanonOrgan_Init(Actor* thisx, PlayState* play);
void EnGanonOrgan_Destroy(Actor* thisx, PlayState* play);
@@ -32,7 +32,7 @@ const ActorInit En_Ganon_Organ_InitVars = {
#include "overlays/ovl_En_Ganon_Organ/ovl_En_Ganon_Organ.h"
void EnGanonOrgan_Init(Actor* thisx, PlayState* play) {
- thisx->flags &= ~ACTOR_FLAG_TARGETABLE;
+ thisx->flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
void EnGanonOrgan_Destroy(Actor* thisx, PlayState* play) {
diff --git a/soh/src/overlays/actors/ovl_En_Gb/z_en_gb.c b/soh/src/overlays/actors/ovl_En_Gb/z_en_gb.c
index 935e3dc40..15bac0bf0 100644
--- a/soh/src/overlays/actors/ovl_En_Gb/z_en_gb.c
+++ b/soh/src/overlays/actors/ovl_En_Gb/z_en_gb.c
@@ -11,7 +11,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnGb_Init(Actor* thisx, PlayState* play);
void EnGb_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Ge1/z_en_ge1.c b/soh/src/overlays/actors/ovl_En_Ge1/z_en_ge1.c
index cfc7bc8e1..1614bac81 100644
--- a/soh/src/overlays/actors/ovl_En_Ge1/z_en_ge1.c
+++ b/soh/src/overlays/actors/ovl_En_Ge1/z_en_ge1.c
@@ -12,7 +12,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
#define GE1_STATE_TALKING (1 << 0)
#define GE1_STATE_GIVE_QUIVER (1 << 1)
@@ -555,7 +555,7 @@ void EnGe1_BeginGiveItem_Archery(EnGe1* this, PlayState* play) {
s32 getItemId;
if (Actor_TextboxIsClosing(&this->actor, play)) {
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
this->actionFunc = EnGe1_WaitTillItemGiven_Archery;
}
@@ -581,7 +581,7 @@ void EnGe1_BeginGiveItem_Archery(EnGe1* this, PlayState* play) {
void EnGe1_TalkWinPrize_Archery(EnGe1* this, PlayState* play) {
if (Actor_ProcessTalkRequest(&this->actor, play)) {
this->actionFunc = EnGe1_BeginGiveItem_Archery;
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
} else {
func_8002F2CC(&this->actor, play, 200.0f);
}
@@ -603,7 +603,7 @@ void EnGe1_BeginGame_Archery(EnGe1* this, PlayState* play) {
Actor* horse;
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_CHOICE) && Message_ShouldAdvance(play)) {
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
switch (play->msgCtx.choiceIndex) {
case 0:
@@ -661,7 +661,7 @@ void EnGe1_TalkAfterGame_Archery(EnGe1* this, PlayState* play) {
gSaveContext.eventInf[0] &= ~0x100;
LOG_NUM("z_common_data.yabusame_total", gSaveContext.minigameScore);
LOG_NUM("z_common_data.memory.information.room_inf[127][ 0 ]", HIGH_SCORE(HS_HBA));
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
if (HIGH_SCORE(HS_HBA) < gSaveContext.minigameScore) {
HIGH_SCORE(HS_HBA) = gSaveContext.minigameScore;
diff --git a/soh/src/overlays/actors/ovl_En_Ge2/z_en_ge2.c b/soh/src/overlays/actors/ovl_En_Ge2/z_en_ge2.c
index fd1317bdb..ab1053805 100644
--- a/soh/src/overlays/actors/ovl_En_Ge2/z_en_ge2.c
+++ b/soh/src/overlays/actors/ovl_En_Ge2/z_en_ge2.c
@@ -13,7 +13,7 @@
#include "soh/OTRGlobals.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
#define GE2_STATE_ANIMCOMPLETE (1 << 1)
#define GE2_STATE_KO (1 << 2)
@@ -312,7 +312,7 @@ void EnGe2_KnockedOut(EnGe2* this, PlayState* play) {
s32 effectAngle;
Vec3f effectPos;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if (this->stateFlags & GE2_STATE_ANIMCOMPLETE) {
effectAngle = (play->state.frames) * 0x2800;
effectPos.x = this->actor.focus.pos.x + (Math_CosS(effectAngle) * 5.0f);
@@ -452,7 +452,7 @@ void EnGe2_SetActionAfterTalk(EnGe2* this, PlayState* play) {
break;
}
this->actor.update = EnGe2_UpdateFriendly;
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
}
EnGe2_TurnToFacePlayer(this, play);
}
@@ -473,7 +473,7 @@ void EnGe2_WaitTillCardGiven(EnGe2* this, PlayState* play) {
void EnGe2_GiveCard(EnGe2* this, PlayState* play) {
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_EVENT) && Message_ShouldAdvance(play)) {
Message_CloseTextbox(play);
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
this->actionFunc = EnGe2_WaitTillCardGiven;
if (GameInteractor_Should(VB_GIVE_ITEM_GERUDO_MEMBERSHIP_CARD, true)) {
Actor_OfferGetItem(&this->actor, play, GI_GERUDO_CARD, 10000.0f, 50.0f);
@@ -487,7 +487,7 @@ void EnGe2_ForceTalk(EnGe2* this, PlayState* play) {
this->actionFunc = EnGe2_GiveCard;
} else {
this->actor.textId = 0x6004;
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
func_8002F1C4(&this->actor, play, 300.0f, 300.0f, 0);
}
EnGe2_LookAtPlayer(this, play);
diff --git a/soh/src/overlays/actors/ovl_En_Ge3/z_en_ge3.c b/soh/src/overlays/actors/ovl_En_Ge3/z_en_ge3.c
index 811e0a673..24129fb2a 100644
--- a/soh/src/overlays/actors/ovl_En_Ge3/z_en_ge3.c
+++ b/soh/src/overlays/actors/ovl_En_Ge3/z_en_ge3.c
@@ -10,7 +10,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnGe3_Init(Actor* thisx, PlayState* play);
void EnGe3_Destroy(Actor* thisx, PlayState* play);
@@ -133,7 +133,7 @@ void EnGe3_Wait(EnGe3* this, PlayState* play) {
if (Actor_TextboxIsClosing(&this->actor, play)) {
this->actionFunc = EnGe3_WaitLookAtPlayer;
this->actor.update = EnGe3_UpdateWhenNotTalking;
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
}
EnGe3_TurnToFacePlayer(this, play);
}
@@ -154,7 +154,7 @@ void EnGe3_WaitTillCardGiven(EnGe3* this, PlayState* play) {
void EnGe3_GiveCard(EnGe3* this, PlayState* play) {
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_EVENT) && Message_ShouldAdvance(play)) {
Message_CloseTextbox(play);
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
this->actionFunc = EnGe3_WaitTillCardGiven;
if (GameInteractor_Should(VB_GIVE_ITEM_GERUDO_MEMBERSHIP_CARD, true)) {
Actor_OfferGetItem(&this->actor, play, GI_GERUDO_CARD, 10000.0f, 50.0f);
@@ -171,7 +171,7 @@ void EnGe3_ForceTalk(EnGe3* this, PlayState* play) {
this->unk_30C |= 4;
}
this->actor.textId = 0x6004;
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
func_8002F1C4(&this->actor, play, 300.0f, 300.0f, 0);
}
EnGe3_LookAtPlayer(this, play);
diff --git a/soh/src/overlays/actors/ovl_En_GeldB/z_en_geldb.c b/soh/src/overlays/actors/ovl_En_GeldB/z_en_geldb.c
index af3107097..841181701 100644
--- a/soh/src/overlays/actors/ovl_En_GeldB/z_en_geldb.c
+++ b/soh/src/overlays/actors/ovl_En_GeldB/z_en_geldb.c
@@ -10,7 +10,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
typedef enum {
/* 0 */ GELDB_WAIT,
@@ -354,7 +354,7 @@ void EnGeldB_SetupWait(EnGeldB* this) {
this->action = GELDB_WAIT;
this->actor.bgCheckFlags &= ~3;
this->actor.gravity = -2.0f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
EnGeldB_SetupAction(this, EnGeldB_Wait);
}
@@ -372,7 +372,7 @@ void EnGeldB_Wait(EnGeldB* this, PlayState* play) {
Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_DOWN);
this->skelAnime.playSpeed = 1.0f;
this->actor.world.pos.y = this->actor.floorHeight;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.focus.pos = this->actor.world.pos;
this->actor.bgCheckFlags &= ~2;
this->actor.velocity.y = 0.0f;
@@ -1320,7 +1320,7 @@ void EnGeldB_SetupDefeated(EnGeldB* this) {
this->invisible = true;
}
this->action = GELDB_DEFEAT;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_GERUDOFT_DEAD);
EnGeldB_SetupAction(this, EnGeldB_Defeated);
GameInteractor_ExecuteOnEnemyDefeat(&this->actor);
diff --git a/soh/src/overlays/actors/ovl_En_GirlA/z_en_girla.c b/soh/src/overlays/actors/ovl_En_GirlA/z_en_girla.c
index 432212c01..611fbab18 100644
--- a/soh/src/overlays/actors/ovl_En_GirlA/z_en_girla.c
+++ b/soh/src/overlays/actors/ovl_En_GirlA/z_en_girla.c
@@ -11,7 +11,7 @@
#include "soh/OTRGlobals.h"
#include <assert.h>
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnGirlA_Init(Actor* thisx, PlayState* play);
void EnGirlA_Destroy(Actor* thisx, PlayState* play);
@@ -1251,7 +1251,7 @@ void EnGirlA_WaitForObject(EnGirlA* this, PlayState* play) {
ShopItemEntry* itemEntry = &shopItemEntries[params];
if (Object_IsLoaded(&play->objectCtx, this->requiredObjectSlot)) {
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actor.objBankIndex = this->requiredObjectSlot;
switch (this->actor.params) {
case SI_KEATON_MASK:
@@ -1334,7 +1334,7 @@ void EnGirlA_WaitForObject(EnGirlA* this, PlayState* play) {
this->hiliteFunc = itemEntry->hiliteFunc;
this->giDrawId = itemEntry->giDrawId;
osSyncPrintf("%s(%2d)\n", sShopItemDescriptions[params], params);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Actor_SetScale(&this->actor, 0.25f);
this->actor.shape.yOffset = 24.0f;
this->actor.shape.shadowScale = 4.0f;
@@ -1375,7 +1375,7 @@ void EnGirlA_WaitForObject(EnGirlA* this, PlayState* play) {
this->hiliteFunc = itemEntry->hiliteFunc;
this->giDrawId = itemEntry->giDrawId;
osSyncPrintf("%s(%2d)\n", sShopItemDescriptions[params], params);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Actor_SetScale(&this->actor, 0.25f);
this->actor.shape.yOffset = 24.0f;
this->actor.shape.shadowScale = 4.0f;
diff --git a/soh/src/overlays/actors/ovl_En_Gm/z_en_gm.c b/soh/src/overlays/actors/ovl_En_Gm/z_en_gm.c
index 2a653edc9..06d7c89e9 100644
--- a/soh/src/overlays/actors/ovl_En_Gm/z_en_gm.c
+++ b/soh/src/overlays/actors/ovl_En_Gm/z_en_gm.c
@@ -13,7 +13,7 @@
#include "soh/OTRGlobals.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnGm_Init(Actor* thisx, PlayState* play);
void EnGm_Destroy(Actor* thisx, PlayState* play);
@@ -112,7 +112,7 @@ s32 func_80A3D7C8(void) {
void func_80A3D838(EnGm* this, PlayState* play) {
if (Object_IsLoaded(&play->objectCtx, this->objGmBankIndex)) {
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
SkelAnime_InitFlex(play, &this->skelAnime, &gGoronSkel, NULL, this->jointTable, this->morphTable, 18);
gSegments[6] = VIRTUAL_TO_PHYSICAL(play->objectCtx.status[this->objGmBankIndex].segment);
Animation_Change(&this->skelAnime, &object_gm_Anim_0002B8, 1.0f, 0.0f,
diff --git a/soh/src/overlays/actors/ovl_En_Go/z_en_go.c b/soh/src/overlays/actors/ovl_En_Go/z_en_go.c
index 4718cac79..22117f9d0 100644
--- a/soh/src/overlays/actors/ovl_En_Go/z_en_go.c
+++ b/soh/src/overlays/actors/ovl_En_Go/z_en_go.c
@@ -6,7 +6,7 @@
#include "soh/Enhancements/randomizer/adult_trade_shuffle.h"
#include "soh/OTRGlobals.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnGo_Init(Actor* thisx, PlayState* play);
void EnGo_Destroy(Actor* thisx, PlayState* play);
@@ -641,8 +641,8 @@ void EnGo_Init(Actor* thisx, PlayState* play) {
}
if ((this->actor.params & 0xF0) && ((this->actor.params & 0xF0) != 0x90)) {
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
- this->actor.flags &= ~ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
+ this->actor.flags &= ~ACTOR_FLAG_DRAW_CULLING_DISABLED;
}
EnGo_ChangeAnim(this, ENGO_ANIM_0);
diff --git a/soh/src/overlays/actors/ovl_En_Go2/z_en_go2.c b/soh/src/overlays/actors/ovl_En_Go2/z_en_go2.c
index 82abfca31..1462f8302 100644
--- a/soh/src/overlays/actors/ovl_En_Go2/z_en_go2.c
+++ b/soh/src/overlays/actors/ovl_En_Go2/z_en_go2.c
@@ -8,7 +8,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
/*
FLAGS
@@ -889,7 +889,7 @@ s32 func_80A44AB0(EnGo2* this, PlayState* play) {
} else {
if (this->collider.base.acFlags & 2) {
Audio_PlaySoundGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb);
- this->actor.flags &= ~ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags &= ~ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
this->collider.base.acFlags &= ~0x2;
EnGo2_StopRolling(this, play);
return true;
@@ -965,10 +965,10 @@ s32 EnGo2_IsWakingUp(EnGo2* this) {
if ((this->actor.params & 0x1F) == GORON_DMT_BIGGORON) {
if ((this->collider.base.ocFlags2 & 1) == 0) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
return false;
} else {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
return true;
}
}
@@ -1304,7 +1304,7 @@ void EnGo2_GetDustData(EnGo2* this, s32 index2) {
void EnGo2_RollingAnimation(EnGo2* this, PlayState* play) {
if ((this->actor.params & 0x1F) == GORON_DMT_BIGGORON) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Animation_ChangeByInfo(&this->skelAnime, sAnimationInfo, ENGO2_ANIM_10);
this->skelAnime.playSpeed = -0.5f;
} else {
@@ -1358,7 +1358,7 @@ void EnGo2_SetupRolling(EnGo2* this, PlayState* play) {
} else {
this->actor.speedXZ = 6.0f;
}
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
this->animTimer = 10;
this->actor.shape.yOffset = 1800.0f;
this->actor.speedXZ += this->actor.speedXZ; // Speeding up
@@ -1541,8 +1541,8 @@ void EnGo2_Init(Actor* thisx, PlayState* play) {
case GORON_CITY_LOST_WOODS:
case GORON_DMT_FAIRY_HINT:
case GORON_MARKET_BAZAAR:
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
- this->actor.flags &= ~ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
+ this->actor.flags &= ~ACTOR_FLAG_DRAW_CULLING_DISABLED;
}
EnGo2_SetColliderDim(this);
@@ -1609,7 +1609,7 @@ void EnGo2_Init(Actor* thisx, PlayState* play) {
break;
case GORON_DMT_BIGGORON:
this->actor.shape.shadowDraw = NULL;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if ((INV_CONTENT(ITEM_TRADE_ADULT) >= ITEM_SWORD_BROKEN) &&
(INV_CONTENT(ITEM_TRADE_ADULT) <= ITEM_EYEDROPS)) {
this->eyeMouthTexState = 1;
@@ -1689,7 +1689,7 @@ void func_80A46B40(EnGo2* this, PlayState* play) {
} else {
if (Animation_OnFrame(&this->skelAnime, this->skelAnime.endFrame)) {
if ((this->actor.params & 0x1F) == GORON_DMT_BIGGORON) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
}
func_80A454CC(this);
this->unk_211 = true;
@@ -1839,7 +1839,7 @@ void EnGo2_BiggoronEyedrops(EnGo2* this, PlayState* play) {
switch (this->goronState) {
case 0:
Animation_ChangeByInfo(&this->skelAnime, sAnimationInfo, ENGO2_ANIM_5);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.shape.rot.y += 0x5B0;
this->trackingMode = NPC_TRACKING_NONE;
this->animTimer = !GameInteractor_Should(VB_PLAY_EYEDROPS_CS, true) ? 0 : (this->skelAnime.endFrame + 60.0f + 60.0f); // eyeDrops animation timer
@@ -1872,7 +1872,7 @@ void EnGo2_BiggoronEyedrops(EnGo2* this, PlayState* play) {
}
if (Message_GetState(&play->msgCtx) == TEXT_STATE_CLOSING) {
Animation_ChangeByInfo(&this->skelAnime, sAnimationInfo, ENGO2_ANIM_1);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->trackingMode = NPC_TRACKING_HEAD_AND_TORSO;
this->skelAnime.playSpeed = 0.0f;
this->skelAnime.curFrame = this->skelAnime.endFrame;
diff --git a/soh/src/overlays/actors/ovl_En_Goma/z_en_goma.c b/soh/src/overlays/actors/ovl_En_Goma/z_en_goma.c
index 11016dcc7..4ad72ea01 100644
--- a/soh/src/overlays/actors/ovl_En_Goma/z_en_goma.c
+++ b/soh/src/overlays/actors/ovl_En_Goma/z_en_goma.c
@@ -6,7 +6,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnGoma_Init(Actor* thisx, PlayState* play);
void EnGoma_Destroy(Actor* thisx, PlayState* play);
@@ -123,10 +123,10 @@ void EnGoma_Init(Actor* thisx, PlayState* play) {
this->gomaType = ENGOMA_BOSSLIMB;
ActorShape_Init(&this->actor.shape, 0.0f, ActorShadow_DrawCircle, 0.0f);
this->actionTimer = this->actor.params + 150;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
} else if (params >= 10) { // Debris when hatching
this->actor.gravity = -1.3f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionTimer = 50;
this->gomaType = ENGOMA_HATCH_DEBRIS;
this->eggScale = 1.0f;
@@ -372,7 +372,7 @@ void EnGoma_SetupDie(EnGoma* this) {
}
this->invincibilityTimer = 100;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
void EnGoma_Die(EnGoma* this, PlayState* play) {
@@ -504,7 +504,7 @@ void EnGoma_SetupJump(EnGoma* this) {
}
void EnGoma_Jump(EnGoma* this, PlayState* play) {
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
SkelAnime_Update(&this->skelanime);
Math_ApproachF(&this->actor.speedXZ, 10.0f, 0.5f, 5.0f);
diff --git a/soh/src/overlays/actors/ovl_En_Goroiwa/z_en_goroiwa.c b/soh/src/overlays/actors/ovl_En_Goroiwa/z_en_goroiwa.c
index 72adefe3b..4df1b6040 100644
--- a/soh/src/overlays/actors/ovl_En_Goroiwa/z_en_goroiwa.c
+++ b/soh/src/overlays/actors/ovl_En_Goroiwa/z_en_goroiwa.c
@@ -10,7 +10,7 @@
#include "objects/object_goroiwa/object_goroiwa.h"
#include "vt.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
typedef s32 (*EnGoroiwaUnkFunc1)(EnGoroiwa* this, PlayState* play);
typedef void (*EnGoroiwaUnkFunc2)(EnGoroiwa* this);
diff --git a/soh/src/overlays/actors/ovl_En_Gs/z_en_gs.c b/soh/src/overlays/actors/ovl_En_Gs/z_en_gs.c
index 2bb7534d1..83db2aeb0 100644
--- a/soh/src/overlays/actors/ovl_En_Gs/z_en_gs.c
+++ b/soh/src/overlays/actors/ovl_En_Gs/z_en_gs.c
@@ -10,7 +10,7 @@
#include "objects/gameplay_keep/gameplay_keep.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void EnGs_Init(Actor* thisx, PlayState* play);
void EnGs_Destroy(Actor* thisx, PlayState* play);
@@ -359,7 +359,7 @@ void func_80A4ED34(EnGs* this, PlayState* play) {
func_8002F974(&this->actor, NA_SE_EV_FIRE_PILLAR - SFX_FLAG);
if (this->unk_200++ >= 40) {
this->unk_19E |= 0x10;
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actor.uncullZoneForward = 12000.0f;
this->actor.gravity = 0.3f;
diff --git a/soh/src/overlays/actors/ovl_En_Guest/z_en_guest.c b/soh/src/overlays/actors/ovl_En_Guest/z_en_guest.c
index e69e4e610..ede41e583 100644
--- a/soh/src/overlays/actors/ovl_En_Guest/z_en_guest.c
+++ b/soh/src/overlays/actors/ovl_En_Guest/z_en_guest.c
@@ -11,7 +11,7 @@
#include <assert.h>
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnGuest_Init(Actor* thisx, PlayState* play);
void EnGuest_Destroy(Actor* thisx, PlayState* play);
@@ -82,7 +82,7 @@ void EnGuest_Update(Actor* thisx, PlayState* play) {
s32 pad;
if (Object_IsLoaded(&play->objectCtx, this->osAnimeBankIndex)) {
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
Actor_ProcessInitChain(&this->actor, sInitChain);
SkelAnime_InitFlex(play, &this->skelAnime, &object_boj_Skel_0000F0, NULL, this->jointTable, this->morphTable, 16);
diff --git a/soh/src/overlays/actors/ovl_En_Heishi1/z_en_heishi1.c b/soh/src/overlays/actors/ovl_En_Heishi1/z_en_heishi1.c
index 90d47b098..2b23442a3 100644
--- a/soh/src/overlays/actors/ovl_En_Heishi1/z_en_heishi1.c
+++ b/soh/src/overlays/actors/ovl_En_Heishi1/z_en_heishi1.c
@@ -9,7 +9,7 @@
#include "vt.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnHeishi1_Init(Actor* thisx, PlayState* play);
void EnHeishi1_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Heishi2/z_en_heishi2.c b/soh/src/overlays/actors/ovl_En_Heishi2/z_en_heishi2.c
index 89fd574d0..3a0824bc1 100644
--- a/soh/src/overlays/actors/ovl_En_Heishi2/z_en_heishi2.c
+++ b/soh/src/overlays/actors/ovl_En_Heishi2/z_en_heishi2.c
@@ -13,7 +13,7 @@
#include "overlays/actors/ovl_Bg_Spot15_Saku/z_bg_spot15_saku.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnHeishi2_Init(Actor* thisx, PlayState* play);
void EnHeishi2_Destroy(Actor* thisx, PlayState* play);
@@ -94,7 +94,7 @@ void EnHeishi2_Init(Actor* thisx, PlayState* play) {
if ((this->type == 6) || (this->type == 9)) {
this->actor.draw = EnHeishi2_DrawKingGuard;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Actor_ChangeCategory(play, &play->actorCtx, &this->actor, 6);
if (this->type == 6) {
this->actionFunc = EnHeishi2_DoNothing1;
@@ -114,7 +114,7 @@ void EnHeishi2_Init(Actor* thisx, PlayState* play) {
this->actor.shape.rot.y = this->actor.world.rot.y;
Collider_DestroyCylinder(play, &this->collider);
Player_SetCsActionWithHaltedActors(play, 0, 8);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actionFunc = func_80A544AC;
}
} else {
@@ -145,7 +145,7 @@ void EnHeishi2_Init(Actor* thisx, PlayState* play) {
// "Peep hole soldier!"
osSyncPrintf(VT_FGCOL(GREEN) " ☆☆☆☆☆ 覗き穴奥兵士ふぃ〜 ☆☆☆☆☆ \n" VT_RST);
Collider_DestroyCylinder(play, collider);
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
this->actionFunc = EnHeishi_DoNothing2;
break;
}
@@ -641,7 +641,7 @@ void func_80A544AC(EnHeishi2* this, PlayState* play) {
this->actor.world.rot.z = this->actor.shape.rot.z;
if (this->actor.shape.rot.z < -6000) {
Message_StartTextbox(play, 0x708F, NULL);
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
this->actionFunc = func_80A5455C;
this->unk_2E4 = 0.0f;
}
diff --git a/soh/src/overlays/actors/ovl_En_Heishi4/z_en_heishi4.c b/soh/src/overlays/actors/ovl_En_Heishi4/z_en_heishi4.c
index f118a55ec..bd38ba9d9 100644
--- a/soh/src/overlays/actors/ovl_En_Heishi4/z_en_heishi4.c
+++ b/soh/src/overlays/actors/ovl_En_Heishi4/z_en_heishi4.c
@@ -4,7 +4,7 @@
#include "soh/OTRGlobals.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnHeishi4_Init(Actor* thisx, PlayState* play);
void EnHeishi4_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Hintnuts/z_en_hintnuts.c b/soh/src/overlays/actors/ovl_En_Hintnuts/z_en_hintnuts.c
index 36a7ae115..f0a990f03 100644
--- a/soh/src/overlays/actors/ovl_En_Hintnuts/z_en_hintnuts.c
+++ b/soh/src/overlays/actors/ovl_En_Hintnuts/z_en_hintnuts.c
@@ -9,7 +9,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE)
void EnHintnuts_Init(Actor* thisx, PlayState* play);
void EnHintnuts_Destroy(Actor* thisx, PlayState* play);
@@ -78,7 +78,7 @@ void EnHintnuts_Init(Actor* thisx, PlayState* play) {
Actor_ProcessInitChain(&this->actor, sInitChain);
if (this->actor.params == 0xA) {
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE);
} else {
ActorShape_Init(&this->actor.shape, 0x0, ActorShadow_DrawCircle, 35.0f);
SkelAnime_Init(play, &this->skelAnime, &gHintNutsSkel, &gHintNutsStandAnim, this->jointTable,
@@ -115,8 +115,8 @@ void EnHintnuts_Destroy(Actor* thisx, PlayState* play) {
void EnHintnuts_HitByScrubProjectile1(EnHintnuts* this, PlayState* play) {
if (this->actor.textId != 0 && this->actor.category == ACTORCAT_ENEMY &&
((this->actor.params == 0) || (sPuzzleCounter == 2))) {
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE);
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_BG);
}
}
@@ -175,7 +175,7 @@ void EnHintnuts_HitByScrubProjectile2(EnHintnuts* this) {
}
sPuzzleCounter--;
}
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actionFunc = EnHintnuts_BeginFreeze;
} else {
this->actionFunc = EnHintnuts_BeginRun;
@@ -200,7 +200,7 @@ void EnHintnuts_SetupLeave(EnHintnuts* this, PlayState* play) {
this->animFlagAndTimer = 100;
this->actor.world.rot.y = this->actor.shape.rot.y;
this->collider.base.ocFlags1 &= ~OC1_ON;
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_DAMAGE);
Actor_Spawn(&play->actorCtx, play, ACTOR_EN_ITEM00, this->actor.world.pos.x, this->actor.world.pos.y,
this->actor.world.pos.z, 0x0, 0x0, 0x0, 0x3, true); // recovery heart
@@ -209,7 +209,7 @@ void EnHintnuts_SetupLeave(EnHintnuts* this, PlayState* play) {
void EnHintnuts_SetupFreeze(EnHintnuts* this) {
Animation_PlayLoop(&this->skelAnime, &gHintNutsFreezeAnim);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Actor_SetColorFilter(&this->actor, 0, 0xFF, 0, 100);
this->actor.colorFilterTimer = 1;
this->animFlagAndTimer = 0;
@@ -329,9 +329,9 @@ void EnHintnuts_BeginFreeze(EnHintnuts* this, PlayState* play) {
void EnHintnuts_CheckProximity(EnHintnuts* this, PlayState* play) {
if (this->actor.category != ACTORCAT_ENEMY) {
if ((this->collider.base.ocFlags1 & OC1_HIT) || this->actor.isTargeted) {
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
} else {
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
}
if (this->actor.xzDistToPlayer < 130.0f) {
this->actor.textId = this->textIdCopy;
@@ -382,8 +382,8 @@ void EnHintnuts_Run(EnHintnuts* this, PlayState* play) {
fabsf(this->actor.world.pos.y - this->actor.home.pos.y) < 2.0f) {
this->actor.speedXZ = 0.0f;
if (this->actor.category == ACTORCAT_BG) {
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_WILL_TALK);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE;
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED);
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE;
Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_ENEMY);
}
EnHintnuts_SetupBurrow(this);
@@ -455,8 +455,8 @@ void EnHintnuts_Freeze(EnHintnuts* this, PlayState* play) {
if (this->animFlagAndTimer == 1) {
Actor_Kill(&this->actor);
} else {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actor.colChkInfo.health = sColChkInfoInit.health;
this->actor.colorFilterTimer = 0;
EnHintnuts_SetupWait(this);
diff --git a/soh/src/overlays/actors/ovl_En_Holl/z_en_holl.c b/soh/src/overlays/actors/ovl_En_Holl/z_en_holl.c
index f40668343..9fb434b7d 100644
--- a/soh/src/overlays/actors/ovl_En_Holl/z_en_holl.c
+++ b/soh/src/overlays/actors/ovl_En_Holl/z_en_holl.c
@@ -1,6 +1,6 @@
#include "z_en_holl.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
// Horizontal Plane parameters
diff --git a/soh/src/overlays/actors/ovl_En_Honotrap/z_en_honotrap.c b/soh/src/overlays/actors/ovl_En_Honotrap/z_en_honotrap.c
index 6c3745b62..f65e39cee 100644
--- a/soh/src/overlays/actors/ovl_En_Honotrap/z_en_honotrap.c
+++ b/soh/src/overlays/actors/ovl_En_Honotrap/z_en_honotrap.c
@@ -8,7 +8,7 @@
#include "objects/gameplay_keep/gameplay_keep.h"
#include "objects/gameplay_dangeon_keep/gameplay_dangeon_keep.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
#define HONOTRAP_AT_ACTIVE (1 << 0)
#define HONOTRAP_AC_ACTIVE (1 << 1)
diff --git a/soh/src/overlays/actors/ovl_En_Horse/z_en_horse.c b/soh/src/overlays/actors/ovl_En_Horse/z_en_horse.c
index 73cfd07cc..e94f91200 100644
--- a/soh/src/overlays/actors/ovl_En_Horse/z_en_horse.c
+++ b/soh/src/overlays/actors/ovl_En_Horse/z_en_horse.c
@@ -11,7 +11,7 @@
#include "scenes/overworld/spot09/spot09_scene.h"
#include <assert.h>
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
typedef void (*EnHorseCsFunc)(EnHorse*, PlayState*, CsCmdActorCue*);
typedef void (*EnHorseActionFunc)(EnHorse*, PlayState*);
@@ -726,7 +726,7 @@ s32 EnHorse_PlayerCanMove(EnHorse* this, PlayState* play) {
if ((player->stateFlags1 & PLAYER_STATE1_LOADING) || func_8002DD78(GET_PLAYER(play)) == 1 || (player->stateFlags1 & PLAYER_STATE1_FIRST_PERSON) ||
((this->stateFlags & ENHORSE_FLAG_19) && !this->inRace) || this->action == ENHORSE_ACT_HBA ||
- player->actor.flags & ACTOR_FLAG_PLAYER_TALKED_TO || play->csCtx.state != 0) {
+ player->actor.flags & ACTOR_FLAG_TALK || play->csCtx.state != 0) {
return false;
}
return true;
@@ -1539,7 +1539,7 @@ void EnHorse_Reverse(EnHorse* this, PlayState* play) {
} else if (stickMag < 10.0f) {
stickAngle = -0x7FFF;
}
- } else if (player->actor.flags & ACTOR_FLAG_PLAYER_TALKED_TO) {
+ } else if (player->actor.flags & ACTOR_FLAG_TALK) {
EnHorse_StartMountedIdleResetAnim(this);
this->actor.speedXZ = 0.0f;
return;
diff --git a/soh/src/overlays/actors/ovl_En_Horse_Game_Check/z_en_horse_game_check.c b/soh/src/overlays/actors/ovl_En_Horse_Game_Check/z_en_horse_game_check.c
index 5ed12cf45..e0c1ba7fc 100644
--- a/soh/src/overlays/actors/ovl_En_Horse_Game_Check/z_en_horse_game_check.c
+++ b/soh/src/overlays/actors/ovl_En_Horse_Game_Check/z_en_horse_game_check.c
@@ -7,7 +7,7 @@
#include "z_en_horse_game_check.h"
#include "overlays/actors/ovl_En_Horse/z_en_horse.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
#define AT_FINISH_LINE(actor) \
(Math3D_PointInSquare2D(sFinishLine[0], sFinishLine[1], sFinishLine[2], sFinishLine[3], (actor)->world.pos.x, \
diff --git a/soh/src/overlays/actors/ovl_En_Horse_Ganon/z_en_horse_ganon.c b/soh/src/overlays/actors/ovl_En_Horse_Ganon/z_en_horse_ganon.c
index ac61462d7..98218c7a3 100644
--- a/soh/src/overlays/actors/ovl_En_Horse_Ganon/z_en_horse_ganon.c
+++ b/soh/src/overlays/actors/ovl_En_Horse_Ganon/z_en_horse_ganon.c
@@ -7,7 +7,7 @@
#include "z_en_horse_ganon.h"
#include "objects/object_horse_ganon/object_horse_ganon.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
typedef struct {
/* 0x0 */ Vec3s unk_0;
diff --git a/soh/src/overlays/actors/ovl_En_Horse_Link_Child/z_en_horse_link_child.c b/soh/src/overlays/actors/ovl_En_Horse_Link_Child/z_en_horse_link_child.c
index a4ea35ed5..39b5aac2e 100644
--- a/soh/src/overlays/actors/ovl_En_Horse_Link_Child/z_en_horse_link_child.c
+++ b/soh/src/overlays/actors/ovl_En_Horse_Link_Child/z_en_horse_link_child.c
@@ -7,7 +7,7 @@
#include "z_en_horse_link_child.h"
#include "objects/object_horse_link_child/object_horse_link_child.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void EnHorseLinkChild_Init(Actor* thisx, PlayState* play);
void EnHorseLinkChild_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Horse_Normal/z_en_horse_normal.c b/soh/src/overlays/actors/ovl_En_Horse_Normal/z_en_horse_normal.c
index ead91b06b..2173ca2ac 100644
--- a/soh/src/overlays/actors/ovl_En_Horse_Normal/z_en_horse_normal.c
+++ b/soh/src/overlays/actors/ovl_En_Horse_Normal/z_en_horse_normal.c
@@ -277,7 +277,7 @@ void EnHorseNormal_Destroy(Actor* thisx, PlayState* play) {
}
void func_80A6B91C(EnHorseNormal* this, PlayState* play) {
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->action = HORSE_FOLLOW_PATH;
this->animationIdx = 6;
this->waypoint = 0;
@@ -511,7 +511,7 @@ void func_80A6C6B0(EnHorseNormal* this) {
this->animationIdx = 0;
this->unk_21C = 0;
this->unk_21E = 0;
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED;
this->actor.speedXZ = 0.0f;
this->unk_218 = 0.0f;
Animation_Change(&this->skin.skelAnime, sAnimations[this->animationIdx], func_80A6B30C(this), 0.0f,
diff --git a/soh/src/overlays/actors/ovl_En_Horse_Zelda/z_en_horse_zelda.c b/soh/src/overlays/actors/ovl_En_Horse_Zelda/z_en_horse_zelda.c
index 9eb87644f..df317a829 100644
--- a/soh/src/overlays/actors/ovl_En_Horse_Zelda/z_en_horse_zelda.c
+++ b/soh/src/overlays/actors/ovl_En_Horse_Zelda/z_en_horse_zelda.c
@@ -7,7 +7,7 @@
#include "z_en_horse_zelda.h"
#include "objects/object_horse_zelda/object_horse_zelda.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnHorseZelda_Init(Actor* thisx, PlayState* play);
void EnHorseZelda_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Hs/z_en_hs.c b/soh/src/overlays/actors/ovl_En_Hs/z_en_hs.c
index fcf06de4e..468d2124f 100644
--- a/soh/src/overlays/actors/ovl_En_Hs/z_en_hs.c
+++ b/soh/src/overlays/actors/ovl_En_Hs/z_en_hs.c
@@ -12,7 +12,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnHs_Init(Actor* thisx, PlayState* play);
void EnHs_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Hs2/z_en_hs2.c b/soh/src/overlays/actors/ovl_En_Hs2/z_en_hs2.c
index 6801247ec..8b7456350 100644
--- a/soh/src/overlays/actors/ovl_En_Hs2/z_en_hs2.c
+++ b/soh/src/overlays/actors/ovl_En_Hs2/z_en_hs2.c
@@ -9,7 +9,7 @@
#include "objects/object_hs/object_hs.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnHs2_Init(Actor* thisx, PlayState* play);
void EnHs2_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Hy/z_en_hy.c b/soh/src/overlays/actors/ovl_En_Hy/z_en_hy.c
index 961106225..3a9c05640 100644
--- a/soh/src/overlays/actors/ovl_En_Hy/z_en_hy.c
+++ b/soh/src/overlays/actors/ovl_En_Hy/z_en_hy.c
@@ -18,7 +18,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnHy_Init(Actor* thisx, PlayState* play);
void EnHy_Destroy(Actor* thisx, PlayState* play);
@@ -920,7 +920,7 @@ void EnHy_InitImpl(EnHy* this, PlayState* play) {
Animation_ChangeByInfo(&this->skelAnime, sAnimationInfo, sModelInfo[this->actor.params & 0x7F].animInfoIndex);
if ((play->sceneNum == SCENE_BACK_ALLEY_DAY) || (play->sceneNum == SCENE_MARKET_DAY)) {
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actor.uncullZoneScale = 0.0f;
}
diff --git a/soh/src/overlays/actors/ovl_En_Ice_Hono/z_en_ice_hono.c b/soh/src/overlays/actors/ovl_En_Ice_Hono/z_en_ice_hono.c
index 30a24d4a2..d9059ba0b 100644
--- a/soh/src/overlays/actors/ovl_En_Ice_Hono/z_en_ice_hono.c
+++ b/soh/src/overlays/actors/ovl_En_Ice_Hono/z_en_ice_hono.c
@@ -106,7 +106,7 @@ void EnIceHono_InitCapturableFlame(Actor* thisx, PlayState* play) {
Actor_ProcessInitChain(&this->actor, sInitChainCapturableFlame);
Actor_SetScale(&this->actor, 0.0074f);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
Actor_SetFocus(&this->actor, 10.0f);
Collider_InitCylinder(play, &this->collider);
diff --git a/soh/src/overlays/actors/ovl_En_Ik/z_en_ik.c b/soh/src/overlays/actors/ovl_En_Ik/z_en_ik.c
index ea09efa20..e7b0905e9 100644
--- a/soh/src/overlays/actors/ovl_En_Ik/z_en_ik.c
+++ b/soh/src/overlays/actors/ovl_En_Ik/z_en_ik.c
@@ -11,7 +11,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
typedef void (*EnIkDrawFunc)(struct EnIk*, PlayState*);
@@ -192,7 +192,7 @@ void func_80A74398(Actor* thisx, PlayState* play) {
thisx->update = func_80A75FA0;
thisx->draw = func_80A76798;
- thisx->flags |= ACTOR_FLAG_DRAGGED_BY_HOOKSHOT;
+ thisx->flags |= ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER;
Collider_InitCylinder(play, &this->bodyCollider);
Collider_SetCylinder(play, &this->bodyCollider, thisx, &sCylinderInit);
@@ -313,7 +313,7 @@ void func_80A747C0(EnIk* this, PlayState* play) {
Audio_PlayActorSound2(&this->actor, NA_SE_EN_IRONNACK_WAKEUP);
}
if (SkelAnime_Update(&this->skelAnime)) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE;
func_80A74AAC(this);
}
}
@@ -321,7 +321,7 @@ void func_80A747C0(EnIk* this, PlayState* play) {
void func_80A7489C(EnIk* this) {
f32 frames = Animation_GetLastFrame(&object_ik_Anim_00DD50);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE;
this->unk_2F8 = 4;
this->actor.speedXZ = 0.0f;
Animation_Change(&this->skelAnime, &object_ik_Anim_00DD50, 0.0f, 0.0f, frames, ANIMMODE_LOOP, 4.0f);
@@ -1430,7 +1430,7 @@ void func_80A780D0(EnIk* this, PlayState* play) {
void func_80A78160(EnIk* this, PlayState* play) {
this->actor.update = func_80A75FA0;
this->actor.draw = func_80A76798;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE;
Flags_SetEventChkInf(EVENTCHKINF_BEGAN_NABOORU_BATTLE);
Actor_SetScale(&this->actor, 0.012f);
func_80A7489C(this);
diff --git a/soh/src/overlays/actors/ovl_En_In/z_en_in.c b/soh/src/overlays/actors/ovl_En_In/z_en_in.c
index 7bfc68dbe..852f29250 100644
--- a/soh/src/overlays/actors/ovl_En_In/z_en_in.c
+++ b/soh/src/overlays/actors/ovl_En_In/z_en_in.c
@@ -3,7 +3,7 @@
#include "objects/object_in/object_in.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnIn_Init(Actor* thisx, PlayState* play);
void EnIn_Destroy(Actor* thisx, PlayState* play);
@@ -472,7 +472,7 @@ void func_80A79C78(EnIn* this, PlayState* play) {
player->rideActor->freezeTimer = 10;
}
player->actor.freezeTimer = 10;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
ShrinkWindow_SetVal(0x20);
Interface_ChangeAlpha(2);
}
@@ -701,10 +701,10 @@ void func_80A7A568(EnIn* this, PlayState* play) {
void func_80A7A770(EnIn* this, PlayState* play) {
if (this->interactInfo.talkState == NPC_TALK_STATE_IDLE) {
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
} else if (this->interactInfo.talkState == NPC_TALK_STATE_ACTION) {
Rupees_ChangeBy(-50);
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
EnIn_ChangeAnim(this, ENIN_ANIM_3);
this->actionFunc = func_80A7A848;
gSaveContext.eventInf[0] = (gSaveContext.eventInf[0] & ~0x0F) | 7;
@@ -737,7 +737,7 @@ void func_80A7A848(EnIn* this, PlayState* play) {
void func_80A7A940(EnIn* this, PlayState* play) {
if (this->interactInfo.talkState == NPC_TALK_STATE_IDLE) {
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
return;
}
if (this->unk_1EC != 0) {
@@ -747,7 +747,7 @@ void func_80A7A940(EnIn* this, PlayState* play) {
}
}
if (this->interactInfo.talkState == NPC_TALK_STATE_ACTION) {
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
func_80A79BAC(this, play, 2, TRANS_TYPE_CIRCLE(TCA_STARBURST, TCC_BLACK, TCS_FAST));
gSaveContext.eventInf[0] = (gSaveContext.eventInf[0] & ~0x000F) | 0x0002;
gSaveContext.eventInf[0] = (gSaveContext.eventInf[0] & ~0x8000) | 0x8000;
diff --git a/soh/src/overlays/actors/ovl_En_Insect/z_en_insect.c b/soh/src/overlays/actors/ovl_En_Insect/z_en_insect.c
index 21eafc5ac..03003fb03 100644
--- a/soh/src/overlays/actors/ovl_En_Insect/z_en_insect.c
+++ b/soh/src/overlays/actors/ovl_En_Insect/z_en_insect.c
@@ -190,7 +190,7 @@ void EnInsect_Init(Actor* thisx, PlayState* play2) {
if (this->unk_314 & 4) {
this->unk_31C = Rand_S16Offset(200, 40);
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
if (temp_s2 == 2 || temp_s2 == 3) {
diff --git a/soh/src/overlays/actors/ovl_En_Ishi/z_en_ishi.c b/soh/src/overlays/actors/ovl_En_Ishi/z_en_ishi.c
index 5109e920f..641988bda 100644
--- a/soh/src/overlays/actors/ovl_En_Ishi/z_en_ishi.c
+++ b/soh/src/overlays/actors/ovl_En_Ishi/z_en_ishi.c
@@ -11,7 +11,7 @@
#include "vt.h"
-#define FLAGS ACTOR_FLAG_ALWAYS_THROWN
+#define FLAGS ACTOR_FLAG_THROW_ONLY
void EnIshi_Init(Actor* thisx, PlayState* play);
void EnIshi_Destroy(Actor* thisx, PlayState* play);
@@ -392,7 +392,7 @@ void EnIshi_Wait(EnIshi* this, PlayState* play) {
void EnIshi_SetupLiftedUp(EnIshi* this) {
this->actionFunc = EnIshi_LiftedUp;
this->actor.room = -1;
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
void EnIshi_LiftedUp(EnIshi* this, PlayState* play) {
diff --git a/soh/src/overlays/actors/ovl_En_Jj/z_en_jj.c b/soh/src/overlays/actors/ovl_En_Jj/z_en_jj.c
index 12863e4c6..d7f4be98f 100644
--- a/soh/src/overlays/actors/ovl_En_Jj/z_en_jj.c
+++ b/soh/src/overlays/actors/ovl_En_Jj/z_en_jj.c
@@ -9,7 +9,7 @@
#include "overlays/actors/ovl_Eff_Dust/z_eff_dust.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
typedef enum {
/* 0 */ JABUJABU_EYE_OPEN,
diff --git a/soh/src/overlays/actors/ovl_En_Js/z_en_js.c b/soh/src/overlays/actors/ovl_En_Js/z_en_js.c
index 48e62e400..33a7417ee 100644
--- a/soh/src/overlays/actors/ovl_En_Js/z_en_js.c
+++ b/soh/src/overlays/actors/ovl_En_Js/z_en_js.c
@@ -10,7 +10,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnJs_Init(Actor* thisx, PlayState* play);
void EnJs_Destroy(Actor* thisx, PlayState* play);
@@ -109,7 +109,7 @@ void func_80A89008(EnJs* this) {
void func_80A89078(EnJs* this, PlayState* play) {
if (Actor_TextboxIsClosing(&this->actor, play)) {
func_80A89008(this);
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
}
}
@@ -125,7 +125,7 @@ void func_80A8910C(EnJs* this, PlayState* play) {
if (Actor_TextboxIsClosing(&this->actor, play)) {
this->actor.textId = 0x6078;
En_Js_SetupAction(this, func_80A890C0);
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
}
}
diff --git a/soh/src/overlays/actors/ovl_En_Jsjutan/z_en_jsjutan.c b/soh/src/overlays/actors/ovl_En_Jsjutan/z_en_jsjutan.c
index ffd428f21..3e91679a0 100644
--- a/soh/src/overlays/actors/ovl_En_Jsjutan/z_en_jsjutan.c
+++ b/soh/src/overlays/actors/ovl_En_Jsjutan/z_en_jsjutan.c
@@ -8,7 +8,7 @@
#include "overlays/actors/ovl_En_Bom/z_en_bom.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnJsjutan_Init(Actor* thisx, PlayState* play);
void EnJsjutan_Destroy(Actor* thisx, PlayState* play);
@@ -42,7 +42,7 @@ void EnJsjutan_Init(Actor* thisx, PlayState* play) {
s32 pad;
CollisionHeader* header = NULL;
- this->dyna.actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->dyna.actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
DynaPolyActor_Init(&this->dyna, DPM_UNK);
CollisionHeader_GetVirtual(&sCol, &header);
this->dyna.bgId = DynaPoly_SetBgActor(play, &play->colCtx.dyna, thisx, header);
diff --git a/soh/src/overlays/actors/ovl_En_Kakasi/z_en_kakasi.c b/soh/src/overlays/actors/ovl_En_Kakasi/z_en_kakasi.c
index 3bea92f0d..9e71fff51 100644
--- a/soh/src/overlays/actors/ovl_En_Kakasi/z_en_kakasi.c
+++ b/soh/src/overlays/actors/ovl_En_Kakasi/z_en_kakasi.c
@@ -8,7 +8,7 @@
#include "vt.h"
#include "objects/object_ka/object_ka.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void EnKakasi_Init(Actor* thisx, PlayState* play);
void EnKakasi_Destroy(Actor* thisx, PlayState* play);
@@ -74,7 +74,7 @@ void EnKakasi_Init(Actor* thisx, PlayState* play) {
SkelAnime_InitFlex(play, &this->skelanime, &object_ka_Skel_0065B0, &object_ka_Anim_000214, NULL, NULL, 0);
this->rot = this->actor.world.rot;
- this->actor.flags |= ACTOR_FLAG_DRAGGED_BY_HOOKSHOT;
+ this->actor.flags |= ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER;
this->actor.colChkInfo.mass = MASS_IMMOVABLE;
Actor_SetScale(&this->actor, 0.01f);
diff --git a/soh/src/overlays/actors/ovl_En_Kakasi2/z_en_kakasi2.c b/soh/src/overlays/actors/ovl_En_Kakasi2/z_en_kakasi2.c
index 543564684..e45178f68 100644
--- a/soh/src/overlays/actors/ovl_En_Kakasi2/z_en_kakasi2.c
+++ b/soh/src/overlays/actors/ovl_En_Kakasi2/z_en_kakasi2.c
@@ -11,7 +11,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA | ACTOR_FLAG_NO_LOCKON)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA | ACTOR_FLAG_LOCK_ON_DISABLED)
static ColliderCylinderInit sCylinderInit = {
{
@@ -93,7 +93,7 @@ void EnKakasi2_Init(Actor* thisx, PlayState* play) {
this->actor.colChkInfo.mass = MASS_IMMOVABLE;
this->height = 60.0f;
Actor_SetScale(&this->actor, 0.01f);
- this->actor.flags |= ACTOR_FLAG_DRAGGED_BY_HOOKSHOT;
+ this->actor.flags |= ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER;
this->unk_198 = this->actor.shape.rot.y;
if (this->switchFlag >= 0 && Flags_GetSwitch(play, this->switchFlag)) {
@@ -127,7 +127,7 @@ void func_80A90264(EnKakasi2* this, PlayState* play) {
Collider_SetCylinder(play, &this->collider, &this->actor, &sCylinderInit);
SkelAnime_InitFlex(play, &this->skelAnime, &object_ka_Skel_0065B0, &object_ka_Anim_000214, NULL, NULL, 0);
OnePointCutscene_Attention(play, &this->actor);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_NO_LOCKON;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_LOCK_ON_DISABLED;
Sfx_PlaySfxCentered(NA_SE_SY_CORRECT_CHIME);
if (this->switchFlag >= 0) {
@@ -155,7 +155,7 @@ void func_80A90264(EnKakasi2* this, PlayState* play) {
OnePointCutscene_Attention(play, &this->actor);
Sfx_PlaySfxCentered(NA_SE_SY_CORRECT_CHIME);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_NO_LOCKON;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_LOCK_ON_DISABLED;
this->actionFunc = func_80A904D8;
}
}
diff --git a/soh/src/overlays/actors/ovl_En_Kakasi3/z_en_kakasi3.c b/soh/src/overlays/actors/ovl_En_Kakasi3/z_en_kakasi3.c
index e60551bd0..7dff69142 100644
--- a/soh/src/overlays/actors/ovl_En_Kakasi3/z_en_kakasi3.c
+++ b/soh/src/overlays/actors/ovl_En_Kakasi3/z_en_kakasi3.c
@@ -8,7 +8,7 @@
#include "vt.h"
#include "objects/object_ka/object_ka.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void EnKakasi3_Init(Actor* thisx, PlayState* play);
void EnKakasi3_Destroy(Actor* thisx, PlayState* play);
@@ -77,7 +77,7 @@ void EnKakasi3_Init(Actor* thisx, PlayState* play) {
Collider_InitCylinder(play, &this->collider);
Collider_SetCylinder(play, &this->collider, &this->actor, &sCylinderInit);
SkelAnime_InitFlex(play, &this->skelAnime, &object_ka_Skel_0065B0, &object_ka_Anim_000214, NULL, NULL, 0);
- this->actor.flags |= ACTOR_FLAG_DRAGGED_BY_HOOKSHOT;
+ this->actor.flags |= ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER;
this->rot = this->actor.world.rot;
this->actor.colChkInfo.mass = MASS_IMMOVABLE;
Actor_SetScale(&this->actor, 0.01f);
diff --git a/soh/src/overlays/actors/ovl_En_Kanban/z_en_kanban.c b/soh/src/overlays/actors/ovl_En_Kanban/z_en_kanban.c
index 6b48d0dd7..c29a7986e 100644
--- a/soh/src/overlays/actors/ovl_En_Kanban/z_en_kanban.c
+++ b/soh/src/overlays/actors/ovl_En_Kanban/z_en_kanban.c
@@ -9,7 +9,7 @@
#include "objects/object_kanban/object_kanban.h"
#include "vt.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
#define PART_UPPER_LEFT (1 << 0)
#define PART_LEFT_UPPER (1 << 1)
@@ -197,7 +197,7 @@ void EnKanban_Init(Actor* thisx, PlayState* play) {
Actor_SetScale(&this->actor, 0.01f);
if (this->actor.params != ENKANBAN_PIECE) {
this->actor.targetMode = 0;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
Collider_InitCylinder(play, &this->collider);
Collider_SetCylinder(play, &this->collider, &this->actor, &sCylinderInit);
osSyncPrintf("KANBAN ARG %x\n", this->actor.params);
@@ -269,7 +269,7 @@ void EnKanban_Update(Actor* thisx, PlayState* play2) {
this->zTargetTimer--;
}
if (this->zTargetTimer == 1) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
if (this->partFlags == 0xFFFF) {
EnKanban_Message(this, play);
@@ -387,8 +387,8 @@ void EnKanban_Update(Actor* thisx, PlayState* play2) {
piece->direction = -1;
}
piece->airTimer = 100;
- piece->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
- piece->actor.flags |= ACTOR_FLAG_NO_FREEZE_OCARINA;
+ piece->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
+ piece->actor.flags |= ACTOR_FLAG_UPDATE_DURING_OCARINA;
this->cutMarkTimer = 5;
Audio_PlayActorSound2(&this->actor, NA_SE_IT_SWORD_STRIKE);
}
@@ -399,7 +399,7 @@ void EnKanban_Update(Actor* thisx, PlayState* play2) {
CollisionCheck_SetAC(play, &play->colChkCtx, &this->collider.base);
CollisionCheck_SetOC(play, &play->colChkCtx, &this->collider.base);
if (this->actor.xzDistToPlayer > 500.0f) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->partFlags = 0xFFFF;
}
if (this->cutMarkTimer != 0) {
@@ -755,7 +755,7 @@ void EnKanban_Update(Actor* thisx, PlayState* play2) {
((pDiff + yDiff + rDiff + this->spinRot.x + this->spinRot.z) == 0) && (this->floorRot.x == 0.0f) &&
(this->floorRot.z == 0.0f)) {
signpost->partFlags |= this->partFlags;
- signpost->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ signpost->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
Actor_Kill(&this->actor);
}
} break;
diff --git a/soh/src/overlays/actors/ovl_En_Karebaba/z_en_karebaba.c b/soh/src/overlays/actors/ovl_En_Karebaba/z_en_karebaba.c
index 449653b9a..4066255b5 100644
--- a/soh/src/overlays/actors/ovl_En_Karebaba/z_en_karebaba.c
+++ b/soh/src/overlays/actors/ovl_En_Karebaba/z_en_karebaba.c
@@ -11,7 +11,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE)
void EnKarebaba_Init(Actor* thisx, PlayState* play);
void EnKarebaba_Destroy(Actor* thisx, PlayState* play);
@@ -182,7 +182,7 @@ void EnKarebaba_SetupDying(EnKarebaba* this) {
this->actor.world.rot.y = this->actor.shape.rot.y + 0x8000;
this->actor.speedXZ = 3.0f;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEKU_JR_DEAD);
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED;
this->actionFunc = EnKarebaba_Dying;
GameInteractor_ExecuteOnEnemyDefeat(&this->actor);
}
@@ -196,7 +196,7 @@ void EnKarebaba_SetupDeadItemDrop(EnKarebaba* this, PlayState* play) {
this->actor.shape.shadowScale = 3.0f;
Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_MISC);
this->actor.params = 200;
- this->actor.flags &= ~ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_DRAW_CULLING_DISABLED;
this->actionFunc = EnKarebaba_DeadItemDrop;
}
@@ -333,7 +333,7 @@ void EnKarebaba_Dying(EnKarebaba* this, PlayState* play) {
if (this->actor.scale.x > 0.005f && ((this->actor.bgCheckFlags & 2) || (this->actor.bgCheckFlags & 8))) {
this->actor.scale.x = this->actor.scale.y = this->actor.scale.z = 0.0f;
this->actor.speedXZ = 0.0f;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE);
EffectSsHahen_SpawnBurst(play, &this->actor.world.pos, 3.0f, 0, 12, 5, 15, HAHEN_OBJECT_DEFAULT, 10,
NULL);
}
@@ -405,8 +405,8 @@ void EnKarebaba_Regrow(EnKarebaba* this, PlayState* play) {
this->actor.world.pos.y = this->actor.home.pos.y + (14.0f * scaleFactor);
if (this->actor.params == 20) {
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE;
Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_ENEMY);
EnKarebaba_SetupIdle(this);
}
diff --git a/soh/src/overlays/actors/ovl_En_Ko/z_en_ko.c b/soh/src/overlays/actors/ovl_En_Ko/z_en_ko.c
index dc069b7a8..33c86821f 100644
--- a/soh/src/overlays/actors/ovl_En_Ko/z_en_ko.c
+++ b/soh/src/overlays/actors/ovl_En_Ko/z_en_ko.c
@@ -15,7 +15,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
#define ENKO_TYPE (this->actor.params & 0xFF)
#define ENKO_PATH ((this->actor.params & 0xFF00) >> 8)
@@ -1097,9 +1097,9 @@ void func_80A98DB4(EnKo* this, PlayState* play) {
}
if (this->modelAlpha < 10.0f) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
} else {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
}
}
@@ -1143,7 +1143,7 @@ void EnKo_Destroy(Actor* thisx, PlayState* play) {
void func_80A99048(EnKo* this, PlayState* play) {
if (EnKo_IsOsAnimeLoaded(this, play) && EnKo_AreObjectsLoaded(this, play)) {
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actor.objBankIndex = this->legsObjectBankIdx;
gSegments[6] = VIRTUAL_TO_PHYSICAL(play->objectCtx.status[this->actor.objBankIndex].segment);
SkelAnime_InitFlex(play, &this->skelAnime, sSkeleton[sModelInfo[ENKO_TYPE].legsId].flexSkeletonHeader,
diff --git a/soh/src/overlays/actors/ovl_En_Kusa/z_en_kusa.c b/soh/src/overlays/actors/ovl_En_Kusa/z_en_kusa.c
index 07274cad4..49623c850 100644
--- a/soh/src/overlays/actors/ovl_En_Kusa/z_en_kusa.c
+++ b/soh/src/overlays/actors/ovl_En_Kusa/z_en_kusa.c
@@ -11,7 +11,7 @@
#include "objects/object_kusa/object_kusa.h"
#include "vt.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_ALWAYS_THROWN)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_THROW_ONLY)
void EnKusa_Init(Actor* thisx, PlayState* play);
void EnKusa_Destroy(Actor* thisx, PlayState* play);
@@ -282,7 +282,7 @@ void EnKusa_SetupWaitObject(EnKusa* this) {
void EnKusa_WaitObject(EnKusa* this, PlayState* play) {
if (Object_IsLoaded(&play->objectCtx, this->objBankIndex)) {
- if (this->actor.flags & ACTOR_FLAG_ENKUSA_CUT) {
+ if (this->actor.flags & ACTOR_FLAG_GRASS_DESTROYED) {
EnKusa_SetupCut(this);
} else {
EnKusa_SetupMain(this);
@@ -290,13 +290,13 @@ void EnKusa_WaitObject(EnKusa* this, PlayState* play) {
this->actor.draw = EnKusa_Draw;
this->actor.objBankIndex = this->objBankIndex;
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
}
void EnKusa_SetupMain(EnKusa* this) {
EnKusa_SetupAction(this, EnKusa_Main);
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
void EnKusa_Main(EnKusa* this, PlayState* play) {
@@ -322,7 +322,7 @@ void EnKusa_Main(EnKusa* this, PlayState* play) {
}
EnKusa_SetupCut(this);
- this->actor.flags |= ACTOR_FLAG_ENKUSA_CUT;
+ this->actor.flags |= ACTOR_FLAG_GRASS_DESTROYED;
} else {
if (!(this->collider.base.ocFlags1 & OC1_TYPE_PLAYER) && (this->actor.xzDistToPlayer > 12.0f)) {
this->collider.base.ocFlags1 |= OC1_TYPE_PLAYER;
@@ -345,7 +345,7 @@ void EnKusa_Main(EnKusa* this, PlayState* play) {
void EnKusa_SetupLiftedUp(EnKusa* this) {
EnKusa_SetupAction(this, EnKusa_LiftedUp);
this->actor.room = -1;
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
void EnKusa_LiftedUp(EnKusa* this, PlayState* play) {
@@ -468,7 +468,7 @@ void EnKusa_SetupRegrow(EnKusa* this) {
EnKusa_SetupAction(this, EnKusa_Regrow);
EnKusa_SetScaleSmall(this);
this->actor.shape.rot = this->actor.home.rot;
- this->actor.flags &= ~ACTOR_FLAG_ENKUSA_CUT;
+ this->actor.flags &= ~ACTOR_FLAG_GRASS_DESTROYED;
}
void EnKusa_Regrow(EnKusa* this, PlayState* play) {
@@ -492,7 +492,7 @@ void EnKusa_Update(Actor* thisx, PlayState* play) {
this->actionFunc(this, play);
- if (this->actor.flags & ACTOR_FLAG_ENKUSA_CUT) {
+ if (this->actor.flags & ACTOR_FLAG_GRASS_DESTROYED) {
this->actor.shape.yOffset = -6.25f;
} else {
this->actor.shape.yOffset = 0.0f;
@@ -503,7 +503,7 @@ void EnKusa_Draw(Actor* thisx, PlayState* play) {
static Gfx* dLists[] = { gFieldBushDL, object_kusa_DL_000140, object_kusa_DL_000140 };
EnKusa* this = (EnKusa*)thisx;
- if (this->actor.flags & ACTOR_FLAG_ENKUSA_CUT) {
+ if (this->actor.flags & ACTOR_FLAG_GRASS_DESTROYED) {
Gfx_DrawDListOpa(play, object_kusa_DL_0002E0);
} else {
Gfx_DrawDListOpa(play, dLists[thisx->params & 3]);
diff --git a/soh/src/overlays/actors/ovl_En_Kz/z_en_kz.c b/soh/src/overlays/actors/ovl_En_Kz/z_en_kz.c
index 22e0fa413..7e0a3521e 100644
--- a/soh/src/overlays/actors/ovl_En_Kz/z_en_kz.c
+++ b/soh/src/overlays/actors/ovl_En_Kz/z_en_kz.c
@@ -11,7 +11,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnKz_Init(Actor* thisx, PlayState* play);
void EnKz_Destroy(Actor* thisx, PlayState* play);
@@ -242,11 +242,11 @@ s32 func_80A9C95C(PlayState* play, EnKz* this, s16* talkState, f32 unkf, NpcGetT
yaw = Math_Vec3f_Yaw(&this->actor.home.pos, &player->actor.world.pos);
yaw -= this->actor.shape.rot.y;
if ((fabsf(yaw) > 1638.0f) || (this->actor.xzDistToPlayer < 265.0f)) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
return 0;
}
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
}
Actor_GetScreenPos(play, &this->actor, &sp32, &sp30);
@@ -281,11 +281,11 @@ void func_80A9CB18(EnKz* this, PlayState* play) {
yaw = Math_Vec3f_Yaw(&this->actor.home.pos, &player->actor.world.pos);
yaw -= this->actor.shape.rot.y;
if ((fabsf(yaw) > 1638.0f) || (this->actor.xzDistToPlayer < 265.0f)) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
return;
}
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
}
if (func_80A9C95C(play, this, &this->interactInfo.talkState, 340.0f, EnKz_GetText, func_80A9C6C0)) {
diff --git a/soh/src/overlays/actors/ovl_En_Lightbox/z_en_lightbox.c b/soh/src/overlays/actors/ovl_En_Lightbox/z_en_lightbox.c
index 5f7aae79a..67e33f54f 100644
--- a/soh/src/overlays/actors/ovl_En_Lightbox/z_en_lightbox.c
+++ b/soh/src/overlays/actors/ovl_En_Lightbox/z_en_lightbox.c
@@ -7,7 +7,7 @@
#include "z_en_lightbox.h"
#include "objects/object_lightbox/object_lightbox.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnLightbox_Init(Actor* thisx, PlayState* play);
void EnLightbox_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Ma1/z_en_ma1.c b/soh/src/overlays/actors/ovl_En_Ma1/z_en_ma1.c
index e4ceacfb2..029c2548b 100644
--- a/soh/src/overlays/actors/ovl_En_Ma1/z_en_ma1.c
+++ b/soh/src/overlays/actors/ovl_En_Ma1/z_en_ma1.c
@@ -9,7 +9,7 @@
#include "soh/OTRGlobals.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void EnMa1_Init(Actor* thisx, PlayState* play);
void EnMa1_Destroy(Actor* thisx, PlayState* play);
@@ -369,7 +369,7 @@ void func_80AA0F44(EnMa1* this, PlayState* play) {
this->actor.textId = 0x2061;
Message_StartTextbox(play, this->actor.textId, NULL);
this->interactInfo.talkState = NPC_TALK_STATE_TALKING;
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
this->actionFunc = func_80AA106C;
} else if (this->actor.xzDistToPlayer < 30.0f + (f32)this->collider.dim.radius) {
player->stateFlags2 |= PLAYER_STATE2_NEAR_OCARINA_ACTOR;
@@ -382,7 +382,7 @@ void func_80AA106C(EnMa1* this, PlayState* play) {
if (this->interactInfo.talkState == NPC_TALK_STATE_ACTION) {
Audio_OcaSetInstrument(2);
func_8010BD58(play, OCARINA_ACTION_TEACH_EPONA);
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
this->actionFunc = func_80AA10EC;
}
}
diff --git a/soh/src/overlays/actors/ovl_En_Ma2/z_en_ma2.c b/soh/src/overlays/actors/ovl_En_Ma2/z_en_ma2.c
index 248d5a8c4..f1c71ac47 100644
--- a/soh/src/overlays/actors/ovl_En_Ma2/z_en_ma2.c
+++ b/soh/src/overlays/actors/ovl_En_Ma2/z_en_ma2.c
@@ -1,7 +1,7 @@
#include "z_en_ma2.h"
#include "objects/object_ma2/object_ma2.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void EnMa2_Init(Actor* thisx, PlayState* play);
void EnMa2_Destroy(Actor* thisx, PlayState* play);
@@ -257,7 +257,7 @@ void EnMa2_Destroy(Actor* thisx, PlayState* play) {
void func_80AA2018(EnMa2* this, PlayState* play) {
if (this->interactInfo.talkState == NPC_TALK_STATE_ACTION) {
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
this->interactInfo.talkState = NPC_TALK_STATE_IDLE;
}
}
@@ -299,10 +299,10 @@ void func_80AA21C8(EnMa2* this, PlayState* play) {
player->stateFlags2 |= PLAYER_STATE2_NEAR_OCARINA_ACTOR;
} else {
if (this->interactInfo.talkState == NPC_TALK_STATE_IDLE) {
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
Message_CloseTextbox(play);
} else {
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
this->actionFunc = func_80AA2018;
}
}
diff --git a/soh/src/overlays/actors/ovl_En_Ma3/z_en_ma3.c b/soh/src/overlays/actors/ovl_En_Ma3/z_en_ma3.c
index ad93a3755..d95d2afcd 100644
--- a/soh/src/overlays/actors/ovl_En_Ma3/z_en_ma3.c
+++ b/soh/src/overlays/actors/ovl_En_Ma3/z_en_ma3.c
@@ -7,7 +7,7 @@
#include "z_en_ma3.h"
#include "objects/object_ma2/object_ma2.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnMa3_Init(Actor* thisx, PlayState* play);
void EnMa3_Destroy(Actor* thisx, PlayState* play);
@@ -82,7 +82,7 @@ u16 func_80AA2AA0(PlayState* play, Actor* thisx) {
timer1ValuePtr = &gSaveContext.timer1Value;
if (gSaveContext.eventInf[0] & 0x400) {
gSaveContext.timer1Value = gSaveContext.timer1Value;
- thisx->flags |= ACTOR_FLAG_WILL_TALK;
+ thisx->flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
if (gSaveContext.timer1Value >= 0xD3) {
return 0x208E;
}
@@ -152,7 +152,7 @@ s16 func_80AA2BD4(PlayState* play, Actor* thisx) {
}
case 0x208E:
gSaveContext.eventInf[0] &= ~0x400;
- thisx->flags &= ~ACTOR_FLAG_WILL_TALK;
+ thisx->flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
ret = NPC_TALK_STATE_IDLE;
gSaveContext.timer1State = 0xA;
break;
@@ -277,7 +277,7 @@ void EnMa3_Destroy(Actor* thisx, PlayState* play) {
void func_80AA3200(EnMa3* this, PlayState* play) {
if (this->interactInfo.talkState == NPC_TALK_STATE_ACTION) {
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
this->interactInfo.talkState = NPC_TALK_STATE_IDLE;
}
}
diff --git a/soh/src/overlays/actors/ovl_En_Mag/z_en_mag.c b/soh/src/overlays/actors/ovl_En_Mag/z_en_mag.c
index 48710d4a3..558a18796 100644
--- a/soh/src/overlays/actors/ovl_En_Mag/z_en_mag.c
+++ b/soh/src/overlays/actors/ovl_En_Mag/z_en_mag.c
@@ -9,7 +9,7 @@
#include <soh/GameVersions.h>
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnMag_Init(Actor* thisx, PlayState* play);
void EnMag_InitMq(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Mb/z_en_mb.c b/soh/src/overlays/actors/ovl_En_Mb/z_en_mb.c
index 96bcac036..bdd9cb6e8 100644
--- a/soh/src/overlays/actors/ovl_En_Mb/z_en_mb.c
+++ b/soh/src/overlays/actors/ovl_En_Mb/z_en_mb.c
@@ -16,7 +16,7 @@
* - "Spear Patrol" (variable 0xPP00 PP=pathId): uses a spear, patrols following a path, charges
*/
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
typedef enum {
/* -1 */ ENMB_TYPE_SPEAR_GUARD = -1,
@@ -310,7 +310,7 @@ void EnMb_Init(Actor* thisx, PlayState* play) {
}
ActorShape_Init(&this->actor.shape, 0.0f, ActorShadow_DrawFeet, 90.0f);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.naviEnemyId += 1;
EnMb_SetupClubWaitPlayerNear(this);
break;
@@ -326,7 +326,7 @@ void EnMb_Init(Actor* thisx, PlayState* play) {
this->actor.colChkInfo.mass = MASS_HEAVY;
this->maxHomeDist = 350.0f;
this->playerDetectionRange = 1750.0f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
EnMb_SetupSpearPatrolTurnTowardsWaypoint(this, play);
break;
}
@@ -586,7 +586,7 @@ void EnMb_SetupClubDamagedWhileKneeling(EnMb* this) {
void EnMb_SetupClubDead(EnMb* this) {
Animation_MorphToPlayOnce(&this->skelAnime, &gEnMbClubFallOnItsBackAnim, -4.0f);
this->state = ENMB_STATE_CLUB_DEAD;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->hitbox.dim.height = 80;
this->hitbox.dim.radius = 95;
this->timer1 = 30;
@@ -1166,12 +1166,12 @@ void EnMb_SpearGuardWalk(EnMb* this, PlayState* play) {
if (this->timer3 == 0 &&
Math_Vec3f_DistXZ(&this->actor.home.pos, &player->actor.world.pos) < this->playerDetectionRange) {
Math_SmoothStepToS(&this->actor.world.rot.y, this->actor.yawTowardsPlayer, 1, 0x2EE, 0);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
if (this->actor.xzDistToPlayer < 500.0f && relYawTowardsPlayer < 0x1388) {
EnMb_SetupSpearPrepareAndCharge(this);
}
} else {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if (Math_Vec3f_DistXZ(&this->actor.world.pos, &this->actor.home.pos) > this->maxHomeDist || this->timer2 != 0) {
yawTowardsHome = Math_Vec3f_Yaw(&this->actor.world.pos, &this->actor.home.pos);
Math_SmoothStepToS(&this->actor.world.rot.y, yawTowardsHome, 1, 0x2EE, 0);
@@ -1331,7 +1331,7 @@ void EnMb_SetupSpearDead(EnMb* this) {
this->timer1 = 30;
this->state = ENMB_STATE_SPEAR_SPEARPATH_DAMAGED;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_DEAD);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
EnMb_SetupAction(this, EnMb_SpearDead);
}
diff --git a/soh/src/overlays/actors/ovl_En_Md/z_en_md.c b/soh/src/overlays/actors/ovl_En_Md/z_en_md.c
index 27e8fcdf2..ef03f1fb5 100644
--- a/soh/src/overlays/actors/ovl_En_Md/z_en_md.c
+++ b/soh/src/overlays/actors/ovl_En_Md/z_en_md.c
@@ -10,7 +10,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void EnMd_Init(Actor* thisx, PlayState* play);
void EnMd_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Mk/z_en_mk.c b/soh/src/overlays/actors/ovl_En_Mk/z_en_mk.c
index f742b4671..b1891a296 100644
--- a/soh/src/overlays/actors/ovl_En_Mk/z_en_mk.c
+++ b/soh/src/overlays/actors/ovl_En_Mk/z_en_mk.c
@@ -11,7 +11,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnMk_Init(Actor* thisx, PlayState* play);
void EnMk_Destroy(Actor* thisx, PlayState* play);
@@ -88,7 +88,7 @@ void EnMk_Destroy(Actor* thisx, PlayState* play) {
void func_80AACA40(EnMk* this, PlayState* play) {
if (Actor_TextboxIsClosing(&this->actor, play)) {
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
this->actionFunc = EnMk_Wait;
}
diff --git a/soh/src/overlays/actors/ovl_En_Mm/z_en_mm.c b/soh/src/overlays/actors/ovl_En_Mm/z_en_mm.c
index 2b9733f1c..e72a174f8 100644
--- a/soh/src/overlays/actors/ovl_En_Mm/z_en_mm.c
+++ b/soh/src/overlays/actors/ovl_En_Mm/z_en_mm.c
@@ -9,7 +9,7 @@
#include "objects/object_link_child/object_link_child.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
typedef enum {
/* 0 */ RM_ANIM_RUN,
diff --git a/soh/src/overlays/actors/ovl_En_Mm2/z_en_mm2.c b/soh/src/overlays/actors/ovl_En_Mm2/z_en_mm2.c
index 2226dbdea..32cc9e3e0 100644
--- a/soh/src/overlays/actors/ovl_En_Mm2/z_en_mm2.c
+++ b/soh/src/overlays/actors/ovl_En_Mm2/z_en_mm2.c
@@ -9,7 +9,7 @@
#include "objects/object_mm/object_mm.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
typedef enum {
/* 0 */ RM2_ANIM_RUN,
diff --git a/soh/src/overlays/actors/ovl_En_Ms/z_en_ms.c b/soh/src/overlays/actors/ovl_En_Ms/z_en_ms.c
index dc3966357..0eb63c1a0 100644
--- a/soh/src/overlays/actors/ovl_En_Ms/z_en_ms.c
+++ b/soh/src/overlays/actors/ovl_En_Ms/z_en_ms.c
@@ -10,7 +10,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnMs_Init(Actor* thisx, PlayState* play);
void EnMs_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Mu/z_en_mu.c b/soh/src/overlays/actors/ovl_En_Mu/z_en_mu.c
index d37b8d1ff..614b88a70 100644
--- a/soh/src/overlays/actors/ovl_En_Mu/z_en_mu.c
+++ b/soh/src/overlays/actors/ovl_En_Mu/z_en_mu.c
@@ -7,7 +7,7 @@
#include "z_en_mu.h"
#include "objects/object_mu/object_mu.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnMu_Init(Actor* thisx, PlayState* play);
void EnMu_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Nb/z_en_nb.c b/soh/src/overlays/actors/ovl_En_Nb/z_en_nb.c
index ace23084e..36e9fbd8b 100644
--- a/soh/src/overlays/actors/ovl_En_Nb/z_en_nb.c
+++ b/soh/src/overlays/actors/ovl_En_Nb/z_en_nb.c
@@ -11,7 +11,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
typedef enum {
/* 0x00 */ NB_CHAMBER_INIT,
@@ -1117,7 +1117,7 @@ void EnNb_CrawlspaceSpawnCheck(EnNb* this, PlayState* play) {
} else {
EnNb_SetCurrentAnim(this, &gNabooruStandingHandsOnHipsAnim, 0, 0.0f, 0);
this->headTurnFlag = 1;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
this->actor.world.pos = this->finalPos;
this->action = NB_IDLE_AFTER_TALK;
this->drawMode = NB_DRAW_DEFAULT;
@@ -1196,7 +1196,7 @@ void EnNb_SetupIdleCrawlspace(EnNb* this, s32 animFinished) {
if (animFinished) {
EnNb_SetCurrentAnim(this, &gNabooruStandingHandsOnHipsAnim, 0, -8.0f, 0);
this->headTurnFlag = 1;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
this->action = NB_IDLE_CRAWLSPACE;
}
}
@@ -1205,7 +1205,7 @@ void func_80AB3838(EnNb* this, PlayState* play) {
if (Actor_ProcessTalkRequest(&this->actor, play)) {
this->action = NB_IN_DIALOG;
} else {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
if (!Flags_GetInfTable(INFTABLE_16C)) {
this->actor.textId = 0x601D;
@@ -1221,7 +1221,7 @@ void EnNb_SetupPathMovement(EnNb* this, PlayState* play) {
EnNb_SetCurrentAnim(this, &gNabooruStandingToWalkingTransitionAnim, 2, -8.0f, 0);
Flags_SetEventChkInf(EVENTCHKINF_SPOKE_TO_NABOORU_IN_SPIRIT_TEMPLE);
this->action = NB_IN_PATH;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
}
void EnNb_SetTextIdAsChild(EnNb* this, PlayState* play) {
@@ -1241,7 +1241,7 @@ void EnNb_SetTextIdAsChild(EnNb* this, PlayState* play) {
}
this->action = NB_IDLE_CRAWLSPACE;
}
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
} else if ((Message_GetState(&play->msgCtx) == TEXT_STATE_CHOICE) && Message_ShouldAdvance(play)) {
choiceIndex = play->msgCtx.choiceIndex;
@@ -1297,7 +1297,7 @@ void func_80AB3B04(EnNb* this, PlayState* play) {
if (Actor_ProcessTalkRequest(&this->actor, play)) {
this->action = NB_ACTION_30;
} else {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
this->actor.textId = Text_GetFaceReaction(play, 0x23);
if ((this->actor.textId) == 0) {
@@ -1311,7 +1311,7 @@ void func_80AB3B04(EnNb* this, PlayState* play) {
void func_80AB3B7C(EnNb* this, PlayState* play) {
if (Message_GetState(&play->msgCtx) == TEXT_STATE_CLOSING) {
this->action = NB_IDLE_AFTER_TALK;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
}
}
diff --git a/soh/src/overlays/actors/ovl_En_Niw/z_en_niw.c b/soh/src/overlays/actors/ovl_En_Niw/z_en_niw.c
index 203a7af59..8b88abac5 100644
--- a/soh/src/overlays/actors/ovl_En_Niw/z_en_niw.c
+++ b/soh/src/overlays/actors/ovl_En_Niw/z_en_niw.c
@@ -11,7 +11,7 @@
#include "soh/frame_interpolation.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_ALWAYS_THROWN)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_THROW_ONLY)
void EnNiw_Init(Actor* thisx, PlayState* play);
void EnNiw_Destroy(Actor* thisx, PlayState* play);
@@ -154,7 +154,7 @@ void EnNiw_Init(Actor* thisx, PlayState* play) {
}
Actor_ProcessInitChain(&this->actor, sInitChain);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
ActorShape_Init(&this->actor.shape, 0.0f, ActorShadow_DrawCircle, 25.0f);
SkelAnime_InitFlex(play, &this->skelAnime, &gCuccoSkel, &gCuccoAnim, this->jointTable, this->morphTable, 16);
@@ -214,7 +214,7 @@ void EnNiw_Init(Actor* thisx, PlayState* play) {
this->actor.gravity = 0.0f;
case 0xE:
this->actor.colChkInfo.mass = 0;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
break;
case 4:
this->actor.gravity = 0.0f;
@@ -463,7 +463,7 @@ void func_80AB6450(EnNiw* this, PlayState* play) {
this->sfxTimer1 = 30;
this->path = 0;
this->timer4 = 30;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.speedXZ = 0.0f;
this->actionFunc = func_80AB6BF8;
} else {
@@ -485,7 +485,7 @@ void func_80AB6570(EnNiw* this, PlayState* play) {
this->sfxTimer1 = 30;
this->path = 0;
this->timer4 = 30;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.speedXZ = 0.0f;
this->actionFunc = func_80AB6BF8;
return;
@@ -642,7 +642,7 @@ void func_80AB6BF8(EnNiw* this, PlayState* play) {
this->actor.shape.rot.z = 0;
this->actor.shape.rot.y = this->actor.shape.rot.z;
this->actor.shape.rot.x = this->actor.shape.rot.z;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = func_80AB6D08;
}
func_80AB5BF8(this, play, 2);
@@ -690,7 +690,7 @@ void func_80AB6D08(EnNiw* this, PlayState* play) {
this->sfxTimer1 = 30;
this->path = 0;
this->timer4 = 30;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.speedXZ = 0.0f;
this->actionFunc = func_80AB6BF8;
} else {
@@ -803,7 +803,7 @@ void func_80AB714C(EnNiw* this, PlayState* play) {
if (this->timer5 == 0) {
this->timer7 = 10;
this->unk_2E4 = this->actor.yawTowardsPlayer;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = func_80AB7204;
}
diff --git a/soh/src/overlays/actors/ovl_En_Niw_Girl/z_en_niw_girl.c b/soh/src/overlays/actors/ovl_En_Niw_Girl/z_en_niw_girl.c
index ffb752c6c..a070813ca 100644
--- a/soh/src/overlays/actors/ovl_En_Niw_Girl/z_en_niw_girl.c
+++ b/soh/src/overlays/actors/ovl_En_Niw_Girl/z_en_niw_girl.c
@@ -9,7 +9,7 @@
#include "vt.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnNiwGirl_Init(Actor* thisx, PlayState* play);
void EnNiwGirl_Destroy(Actor* thisx, PlayState* play);
@@ -102,7 +102,7 @@ void EnNiwGirl_Destroy(Actor* thisx, PlayState* play) {
void EnNiwGirl_Jump(EnNiwGirl* this, PlayState* play) {
f32 frameCount = Animation_GetLastFrame(&gNiwGirlRunAnim);
Animation_Change(&this->skelAnime, &gNiwGirlRunAnim, 1.0f, 0.0f, frameCount, 0, -10.0f);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = func_80AB9210;
}
@@ -143,7 +143,7 @@ void func_80AB9210(EnNiwGirl* this, PlayState* play) {
void EnNiwGirl_Talk(EnNiwGirl* this, PlayState* play) {
Animation_Change(&this->skelAnime, &gNiwGirlJumpAnim, 1.0f, 0.0f, Animation_GetLastFrame(&gNiwGirlJumpAnim), 0,
-10.0f);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.textId = 0x7000;
if ((Flags_GetEventChkInf(EVENTCHKINF_ZELDA_FLED_HYRULE_CASTLE)) && (this->unk_27A == 0)) {
this->actor.textId = 0x70EA;
diff --git a/soh/src/overlays/actors/ovl_En_Niw_Lady/z_en_niw_lady.c b/soh/src/overlays/actors/ovl_En_Niw_Lady/z_en_niw_lady.c
index 31d5230ae..2c3b2bbe5 100644
--- a/soh/src/overlays/actors/ovl_En_Niw_Lady/z_en_niw_lady.c
+++ b/soh/src/overlays/actors/ovl_En_Niw_Lady/z_en_niw_lady.c
@@ -8,7 +8,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnNiwLady_Init(Actor* thisx, PlayState* play);
void EnNiwLady_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Nutsball/z_en_nutsball.c b/soh/src/overlays/actors/ovl_En_Nutsball/z_en_nutsball.c
index 34afa674f..4bdedbb7e 100644
--- a/soh/src/overlays/actors/ovl_En_Nutsball/z_en_nutsball.c
+++ b/soh/src/overlays/actors/ovl_En_Nutsball/z_en_nutsball.c
@@ -13,7 +13,7 @@
#include "objects/object_dns/object_dns.h"
#include "objects/object_dnk/object_dnk.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnNutsball_Init(Actor* thisx, PlayState* play);
void EnNutsball_Destroy(Actor* thisx, PlayState* play);
@@ -163,7 +163,7 @@ void EnNutsball_Update(Actor* thisx, PlayState* play) {
Actor_UpdateBgCheckInfo(play, &this->actor, 10, sCylinderInit.dim.radius, sCylinderInit.dim.height, 5);
Collider_UpdateCylinder(&this->actor, &this->collider);
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
CollisionCheck_SetAT(play, &play->colChkCtx, &this->collider.base);
CollisionCheck_SetAC(play, &play->colChkCtx, &this->collider.base);
diff --git a/soh/src/overlays/actors/ovl_En_Nwc/z_en_nwc.c b/soh/src/overlays/actors/ovl_En_Nwc/z_en_nwc.c
index 963f54b96..fb430cbbf 100644
--- a/soh/src/overlays/actors/ovl_En_Nwc/z_en_nwc.c
+++ b/soh/src/overlays/actors/ovl_En_Nwc/z_en_nwc.c
@@ -8,7 +8,7 @@
#include "objects/object_nwc/object_nwc.h"
#include "soh/frame_interpolation.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnNwc_Init(Actor* thisx, PlayState* play);
void EnNwc_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Ny/z_en_ny.c b/soh/src/overlays/actors/ovl_En_Ny/z_en_ny.c
index 5ce3f9380..0a1f28136 100644
--- a/soh/src/overlays/actors/ovl_En_Ny/z_en_ny.c
+++ b/soh/src/overlays/actors/ovl_En_Ny/z_en_ny.c
@@ -3,7 +3,7 @@
#include "soh/frame_interpolation.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE)
void EnNy_Init(Actor* thisx, PlayState* play);
void EnNy_Destroy(Actor* thisx, PlayState* play);
@@ -334,7 +334,7 @@ s32 EnNy_CollisionCheck(EnNy* this, PlayState* play) {
this->stoneTimer = 0;
if (this->actor.colChkInfo.health == 0) {
this->actor.shape.shadowAlpha = 0;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->unk_1D0 = sp3F;
Enemy_StartFinishingBlow(play, &this->actor);
return 1;
diff --git a/soh/src/overlays/actors/ovl_En_OE2/z_en_oe2.c b/soh/src/overlays/actors/ovl_En_OE2/z_en_oe2.c
index b8ea6092e..521750871 100644
--- a/soh/src/overlays/actors/ovl_En_OE2/z_en_oe2.c
+++ b/soh/src/overlays/actors/ovl_En_OE2/z_en_oe2.c
@@ -6,7 +6,7 @@
#include "z_en_oe2.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnOE2_Init(Actor* thisx, PlayState* play);
void EnOE2_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Okarina_Effect/z_en_okarina_effect.c b/soh/src/overlays/actors/ovl_En_Okarina_Effect/z_en_okarina_effect.c
index 9daa4f501..0d3519e3d 100644
--- a/soh/src/overlays/actors/ovl_En_Okarina_Effect/z_en_okarina_effect.c
+++ b/soh/src/overlays/actors/ovl_En_Okarina_Effect/z_en_okarina_effect.c
@@ -7,7 +7,7 @@
#include "z_en_okarina_effect.h"
#include "vt.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void EnOkarinaEffect_Init(Actor* thisx, PlayState* play);
void EnOkarinaEffect_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Okarina_Tag/z_en_okarina_tag.c b/soh/src/overlays/actors/ovl_En_Okarina_Tag/z_en_okarina_tag.c
index b0d9ecda4..10f6a5207 100644
--- a/soh/src/overlays/actors/ovl_En_Okarina_Tag/z_en_okarina_tag.c
+++ b/soh/src/overlays/actors/ovl_En_Okarina_Tag/z_en_okarina_tag.c
@@ -11,7 +11,7 @@
#include "soh/OTRGlobals.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void EnOkarinaTag_Init(Actor* thisx, PlayState* play);
void EnOkarinaTag_Destroy(Actor* thisx, PlayState* play);
@@ -49,7 +49,7 @@ void EnOkarinaTag_Init(Actor* thisx, PlayState* play) {
osSyncPrintf("\n\n");
// "Ocarina tag outbreak"
osSyncPrintf(VT_FGCOL(GREEN) "☆☆☆☆☆ オカリナタグ発生 ☆☆☆☆☆ %x\n" VT_RST, this->actor.params);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->type = (this->actor.params >> 0xA) & 0x3F;
this->ocarinaSong = (this->actor.params >> 6) & 0xF;
this->switchFlag = this->actor.params & 0x3F;
@@ -114,7 +114,7 @@ void func_80ABEF2C(EnOkarinaTag* this, PlayState* play) {
player = GET_PLAYER(play);
this->unk_15A++;
if ((this->switchFlag >= 0) && (Flags_GetSwitch(play, this->switchFlag))) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
} else {
if ((this->ocarinaSong != 6) || (gSaveContext.scarecrowSpawnSongSet)) {
if (player->stateFlags2 & PLAYER_STATE2_ATTEMPT_PLAY_FOR_ACTOR) {
@@ -193,7 +193,7 @@ void func_80ABF28C(EnOkarinaTag* this, PlayState* play) {
this->unk_15A++;
if ((this->ocarinaSong != 6) || (gSaveContext.scarecrowSpawnSongSet)) {
if ((this->switchFlag >= 0) && Flags_GetSwitch(play, this->switchFlag)) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
} else if (((this->type != 4) || GameInteractor_Should(VB_BE_ELIGIBLE_TO_OPEN_DOT, !Flags_GetEventChkInf(EVENTCHKINF_OPENED_THE_DOOR_OF_TIME), this)) &&
((this->type != 6) || !Flags_GetEventChkInf(EVENTCHKINF_DESTROYED_ROYAL_FAMILY_TOMB)) &&
(this->actor.xzDistToPlayer < (90.0f + this->interactRange)) &&
diff --git a/soh/src/overlays/actors/ovl_En_Okuta/z_en_okuta.c b/soh/src/overlays/actors/ovl_En_Okuta/z_en_okuta.c
index 60a3452a0..a01ceb350 100644
--- a/soh/src/overlays/actors/ovl_En_Okuta/z_en_okuta.c
+++ b/soh/src/overlays/actors/ovl_En_Okuta/z_en_okuta.c
@@ -4,7 +4,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE)
void EnOkuta_Init(Actor* thisx, PlayState* play);
void EnOkuta_Destroy(Actor* thisx, PlayState* play);
@@ -149,8 +149,8 @@ void EnOkuta_Init(Actor* thisx, PlayState* play) {
EnOkuta_SetupWaitToAppear(this);
} else {
ActorShape_Init(&thisx->shape, 1100.0f, ActorShadow_DrawCircle, 18.0f);
- thisx->flags &= ~ACTOR_FLAG_TARGETABLE;
- thisx->flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ thisx->flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
+ thisx->flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
Collider_InitCylinder(play, &this->collider);
Collider_SetCylinder(play, &this->collider, thisx, &sProjectileColliderInit);
Actor_ChangeCategory(play, &play->actorCtx, thisx, ACTORCAT_PROP);
@@ -205,7 +205,7 @@ void EnOkuta_SpawnRipple(EnOkuta* this, PlayState* play) {
void EnOkuta_SetupWaitToAppear(EnOkuta* this) {
this->actor.draw = NULL;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = EnOkuta_WaitToAppear;
this->actor.world.pos.y = this->actor.home.pos.y;
}
@@ -213,7 +213,7 @@ void EnOkuta_SetupWaitToAppear(EnOkuta* this) {
void EnOkuta_SetupAppear(EnOkuta* this, PlayState* play) {
this->actor.draw = EnOkuta_Draw;
this->actor.shape.rot.y = this->actor.yawTowardsPlayer;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
Animation_PlayOnce(&this->skelAnime, &gOctorokAppearAnim);
EnOkuta_SpawnBubbles(this, play);
this->actionFunc = EnOkuta_Appear;
@@ -611,7 +611,7 @@ void EnOkuta_ColliderCheck(EnOkuta* this, PlayState* play) {
if ((this->actor.colChkInfo.damageEffect != 0) || (this->actor.colChkInfo.damage != 0)) {
Enemy_StartFinishingBlow(play, &this->actor);
this->actor.colChkInfo.health = 0;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if (this->actor.colChkInfo.damageEffect == 3) {
EnOkuta_SetupFreeze(this);
} else {
@@ -675,7 +675,7 @@ void EnOkuta_Update(Actor* thisx, PlayState* play2) {
this->collider.dim.radius = sOctorockColliderInit.dim.radius * this->actor.scale.x * 100.0f;
}
if (this->actor.params == 0x10) {
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
CollisionCheck_SetAT(play, &play->colChkCtx, &this->collider.base);
}
if (this->actionFunc != EnOkuta_WaitToAppear) {
diff --git a/soh/src/overlays/actors/ovl_En_Ossan/z_en_ossan.c b/soh/src/overlays/actors/ovl_En_Ossan/z_en_ossan.c
index 3eaa944b0..bcb3ed449 100644
--- a/soh/src/overlays/actors/ovl_En_Ossan/z_en_ossan.c
+++ b/soh/src/overlays/actors/ovl_En_Ossan/z_en_ossan.c
@@ -19,7 +19,7 @@
#include <assert.h>
#include "soh/OTRGlobals.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnOssan_Init(Actor* thisx, PlayState* play);
void EnOssan_Destroy(Actor* thisx, PlayState* play);
@@ -2182,7 +2182,7 @@ void EnOssan_InitActionFunc(EnOssan* this, PlayState* play) {
ShopItem* items;
if (EnOssan_AreShopkeeperObjectsLoaded(this, play)) {
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actor.objBankIndex = this->objBankIndex1;
Actor_SetObjectDependency(play, &this->actor);
@@ -2267,7 +2267,7 @@ void EnOssan_InitActionFunc(EnOssan* this, PlayState* play) {
this->blinkTimer = 20;
this->eyeTextureIdx = 0;
this->blinkFunc = EnOssan_WaitForBlink;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
EnOssan_SetupAction(this, EnOssan_MainActionFunc);
}
}
diff --git a/soh/src/overlays/actors/ovl_En_Owl/z_en_owl.c b/soh/src/overlays/actors/ovl_En_Owl/z_en_owl.c
index 72aa6e9a2..7701f9a2c 100644
--- a/soh/src/overlays/actors/ovl_En_Owl/z_en_owl.c
+++ b/soh/src/overlays/actors/ovl_En_Owl/z_en_owl.c
@@ -14,7 +14,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnOwl_Init(Actor* thisx, PlayState* play);
void EnOwl_Destroy(Actor* thisx, PlayState* play);
@@ -286,7 +286,7 @@ s32 EnOwl_CheckInitTalk(EnOwl* this, PlayState* play, u16 textId, f32 targetDist
this->actor.textId = textId;
distCheck = (flags & 2) ? 200.0f : 1000.0f;
if (GameInteractor_Should(VB_OWL_INTERACTION, this->actor.xzDistToPlayer < targetDist, this)) {
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
func_8002F1C4(&this->actor, play, targetDist, distCheck, 0);
}
return false;
@@ -352,7 +352,7 @@ void func_80ACA76C(EnOwl* this, PlayState* play) {
if (Actor_TextboxIsClosing(&this->actor, play)) {
Audio_QueueSeqCmd(0x1 << 28 | SEQ_PLAYER_FANFARE << 24 | 0xFF);
func_80ACA62C(this, play);
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
}
}
@@ -368,7 +368,7 @@ void func_80ACA7E0(EnOwl* this, PlayState* play) {
func_80ACA71C(this);
this->actionFunc = func_80ACA690;
}
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
}
}
@@ -572,7 +572,7 @@ void func_80ACB03C(EnOwl* this, PlayState* play) {
if (Actor_TextboxIsClosing(&this->actor, play)) {
Audio_QueueSeqCmd(0x1 << 28 | SEQ_PLAYER_FANFARE << 24 | 0xFF);
func_80ACA62C(this, play);
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
}
}
@@ -861,7 +861,7 @@ void func_80ACBAB8(EnOwl* this, PlayState* play) {
}
void func_80ACBC0C(EnOwl* this, PlayState* play) {
- this->actor.flags |= ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_DRAW_CULLING_DISABLED;
if (this->actor.xzDistToPlayer > 6000.0f && !(this->actionFlags & 0x80)) {
Actor_Kill(&this->actor);
diff --git a/soh/src/overlays/actors/ovl_En_Part/z_en_part.c b/soh/src/overlays/actors/ovl_En_Part/z_en_part.c
index 0539e980b..0a91e0e88 100644
--- a/soh/src/overlays/actors/ovl_En_Part/z_en_part.c
+++ b/soh/src/overlays/actors/ovl_En_Part/z_en_part.c
@@ -10,7 +10,7 @@
#include <string.h> // strcmp
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnPart_Init(Actor* thisx, PlayState* play);
void EnPart_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Partner/z_en_partner.c b/soh/src/overlays/actors/ovl_En_Partner/z_en_partner.c
index 20db2a510..11621e4ca 100644
--- a/soh/src/overlays/actors/ovl_En_Partner/z_en_partner.c
+++ b/soh/src/overlays/actors/ovl_En_Partner/z_en_partner.c
@@ -14,7 +14,7 @@
#include "soh/OTRGlobals.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_DRAGGED_BY_HOOKSHOT | ACTOR_FLAG_CAN_PRESS_SWITCH)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER | ACTOR_FLAG_CAN_PRESS_SWITCHES)
void EnPartner_Init(Actor* thisx, PlayState* play);
void EnPartner_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Peehat/z_en_peehat.c b/soh/src/overlays/actors/ovl_En_Peehat/z_en_peehat.c
index 2667bb099..30191cfed 100644
--- a/soh/src/overlays/actors/ovl_En_Peehat/z_en_peehat.c
+++ b/soh/src/overlays/actors/ovl_En_Peehat/z_en_peehat.c
@@ -5,7 +5,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_PLAY_HIT_SFX)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT)
#define GROUND_HOVER_HEIGHT 75.0f
#define MAX_LARVA 3
@@ -227,7 +227,7 @@ void EnPeehat_Init(Actor* thisx, PlayState* play) {
this->xzDistToRise = 2800.0f;
this->xzDistMax = 1400.0f;
EnPeehat_Flying_SetStateGround(this);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
break;
case PEAHAT_TYPE_LARVA:
this->actor.scale.x = this->actor.scale.z = 0.006f;
@@ -330,7 +330,7 @@ void EnPeehat_Ground_StateGround(EnPeehat* this, PlayState* play) {
// Keep the peahat as the version that doesn't spawn extra enemies and can actually be killed
// when Enemy Randomizer is on.
if (IS_DAY || CVarGetInteger(CVAR_ENHANCEMENT("RandomizedEnemies"), 0)) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
if (this->riseDelayTimer == 0) {
if (this->actor.xzDistToPlayer < this->xzDistToRise) {
EnPeehat_Ground_SetStateRise(this);
@@ -340,7 +340,7 @@ void EnPeehat_Ground_StateGround(EnPeehat* this, PlayState* play) {
this->riseDelayTimer--;
}
} else {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Math_SmoothStepToF(&this->actor.shape.yOffset, -1000.0f, 1.0f, 50.0f, 0.0f);
if (this->unk_2D4 != 0) {
this->unk_2D4--;
@@ -990,7 +990,7 @@ void EnPeehat_Update(Actor* thisx, PlayState* play) {
CollisionCheck_SetAC(play, &play->colChkCtx, &this->colQuad.base);
}
// if PEAHAT_TYPE_GROUNDED
- if (thisx->params < 0 && (thisx->flags & ACTOR_FLAG_ACTIVE)) {
+ if (thisx->params < 0 && (thisx->flags & ACTOR_FLAG_INSIDE_CULLING_VOLUME)) {
for (i = 1; i >= 0; i--) {
Vec3f posResult;
CollisionPoly* poly = NULL;
diff --git a/soh/src/overlays/actors/ovl_En_Po_Desert/z_en_po_desert.c b/soh/src/overlays/actors/ovl_En_Po_Desert/z_en_po_desert.c
index 7b0bdcee5..18222850d 100644
--- a/soh/src/overlays/actors/ovl_En_Po_Desert/z_en_po_desert.c
+++ b/soh/src/overlays/actors/ovl_En_Po_Desert/z_en_po_desert.c
@@ -8,7 +8,7 @@
#include "objects/object_po_field/object_po_field.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_LENS | ACTOR_FLAG_IGNORE_QUAKE)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_REACT_TO_LENS | ACTOR_FLAG_IGNORE_QUAKE)
void EnPoDesert_Init(Actor* thisx, PlayState* play);
void EnPoDesert_Destroy(Actor* thisx, PlayState* play);
@@ -202,11 +202,11 @@ void EnPoDesert_Update(Actor* thisx, PlayState* play) {
Collider_UpdateCylinder(&this->actor, &this->collider);
CollisionCheck_SetOC(play, &play->colChkCtx, &this->collider.base);
if (play->actorCtx.lensActive) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_LENS;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_REACT_TO_LENS;
this->actor.shape.shadowDraw = ActorShadow_DrawCircle;
} else {
this->actor.shape.shadowDraw = NULL;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_LENS);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_REACT_TO_LENS);
}
}
@@ -219,7 +219,7 @@ s32 EnPoDesert_OverrideLimbDraw(PlayState* play, s32 limbIndex, Gfx** dList, Vec
mtxScale = this->actionTimer / 16.0f;
Matrix_Scale(mtxScale, mtxScale, mtxScale, MTXMODE_APPLY);
}
- if (!CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_LENS)) {
+ if (!CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_REACT_TO_LENS)) {
*dList = NULL;
}
return false;
@@ -240,7 +240,7 @@ void EnPoDesert_PostLimbDraw(PlayState* play, s32 limbIndex, Gfx** dList, Vec3s*
color.r = (s16)(rand * 30.0f) + 225;
color.g = (s16)(rand * 100.0f) + 155;
color.b = (s16)(rand * 160.0f) + 95;
- if (CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_LENS)) {
+ if (CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_REACT_TO_LENS)) {
gDPPipeSync((*gfxP)++);
gDPSetEnvColor((*gfxP)++, color.r, color.g, color.b, 255);
gSPMatrix((*gfxP)++, MATRIX_NEWMTX(play->state.gfxCtx),
diff --git a/soh/src/overlays/actors/ovl_En_Po_Field/z_en_po_field.c b/soh/src/overlays/actors/ovl_En_Po_Field/z_en_po_field.c
index ca0e7b3ba..ef8517a09 100644
--- a/soh/src/overlays/actors/ovl_En_Po_Field/z_en_po_field.c
+++ b/soh/src/overlays/actors/ovl_En_Po_Field/z_en_po_field.c
@@ -12,7 +12,7 @@
#include <string.h>
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_IGNORE_QUAKE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_IGNORE_QUAKE)
void EnPoField_Init(Actor* thisx, PlayState* play);
void EnPoField_Destroy(Actor* thisx, PlayState* play);
@@ -201,7 +201,7 @@ void EnPoField_SetupWaitForSpawn(EnPoField* this, PlayState* play) {
Lights_PointSetColorAndRadius(&this->lightInfo, 0, 0, 0, 0);
this->actionTimer = 200;
Actor_SetScale(&this->actor, 0.0f);
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_WILL_TALK);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED);
this->collider.base.acFlags &= ~AC_ON;
this->collider.base.ocFlags1 = OC1_ON | OC1_TYPE_ALL;
this->actor.colChkInfo.health = D_80AD70D8.health;
@@ -250,7 +250,7 @@ void EnPoField_SetupCirclePlayer(EnPoField* this, PlayState* play) {
Math_Vec3f_Copy(&this->actor.home.pos, &player->actor.world.pos);
this->actor.world.rot.y = this->actor.yawTowardsPlayer;
if (this->actionFunc != EnPoField_Damage) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actionTimer = 600;
this->unk_194 = 32;
}
@@ -263,7 +263,7 @@ void EnPoField_SetupFlee(EnPoField* this) {
this->actionFunc = EnPoField_Flee;
this->actor.speedXZ = 12.0f;
if (this->actionFunc != EnPoField_Damage) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.world.rot.y = this->actor.shape.rot.y + 0x8000;
this->actionTimer = 2000;
this->unk_194 = 32;
@@ -285,7 +285,7 @@ void EnPoField_SetupDamage(EnPoField* this) {
void EnPoField_SetupDeath(EnPoField* this) {
this->actionTimer = 0;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.speedXZ = 0.0f;
this->actor.world.rot.y = this->actor.shape.rot.y;
this->actor.naviEnemyId = 0xFF;
@@ -351,7 +351,7 @@ void func_80AD4384(EnPoField* this) {
this->actor.textId = 0x5005;
this->actionTimer = 400;
this->unk_194 = 32;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = func_80AD58D4;
}
@@ -665,15 +665,15 @@ void func_80AD58D4(EnPoField* this, PlayState* play) {
}
if (this->actionTimer == 0) {
Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH);
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
EnPoField_SetupSoulDisappear(this);
return;
}
if (this->collider.base.ocFlags1 & OC1_HIT) {
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
func_8002F2F4(&this->actor, play);
} else {
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
CollisionCheck_SetOC(play, &play->colChkCtx, &this->collider.base);
}
this->actor.world.pos.y = Math_SinS(this->unk_194 * 0x800) * 5.0f + this->actor.home.pos.y;
diff --git a/soh/src/overlays/actors/ovl_En_Po_Relay/z_en_po_relay.c b/soh/src/overlays/actors/ovl_En_Po_Relay/z_en_po_relay.c
index 7ce6cc8df..067960019 100644
--- a/soh/src/overlays/actors/ovl_En_Po_Relay/z_en_po_relay.c
+++ b/soh/src/overlays/actors/ovl_En_Po_Relay/z_en_po_relay.c
@@ -9,7 +9,7 @@
#include "objects/object_tk/object_tk.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_IGNORE_QUAKE | ACTOR_FLAG_WILL_TALK)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_IGNORE_QUAKE | ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED)
void EnPoRelay_Init(Actor* thisx, PlayState* play);
void EnPoRelay_Destroy(Actor* thisx, PlayState* play);
@@ -147,14 +147,14 @@ void EnPoRelay_SetupRace(EnPoRelay* this) {
this->hookshotSlotFull = (INV_CONTENT(ITEM_HOOKSHOT) != ITEM_NONE && !IS_RANDO) ||
(IS_RANDO && Flags_GetTreasure(gPlayState, 0x1E));
this->unk_19A = Actor_WorldYawTowardPoint(&this->actor, &vec);
- this->actor.flags |= ACTOR_FLAG_NO_LOCKON;
+ this->actor.flags |= ACTOR_FLAG_LOCK_ON_DISABLED;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH);
this->actionFunc = EnPoRelay_Race;
}
void EnPoRelay_SetupEndRace(EnPoRelay* this) {
this->actor.world.rot.y = this->actor.home.rot.y + 0xC000;
- this->actor.flags &= ~ACTOR_FLAG_NO_LOCKON;
+ this->actor.flags &= ~ACTOR_FLAG_LOCK_ON_DISABLED;
this->actor.speedXZ = 0.0f;
this->actionFunc = EnPoRelay_EndRace;
}
@@ -167,10 +167,10 @@ void EnPoRelay_CorrectY(EnPoRelay* this) {
void EnPoRelay_Idle(EnPoRelay* this, PlayState* play) {
Math_ScaledStepToS(&this->actor.shape.rot.y, this->actor.yawTowardsPlayer, 0x100);
if (Actor_ProcessTalkRequest(&this->actor, play)) {
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
this->actionFunc = EnPoRelay_Talk;
} else if (this->actor.xzDistToPlayer < 250.0f) {
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
this->actor.textId = this->textId;
func_8002F2CC(&this->actor, play, 250.0f);
}
diff --git a/soh/src/overlays/actors/ovl_En_Po_Sisters/z_en_po_sisters.c b/soh/src/overlays/actors/ovl_En_Po_Sisters/z_en_po_sisters.c
index 6014aebbe..31006b878 100644
--- a/soh/src/overlays/actors/ovl_En_Po_Sisters/z_en_po_sisters.c
+++ b/soh/src/overlays/actors/ovl_En_Po_Sisters/z_en_po_sisters.c
@@ -12,7 +12,7 @@
#include "soh/OTRGlobals.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_HOOKSHOT_DRAGS | ACTOR_FLAG_IGNORE_QUAKE | ACTOR_FLAG_ARROW_DRAGGABLE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_HOOKSHOT_PULLS_ACTOR | ACTOR_FLAG_IGNORE_QUAKE | ACTOR_FLAG_CAN_ATTACH_TO_ARROW)
void EnPoSisters_Init(Actor* thisx, PlayState* play);
void EnPoSisters_Destroy(Actor* thisx, PlayState* play);
@@ -207,7 +207,7 @@ void EnPoSisters_Init(Actor* thisx, PlayState* play) {
this->unk_198 = 1;
this->unk_199 = 32;
this->unk_294 = 110.0f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if (this->actor.params & 0x1000) {
func_80ADA094(this, play);
} else if (this->unk_194 == 0) {
@@ -215,7 +215,7 @@ void EnPoSisters_Init(Actor* thisx, PlayState* play) {
this->collider.base.ocFlags1 = OC1_ON | OC1_TYPE_PLAYER;
func_80AD9AA8(this, play);
} else {
- this->actor.flags &= ~(ACTOR_FLAG_HOOKSHOT_DRAGS | ACTOR_FLAG_ARROW_DRAGGABLE);
+ this->actor.flags &= ~(ACTOR_FLAG_HOOKSHOT_PULLS_ACTOR | ACTOR_FLAG_CAN_ATTACH_TO_ARROW);
this->collider.info.elemType = ELEMTYPE_UNK4;
this->collider.info.bumper.dmgFlags |= 1;
this->collider.base.ocFlags1 = OC1_NONE;
@@ -385,7 +385,7 @@ void func_80AD99D4(EnPoSisters* this, PlayState* play) {
this->actor.speedXZ = 0.0f;
this->actor.world.pos.y += 42.0f;
this->actor.shape.yOffset = -6000.0f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->unk_199 = 0;
this->actionFunc = func_80ADAFC0;
OnePointCutscene_Init(play, 3190, 999, &this->actor, MAIN_CAM);
@@ -435,7 +435,7 @@ void func_80AD9C24(EnPoSisters* this, PlayState* play) {
Vec3f vec;
this->actor.draw = NULL;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->unk_19C = 100;
this->unk_199 = 32;
this->collider.base.colType = COLTYPE_HIT3;
@@ -494,7 +494,7 @@ void func_80AD9F1C(EnPoSisters* this) {
this->unk_19A = 300;
this->unk_19C = 3;
this->unk_199 |= 9;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = func_80ADB770;
}
@@ -516,7 +516,7 @@ void func_80ADA028(EnPoSisters* this) {
Animation_MorphToLoop(&this->skelAnime, &gPoeSistersSwayAnim, -3.0f);
this->unk_22E.a = 255;
this->unk_199 |= 0x15;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = func_80ADBBF4;
this->actor.speedXZ = 0.0f;
}
@@ -708,7 +708,7 @@ void func_80ADA9E8(EnPoSisters* this, PlayState* play) {
}
void func_80ADAAA4(EnPoSisters* this, PlayState* play) {
- if (SkelAnime_Update(&this->skelAnime) && !(this->actor.flags & ACTOR_FLAG_DRAGGED_BY_ARROW)) {
+ if (SkelAnime_Update(&this->skelAnime) && !(this->actor.flags & ACTOR_FLAG_ATTACHED_TO_ARROW)) {
if (this->actor.colChkInfo.health != 0) {
if (this->unk_194 != 0) {
func_80AD96A4(this);
@@ -1005,7 +1005,7 @@ void func_80ADB9F0(EnPoSisters* this, PlayState* play) {
if (SkelAnime_Update(&this->skelAnime)) {
this->unk_22E.a = 255;
if (this->unk_194 == 3) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.home.pos.x = 1992.0f;
this->actor.home.pos.z = -1440.0f;
this->unk_199 |= 0x18;
@@ -1222,7 +1222,7 @@ void EnPoSisters_Update(Actor* thisx, PlayState* play) {
this->unk_198 = CLAMP_MIN(temp, 1);
}
if (this->actionFunc == func_80ADA8C0) {
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
CollisionCheck_SetAT(play, &play->colChkCtx, &this->collider.base);
}
if (this->unk_199 & 1) {
diff --git a/soh/src/overlays/actors/ovl_En_Poh/z_en_poh.c b/soh/src/overlays/actors/ovl_En_Poh/z_en_poh.c
index 0d5e1e2cc..3dfba28fb 100644
--- a/soh/src/overlays/actors/ovl_En_Poh/z_en_poh.c
+++ b/soh/src/overlays/actors/ovl_En_Poh/z_en_poh.c
@@ -10,7 +10,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_IGNORE_QUAKE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_IGNORE_QUAKE)
void EnPoh_Init(Actor* thisx, PlayState* play);
void EnPoh_Destroy(Actor* thisx, PlayState* play);
@@ -320,7 +320,7 @@ void func_80ADE368(EnPoh* this) {
void EnPoh_SetupInitialAction(EnPoh* this) {
this->lightColor.a = 0;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if (this->infoIdx == EN_POH_INFO_NORMAL) {
Animation_PlayOnceSetSpeed(&this->skelAnime, &gPoeAppearAnim, 0.0f);
this->actionFunc = func_80ADEF38;
@@ -338,7 +338,7 @@ void func_80ADE48C(EnPoh* this) {
this->actor.world.rot.y = this->actor.shape.rot.y;
this->unk_198 = 0;
this->actor.naviEnemyId = 0xFF;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = func_80ADF15C;
}
@@ -377,7 +377,7 @@ void EnPoh_SetupDeath(EnPoh* this, PlayState* play) {
this->actor.draw = EnPoh_DrawSoul;
this->actor.shape.shadowDraw = NULL;
Actor_SetScale(&this->actor, 0.01f);
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actor.gravity = -1.0f;
this->actor.shape.yOffset = 1500.0f;
this->actor.world.pos.y -= 15.0f;
@@ -440,7 +440,7 @@ void EnPoh_Talk(EnPoh* this, PlayState* play) {
}
this->unk_198 = 200;
this->unk_195 = 32;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = func_80ADFE80;
}
@@ -583,7 +583,7 @@ void func_80ADEF38(EnPoh* this, PlayState* play) {
if (SkelAnime_Update(&this->skelAnime)) {
this->lightColor.a = 255;
this->visibilityTimer = Rand_S16Offset(700, 300);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
EnPoh_SetupIdle(this);
} else if (this->skelAnime.curFrame > 10.0f) {
this->lightColor.a = ((this->skelAnime.curFrame - 10.0f) * 0.05f) * 255.0f;
@@ -598,7 +598,7 @@ void EnPoh_ComposerAppear(EnPoh* this, PlayState* play) {
if (SkelAnime_Update(&this->skelAnime)) {
this->lightColor.a = 255;
this->visibilityTimer = Rand_S16Offset(700, 300);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
EnPoh_SetupIdle(this);
} else {
this->lightColor.a = CLAMP_MAX((s32)(this->skelAnime.curFrame * 25.5f), 255);
@@ -781,14 +781,14 @@ void func_80ADFE80(EnPoh* this, PlayState* play) {
}
if (this->unk_198 == 0) {
func_80ADE950(this, 1);
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
return;
}
if (this->colliderCyl.base.ocFlags1 & OC1_HIT) {
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
func_8002F2F4(&this->actor, play);
} else {
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
CollisionCheck_SetOC(play, &play->colChkCtx, &this->colliderCyl.base);
}
this->actor.world.pos.y = Math_SinS(this->unk_195 * 0x800) * 5.0f + this->actor.home.pos.y;
@@ -933,7 +933,7 @@ void EnPoh_Update(Actor* thisx, PlayState* play) {
this->colliderCyl.dim.height = 55;
this->colliderCyl.dim.yShift = 15;
}
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
EnPoh_SetupInitialAction(this);
}
}
@@ -1005,7 +1005,7 @@ void EnPoh_UpdateLiving(Actor* thisx, PlayState* play) {
this->actionFunc(this, play);
Actor_MoveXZGravity(&this->actor);
if (this->actionFunc == EnPoh_Attack && this->unk_198 < 10) {
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
CollisionCheck_SetAT(play, &play->colChkCtx, &this->colliderSph.base);
}
Collider_UpdateCylinder(&this->actor, &this->colliderCyl);
diff --git a/soh/src/overlays/actors/ovl_En_Pu_box/z_en_pu_box.c b/soh/src/overlays/actors/ovl_En_Pu_box/z_en_pu_box.c
index 536032a8d..de0f8d0f0 100644
--- a/soh/src/overlays/actors/ovl_En_Pu_box/z_en_pu_box.c
+++ b/soh/src/overlays/actors/ovl_En_Pu_box/z_en_pu_box.c
@@ -7,7 +7,7 @@
#include "z_en_pu_box.h"
#include "objects/object_pu_box/object_pu_box.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnPubox_Init(Actor* thisx, PlayState* play);
void EnPubox_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Rd/z_en_rd.c b/soh/src/overlays/actors/ovl_En_Rd/z_en_rd.c
index a5fd7872c..b65a5dd8e 100644
--- a/soh/src/overlays/actors/ovl_En_Rd/z_en_rd.c
+++ b/soh/src/overlays/actors/ovl_En_Rd/z_en_rd.c
@@ -3,7 +3,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAGGED_BY_HOOKSHOT)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER)
void EnRd_Init(Actor* thisx, PlayState* play);
void EnRd_Destroy(Actor* thisx, PlayState* play);
@@ -166,7 +166,7 @@ void EnRd_Init(Actor* thisx, PlayState* play) {
SkelAnime_Update(&this->skelAnime);
if (thisx->params == 3) {
- thisx->flags |= ACTOR_FLAG_LENS;
+ thisx->flags |= ACTOR_FLAG_REACT_TO_LENS;
}
}
@@ -361,7 +361,7 @@ void func_80AE2C1C(EnRd* this, PlayState* play) {
Actor_IsFacingPlayer(&this->actor, 0x38E3)) {
player->actor.freezeTimer = 0;
if (play->grabPlayer(play, player)) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
func_80AE33F0(this);
}
} else if (this->actor.params > 0) {
@@ -548,7 +548,7 @@ void func_80AE3454(EnRd* this, PlayState* play) {
Math_SmoothStepToF(&this->actor.shape.yOffset, 0, 1.0f, 400.0f, 0.0f);
}
this->actor.targetMode = 0;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->unk_306 = 0xA;
this->unk_307 = 0xF;
func_80AE2B90(this, play);
@@ -617,7 +617,7 @@ void func_80AE3A8C(EnRd* this) {
this->actor.speedXZ = -2.0f;
}
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_REDEAD_DAMAGE);
this->unk_31B = 9;
EnRd_SetupAction(this, func_80AE3B18);
@@ -652,7 +652,7 @@ void func_80AE3C20(EnRd* this) {
Animation_MorphToPlayOnce(&this->skelAnime, &gGibdoRedeadDeathAnim, -1.0f);
this->unk_31B = 10;
this->unk_30C = 300;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.speedXZ = 0.0f;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_REDEAD_DEAD);
EnRd_SetupAction(this, func_80AE3C98);
diff --git a/soh/src/overlays/actors/ovl_En_Reeba/z_en_reeba.c b/soh/src/overlays/actors/ovl_En_Reeba/z_en_reeba.c
index bab1bf046..be23bfb9d 100644
--- a/soh/src/overlays/actors/ovl_En_Reeba/z_en_reeba.c
+++ b/soh/src/overlays/actors/ovl_En_Reeba/z_en_reeba.c
@@ -12,7 +12,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_LOCKON)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_LOCK_ON_DISABLED)
void EnReeba_Init(Actor* thisx, PlayState* play);
void EnReeba_Destroy(Actor* thisx, PlayState* play);
@@ -183,7 +183,7 @@ void func_80AE4F40(EnReeba* this, PlayState* play) {
this->unk_278 = 20;
}
- this->actor.flags &= ~ACTOR_FLAG_NO_LOCKON;
+ this->actor.flags &= ~ACTOR_FLAG_LOCK_ON_DISABLED;
this->actor.world.pos.y = this->actor.floorHeight;
if (this->isBig) {
@@ -269,7 +269,7 @@ void func_80AE5270(EnReeba* this, PlayState* play) {
}
void func_80AE538C(EnReeba* this, PlayState* play) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE;
this->actionfunc = func_80AE53AC;
}
@@ -331,8 +331,8 @@ void func_80AE561C(EnReeba* this, PlayState* play) {
void func_80AE5688(EnReeba* this, PlayState* play) {
this->unk_27E = 0;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_AKINDONUTS_HIDE);
- this->actor.flags |= ACTOR_FLAG_NO_LOCKON;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE);
+ this->actor.flags |= ACTOR_FLAG_LOCK_ON_DISABLED;
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE);
this->actionfunc = func_80AE56E0;
}
@@ -383,8 +383,8 @@ void func_80AE58EC(EnReeba* this, PlayState* play) {
this->unk_278 = 14;
this->actor.world.rot.y = this->actor.yawTowardsPlayer;
this->actor.speedXZ = -8.0f;
- this->actor.flags |= ACTOR_FLAG_NO_LOCKON;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE);
+ this->actor.flags |= ACTOR_FLAG_LOCK_ON_DISABLED;
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE);
this->actionfunc = func_80AE5938;
}
@@ -452,7 +452,7 @@ void func_80AE5BC4(EnReeba* this, PlayState* play) {
this->actor.world.rot.y = this->actor.yawTowardsPlayer;
Actor_SetColorFilter(&this->actor, 0x4000, 0xFF, 0, 8);
this->unk_278 = 14;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionfunc = func_80AE5C38;
}
diff --git a/soh/src/overlays/actors/ovl_En_River_Sound/z_en_river_sound.c b/soh/src/overlays/actors/ovl_En_River_Sound/z_en_river_sound.c
index 2885e6cdf..640889c21 100644
--- a/soh/src/overlays/actors/ovl_En_River_Sound/z_en_river_sound.c
+++ b/soh/src/overlays/actors/ovl_En_River_Sound/z_en_river_sound.c
@@ -6,7 +6,7 @@
#include "z_en_river_sound.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnRiverSound_Init(Actor* thisx, PlayState* play);
void EnRiverSound_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Rl/z_en_rl.c b/soh/src/overlays/actors/ovl_En_Rl/z_en_rl.c
index 1aa5ccee1..73c2d3298 100644
--- a/soh/src/overlays/actors/ovl_En_Rl/z_en_rl.c
+++ b/soh/src/overlays/actors/ovl_En_Rl/z_en_rl.c
@@ -9,7 +9,7 @@
#include "objects/object_rl/object_rl.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnRl_Init(Actor* thisx, PlayState* play);
void EnRl_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Rr/z_en_rr.c b/soh/src/overlays/actors/ovl_En_Rr/z_en_rr.c
index a748bd380..ba935364e 100644
--- a/soh/src/overlays/actors/ovl_En_Rr/z_en_rr.c
+++ b/soh/src/overlays/actors/ovl_En_Rr/z_en_rr.c
@@ -10,7 +10,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include <assert.h>
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_DRAGGED_BY_HOOKSHOT)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER)
#define RR_MESSAGE_SHIELD (1 << 0)
#define RR_MESSAGE_TUNIC (1 << 1)
@@ -255,7 +255,7 @@ void EnRr_SetupGrabPlayer(EnRr* this, Player* player) {
s32 i;
this->grabTimer = 100;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->ocTimer = 8;
this->hasPlayer = true;
this->reachState = 0;
@@ -290,7 +290,7 @@ void EnRr_SetupReleasePlayer(EnRr* this, PlayState* play) {
u8 shield;
u8 tunic;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->hasPlayer = false;
this->ocTimer = 110;
this->segMoveRate = 0.0f;
@@ -382,7 +382,7 @@ void EnRr_SetupDeath(EnRr* this) {
}
this->actionFunc = EnRr_Death;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_LIKE_DEAD);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
GameInteractor_ExecuteOnEnemyDefeat(&this->actor);
}
diff --git a/soh/src/overlays/actors/ovl_En_Ru1/z_en_ru1.c b/soh/src/overlays/actors/ovl_En_Ru1/z_en_ru1.c
index b6bb1a725..2913f464d 100644
--- a/soh/src/overlays/actors/ovl_En_Ru1/z_en_ru1.c
+++ b/soh/src/overlays/actors/ovl_En_Ru1/z_en_ru1.c
@@ -10,7 +10,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_CAN_PRESS_SWITCH)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_CAN_PRESS_SWITCHES)
void EnRu1_Init(Actor* thisx, PlayState* play);
void EnRu1_Destroy(Actor* thisx, PlayState* play);
@@ -1506,7 +1506,7 @@ void func_80AEE050(EnRu1* this) {
s32 func_80AEE264(EnRu1* this, PlayState* play) {
if (!Actor_ProcessTalkRequest(&this->actor, play)) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
if ((Flags_GetInfTable(INFTABLE_143))) {
this->actor.textId = 0x404E;
func_8002F2F4(&this->actor, play);
@@ -1827,7 +1827,7 @@ s32 func_80AEF0BC(EnRu1* this, PlayState* play) {
Animation_Change(&this->skelAnime, &gRutoChildSitAnim, 1.0f, 0, frameCount, ANIMMODE_ONCE, -8.0f);
play->msgCtx.msgMode = MSGMODE_PAUSED;
this->action = 26;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
return true;
}
return false;
@@ -1867,7 +1867,7 @@ void func_80AEF29C(EnRu1* this, PlayState* play) {
void func_80AEF2AC(EnRu1* this, PlayState* play) {
this->action = 24;
this->drawConfig = 1;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
}
void func_80AEF2D0(EnRu1* this, PlayState* play) {
@@ -2024,7 +2024,7 @@ void func_80AEF890(EnRu1* this, PlayState* play) {
void func_80AEF930(EnRu1* this, PlayState* play) {
if (func_80AEB104(this) == 3) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
this->actor.textId = 0x4048;
Message_ContinueTextbox(play, this->actor.textId);
func_80AEF4A8(this, play);
@@ -2110,7 +2110,7 @@ void func_80AEFC54(EnRu1* this, PlayState* play) {
this->action = 41;
this->unk_28C = EnRu1_FindSwitch(play);
func_80AEB0EC(this, 1);
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
} else {
Actor_Kill(&this->actor);
}
@@ -2128,7 +2128,7 @@ void func_80AEFCE8(EnRu1* this, PlayState* play) {
void func_80AEFD38(EnRu1* this, PlayState* play) {
if ((Flags_GetEventChkInf(EVENTCHKINF_USED_JABU_JABUS_BELLY_BLUE_WARP)) && LINK_IS_CHILD) {
func_80AEB264(this, &gRutoChildWait2Anim, 0, 0, 0);
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->action = 44;
this->drawConfig = 1;
} else {
@@ -2138,7 +2138,7 @@ void func_80AEFD38(EnRu1* this, PlayState* play) {
s32 func_80AEFDC0(EnRu1* this, PlayState* play) {
if (!Actor_ProcessTalkRequest(&this->actor, play)) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
this->actor.textId = Text_GetFaceReaction(play, 0x1F);
if (this->actor.textId == 0) {
this->actor.textId = 0x402C;
@@ -2151,7 +2151,7 @@ s32 func_80AEFDC0(EnRu1* this, PlayState* play) {
s32 func_80AEFE38(EnRu1* this, PlayState* play) {
if (Message_GetState(&play->msgCtx) == TEXT_STATE_CLOSING) {
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
return true;
}
return false;
diff --git a/soh/src/overlays/actors/ovl_En_Ru2/z_en_ru2.c b/soh/src/overlays/actors/ovl_En_Ru2/z_en_ru2.c
index b4c4d9053..fabce50e8 100644
--- a/soh/src/overlays/actors/ovl_En_Ru2/z_en_ru2.c
+++ b/soh/src/overlays/actors/ovl_En_Ru2/z_en_ru2.c
@@ -11,7 +11,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnRu2_Init(Actor* thisx, PlayState* play);
void EnRu2_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Sa/z_en_sa.c b/soh/src/overlays/actors/ovl_En_Sa/z_en_sa.c
index c350fe0bd..454046cc9 100644
--- a/soh/src/overlays/actors/ovl_En_Sa/z_en_sa.c
+++ b/soh/src/overlays/actors/ovl_En_Sa/z_en_sa.c
@@ -7,7 +7,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void EnSa_Init(Actor* thisx, PlayState* play);
void EnSa_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Sb/z_en_sb.c b/soh/src/overlays/actors/ovl_En_Sb/z_en_sb.c
index 24b4632fa..04a3ff4ae 100644
--- a/soh/src/overlays/actors/ovl_En_Sb/z_en_sb.c
+++ b/soh/src/overlays/actors/ovl_En_Sb/z_en_sb.c
@@ -9,7 +9,7 @@
#include "objects/object_sb/object_sb.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE)
void EnSb_Init(Actor* thisx, PlayState* play);
void EnSb_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Sda/z_en_sda.c b/soh/src/overlays/actors/ovl_En_Sda/z_en_sda.c
index 836a2a66a..89f9662f7 100644
--- a/soh/src/overlays/actors/ovl_En_Sda/z_en_sda.c
+++ b/soh/src/overlays/actors/ovl_En_Sda/z_en_sda.c
@@ -6,7 +6,7 @@
#include "z_en_sda.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnSda_Init(Actor* thisx, PlayState* play);
void EnSda_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Shopnuts/z_en_shopnuts.c b/soh/src/overlays/actors/ovl_En_Shopnuts/z_en_shopnuts.c
index 94801eaf3..9b83cbfdf 100644
--- a/soh/src/overlays/actors/ovl_En_Shopnuts/z_en_shopnuts.c
+++ b/soh/src/overlays/actors/ovl_En_Shopnuts/z_en_shopnuts.c
@@ -5,7 +5,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE)
void EnShopnuts_Init(Actor* thisx, PlayState* play);
void EnShopnuts_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Si/z_en_si.c b/soh/src/overlays/actors/ovl_En_Si/z_en_si.c
index 338dfaf12..742042689 100644
--- a/soh/src/overlays/actors/ovl_En_Si/z_en_si.c
+++ b/soh/src/overlays/actors/ovl_En_Si/z_en_si.c
@@ -9,7 +9,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/OTRGlobals.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOOKSHOT_DRAGS)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOOKSHOT_PULLS_ACTOR)
void EnSi_Init(Actor* thisx, PlayState* play);
void EnSi_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Siofuki/z_en_siofuki.c b/soh/src/overlays/actors/ovl_En_Siofuki/z_en_siofuki.c
index 8e4596ff3..c32c69066 100644
--- a/soh/src/overlays/actors/ovl_En_Siofuki/z_en_siofuki.c
+++ b/soh/src/overlays/actors/ovl_En_Siofuki/z_en_siofuki.c
@@ -7,7 +7,7 @@
#include "z_en_siofuki.h"
#include "objects/object_siofuki/object_siofuki.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnSiofuki_Init(Actor* thisx, PlayState* play);
void EnSiofuki_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Skb/z_en_skb.c b/soh/src/overlays/actors/ovl_En_Skb/z_en_skb.c
index 1fcb2708a..f06af3219 100644
--- a/soh/src/overlays/actors/ovl_En_Skb/z_en_skb.c
+++ b/soh/src/overlays/actors/ovl_En_Skb/z_en_skb.c
@@ -4,7 +4,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnSkb_Init(Actor* thisx, PlayState* play);
void EnSkb_Destroy(Actor* thisx, PlayState* play);
@@ -206,7 +206,7 @@ void func_80AFCD60(EnSkb* this) {
void func_80AFCDF8(EnSkb* this) {
Animation_PlayOnceSetSpeed(&this->skelAnime, &gStalchildUncurlingAnim, 1.0f);
this->unk_280 = 0;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIVA_APPEAR);
EnSkb_SetupAction(this, func_80AFCE5C);
}
@@ -216,7 +216,7 @@ void func_80AFCE5C(EnSkb* this, PlayState* play) {
this->actor.world.rot.y = this->actor.yawTowardsPlayer;
this->actor.shape.rot.y = this->actor.yawTowardsPlayer;
} else {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
}
Math_SmoothStepToF(&this->actor.shape.yOffset, 0.0f, 1.0f, 800.0f, 0.0f);
Math_SmoothStepToF(&this->actor.shape.shadowScale, 25.0f, 1.0f, 2.5f, 0.0f);
@@ -233,7 +233,7 @@ void func_80AFCF48(EnSkb* this) {
Animation_GetLastFrame(&gStalchildUncurlingAnim), 0.0f, ANIMMODE_ONCE, -4.0f);
this->unk_280 = 0;
this->unk_281 = 0;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.speedXZ = 0.0f;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_AKINDONUTS_HIDE);
EnSkb_SetupAction(this, func_80AFCFF0);
@@ -413,7 +413,7 @@ void func_80AFD7B4(EnSkb* this, PlayState* play) {
this->actor.speedXZ = -6.0f;
}
this->unk_280 = 1;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
BodyBreak_Alloc(&this->bodyBreak, 18, play);
this->unk_283 |= 4;
EffectSsDeadSound_SpawnStationary(play, &this->actor.projectedPos, NA_SE_EN_STALKID_DEAD, 1, 1, 0x28);
diff --git a/soh/src/overlays/actors/ovl_En_Skj/z_en_skj.c b/soh/src/overlays/actors/ovl_En_Skj/z_en_skj.c
index de42b24bf..d5954221c 100644
--- a/soh/src/overlays/actors/ovl_En_Skj/z_en_skj.c
+++ b/soh/src/overlays/actors/ovl_En_Skj/z_en_skj.c
@@ -5,7 +5,7 @@
#include "soh/OTRGlobals.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void EnSkj_Init(Actor* thisx, PlayState* play);
void EnSkj_Destroy(Actor* thisx, PlayState* play);
@@ -287,7 +287,7 @@ static InitChainEntry sInitChain[] = {
ICHAIN_F32(targetArrowOffset, 30, ICHAIN_STOP),
};
-static s32 D_80B01EA0; // gets set if ACTOR_FLAG_PLAYER_TALKED_TO is set
+static s32 D_80B01EA0; // gets set if ACTOR_FLAG_TALK is set
void EnSkj_ChangeAnim(EnSkj* this, u8 index) {
f32 endFrame = Animation_GetLastFrame(sAnimationInfo[index].animation);
@@ -379,7 +379,7 @@ void EnSkj_Init(Actor* thisx, PlayState* play2) {
this->actor.destroy = NULL;
this->actor.draw = NULL;
this->actor.update = EnSkj_SariasSongShortStumpUpdate;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE);
this->actor.flags |= 0;
Actor_ChangeCategory(play, &play->actorCtx, thisx, ACTORCAT_PROP);
break;
@@ -390,7 +390,7 @@ void EnSkj_Init(Actor* thisx, PlayState* play2) {
this->actor.destroy = NULL;
this->actor.draw = NULL;
this->actor.update = EnSkj_OcarinaMinigameShortStumpUpdate;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE);
this->actor.flags |= 0;
Actor_ChangeCategory(play, &play->actorCtx, thisx, ACTORCAT_PROP);
this->actor.focus.pos.x = 1230.0f;
@@ -412,13 +412,13 @@ void EnSkj_Init(Actor* thisx, PlayState* play2) {
SkelAnime_InitFlex(play, &this->skelAnime, &gSkullKidSkel, &gSkullKidPlayFluteAnim, this->jointTable,
this->morphTable, 19);
if ((type >= 0) && (type < 3)) {
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE);
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_NPC);
}
if ((type < 0) || (type >= 7)) {
- this->actor.flags &= ~ACTOR_FLAG_NO_FREEZE_OCARINA;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_DURING_OCARINA;
}
if ((type > 0) && (type < 3)) {
@@ -1216,14 +1216,14 @@ void EnSkj_SariasSongWaitForTextClear(EnSkj* this, PlayState* play) {
}
void EnSkj_OcarinaGameSetupWaitForPlayer(EnSkj* this) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
EnSkj_ChangeAnim(this, SKJ_ANIM_WAIT);
EnSkj_SetupAction(this, SKJ_ACTION_OCARINA_GAME_WAIT_FOR_PLAYER);
}
void EnSkj_OcarinaGameWaitForPlayer(EnSkj* this, PlayState* play) {
if (this->playerInRange) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
EnSkj_SetupAction(this, SKJ_ACTION_OCARINA_GAME_IDLE);
}
}
diff --git a/soh/src/overlays/actors/ovl_En_Skjneedle/z_en_skjneedle.c b/soh/src/overlays/actors/ovl_En_Skjneedle/z_en_skjneedle.c
index 228bd9c5e..fc744981d 100644
--- a/soh/src/overlays/actors/ovl_En_Skjneedle/z_en_skjneedle.c
+++ b/soh/src/overlays/actors/ovl_En_Skjneedle/z_en_skjneedle.c
@@ -7,7 +7,7 @@
#include "z_en_skjneedle.h"
#include "objects/object_skj/object_skj.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_HOOKSHOT_DRAGS)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_HOOKSHOT_PULLS_ACTOR)
void EnSkjneedle_Init(Actor* thisx, PlayState* play);
void EnSkjneedle_Destroy(Actor* thisx, PlayState* play);
@@ -60,7 +60,7 @@ void EnSkjneedle_Init(Actor* thisx, PlayState* play) {
Collider_InitCylinder(play, &this->collider);
Collider_SetCylinderType1(play, &this->collider, &this->actor, &sCylinderInit);
ActorShape_Init(&this->actor.shape, 0, ActorShadow_DrawCircle, 20.0f);
- thisx->flags &= ~ACTOR_FLAG_TARGETABLE;
+ thisx->flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Actor_SetScale(&this->actor, 0.01f);
}
diff --git a/soh/src/overlays/actors/ovl_En_Ssh/z_en_ssh.c b/soh/src/overlays/actors/ovl_En_Ssh/z_en_ssh.c
index b7d69b40a..2b112e2bd 100644
--- a/soh/src/overlays/actors/ovl_En_Ssh/z_en_ssh.c
+++ b/soh/src/overlays/actors/ovl_En_Ssh/z_en_ssh.c
@@ -3,7 +3,7 @@
#include "soh/OTRGlobals.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
#define SSH_STATE_STUNNED (1 << 0)
#define SSH_STATE_GROUND_START (1 << 2)
diff --git a/soh/src/overlays/actors/ovl_En_St/z_en_st.c b/soh/src/overlays/actors/ovl_En_St/z_en_st.c
index cbc701cee..c7c8d0865 100644
--- a/soh/src/overlays/actors/ovl_En_St/z_en_st.c
+++ b/soh/src/overlays/actors/ovl_En_St/z_en_st.c
@@ -9,7 +9,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnSt_Init(Actor* thisx, PlayState* play);
void EnSt_Destroy(Actor* thisx, PlayState* play);
@@ -462,7 +462,7 @@ s32 EnSt_CheckHitBackside(EnSt* this, PlayState* play) {
return false;
}
Enemy_StartFinishingBlow(play, &this->actor);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->groundBounces = 3;
this->deathTimer = 20;
this->actor.gravity = -1.0f;
@@ -788,7 +788,7 @@ void EnSt_Init(Actor* thisx, PlayState* play) {
this->blureIdx = EnSt_CreateBlureEffect(play);
EnSt_InitColliders(this, play);
if (thisx->params == 2) {
- this->actor.flags |= ACTOR_FLAG_LENS;
+ this->actor.flags |= ACTOR_FLAG_REACT_TO_LENS;
}
if (this->actor.params == 1) {
this->actor.naviEnemyId = 0x05;
@@ -796,8 +796,8 @@ void EnSt_Init(Actor* thisx, PlayState* play) {
this->actor.naviEnemyId = 0x04;
}
EnSt_CheckCeilingPos(this, play);
- this->actor.flags |= ACTOR_FLAG_ARROW_DRAGGABLE;
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_CAN_ATTACH_TO_ARROW;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
EnSt_SetColliderScale(this);
this->actor.gravity = 0.0f;
this->initalYaw = this->actor.world.rot.y;
@@ -1013,7 +1013,7 @@ void EnSt_Update(Actor* thisx, PlayState* play) {
s32 pad;
Color_RGBA8 color = { 0, 0, 0, 0 };
- if (this->actor.flags & ACTOR_FLAG_DRAGGED_BY_ARROW) {
+ if (this->actor.flags & ACTOR_FLAG_ATTACHED_TO_ARROW) {
SkelAnime_Update(&this->skelAnime);
} else if (!EnSt_CheckColliders(this, play)) {
// no collision has been detected.
diff --git a/soh/src/overlays/actors/ovl_En_Sth/z_en_sth.c b/soh/src/overlays/actors/ovl_En_Sth/z_en_sth.c
index cc3dd3eb0..82a98a35b 100644
--- a/soh/src/overlays/actors/ovl_En_Sth/z_en_sth.c
+++ b/soh/src/overlays/actors/ovl_En_Sth/z_en_sth.c
@@ -13,7 +13,7 @@
#include "soh/OTRGlobals.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnSth_Init(Actor* thisx, PlayState* play);
void EnSth_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Stream/z_en_stream.c b/soh/src/overlays/actors/ovl_En_Stream/z_en_stream.c
index 34db1a005..d5d8c6d8b 100644
--- a/soh/src/overlays/actors/ovl_En_Stream/z_en_stream.c
+++ b/soh/src/overlays/actors/ovl_En_Stream/z_en_stream.c
@@ -7,7 +7,7 @@
#include "z_en_stream.h"
#include "objects/object_stream/object_stream.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnStream_Init(Actor* thisx, PlayState* play);
void EnStream_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Sw/z_en_sw.c b/soh/src/overlays/actors/ovl_En_Sw/z_en_sw.c
index c0bc087bd..79adaaa96 100644
--- a/soh/src/overlays/actors/ovl_En_Sw/z_en_sw.c
+++ b/soh/src/overlays/actors/ovl_En_Sw/z_en_sw.c
@@ -3,7 +3,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnSw_Init(Actor* thisx, PlayState* play);
void EnSw_Destroy(Actor* thisx, PlayState* play);
@@ -284,7 +284,7 @@ void EnSw_Init(Actor* thisx, PlayState* play) {
this->collider.elements[0].info.toucher.damage *= 2;
this->actor.naviEnemyId = 0x20;
this->actor.colChkInfo.health *= 2;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
break;
default:
Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_ENEMY);
@@ -356,7 +356,7 @@ s32 func_80B0C9F0(EnSw* this, PlayState* play) {
this->unk_38A = 2;
this->actor.shape.shadowScale = 16.0f;
this->actor.gravity = -1.0f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = func_80B0DB00;
}
diff --git a/soh/src/overlays/actors/ovl_En_Syateki_Itm/z_en_syateki_itm.c b/soh/src/overlays/actors/ovl_En_Syateki_Itm/z_en_syateki_itm.c
index 4122cef6b..06f679bbc 100644
--- a/soh/src/overlays/actors/ovl_En_Syateki_Itm/z_en_syateki_itm.c
+++ b/soh/src/overlays/actors/ovl_En_Syateki_Itm/z_en_syateki_itm.c
@@ -4,7 +4,7 @@
#include "overlays/actors/ovl_En_Ex_Ruppy/z_en_ex_ruppy.h"
#include "overlays/actors/ovl_En_G_Switch/z_en_g_switch.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
typedef enum {
SYATEKI_ROUND_GREEN_APPEAR,
diff --git a/soh/src/overlays/actors/ovl_En_Syateki_Man/z_en_syateki_man.c b/soh/src/overlays/actors/ovl_En_Syateki_Man/z_en_syateki_man.c
index 60955727b..63e3f8e6d 100644
--- a/soh/src/overlays/actors/ovl_En_Syateki_Man/z_en_syateki_man.c
+++ b/soh/src/overlays/actors/ovl_En_Syateki_Man/z_en_syateki_man.c
@@ -8,7 +8,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_LOCKON)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_LOCK_ON_DISABLED)
typedef enum {
/* 0 */ SYATEKI_RESULT_NONE,
@@ -430,7 +430,7 @@ void EnSyatekiMan_FinishPrize(EnSyatekiMan* this, PlayState* play) {
}
this->gameResult = SYATEKI_RESULT_NONE;
this->actor.parent = this->tempGallery;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = EnSyatekiMan_SetupIdle;
}
}
diff --git a/soh/src/overlays/actors/ovl_En_Syateki_Niw/z_en_syateki_niw.c b/soh/src/overlays/actors/ovl_En_Syateki_Niw/z_en_syateki_niw.c
index 9ffe7080d..29fda2421 100644
--- a/soh/src/overlays/actors/ovl_En_Syateki_Niw/z_en_syateki_niw.c
+++ b/soh/src/overlays/actors/ovl_En_Syateki_Niw/z_en_syateki_niw.c
@@ -10,7 +10,7 @@
#include "soh/frame_interpolation.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnSyatekiNiw_Init(Actor* thisx, PlayState* play);
void EnSyatekiNiw_Destroy(Actor* thisx, PlayState* play);
@@ -71,7 +71,7 @@ void EnSyatekiNiw_Init(Actor* thisx, PlayState* play) {
EnSyatekiNiw* this = (EnSyatekiNiw*)thisx;
Actor_ProcessInitChain(&this->actor, sInitChain);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
ActorShape_Init(&this->actor.shape, 0.0f, ActorShadow_DrawCircle, 25.0f);
SkelAnime_InitFlex(play, &this->skelAnime, &gCuccoSkel, &gCuccoAnim, this->jointTable, this->morphTable, 16);
diff --git a/soh/src/overlays/actors/ovl_En_Ta/z_en_ta.c b/soh/src/overlays/actors/ovl_En_Ta/z_en_ta.c
index d2e1d109a..049812303 100644
--- a/soh/src/overlays/actors/ovl_En_Ta/z_en_ta.c
+++ b/soh/src/overlays/actors/ovl_En_Ta/z_en_ta.c
@@ -11,7 +11,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnTa_Init(Actor* thisx, PlayState* play);
void EnTa_Destroy(Actor* thisx, PlayState* play);
@@ -184,7 +184,7 @@ void EnTa_Init(Actor* thisx, PlayState* play2) {
Actor_Kill(&this->actor);
} else {
if (IS_DAY) {
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->unk_2C4[0] = this->unk_2C4[1] = this->unk_2C4[2] = 7;
this->superCuccos[0] = (EnNiw*)Actor_Spawn(
&play->actorCtx, play, ACTOR_EN_NIW, this->actor.world.pos.x + 5.0f,
@@ -459,7 +459,7 @@ void func_80B14AF4(EnTa* this, PlayState* play) {
Audio_PlayActorSound2(&this->actor, NA_SE_VO_TA_CRY_1);
EnTa_SetupAction(this, func_80B14A54, EnTa_AnimRepeatCurrent);
this->unk_2CC = 65;
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
}
@@ -625,7 +625,7 @@ void func_80B15100(EnTa* this, PlayState* play) {
void func_80B15260(EnTa* this, PlayState* play) {
if (Actor_ProcessTalkRequest(&this->actor, play)) {
this->actionFunc = func_80B15100;
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
} else {
func_8002F2CC(&this->actor, play, 1000.0f);
}
@@ -732,7 +732,7 @@ void EnTa_RunCuccoGame(EnTa* this, PlayState* play) {
break;
}
this->actionFunc = func_80B15260;
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
func_8002F2CC(&this->actor, play, 1000.0f);
return;
}
@@ -1061,9 +1061,9 @@ void EnTa_IdleAfterCuccoGameFinished(EnTa* this, PlayState* play) {
this->actionFunc = func_80B1642C;
break;
}
- this->actor.flags &= ~ACTOR_FLAG_WILL_TALK;
+ this->actor.flags &= ~ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
} else {
- this->actor.flags |= ACTOR_FLAG_WILL_TALK;
+ this->actor.flags |= ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED;
func_8002F2CC(&this->actor, play, 1000.0f);
}
this->unk_2E0 |= 1;
diff --git a/soh/src/overlays/actors/ovl_En_Takara_Man/z_en_takara_man.c b/soh/src/overlays/actors/ovl_En_Takara_Man/z_en_takara_man.c
index 3afae38cf..7a450ae8a 100644
--- a/soh/src/overlays/actors/ovl_En_Takara_Man/z_en_takara_man.c
+++ b/soh/src/overlays/actors/ovl_En_Takara_Man/z_en_takara_man.c
@@ -10,7 +10,7 @@
#include "soh/OTRGlobals.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_NO_LOCKON)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_LOCK_ON_DISABLED)
void EnTakaraMan_Init(Actor* thisx, PlayState* play);
void EnTakaraMan_Reset(Actor* thisx, PlayState* play);
@@ -127,11 +127,11 @@ void func_80B1778C(EnTakaraMan* this, PlayState* play) {
absYawDiff = ABS(yawDiff);
if (absYawDiff < 0x4300) {
if (play->roomCtx.curRoom.num != this->originalRoomNum) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->unk_218 = 0;
} else {
if (!this->unk_218) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->unk_218 = 1;
}
func_8002F2CC(&this->actor, play, 100.0f);
diff --git a/soh/src/overlays/actors/ovl_En_Tana/z_en_tana.c b/soh/src/overlays/actors/ovl_En_Tana/z_en_tana.c
index 779b15473..1b4ab41c4 100644
--- a/soh/src/overlays/actors/ovl_En_Tana/z_en_tana.c
+++ b/soh/src/overlays/actors/ovl_En_Tana/z_en_tana.c
@@ -7,7 +7,7 @@
#include "z_en_tana.h"
#include "objects/object_shop_dungen/object_shop_dungen.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnTana_Init(Actor* thisx, PlayState* play);
void EnTana_Destroy(Actor* thisx, PlayState* play);
@@ -60,7 +60,7 @@ void EnTana_Init(Actor* thisx, PlayState* play) {
osSyncPrintf("☆☆☆ %s ☆☆☆\n", sShelfTypes[thisx->params]);
Actor_SetScale(thisx, 1.0f);
- thisx->flags &= ~ACTOR_FLAG_TARGETABLE;
+ thisx->flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
thisx->draw = sDrawFuncs[thisx->params];
}
diff --git a/soh/src/overlays/actors/ovl_En_Test/z_en_test.c b/soh/src/overlays/actors/ovl_En_Test/z_en_test.c
index 5accba57a..9f1b67520 100644
--- a/soh/src/overlays/actors/ovl_En_Test/z_en_test.c
+++ b/soh/src/overlays/actors/ovl_En_Test/z_en_test.c
@@ -9,7 +9,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnTest_Init(Actor* thisx, PlayState* play);
void EnTest_Destroy(Actor* thisx, PlayState* play);
@@ -307,7 +307,7 @@ void EnTest_Init(Actor* thisx, PlayState* play) {
}
if (this->actor.params == STALFOS_TYPE_INVISIBLE) {
- this->actor.flags |= ACTOR_FLAG_LENS;
+ this->actor.flags |= ACTOR_FLAG_REACT_TO_LENS;
}
}
@@ -433,7 +433,7 @@ void EnTest_SetupWaitGround(EnTest* this) {
this->timer = 15;
this->actor.scale.y = 0.0f;
this->actor.world.pos.y = this->actor.home.pos.y - 3.5f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
EnTest_SetupAction(this, EnTest_WaitGround);
}
@@ -463,7 +463,7 @@ void EnTest_SetupWaitAbove(EnTest* this) {
this->unk_7C8 = 0;
this->actor.world.pos.y = this->actor.home.pos.y + 150.0f;
Actor_SetScale(&this->actor, 0.0f);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
EnTest_SetupAction(this, EnTest_WaitAbove);
}
@@ -473,7 +473,7 @@ void EnTest_WaitAbove(EnTest* this, PlayState* play) {
if ((this->actor.xzDistToPlayer < 200.0f) && (ABS(this->actor.yDistToPlayer) < 450.0f)) {
EnTest_SetupAction(this, EnTest_Fall);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.shape.rot.y = this->actor.world.rot.y = this->actor.yawTowardsPlayer;
Actor_SetScale(&this->actor, 0.015f);
}
@@ -1071,7 +1071,7 @@ void EnTest_JumpBack(EnTest* this, PlayState* play) {
this->timer = (Rand_ZeroOne() * 5.0f) + 5.0f;
}
}
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
}
} else if (this->skelAnime.curFrame == (this->skelAnime.endFrame - 4.0f)) {
Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND);
@@ -1490,7 +1490,7 @@ void func_80862DBC(EnTest* this, PlayState* play) {
this->meleeWeaponState = -1;
}
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if (this->actor.params == STALFOS_TYPE_5) {
Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_PROP);
@@ -1519,7 +1519,7 @@ void func_80862E6C(EnTest* this, PlayState* play) {
}
this->actor.child = NULL;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
EnTest_SetupJumpBack(this);
} else if ((this->actor.params == STALFOS_TYPE_5) &&
!Actor_FindNearby(play, &this->actor, ACTOR_EN_TEST, ACTORCAT_ENEMY, 8000.0f)) {
@@ -1539,7 +1539,7 @@ void func_80862FA8(EnTest* this, PlayState* play) {
Animation_PlayOnce(&this->skelAnime, &gStalfosFallOverBackwardsAnim);
Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_DEAD);
this->unk_7DE = 0;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.colorFilterTimer = 0;
this->actor.speedXZ = 0.0f;
@@ -1573,7 +1573,7 @@ void func_808630F0(EnTest* this, PlayState* play) {
this->actor.speedXZ = 0.0f;
if (this->actor.params <= STALFOS_TYPE_CEILING) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
EnTest_SetupAction(this, func_8086318C);
} else {
func_80862DBC(this, play);
@@ -1813,10 +1813,10 @@ void EnTest_Update(Actor* thisx, PlayState* play) {
if (this->actor.params == STALFOS_TYPE_INVISIBLE) {
if (play->actorCtx.lensActive) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_LENS;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_REACT_TO_LENS;
this->actor.shape.shadowDraw = ActorShadow_DrawFeet;
} else {
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_LENS);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_REACT_TO_LENS);
this->actor.shape.shadowDraw = NULL;
}
}
@@ -1840,7 +1840,7 @@ s32 EnTest_OverrideLimbDraw(PlayState* play, s32 limbIndex, Gfx** dList, Vec3f*
CLOSE_DISPS(play->state.gfxCtx);
}
- if ((this->actor.params == STALFOS_TYPE_INVISIBLE) && !CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_LENS)) {
+ if ((this->actor.params == STALFOS_TYPE_INVISIBLE) && !CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_REACT_TO_LENS)) {
*dList = NULL;
}
diff --git a/soh/src/overlays/actors/ovl_En_Tg/z_en_tg.c b/soh/src/overlays/actors/ovl_En_Tg/z_en_tg.c
index 247db92f3..40015812a 100644
--- a/soh/src/overlays/actors/ovl_En_Tg/z_en_tg.c
+++ b/soh/src/overlays/actors/ovl_En_Tg/z_en_tg.c
@@ -7,7 +7,7 @@
#include "z_en_tg.h"
#include "objects/object_mu/object_mu.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnTg_Init(Actor* thisx, PlayState* play);
void EnTg_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Tite/z_en_tite.c b/soh/src/overlays/actors/ovl_En_Tite/z_en_tite.c
index 1fa105ef3..834ec5823 100644
--- a/soh/src/overlays/actors/ovl_En_Tite/z_en_tite.c
+++ b/soh/src/overlays/actors/ovl_En_Tite/z_en_tite.c
@@ -12,7 +12,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
// EnTite_Idle
#define vIdleTimer actionVar1
@@ -293,7 +293,7 @@ void EnTite_Attack(EnTite* this, PlayState* play) {
case TEKTITE_MID_LUNGE:
// Continue trajectory until tektite has negative velocity and has landed on ground/water surface
// Snap to ground/water surface, or if falling fast dip into the water and slow fall speed
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
if ((this->actor.bgCheckFlags & 3) ||
((this->actor.params == TEKTITE_BLUE) && (this->actor.bgCheckFlags & 0x20))) {
if (this->actor.velocity.y <= 0.0f) {
@@ -368,7 +368,7 @@ void EnTite_Attack(EnTite* this, PlayState* play) {
func_800355B8(play, &this->backLeftFootPos);
}
}
- if (!(this->collider.base.atFlags & AT_HIT) && (this->actor.flags & ACTOR_FLAG_ACTIVE)) {
+ if (!(this->collider.base.atFlags & AT_HIT) && (this->actor.flags & ACTOR_FLAG_INSIDE_CULLING_VOLUME)) {
CollisionCheck_SetAT(play, &play->colChkCtx, &this->collider.base);
} else {
Player* player = GET_PLAYER(play);
@@ -571,7 +571,7 @@ void EnTite_MoveTowardPlayer(EnTite* this, PlayState* play) {
} else {
this->actor.velocity.y = 10.0f;
this->actor.speedXZ = 4.0f;
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
this->actor.gravity = -1.0f;
if ((this->actor.params == TEKTITE_BLUE) && (this->actor.bgCheckFlags & 0x20)) {
Audio_PlayActorSound2(&this->actor, NA_SE_EN_TEKU_JUMP_WATER);
@@ -582,7 +582,7 @@ void EnTite_MoveTowardPlayer(EnTite* this, PlayState* play) {
} else {
this->actor.velocity.y = 10.0f;
this->actor.speedXZ = 4.0f;
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
this->actor.gravity = -1.0f;
if ((this->actor.params == TEKTITE_BLUE) && (this->actor.bgCheckFlags & 0x20)) {
Audio_PlayActorSound2(&this->actor, NA_SE_EN_TEKU_JUMP_WATER);
@@ -593,7 +593,7 @@ void EnTite_MoveTowardPlayer(EnTite* this, PlayState* play) {
// If in midair:
} else {
// Turn slowly toward player
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
Math_SmoothStepToS(&this->actor.shape.rot.y, this->actor.yawTowardsPlayer, 1, 1000, 0);
if (this->actor.velocity.y >= 6.0f) {
if (this->actor.bgCheckFlags & 1) {
diff --git a/soh/src/overlays/actors/ovl_En_Tk/z_en_tk.c b/soh/src/overlays/actors/ovl_En_Tk/z_en_tk.c
index e9535c3b5..e9a89a550 100644
--- a/soh/src/overlays/actors/ovl_En_Tk/z_en_tk.c
+++ b/soh/src/overlays/actors/ovl_En_Tk/z_en_tk.c
@@ -11,7 +11,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnTk_Init(Actor* thisx, PlayState* play);
void EnTk_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Torch2/z_en_torch2.c b/soh/src/overlays/actors/ovl_En_Torch2/z_en_torch2.c
index 28bc936c5..0b6f16c59 100644
--- a/soh/src/overlays/actors/ovl_En_Torch2/z_en_torch2.c
+++ b/soh/src/overlays/actors/ovl_En_Torch2/z_en_torch2.c
@@ -8,7 +8,7 @@
#include "objects/object_torch2/object_torch2.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
typedef enum {
/* 0 */ ENTORCH2_WAIT,
@@ -374,7 +374,7 @@ void EnTorch2_Update(Actor* thisx, PlayState* play2) {
player->skelAnime.curFrame = 3.0f;
sStickAngle = this->actor.yawTowardsPlayer + 0x8000;
sSwordJumpTimer = sSwordJumpState = 0;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
} else if (sSwordJumpState == 1) {
if (sSwordJumpTimer < 16) {
EnTorch2_SwingSword(play, input, this);
@@ -405,7 +405,7 @@ void EnTorch2_Update(Actor* thisx, PlayState* play2) {
sStickTilt = 0.0f;
sSwordJumpState = 1;
player->stateFlags3 |= PLAYER_STATE3_PAUSE_ACTION_FUNC;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
sSwordJumpTimer = 27;
player->meleeWeaponState = 0;
player->linearVelocity = 0.0f;
@@ -524,7 +524,7 @@ void EnTorch2_Update(Actor* thisx, PlayState* play2) {
input->cur.stick_x = input->cur.stick_y = 0;
if ((this->invincibilityTimer > 0) && (this->actor.world.pos.y < (this->actor.floorHeight - 160.0f))) {
this->stateFlags3 &= ~PLAYER_STATE3_IGNORE_CEILING_FLOOR_WATER;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->invincibilityTimer = 0;
this->actor.velocity.y = 0.0f;
this->actor.world.pos.y = sSpawnPoint.y + 40.0f;
@@ -613,7 +613,7 @@ void EnTorch2_Update(Actor* thisx, PlayState* play2) {
if (!Actor_ApplyDamage(&this->actor)) {
func_800F5B58();
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE);
this->knockbackType = 2;
this->knockbackSpeed = 6.0f;
this->knockbackYVelocity = 6.0f;
@@ -633,7 +633,7 @@ void EnTorch2_Update(Actor* thisx, PlayState* play2) {
Actor_SetColorFilter(&this->actor, 0, 0xFF, 0x2000, 0x50);
}
} else {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->knockbackDamage = this->actor.colChkInfo.damage;
this->knockbackType = 1;
this->knockbackYVelocity = 6.0f;
diff --git a/soh/src/overlays/actors/ovl_En_Toryo/z_en_toryo.c b/soh/src/overlays/actors/ovl_En_Toryo/z_en_toryo.c
index f0abb973f..d13309059 100644
--- a/soh/src/overlays/actors/ovl_En_Toryo/z_en_toryo.c
+++ b/soh/src/overlays/actors/ovl_En_Toryo/z_en_toryo.c
@@ -11,7 +11,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void EnToryo_Init(Actor* thisx, PlayState* play);
void EnToryo_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Tp/z_en_tp.c b/soh/src/overlays/actors/ovl_En_Tp/z_en_tp.c
index 6f849948a..20966eac4 100644
--- a/soh/src/overlays/actors/ovl_En_Tp/z_en_tp.c
+++ b/soh/src/overlays/actors/ovl_En_Tp/z_en_tp.c
@@ -155,7 +155,7 @@ void EnTp_Init(Actor* thisx, PlayState* play2) {
this->collider.elements->dim.modelSphere.radius = this->collider.elements->dim.worldSphere.radius = 8;
EnTp_Head_SetupWait(this);
this->actor.focus.pos = this->actor.world.pos;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED;
Actor_SetScale(&this->actor, 1.5f);
for (i = 0; i <= 6; i++) {
@@ -171,7 +171,7 @@ void EnTp_Init(Actor* thisx, PlayState* play2) {
Actor_SetScale(&next->actor, 0.3f);
if (i == 2) {
- next->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ next->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED;
next->unk_150 = 1; // Why?
}
@@ -211,13 +211,13 @@ void EnTp_Tail_FollowHead(EnTp* this, PlayState* play) {
}
} else {
if (this->unk_150 != 0) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
}
if (this->head->unk_150 != 0) {
this->actor.speedXZ = this->red = this->actor.velocity.y = this->heightPhase = 0.0f;
if (this->actor.world.pos.y < this->head->actor.home.pos.y) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
this->actor.world.pos = this->actor.parent->prevPos;
@@ -351,7 +351,7 @@ void EnTp_Fragment_SetupFade(EnTp* this) {
this->actor.velocity.x = (Rand_ZeroOne() - 0.5f) * 1.5f;
this->actor.velocity.y = (Rand_ZeroOne() - 0.5f) * 1.5f;
this->actor.velocity.z = (Rand_ZeroOne() - 0.5f) * 1.5f;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
EnTp_SetupAction(this, EnTp_Fragment_Fade);
}
@@ -595,7 +595,7 @@ void EnTp_UpdateDamage(EnTp* this, PlayState* play) {
}
if (this->actor.colChkInfo.health == 0) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
head = this->head;
if (head->actor.params <= TAILPASARAN_HEAD) {
diff --git a/soh/src/overlays/actors/ovl_En_Tr/z_en_tr.c b/soh/src/overlays/actors/ovl_En_Tr/z_en_tr.c
index eded6eda6..3469435db 100644
--- a/soh/src/overlays/actors/ovl_En_Tr/z_en_tr.c
+++ b/soh/src/overlays/actors/ovl_En_Tr/z_en_tr.c
@@ -9,7 +9,7 @@
#include <assert.h>
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnTr_Init(Actor* thisx, PlayState* play);
void EnTr_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Trap/z_en_trap.c b/soh/src/overlays/actors/ovl_En_Trap/z_en_trap.c
index bdfb475cd..7ef4c6a4c 100644
--- a/soh/src/overlays/actors/ovl_En_Trap/z_en_trap.c
+++ b/soh/src/overlays/actors/ovl_En_Trap/z_en_trap.c
@@ -7,7 +7,7 @@
#include "z_en_trap.h"
#include "objects/object_trap/object_trap.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
#define BEGIN_MOVE_OUT 65535.0f
diff --git a/soh/src/overlays/actors/ovl_En_Tubo_Trap/z_en_tubo_trap.c b/soh/src/overlays/actors/ovl_En_Tubo_Trap/z_en_tubo_trap.c
index a9ce7232b..c88b2acf9 100644
--- a/soh/src/overlays/actors/ovl_En_Tubo_Trap/z_en_tubo_trap.c
+++ b/soh/src/overlays/actors/ovl_En_Tubo_Trap/z_en_tubo_trap.c
@@ -10,7 +10,7 @@
#include "vt.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnTuboTrap_Init(Actor* thisx, PlayState* play);
void EnTuboTrap_Destroy(Actor* thisx, PlayState* play);
@@ -238,7 +238,7 @@ void EnTuboTrap_WaitForProximity(EnTuboTrap* this, PlayState* play) {
if (this->actor.xzDistToPlayer < 200.0f && this->actor.world.pos.y <= player->actor.world.pos.y) {
Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_ENEMY);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
targetHeight = 40.0f + -10.0f * gSaveContext.linkAge;
this->targetY = player->actor.world.pos.y + targetHeight;
diff --git a/soh/src/overlays/actors/ovl_En_Vali/z_en_vali.c b/soh/src/overlays/actors/ovl_En_Vali/z_en_vali.c
index e6c62d961..696c804cd 100644
--- a/soh/src/overlays/actors/ovl_En_Vali/z_en_vali.c
+++ b/soh/src/overlays/actors/ovl_En_Vali/z_en_vali.c
@@ -10,7 +10,7 @@
#include <stdlib.h>
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_IGNORE_QUAKE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_IGNORE_QUAKE)
void EnVali_Init(Actor* thisx, PlayState* play);
void EnVali_Destroy(Actor* thisx, PlayState* play);
@@ -158,7 +158,7 @@ void EnVali_Init(Actor* thisx, PlayState* play) {
EnVali_SetupLurk(this);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.floorHeight = BgCheck_EntityRaycastFloor4(&play->colCtx, &this->actor.floorPoly, &bgId,
&this->actor, &this->actor.world.pos);
this->actor.params = BARI_TYPE_NORMAL;
@@ -187,7 +187,7 @@ void EnVali_SetupLurk(EnVali* this) {
void EnVali_SetupDropAppear(EnVali* this) {
this->actor.draw = EnVali_Draw;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.velocity.y = 1.0f;
this->actionFunc = EnVali_DropAppear;
}
@@ -203,7 +203,7 @@ void EnVali_SetupFloatIdle(EnVali* this) {
this->leftArmCollider.dim.quad[1].y = this->rightArmCollider.dim.quad[0].y =
this->rightArmCollider.dim.quad[1].y = this->actor.world.pos.y - 10.0f;
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->bodyCollider.base.acFlags |= AC_ON;
this->slingshotReactionTimer = 0;
this->floatHomeHeight = this->actor.world.pos.y;
@@ -215,7 +215,7 @@ void EnVali_SetupFloatIdle(EnVali* this) {
*/
void EnVali_SetupAttacked(EnVali* this) {
this->lightningTimer = 20;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->bodyCollider.base.acFlags &= ~AC_ON;
this->actionFunc = EnVali_Attacked;
}
@@ -261,7 +261,7 @@ void EnVali_SetupDivideAndDie(EnVali* this, PlayState* play) {
this->timer = Rand_S16Offset(10, 10);
this->bodyCollider.base.acFlags &= ~AC_ON;
SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_BARI_SPLIT);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.draw = NULL;
this->actionFunc = EnVali_DivideAndDie;
GameInteractor_ExecuteOnEnemyDefeat(&this->actor);
@@ -288,8 +288,8 @@ void EnVali_SetupFrozen(EnVali* this) {
void EnVali_SetupReturnToLurk(EnVali* this) {
Animation_MorphToPlayOnce(&this->skelAnime, &gBariLurkingAnim, 10.0f);
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = EnVali_ReturnToLurk;
}
@@ -375,7 +375,7 @@ void EnVali_Attacked(EnVali* this, PlayState* play) {
EnVali_DischargeLightning(this, play);
if (this->lightningTimer == 0) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->bodyCollider.base.acFlags |= AC_ON;
if (this->actor.params == BARI_TYPE_SWORD_DAMAGE) {
EnVali_SetupRetaliate(this);
@@ -516,7 +516,7 @@ void EnVali_UpdateDamage(EnVali* this, PlayState* play) {
if (Actor_ApplyDamage(&this->actor) == 0) {
Audio_PlayActorSound2(&this->actor, NA_SE_EN_BARI_DEAD);
Enemy_StartFinishingBlow(play, &this->actor);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
} else if ((this->actor.colChkInfo.damageEffect != BARI_DMGEFF_STUN) &&
(this->actor.colChkInfo.damageEffect != BARI_DMGEFF_SLINGSHOT)) {
Audio_PlayActorSound2(&this->actor, NA_SE_EN_BARI_DAMAGE);
diff --git a/soh/src/overlays/actors/ovl_En_Vase/z_en_vase.c b/soh/src/overlays/actors/ovl_En_Vase/z_en_vase.c
index 5ecb21ef7..4bc53b2bc 100644
--- a/soh/src/overlays/actors/ovl_En_Vase/z_en_vase.c
+++ b/soh/src/overlays/actors/ovl_En_Vase/z_en_vase.c
@@ -7,7 +7,7 @@
#include "z_en_vase.h"
#include "objects/object_vase/object_vase.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnVase_Init(Actor* thisx, PlayState* play);
void EnVase_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Vb_Ball/z_en_vb_ball.c b/soh/src/overlays/actors/ovl_En_Vb_Ball/z_en_vb_ball.c
index dce0ad448..dce137052 100644
--- a/soh/src/overlays/actors/ovl_En_Vb_Ball/z_en_vb_ball.c
+++ b/soh/src/overlays/actors/ovl_En_Vb_Ball/z_en_vb_ball.c
@@ -9,7 +9,7 @@
#include "objects/gameplay_keep/gameplay_keep.h"
#include "overlays/actors/ovl_Boss_Fd/z_boss_fd.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EnVbBall_Init(Actor* thisx, PlayState* play);
void EnVbBall_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Viewer/z_en_viewer.c b/soh/src/overlays/actors/ovl_En_Viewer/z_en_viewer.c
index 2b34ffde7..6e6e38787 100644
--- a/soh/src/overlays/actors/ovl_En_Viewer/z_en_viewer.c
+++ b/soh/src/overlays/actors/ovl_En_Viewer/z_en_viewer.c
@@ -17,7 +17,7 @@
#include "soh/frame_interpolation.h"
#include <assert.h>
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnViewer_Init(Actor* thisx, PlayState* play);
void EnViewer_Destroy(Actor* thisx, PlayState* play);
@@ -178,7 +178,7 @@ void EnViewer_InitImpl(EnViewer* this, PlayState* play) {
if (!Object_IsLoaded(&play->objectCtx, skelObjBankIndex) ||
!Object_IsLoaded(&play->objectCtx, this->animObjBankIndex)) {
- this->actor.flags &= ~ACTOR_FLAG_ACTIVE;
+ this->actor.flags &= ~ACTOR_FLAG_INSIDE_CULLING_VOLUME;
return;
}
diff --git a/soh/src/overlays/actors/ovl_En_Vm/z_en_vm.c b/soh/src/overlays/actors/ovl_En_Vm/z_en_vm.c
index 2f6241ef8..69bbf154d 100644
--- a/soh/src/overlays/actors/ovl_En_Vm/z_en_vm.c
+++ b/soh/src/overlays/actors/ovl_En_Vm/z_en_vm.c
@@ -11,7 +11,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnVm_Init(Actor* thisx, PlayState* play);
void EnVm_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Wall_Tubo/z_en_wall_tubo.c b/soh/src/overlays/actors/ovl_En_Wall_Tubo/z_en_wall_tubo.c
index f3e602981..5e6265dcc 100644
--- a/soh/src/overlays/actors/ovl_En_Wall_Tubo/z_en_wall_tubo.c
+++ b/soh/src/overlays/actors/ovl_En_Wall_Tubo/z_en_wall_tubo.c
@@ -10,7 +10,7 @@
#include "overlays/actors/ovl_Bg_Bowl_Wall/z_bg_bowl_wall.h"
#include "overlays/effects/ovl_Effect_Ss_Hahen/z_eff_ss_hahen.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnWallTubo_Init(Actor* thisx, PlayState* play);
void EnWallTubo_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Wallmas/z_en_wallmas.c b/soh/src/overlays/actors/ovl_En_Wallmas/z_en_wallmas.c
index 3590f620d..573011482 100644
--- a/soh/src/overlays/actors/ovl_En_Wallmas/z_en_wallmas.c
+++ b/soh/src/overlays/actors/ovl_En_Wallmas/z_en_wallmas.c
@@ -10,7 +10,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
#define TIMER_SCALE ((f32)OS_CLOCK_RATE / 10000000000)
#define DEGREE_60_RAD (60.0f * M_PI / 180.0f)
@@ -161,8 +161,8 @@ void EnWallmas_Destroy(Actor* thisx, PlayState* play) {
void EnWallmas_TimerInit(EnWallmas* this, PlayState* play) {
Player* player = GET_PLAYER(play);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
- this->actor.flags |= ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
+ this->actor.flags |= ACTOR_FLAG_DRAW_CULLING_DISABLED;
this->timer = 0x82;
this->actor.velocity.y = 0.0f;
this->actor.world.pos.y = player->actor.world.pos.y;
@@ -182,8 +182,8 @@ void EnWallmas_SetupDrop(EnWallmas* this, PlayState* play) {
this->actor.world.pos.y = player->actor.world.pos.y + 300.0f;
this->actor.world.rot.y = player->actor.shape.rot.y + 0x8000;
this->actor.floorHeight = player->actor.floorHeight;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
- this->actor.flags &= ~ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
+ this->actor.flags &= ~ACTOR_FLAG_DRAW_CULLING_DISABLED;
this->actionFunc = EnWallmas_Drop;
}
@@ -278,7 +278,7 @@ void EnWallmas_SetupTakePlayer(EnWallmas* this, PlayState* play) {
void EnWallmas_ProximityOrSwitchInit(EnWallmas* this) {
this->timer = 0;
this->actor.draw = NULL;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if (this->actor.params == WMT_PROXIMITY || this->actor.params == WMT_SHADOWTAG) {
this->actionFunc = EnWallmas_WaitForProximity;
} else {
@@ -541,7 +541,7 @@ void EnWallmas_ColUpdate(EnWallmas* this, PlayState* play) {
if (Actor_ApplyDamage(&this->actor) == 0) {
Enemy_StartFinishingBlow(play, &this->actor);
Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_DEAD);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
} else {
if (this->actor.colChkInfo.damage != 0) {
Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_DAMAGE);
diff --git a/soh/src/overlays/actors/ovl_En_Weather_Tag/z_en_weather_tag.c b/soh/src/overlays/actors/ovl_En_Weather_Tag/z_en_weather_tag.c
index f8b1cfd10..123384e63 100644
--- a/soh/src/overlays/actors/ovl_En_Weather_Tag/z_en_weather_tag.c
+++ b/soh/src/overlays/actors/ovl_En_Weather_Tag/z_en_weather_tag.c
@@ -7,7 +7,7 @@
#include "z_en_weather_tag.h"
#include "vt.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnWeatherTag_Init(Actor* thisx, PlayState* play);
void EnWeatherTag_Destroy(Actor* thisx, PlayState* play);
@@ -54,7 +54,7 @@ void EnWeatherTag_Destroy(Actor* thisx, PlayState* play) {
void EnWeatherTag_Init(Actor* thisx, PlayState* play) {
EnWeatherTag* this = (EnWeatherTag*)thisx;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
switch (this->actor.params & 0xF) {
case EN_WEATHER_TAG_TYPE_CLOUDY_MARKET:
diff --git a/soh/src/overlays/actors/ovl_En_Weiyer/z_en_weiyer.c b/soh/src/overlays/actors/ovl_En_Weiyer/z_en_weiyer.c
index 80d82f702..daff8bc46 100644
--- a/soh/src/overlays/actors/ovl_En_Weiyer/z_en_weiyer.c
+++ b/soh/src/overlays/actors/ovl_En_Weiyer/z_en_weiyer.c
@@ -9,7 +9,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE)
void EnWeiyer_Init(Actor* thisx, PlayState* play);
void EnWeiyer_Destroy(Actor* thisx, PlayState* play);
@@ -576,7 +576,7 @@ void func_80B3368C(EnWeiyer* this, PlayState* play) {
} else if (Actor_ApplyDamage(&this->actor) == 0) {
Enemy_StartFinishingBlow(play, &this->actor);
Audio_PlayActorSound2(&this->actor, NA_SE_EN_EIER_DEAD);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
func_80B32724(this);
GameInteractor_ExecuteOnEnemyDefeat(&this->actor);
} else {
diff --git a/soh/src/overlays/actors/ovl_En_Wf/z_en_wf.c b/soh/src/overlays/actors/ovl_En_Wf/z_en_wf.c
index 91a23dc79..155bfa357 100644
--- a/soh/src/overlays/actors/ovl_En_Wf/z_en_wf.c
+++ b/soh/src/overlays/actors/ovl_En_Wf/z_en_wf.c
@@ -11,7 +11,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnWf_Init(Actor* thisx, PlayState* play);
void EnWf_Destroy(Actor* thisx, PlayState* play);
@@ -375,7 +375,7 @@ void EnWf_SetupWaitToAppear(EnWf* this) {
this->actionTimer = 20;
this->unk_300 = false;
this->action = WOLFOS_ACTION_WAIT_TO_APPEAR;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.scale.y = 0.0f;
this->actor.gravity = 0.0f;
EnWf_SetupAction(this, EnWf_WaitToAppear);
@@ -387,7 +387,7 @@ void EnWf_WaitToAppear(EnWf* this, PlayState* play) {
if (this->actor.xzDistToPlayer < 240.0f) {
this->actionTimer = 5;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
// Disable miniboss music with Enemy Randomizer because the music would keep
// playing if the enemy was never defeated, which is common with Enemy Randomizer.
@@ -1195,7 +1195,7 @@ void EnWf_SetupDie(EnWf* this) {
}
this->action = WOLFOS_ACTION_DIE;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionTimer = this->skelAnime.animLength;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_WOLFOS_DEAD);
EnWf_SetupAction(this, EnWf_Die);
diff --git a/soh/src/overlays/actors/ovl_En_Wonder_Item/z_en_wonder_item.c b/soh/src/overlays/actors/ovl_En_Wonder_Item/z_en_wonder_item.c
index a18adafcf..8f140ae57 100644
--- a/soh/src/overlays/actors/ovl_En_Wonder_Item/z_en_wonder_item.c
+++ b/soh/src/overlays/actors/ovl_En_Wonder_Item/z_en_wonder_item.c
@@ -116,7 +116,7 @@ void EnWonderItem_Init(Actor* thisx, PlayState* play) {
osSyncPrintf("\n\n");
// "Mysterious mystery, very mysterious"
osSyncPrintf(VT_FGCOL(GREEN) "☆☆☆☆☆ 不思議不思議まか不思議 \t ☆☆☆☆☆ %x\n" VT_RST, this->actor.params);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->wonderMode = (this->actor.params >> 0xB) & 0x1F;
this->itemDrop = (this->actor.params >> 6) & 0x1F;
diff --git a/soh/src/overlays/actors/ovl_En_Wonder_Talk/z_en_wonder_talk.c b/soh/src/overlays/actors/ovl_En_Wonder_Talk/z_en_wonder_talk.c
index 930db68d4..a72eb3930 100644
--- a/soh/src/overlays/actors/ovl_En_Wonder_Talk/z_en_wonder_talk.c
+++ b/soh/src/overlays/actors/ovl_En_Wonder_Talk/z_en_wonder_talk.c
@@ -7,7 +7,7 @@
#include "z_en_wonder_talk.h"
#include "vt.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_NO_LOCKON)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_LOCK_ON_DISABLED)
void EnWonderTalk_Init(Actor* thisx, PlayState* play);
void EnWonderTalk_Destroy(Actor* thisx, PlayState* play);
@@ -147,7 +147,7 @@ void func_80B3943C(EnWonderTalk* this, PlayState* play) {
}
} else {
if (this->switchFlag >= 0) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Flags_SetSwitch(play, this->switchFlag);
}
this->actionFunc = func_80B391CC;
@@ -179,7 +179,7 @@ void func_80B3943C(EnWonderTalk* this, PlayState* play) {
void func_80B395F0(EnWonderTalk* this, PlayState* play) {
if (this->unk_156 == Message_GetState(&play->msgCtx) && Message_ShouldAdvance(play)) {
if (this->switchFlag >= 0) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
Flags_SetSwitch(play, this->switchFlag);
}
switch (this->unk_150) {
diff --git a/soh/src/overlays/actors/ovl_En_Wonder_Talk2/z_en_wonder_talk2.c b/soh/src/overlays/actors/ovl_En_Wonder_Talk2/z_en_wonder_talk2.c
index ffc5062e7..33daf2692 100644
--- a/soh/src/overlays/actors/ovl_En_Wonder_Talk2/z_en_wonder_talk2.c
+++ b/soh/src/overlays/actors/ovl_En_Wonder_Talk2/z_en_wonder_talk2.c
@@ -8,7 +8,7 @@
#include "vt.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_NO_LOCKON)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_LOCK_ON_DISABLED)
void EnWonderTalk2_Init(Actor* thisx, PlayState* play);
void EnWonderTalk2_Destroy(Actor* thisx, PlayState* play);
@@ -93,7 +93,7 @@ void EnWonderTalk2_Init(Actor* thisx, PlayState* play) {
this->talkMode = 4;
}
if (this->talkMode == 3) {
- this->actor.flags &= ~ACTOR_FLAG_NO_LOCKON;
+ this->actor.flags &= ~ACTOR_FLAG_LOCK_ON_DISABLED;
this->actionFunc = EnWonderTalk2_DoNothing;
} else {
this->actionFunc = func_80B3A10C;
@@ -116,7 +116,7 @@ void func_80B3A15C(EnWonderTalk2* this, PlayState* play) {
this->unk_158++;
if ((this->switchFlag >= 0) && Flags_GetSwitch(play, this->switchFlag)) {
if (!this->unk_15A) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->unk_15A = true;
}
} else if (Actor_ProcessTalkRequest(&this->actor, play)) {
@@ -194,7 +194,7 @@ void func_80B3A3D4(EnWonderTalk2* this, PlayState* play) {
if (this->talkMode == 4) {
this->unk_15A = true;
}
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_UPDATE_WHILE_CULLED);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_UPDATE_CULLING_DISABLED);
if (GameInteractor_Should(VB_WONDER_TALK, true, this)) {
Player_SetCsActionWithHaltedActors(play, NULL, 7);
}
@@ -211,7 +211,7 @@ void func_80B3A4F8(EnWonderTalk2* this, PlayState* play) {
this->unk_158++;
if (this->switchFlag >= 0 && Flags_GetSwitch(play, this->switchFlag)) {
if (!this->unk_15A) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->unk_15A = true;
}
} else if ((this->talkMode != 4) || !this->unk_15A) {
@@ -259,7 +259,7 @@ void func_80B3A4F8(EnWonderTalk2* this, PlayState* play) {
Message_StartTextbox(play, this->actor.textId, NULL);
Player_SetCsActionWithHaltedActors(play, NULL, 8);
}
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->actionFunc = func_80B3A3D4;
}
diff --git a/soh/src/overlays/actors/ovl_En_Wood02/z_en_wood02.c b/soh/src/overlays/actors/ovl_En_Wood02/z_en_wood02.c
index fc25db9af..6f753af03 100644
--- a/soh/src/overlays/actors/ovl_En_Wood02/z_en_wood02.c
+++ b/soh/src/overlays/actors/ovl_En_Wood02/z_en_wood02.c
@@ -291,7 +291,7 @@ void EnWood02_Init(Actor* thisx, PlayState* play2) {
this->actor.world.pos.x += (sSpawnSin * sSpawnDistance[5]);
this->actor.world.pos.z += (sSpawnCos * sSpawnDistance[5]);
} else {
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
// Snap to floor, or remove if over void
@@ -332,7 +332,7 @@ void EnWood02_Update(Actor* thisx, PlayState* play2) {
// Despawn extra trees in a group if out of range
if ((this->spawnType == WOOD_SPAWN_SPAWNED) && (this->actor.parent != NULL)) {
- if (!(this->actor.flags & ACTOR_FLAG_ACTIVE)) {
+ if (!(this->actor.flags & ACTOR_FLAG_INSIDE_CULLING_VOLUME)) {
new_var = this->unk_14E[0];
phi_v0 = 0;
diff --git a/soh/src/overlays/actors/ovl_En_Xc/z_en_xc.c b/soh/src/overlays/actors/ovl_En_Xc/z_en_xc.c
index a5d582db2..89d889a38 100644
--- a/soh/src/overlays/actors/ovl_En_Xc/z_en_xc.c
+++ b/soh/src/overlays/actors/ovl_En_Xc/z_en_xc.c
@@ -17,7 +17,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnXc_Init(Actor* thisx, PlayState* play);
void EnXc_Destroy(Actor* thisx, PlayState* play);
@@ -2216,7 +2216,7 @@ void EnXc_SetupDialogueAction(EnXc* this, PlayState* play) {
if (Actor_ProcessTalkRequest(&this->actor, play)) {
this->action = SHEIK_ACTION_IN_DIALOGUE;
} else {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY; //this arrangment is cute but I would rather handle all message selection in ship code
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY; //this arrangment is cute but I would rather handle all message selection in ship code
if (INV_CONTENT(ITEM_HOOKSHOT) != ITEM_NONE) {
this->actor.textId = 0x7010; //"You have what you need"
} else {
@@ -2229,7 +2229,7 @@ void EnXc_SetupDialogueAction(EnXc* this, PlayState* play) {
void func_80B41798(EnXc* this, PlayState* play) {
if (Message_GetState(&play->msgCtx) == TEXT_STATE_CLOSING) {
this->action = SHEIK_ACTION_BLOCK_PEDESTAL;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
}
}
diff --git a/soh/src/overlays/actors/ovl_En_Yabusame_Mark/z_en_yabusame_mark.c b/soh/src/overlays/actors/ovl_En_Yabusame_Mark/z_en_yabusame_mark.c
index be77887db..683e601a0 100644
--- a/soh/src/overlays/actors/ovl_En_Yabusame_Mark/z_en_yabusame_mark.c
+++ b/soh/src/overlays/actors/ovl_En_Yabusame_Mark/z_en_yabusame_mark.c
@@ -81,7 +81,7 @@ void EnYabusameMark_Init(Actor* thisx, PlayState* play) {
osSyncPrintf("\n\n");
osSyncPrintf(VT_FGCOL(GREEN) "☆☆☆☆☆ やぶさめまと ☆☆☆☆☆ %x\n" VT_RST, this->actor.params);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->typeIndex = this->actor.params;
this->actor.targetMode = 5;
osSyncPrintf(VT_FGCOL(GREEN) "☆☆☆☆☆ 種類インデックス \t ☆☆☆☆☆ %d\n" VT_RST, this->typeIndex);
@@ -105,7 +105,7 @@ void EnYabusameMark_Init(Actor* thisx, PlayState* play) {
Collider_InitQuad(play, &this->collider);
Collider_SetQuad(play, &this->collider, &this->actor, &sQuadInit);
this->worldPos = this->actor.world.pos;
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
if (gSaveContext.sceneSetupIndex != 4) {
Actor_Kill(&this->actor);
return;
diff --git a/soh/src/overlays/actors/ovl_En_Yukabyun/z_en_yukabyun.c b/soh/src/overlays/actors/ovl_En_Yukabyun/z_en_yukabyun.c
index 96cda6951..cccfe2414 100644
--- a/soh/src/overlays/actors/ovl_En_Yukabyun/z_en_yukabyun.c
+++ b/soh/src/overlays/actors/ovl_En_Yukabyun/z_en_yukabyun.c
@@ -8,7 +8,7 @@
#include "objects/object_yukabyun/object_yukabyun.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnYukabyun_Init(Actor* thisx, PlayState* play);
void EnYukabyun_Destroy(Actor* thisx, PlayState* play);
@@ -82,7 +82,7 @@ void func_80B43A94(EnYukabyun* this, PlayState* play) {
this->unk_150--;
}
if (this->unk_150 == 0) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_IGNORE_QUAKE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_IGNORE_QUAKE;
this->actionfunc = func_80B43AD4;
}
}
@@ -125,7 +125,7 @@ void EnYukabyun_Update(Actor* thisx, PlayState* play) {
this->collider.base.atFlags &= ~AT_HIT;
this->collider.base.acFlags &= ~AC_HIT;
this->collider.base.ocFlags1 &= ~OC1_HIT;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE);
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE);
SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 30, NA_SE_EN_OCTAROCK_ROCK);
this->actionfunc = EnYukabyun_Break;
}
@@ -137,7 +137,7 @@ void EnYukabyun_Update(Actor* thisx, PlayState* play) {
Actor_UpdateBgCheckInfo(play, &this->actor, 5.0f, 20.0f, 8.0f, 5);
Collider_UpdateCylinder(&this->actor, &this->collider);
- this->actor.flags |= ACTOR_FLAG_PLAY_HIT_SFX;
+ this->actor.flags |= ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT;
CollisionCheck_SetAT(play, &play->colChkCtx, &this->collider.base);
CollisionCheck_SetAC(play, &play->colChkCtx, &this->collider.base);
diff --git a/soh/src/overlays/actors/ovl_En_Zf/z_en_zf.c b/soh/src/overlays/actors/ovl_En_Zf/z_en_zf.c
index 85a878cc6..97254cd46 100644
--- a/soh/src/overlays/actors/ovl_En_Zf/z_en_zf.c
+++ b/soh/src/overlays/actors/ovl_En_Zf/z_en_zf.c
@@ -9,7 +9,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnZf_Init(Actor* thisx, PlayState* play);
void EnZf_Destroy(Actor* thisx, PlayState* play);
@@ -636,7 +636,7 @@ void EnZf_SetupDropIn(EnZf* this) {
this->hopAnimIndex = 1;
this->action = ENZF_ACTION_DROP_IN;
this->actor.bgCheckFlags &= ~2;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.shape.rot.y = this->actor.world.rot.y = this->actor.yawTowardsPlayer;
EnZf_SetupAction(this, EnZf_DropIn);
}
@@ -644,7 +644,7 @@ void EnZf_SetupDropIn(EnZf* this) {
void EnZf_DropIn(EnZf* this, PlayState* play) {
if (this->unk_3F0 == 1) {
Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_CRY);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
if (this->actor.params == ENZF_TYPE_LIZALFOS_MINIBOSS_A) {
func_800F5ACC(NA_BGM_MINI_BOSS);
@@ -656,7 +656,7 @@ void EnZf_DropIn(EnZf* this, PlayState* play) {
this->unk_3F0--;
} else if (this->actor.xzDistToPlayer <= 160.0f) {
this->unk_3F0 = 0;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_CRY);
}
@@ -1904,7 +1904,7 @@ void EnZf_SetupDie(EnZf* this) {
}
this->action = ENZF_ACTION_DIE;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
if (D_80B4A1B4 != -1) {
if (this->actor.prev != NULL) {
diff --git a/soh/src/overlays/actors/ovl_En_Zl1/z_en_zl1.c b/soh/src/overlays/actors/ovl_En_Zl1/z_en_zl1.c
index 584ab5686..c334944ef 100644
--- a/soh/src/overlays/actors/ovl_En_Zl1/z_en_zl1.c
+++ b/soh/src/overlays/actors/ovl_En_Zl1/z_en_zl1.c
@@ -7,7 +7,7 @@
#include "z_en_zl1.h"
#include "objects/object_zl1/object_zl1.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
void EnZl1_Init(Actor* thisx, PlayState* play);
void EnZl1_Destroy(Actor* thisx, PlayState* play);
@@ -556,7 +556,7 @@ void func_80B4BF2C(EnZl1* this, PlayState* play) {
if (Actor_TextboxIsClosing(&this->actor, play)) {
Player_SetCsActionWithHaltedActors(play, &this->actor, 7);
Interface_ChangeAlpha(50);
- this->actor.flags &= ~ACTOR_FLAG_PLAYER_TALKED_TO;
+ this->actor.flags &= ~ACTOR_FLAG_TALK;
this->unk_1E2 = 4;
}
break;
diff --git a/soh/src/overlays/actors/ovl_En_Zl2/z_en_zl2.c b/soh/src/overlays/actors/ovl_En_Zl2/z_en_zl2.c
index 672f8a63b..6f2a816f6 100644
--- a/soh/src/overlays/actors/ovl_En_Zl2/z_en_zl2.c
+++ b/soh/src/overlays/actors/ovl_En_Zl2/z_en_zl2.c
@@ -12,7 +12,7 @@
#include "objects/object_zl2_anime1/object_zl2_anime1.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnZl2_Init(Actor* thisx, PlayState* play);
void EnZl2_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_En_Zl3/z_en_zl3.c b/soh/src/overlays/actors/ovl_En_Zl3/z_en_zl3.c
index 125b7351a..d01fc77d4 100644
--- a/soh/src/overlays/actors/ovl_En_Zl3/z_en_zl3.c
+++ b/soh/src/overlays/actors/ovl_En_Zl3/z_en_zl3.c
@@ -13,7 +13,7 @@
#include "objects/object_zl2_anime2/object_zl2_anime2.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void EnZl3_Init(Actor* thisx, PlayState* play);
void EnZl3_Destroy(Actor* thisx, PlayState* play);
@@ -1009,7 +1009,7 @@ void func_80B55780(EnZl3* this, PlayState* play) {
this->drawConfig = 1;
osSyncPrintf("ゼルダ姫のEn_Zl3_Actor_inFinal2_Initは通った!!!!!!!!!!!!!!!!!!!!!!!!!\n");
EnZl3_setMouthIndex(this, 1);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
void func_80B55808(EnZl3* this) {
@@ -1106,8 +1106,8 @@ void func_80B55C4C(EnZl3* this, s32 arg1) {
void func_80B55C70(EnZl3* this) {
func_80B54E14(this, &gZelda2Anime2Anim_008684, 2, -8.0f, 0);
this->action = 12;
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
void func_80B55CCC(EnZl3* this, s32 arg1) {
@@ -1120,20 +1120,20 @@ void func_80B55D00(EnZl3* this, PlayState* play) {
if (Actor_ProcessTalkRequest(&this->actor, play)) {
this->action = 13;
} else if (ABS((s16)(this->actor.yawTowardsPlayer - this->actor.shape.rot.y)) <= 0x4300) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.textId = 0x70D5;
func_8002F2F4(&this->actor, play);
} else {
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
}
void func_80B55DB0(EnZl3* this, PlayState* play) {
if (Message_GetState(&play->msgCtx) == TEXT_STATE_CLOSING) {
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->action = 12;
}
}
@@ -1179,14 +1179,14 @@ void func_80B55F6C(EnZl3* this, PlayState* play) {
BossGanon2* bossGanon2 = func_80B53488(this, play);
if ((bossGanon2 != NULL) && (bossGanon2->unk_324 <= (10.0f / 81.0f))) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.textId = 0x7059;
func_8002F2F4(&this->actor, play);
}
} else {
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
}
@@ -1211,8 +1211,8 @@ void func_80B56090(EnZl3* this, s32 arg1) {
void func_80B56108(EnZl3* this, PlayState* play) {
if (Message_GetState(&play->msgCtx) == TEXT_STATE_CLOSING) {
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->action = 16;
}
}
@@ -1241,22 +1241,22 @@ void func_80B56214(EnZl3* this, PlayState* play) {
if (bossGanon2 != NULL) {
if (bossGanon2->unk_324 <= (10.0f / 81.0f)) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.textId = 0x7059;
func_8002F2F4(&this->actor, play);
}
}
} else {
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
}
void func_80B562F4(EnZl3* this, PlayState* play) {
if (Message_GetState(&play->msgCtx) == TEXT_STATE_CLOSING) {
- this->actor.flags &= ~(ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY);
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->action = 20;
}
}
@@ -1696,7 +1696,7 @@ void func_80B57350(EnZl3* this, PlayState* play) {
s16 temp_v0 = this->actor.yawTowardsPlayer - this->actor.shape.rot.y;
if (ABS(temp_v0) <= 0x4300) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
this->actor.textId = func_80B572F0(play);
func_8002F2F4(&this->actor, play);
}
@@ -2519,7 +2519,7 @@ void func_80B59828(EnZl3* this, PlayState* play) {
s16 newRotY;
func_80B54E14(this, &gZelda2Anime2Anim_009FBC, 0, 0.0f, 0);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
func_80B56F10(this, play);
newRotY = func_80B571A8(this);
this->actor.shape.rot.y = newRotY;
diff --git a/soh/src/overlays/actors/ovl_En_Zl4/z_en_zl4.c b/soh/src/overlays/actors/ovl_En_Zl4/z_en_zl4.c
index a50d64766..01c119c89 100644
--- a/soh/src/overlays/actors/ovl_En_Zl4/z_en_zl4.c
+++ b/soh/src/overlays/actors/ovl_En_Zl4/z_en_zl4.c
@@ -11,7 +11,7 @@
#include "soh/ResourceManagerHelpers.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_CULLING_DISABLED)
typedef enum {
/* 0 */ ZL4_CS_WAIT,
diff --git a/soh/src/overlays/actors/ovl_En_Zo/z_en_zo.c b/soh/src/overlays/actors/ovl_En_Zo/z_en_zo.c
index bae52cd47..474830bbd 100644
--- a/soh/src/overlays/actors/ovl_En_Zo/z_en_zo.c
+++ b/soh/src/overlays/actors/ovl_En_Zo/z_en_zo.c
@@ -10,7 +10,7 @@
#include "soh/frame_interpolation.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
typedef enum {
/* 0 */ ENZO_EFFECT_NONE,
@@ -612,7 +612,7 @@ void EnZo_Init(Actor* thisx, PlayState* play) {
this->alpha = 255.0f;
this->actionFunc = EnZo_Standing;
} else {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = EnZo_Submerged;
}
}
@@ -657,7 +657,7 @@ void EnZo_Surface(EnZo* this, PlayState* play) {
Audio_PlayActorSound2(&this->actor, NA_SE_EV_OUT_OF_WATER);
EnZo_SpawnSplashes(this);
Animation_ChangeByInfo(&this->skelAnime, sAnimationInfo, ENZO_ANIM_3);
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->actionFunc = EnZo_TreadWater;
this->actor.velocity.y = 0.0f;
this->alpha = 255.0f;
@@ -707,7 +707,7 @@ void EnZo_Dive(EnZo* this, PlayState* play) {
if (Animation_OnFrame(&this->skelAnime, this->skelAnime.endFrame)) {
Audio_PlayActorSound2(&this->actor, NA_SE_EV_DIVE_WATER);
EnZo_SpawnSplashes(this);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
this->actor.velocity.y = -4.0f;
this->skelAnime.playSpeed = 0.0f;
}
diff --git a/soh/src/overlays/actors/ovl_En_fHG/z_en_fhg.c b/soh/src/overlays/actors/ovl_En_fHG/z_en_fhg.c
index 986f60c02..5c94617d4 100644
--- a/soh/src/overlays/actors/ovl_En_fHG/z_en_fhg.c
+++ b/soh/src/overlays/actors/ovl_En_fHG/z_en_fhg.c
@@ -11,7 +11,7 @@
#include "overlays/actors/ovl_Boss_Ganondrof/z_boss_ganondrof.h"
#include "overlays/actors/ovl_En_Fhg_Fire/z_en_fhg_fire.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
typedef struct {
/* 0x00 */ Vec3f pos;
diff --git a/soh/src/overlays/actors/ovl_End_Title/z_end_title.c b/soh/src/overlays/actors/ovl_End_Title/z_end_title.c
index 3e83e5ae3..5a8e06d43 100644
--- a/soh/src/overlays/actors/ovl_End_Title/z_end_title.c
+++ b/soh/src/overlays/actors/ovl_End_Title/z_end_title.c
@@ -6,7 +6,7 @@
#include "z_end_title.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void EndTitle_Init(Actor* thisx, PlayState* play);
void EndTitle_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Fishing/z_fishing.c b/soh/src/overlays/actors/ovl_Fishing/z_fishing.c
index 01d63248f..a98f98502 100644
--- a/soh/src/overlays/actors/ovl_Fishing/z_fishing.c
+++ b/soh/src/overlays/actors/ovl_Fishing/z_fishing.c
@@ -14,7 +14,7 @@
#include "soh/OTRGlobals.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
#define WATER_SURFACE_Y(play) play->colCtx.colHeader->waterBoxes->ySurface
bool getShouldSpawnLoaches();
@@ -881,7 +881,7 @@ void Fishing_Init(Actor* thisx, PlayState* play2) {
thisx->focus.pos = thisx->world.pos;
thisx->focus.pos.y += 75.0f;
- thisx->flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
+ thisx->flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
if (sLinkAge != LINK_AGE_CHILD) {
if (HIGH_SCORE(HS_FISHING) & HS_FISH_STOLE_HAT) {
@@ -1016,7 +1016,7 @@ void Fishing_Init(Actor* thisx, PlayState* play2) {
this->fishState = 100;
Actor_ChangeCategory(play, &play->actorCtx, thisx, ACTORCAT_PROP);
thisx->targetMode = 0;
- thisx->flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY;
+ thisx->flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY;
this->lightNode = LightContext_InsertLight(play, &play->lightCtx, &this->lightInfo);
} else {
this->fishState = 10;
@@ -2900,7 +2900,7 @@ void Fishing_HandleAquariumDialog(Fishing* this, PlayState* play) {
if (!this->isAquariumMessage) {
if (this->aquariumWaitTimer == 0) {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
if (Actor_ProcessTalkRequest(&this->actor, play)) {
sFishLengthToWeigh = sFishingRecordLength;
@@ -2910,7 +2910,7 @@ void Fishing_HandleAquariumDialog(Fishing* this, PlayState* play) {
}
} else {
this->aquariumWaitTimer--;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
} else if (Actor_TextboxIsClosing(&this->actor, play)) {
this->isAquariumMessage = false;
@@ -3000,9 +3000,9 @@ void Fishing_UpdateFish(Actor* thisx, PlayState* play2) {
}
if ((D_80B7E0B0 != 0) || (sSubCamId != 0) || ((player->actor.world.pos.z > 1150.0f) && (this->fishState != 100))) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
} else {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
if (sRodCastState != 0) {
if (D_80B7E0B2 == 0) {
this->actor.focus.pos = sLurePos;
@@ -3219,7 +3219,7 @@ void Fishing_UpdateFish(Actor* thisx, PlayState* play2) {
if (sLureEquipped == FS_LURE_SINKING) {
func_80B70ED4(this, input);
} else {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
break;
@@ -3256,7 +3256,7 @@ void Fishing_UpdateFish(Actor* thisx, PlayState* play2) {
if (sLureEquipped == FS_LURE_SINKING) {
func_80B70ED4(this, input);
} else {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
}
break;
@@ -3300,7 +3300,7 @@ void Fishing_UpdateFish(Actor* thisx, PlayState* play2) {
this->fishTargetPos.z = Rand_ZeroFloat(50.0f);
}
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
break;
case -2:
@@ -3339,7 +3339,7 @@ void Fishing_UpdateFish(Actor* thisx, PlayState* play2) {
}
Math_ApproachF(&this->rotationStep, 2048.0f, 1.0f, 128.0f);
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
break;
@@ -5262,9 +5262,9 @@ void Fishing_UpdateOwner(Actor* thisx, PlayState* play2) {
SkelAnime_Update(&this->skelAnime);
if ((sOwnerTheftTimer != 0) || (Message_GetState(&play->msgCtx) != TEXT_STATE_NONE)) {
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
} else {
- this->actor.flags |= ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED;
}
if ((this->actor.xzDistToPlayer < 120.0f) || (Message_GetState(&play->msgCtx) != TEXT_STATE_NONE)) {
diff --git a/soh/src/overlays/actors/ovl_Item_Etcetera/z_item_etcetera.c b/soh/src/overlays/actors/ovl_Item_Etcetera/z_item_etcetera.c
index 8088c6262..c724cf7d5 100644
--- a/soh/src/overlays/actors/ovl_Item_Etcetera/z_item_etcetera.c
+++ b/soh/src/overlays/actors/ovl_Item_Etcetera/z_item_etcetera.c
@@ -8,7 +8,7 @@
#include <assert.h>
#include "soh/OTRGlobals.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void ItemEtcetera_Init(Actor* thisx, PlayState* play);
void ItemEtcetera_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Item_Inbox/z_item_inbox.c b/soh/src/overlays/actors/ovl_Item_Inbox/z_item_inbox.c
index 04ed7582c..204358af1 100644
--- a/soh/src/overlays/actors/ovl_Item_Inbox/z_item_inbox.c
+++ b/soh/src/overlays/actors/ovl_Item_Inbox/z_item_inbox.c
@@ -6,7 +6,7 @@
#include "z_item_inbox.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void ItemInbox_Init(Actor* thisx, PlayState* play);
void ItemInbox_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Item_Ocarina/z_item_ocarina.c b/soh/src/overlays/actors/ovl_Item_Ocarina/z_item_ocarina.c
index 99cde87d6..ba9d3851b 100644
--- a/soh/src/overlays/actors/ovl_Item_Ocarina/z_item_ocarina.c
+++ b/soh/src/overlays/actors/ovl_Item_Ocarina/z_item_ocarina.c
@@ -9,7 +9,7 @@
#include "soh/OTRGlobals.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void ItemOcarina_Init(Actor* thisx, PlayState* play);
void ItemOcarina_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Item_Shield/z_item_shield.c b/soh/src/overlays/actors/ovl_Item_Shield/z_item_shield.c
index 8c40e346e..065c60c68 100644
--- a/soh/src/overlays/actors/ovl_Item_Shield/z_item_shield.c
+++ b/soh/src/overlays/actors/ovl_Item_Shield/z_item_shield.c
@@ -8,7 +8,7 @@
#include "z_item_shield.h"
#include "objects/object_link_child/object_link_child.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void ItemShield_Init(Actor* thisx, PlayState* play);
void ItemShield_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Magic_Dark/z_magic_dark.c b/soh/src/overlays/actors/ovl_Magic_Dark/z_magic_dark.c
index 069e7ddbe..0e3ca8a2d 100644
--- a/soh/src/overlays/actors/ovl_Magic_Dark/z_magic_dark.c
+++ b/soh/src/overlays/actors/ovl_Magic_Dark/z_magic_dark.c
@@ -7,7 +7,7 @@
#include "z_magic_dark.h"
#include "objects/gameplay_keep/gameplay_keep.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void MagicDark_Init(Actor* thisx, PlayState* play);
void MagicDark_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Magic_Fire/z_magic_fire.c b/soh/src/overlays/actors/ovl_Magic_Fire/z_magic_fire.c
index da0fb02e5..b6060af74 100644
--- a/soh/src/overlays/actors/ovl_Magic_Fire/z_magic_fire.c
+++ b/soh/src/overlays/actors/ovl_Magic_Fire/z_magic_fire.c
@@ -7,7 +7,7 @@
#include "z_magic_fire.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void MagicFire_Init(Actor* thisx, PlayState* play);
void MagicFire_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Magic_Wind/z_magic_wind.c b/soh/src/overlays/actors/ovl_Magic_Wind/z_magic_wind.c
index 3d8d0cff0..e4afe9e47 100644
--- a/soh/src/overlays/actors/ovl_Magic_Wind/z_magic_wind.c
+++ b/soh/src/overlays/actors/ovl_Magic_Wind/z_magic_wind.c
@@ -7,7 +7,7 @@
#include "z_magic_wind.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void MagicWind_Init(Actor* thisx, PlayState* play);
void MagicWind_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Mir_Ray/z_mir_ray.c b/soh/src/overlays/actors/ovl_Mir_Ray/z_mir_ray.c
index 0391d39d7..70abe25ec 100644
--- a/soh/src/overlays/actors/ovl_Mir_Ray/z_mir_ray.c
+++ b/soh/src/overlays/actors/ovl_Mir_Ray/z_mir_ray.c
@@ -8,7 +8,7 @@
#include "objects/object_mir_ray/object_mir_ray.h"
#include "soh/frame_interpolation.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED)
void MirRay_Init(Actor* thisx, PlayState* play);
void MirRay_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Obj_Bean/z_obj_bean.c b/soh/src/overlays/actors/ovl_Obj_Bean/z_obj_bean.c
index 968a6a3fc..214487e8d 100644
--- a/soh/src/overlays/actors/ovl_Obj_Bean/z_obj_bean.c
+++ b/soh/src/overlays/actors/ovl_Obj_Bean/z_obj_bean.c
@@ -640,7 +640,7 @@ void ObjBean_WaitForWater(ObjBean* this, PlayState* play) {
ObjBean_SetupGrowWaterPhase1(this);
D_80B90E30 = this;
OnePointCutscene_Init(play, 2210, -99, &this->dyna.actor, MAIN_CAM);
- this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
return;
}
@@ -745,7 +745,7 @@ void ObjBean_GrowWaterPhase5(ObjBean* this, PlayState* play) {
this->transformFunc(this);
if (this->timer <= 0) {
func_80B8FF50(this);
- this->dyna.actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
}
@@ -770,7 +770,7 @@ void ObjBean_SetupFly(ObjBean* this) {
this->actionFunc = ObjBean_Fly;
ObjBean_SetDrawMode(this, BEAN_STATE_DRAW_PLANT);
this->dyna.actor.speedXZ = 0.0f;
- this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED; // Never stop updating
+ this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED; // Never stop updating
}
void ObjBean_Fly(ObjBean* this, PlayState* play) {
@@ -782,7 +782,7 @@ void ObjBean_Fly(ObjBean* this, PlayState* play) {
ObjBean_SetupPath(this, play);
ObjBean_SetupWaitForStepOff(this);
- this->dyna.actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED; // Never stop updating (disable)
+ this->dyna.actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED; // Never stop updating (disable)
camera = play->cameraPtrs[MAIN_CAM];
if ((camera->setting == CAM_SET_BEAN_LOST_WOODS) || (camera->setting == CAM_SET_BEAN_GENERIC)) {
diff --git a/soh/src/overlays/actors/ovl_Obj_Dekujr/z_obj_dekujr.c b/soh/src/overlays/actors/ovl_Obj_Dekujr/z_obj_dekujr.c
index 0a1736dc4..0ae7ce195 100644
--- a/soh/src/overlays/actors/ovl_Obj_Dekujr/z_obj_dekujr.c
+++ b/soh/src/overlays/actors/ovl_Obj_Dekujr/z_obj_dekujr.c
@@ -8,7 +8,7 @@
#include "objects/object_dekujr/object_dekujr.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void ObjDekujr_Init(Actor* thisx, PlayState* play);
void ObjDekujr_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Obj_Hsblock/z_obj_hsblock.c b/soh/src/overlays/actors/ovl_Obj_Hsblock/z_obj_hsblock.c
index 952b7082f..f22e7b5b4 100644
--- a/soh/src/overlays/actors/ovl_Obj_Hsblock/z_obj_hsblock.c
+++ b/soh/src/overlays/actors/ovl_Obj_Hsblock/z_obj_hsblock.c
@@ -111,7 +111,7 @@ void func_80B93D90(ObjHsblock* this) {
}
void func_80B93DB0(ObjHsblock* this) {
- this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
this->dyna.actor.world.pos.y = this->dyna.actor.home.pos.y - 105.0f;
ObjHsblock_SetupAction(this, func_80B93DF4);
}
@@ -132,7 +132,7 @@ void func_80B93E5C(ObjHsblock* this, PlayState* play) {
this->dyna.actor.velocity.y, 0.3f)) < 0.001f) {
this->dyna.actor.world.pos.y = this->dyna.actor.home.pos.y;
func_80B93D90(this);
- this->dyna.actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
}
diff --git a/soh/src/overlays/actors/ovl_Obj_Ice_Poly/z_obj_ice_poly.c b/soh/src/overlays/actors/ovl_Obj_Ice_Poly/z_obj_ice_poly.c
index 699ae6e7d..01ec2c393 100644
--- a/soh/src/overlays/actors/ovl_Obj_Ice_Poly/z_obj_ice_poly.c
+++ b/soh/src/overlays/actors/ovl_Obj_Ice_Poly/z_obj_ice_poly.c
@@ -7,7 +7,7 @@
#include "z_obj_ice_poly.h"
#include "objects/gameplay_keep/gameplay_keep.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void ObjIcePoly_Init(Actor* thisx, PlayState* play);
void ObjIcePoly_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Obj_Kibako/z_obj_kibako.c b/soh/src/overlays/actors/ovl_Obj_Kibako/z_obj_kibako.c
index eaeaaef07..16e27e39e 100644
--- a/soh/src/overlays/actors/ovl_Obj_Kibako/z_obj_kibako.c
+++ b/soh/src/overlays/actors/ovl_Obj_Kibako/z_obj_kibako.c
@@ -8,7 +8,7 @@
#include "objects/gameplay_dangeon_keep/gameplay_dangeon_keep.h"
#include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_CAN_PRESS_SWITCH)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_CAN_PRESS_SWITCHES)
void ObjKibako_Init(Actor* thisx, PlayState* play);
void ObjKibako_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Obj_Kibako2/z_obj_kibako2.c b/soh/src/overlays/actors/ovl_Obj_Kibako2/z_obj_kibako2.c
index fdb376027..d6452d253 100644
--- a/soh/src/overlays/actors/ovl_Obj_Kibako2/z_obj_kibako2.c
+++ b/soh/src/overlays/actors/ovl_Obj_Kibako2/z_obj_kibako2.c
@@ -148,7 +148,7 @@ void ObjKibako2_Idle(ObjKibako2* this, PlayState* play) {
func_80033684(play, &this->dyna.actor) != NULL) {
ObjKibako2_Break(this, play);
SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 20, NA_SE_EV_WOODBOX_BREAK);
- this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->dyna.actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
func_8003EBF8(play, &play->colCtx.dyna, this->dyna.bgId);
this->dyna.actor.draw = NULL;
this->actionFunc = ObjKibako2_Kill;
diff --git a/soh/src/overlays/actors/ovl_Obj_Lift/z_obj_lift.c b/soh/src/overlays/actors/ovl_Obj_Lift/z_obj_lift.c
index 166dd4c36..424d669a2 100644
--- a/soh/src/overlays/actors/ovl_Obj_Lift/z_obj_lift.c
+++ b/soh/src/overlays/actors/ovl_Obj_Lift/z_obj_lift.c
@@ -8,7 +8,7 @@
#include "objects/object_d_lift/object_d_lift.h"
#include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void ObjLift_Init(Actor* thisx, PlayState* play);
void ObjLift_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Obj_Lightswitch/z_obj_lightswitch.c b/soh/src/overlays/actors/ovl_Obj_Lightswitch/z_obj_lightswitch.c
index 59d1b6203..87534982b 100644
--- a/soh/src/overlays/actors/ovl_Obj_Lightswitch/z_obj_lightswitch.c
+++ b/soh/src/overlays/actors/ovl_Obj_Lightswitch/z_obj_lightswitch.c
@@ -10,7 +10,7 @@
#include "objects/object_lightswitch/object_lightswitch.h"
#include "soh/OTRGlobals.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
typedef enum {
/* 0x00 */ FACE_EYES_CLOSED,
@@ -225,7 +225,7 @@ void ObjLightswitch_Init(Actor* thisx, PlayState* play) {
this->actor.shape.rot.z = 0;
this->actor.world.rot.x = this->actor.home.rot.x = this->actor.shape.rot.x;
this->actor.world.rot.z = this->actor.home.rot.z = this->actor.shape.rot.z;
- this->actor.flags |= ACTOR_FLAG_DRAW_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_DRAW_CULLING_DISABLED;
if (Actor_SpawnAsChild(&play->actorCtx, &this->actor, play, ACTOR_OBJ_OSHIHIKI,
this->actor.home.pos.x, this->actor.home.pos.y, this->actor.home.pos.z, 0,
this->actor.home.rot.y, 0, (0xFF << 8) | PUSHBLOCK_SMALL_START_ON) == NULL) {
diff --git a/soh/src/overlays/actors/ovl_Obj_Makekinsuta/z_obj_makekinsuta.c b/soh/src/overlays/actors/ovl_Obj_Makekinsuta/z_obj_makekinsuta.c
index 82048ffe9..1fb3effc1 100644
--- a/soh/src/overlays/actors/ovl_Obj_Makekinsuta/z_obj_makekinsuta.c
+++ b/soh/src/overlays/actors/ovl_Obj_Makekinsuta/z_obj_makekinsuta.c
@@ -7,7 +7,7 @@
#include "z_obj_makekinsuta.h"
#include "vt.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void ObjMakekinsuta_Init(Actor* thisx, PlayState* play);
void ObjMakekinsuta_Update(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Obj_Makeoshihiki/z_obj_makeoshihiki.c b/soh/src/overlays/actors/ovl_Obj_Makeoshihiki/z_obj_makeoshihiki.c
index 133abc310..873d41e8a 100644
--- a/soh/src/overlays/actors/ovl_Obj_Makeoshihiki/z_obj_makeoshihiki.c
+++ b/soh/src/overlays/actors/ovl_Obj_Makeoshihiki/z_obj_makeoshihiki.c
@@ -8,7 +8,7 @@
#include "overlays/actors/ovl_Obj_Oshihiki/z_obj_oshihiki.h"
#include "vt.h"
-#define FLAGS ACTOR_FLAG_DRAW_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_DRAW_CULLING_DISABLED
void ObjMakeoshihiki_Init(Actor* thisx, PlayState* play);
void ObjMakeoshihiki_Draw(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Obj_Mure/z_obj_mure.c b/soh/src/overlays/actors/ovl_Obj_Mure/z_obj_mure.c
index 94c1d468b..1bf6595b5 100644
--- a/soh/src/overlays/actors/ovl_Obj_Mure/z_obj_mure.c
+++ b/soh/src/overlays/actors/ovl_Obj_Mure/z_obj_mure.c
@@ -155,7 +155,7 @@ void ObjMure_SpawnActors0(ObjMure* this, PlayState* play) {
Actor_Spawn(ac, play, sSpawnActorIds[this->type], pos.x, pos.y, pos.z, this->actor.world.rot.x,
this->actor.world.rot.y, this->actor.world.rot.z, sSpawnParams[this->type], true);
if (this->children[i] != NULL) {
- this->children[i]->flags |= ACTOR_FLAG_ENKUSA_CUT;
+ this->children[i]->flags |= ACTOR_FLAG_GRASS_DESTROYED;
this->children[i]->room = this->actor.room;
} else {
osSyncPrintf("warning 発生失敗 (%s %d)\n", __FILE__, __LINE__);
@@ -255,7 +255,7 @@ void ObjMure_CheckChildren(ObjMure* this, PlayState* play) {
if (this->children[i] != NULL) {
if (this->childrenStates[i] == OBJMURE_CHILD_STATE_0) {
if (this->children[i]->update != NULL) {
- if (this->children[i]->flags & ACTOR_FLAG_ENKUSA_CUT) {
+ if (this->children[i]->flags & ACTOR_FLAG_GRASS_DESTROYED) {
this->childrenStates[i] = OBJMURE_CHILD_STATE_2;
}
} else {
@@ -282,7 +282,7 @@ void ObjMure_CulledState(ObjMure* this, PlayState* play) {
if (fabsf(this->actor.projectedPos.z) < sZClip[this->type] * distanceMultiplier) {
// #endregion
this->actionFunc = ObjMure_ActiveState;
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
ObjMure_SpawnActors(this, play);
}
}
@@ -411,7 +411,7 @@ void ObjMure_ActiveState(ObjMure* this, PlayState* play) {
if ((sZClip[this->type] + 40.0f) * distanceMultiplier <= fabsf(this->actor.projectedPos.z)) {
// #endregion
this->actionFunc = ObjMure_CulledState;
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
ObjMure_KillActors(this, play);
} else if (sTypeGroupBehaviorFunc[this->type] != NULL) {
sTypeGroupBehaviorFunc[this->type](this, play);
diff --git a/soh/src/overlays/actors/ovl_Obj_Mure2/z_obj_mure2.c b/soh/src/overlays/actors/ovl_Obj_Mure2/z_obj_mure2.c
index 2be6ea478..49d75d735 100644
--- a/soh/src/overlays/actors/ovl_Obj_Mure2/z_obj_mure2.c
+++ b/soh/src/overlays/actors/ovl_Obj_Mure2/z_obj_mure2.c
@@ -192,7 +192,7 @@ void func_80B9A658(ObjMure2* this) {
void func_80B9A668(ObjMure2* this, PlayState* play) {
if (Math3D_Dist1DSq(this->actor.projectedPos.x, this->actor.projectedPos.z) <
(sDistSquared1[this->actor.params & 3] * this->unk_184)) {
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
ObjMure2_SpawnActors(this, play);
func_80B9A6E8(this);
}
@@ -207,7 +207,7 @@ void func_80B9A6F8(ObjMure2* this, PlayState* play) {
if ((sDistSquared2[this->actor.params & 3] * this->unk_184) <=
Math3D_Dist1DSq(this->actor.projectedPos.x, this->actor.projectedPos.z)) {
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
ObjMure2_CleanupAndDie(this, play);
func_80B9A658(this);
}
diff --git a/soh/src/overlays/actors/ovl_Obj_Mure3/z_obj_mure3.c b/soh/src/overlays/actors/ovl_Obj_Mure3/z_obj_mure3.c
index 35d425ea4..ba9b43830 100644
--- a/soh/src/overlays/actors/ovl_Obj_Mure3/z_obj_mure3.c
+++ b/soh/src/overlays/actors/ovl_Obj_Mure3/z_obj_mure3.c
@@ -172,7 +172,7 @@ void func_80B9AF64(ObjMure3* this, PlayState* play) {
static ObjMure3SpawnFunc spawnFuncs[] = { func_80B9A9D0, func_80B9AA90, func_80B9ABA0 };
if (Math3D_Dist1DSq(this->actor.projectedPos.x, this->actor.projectedPos.z) < SQ(1150.0f)) {
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
spawnFuncs[(this->actor.params >> 13) & 7](this, play);
func_80B9AFEC(this);
}
@@ -185,7 +185,7 @@ void func_80B9AFEC(ObjMure3* this) {
void func_80B9AFFC(ObjMure3* this, PlayState* play) {
func_80B9ADCC(this, play);
if (Math3D_Dist1DSq(this->actor.projectedPos.x, this->actor.projectedPos.z) >= SQ(1450.0f)) {
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
func_80B9ACE4(this, play);
func_80B9AF54(this);
}
diff --git a/soh/src/overlays/actors/ovl_Obj_Oshihiki/z_obj_oshihiki.c b/soh/src/overlays/actors/ovl_Obj_Oshihiki/z_obj_oshihiki.c
index c69417461..df076327d 100644
--- a/soh/src/overlays/actors/ovl_Obj_Oshihiki/z_obj_oshihiki.c
+++ b/soh/src/overlays/actors/ovl_Obj_Oshihiki/z_obj_oshihiki.c
@@ -9,7 +9,7 @@
#include "objects/gameplay_dangeon_keep/gameplay_dangeon_keep.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void ObjOshihiki_Init(Actor* thisx, PlayState* play);
void ObjOshihiki_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Obj_Roomtimer/z_obj_roomtimer.c b/soh/src/overlays/actors/ovl_Obj_Roomtimer/z_obj_roomtimer.c
index 21ec649f9..5bef60ef9 100644
--- a/soh/src/overlays/actors/ovl_Obj_Roomtimer/z_obj_roomtimer.c
+++ b/soh/src/overlays/actors/ovl_Obj_Roomtimer/z_obj_roomtimer.c
@@ -6,7 +6,7 @@
#include "z_obj_roomtimer.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
void ObjRoomtimer_Init(Actor* thisx, PlayState* play);
void ObjRoomtimer_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Obj_Switch/z_obj_switch.c b/soh/src/overlays/actors/ovl_Obj_Switch/z_obj_switch.c
index 05e3577c0..82c9f2cc6 100644
--- a/soh/src/overlays/actors/ovl_Obj_Switch/z_obj_switch.c
+++ b/soh/src/overlays/actors/ovl_Obj_Switch/z_obj_switch.c
@@ -9,7 +9,7 @@
#include "vt.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS ACTOR_FLAG_UPDATE_WHILE_CULLED
+#define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED
// type: (this->dyna.actor.params & 7)
// subtype: (this->dyna.actor.params >> 4 & 7)
@@ -313,7 +313,7 @@ void ObjSwitch_Init(Actor* thisx, PlayState* play) {
}
if (type == OBJSWITCH_TYPE_CRYSTAL_TARGETABLE) {
- this->dyna.actor.flags |= ACTOR_FLAG_TARGETABLE;
+ this->dyna.actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
this->dyna.actor.targetMode = 4;
}
diff --git a/soh/src/overlays/actors/ovl_Obj_Syokudai/z_obj_syokudai.c b/soh/src/overlays/actors/ovl_Obj_Syokudai/z_obj_syokudai.c
index bf9300798..c1a4c72f9 100644
--- a/soh/src/overlays/actors/ovl_Obj_Syokudai/z_obj_syokudai.c
+++ b/soh/src/overlays/actors/ovl_Obj_Syokudai/z_obj_syokudai.c
@@ -9,7 +9,7 @@
#include "objects/gameplay_keep/gameplay_keep.h"
#include "objects/object_syokudai/object_syokudai.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAGGED_BY_HOOKSHOT)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_HOOKSHOT_PULLS_PLAYER)
void ObjSyokudai_Init(Actor* thisx, PlayState* play);
void ObjSyokudai_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Obj_Timeblock/z_obj_timeblock.c b/soh/src/overlays/actors/ovl_Obj_Timeblock/z_obj_timeblock.c
index 1701eb60d..3191fa036 100644
--- a/soh/src/overlays/actors/ovl_Obj_Timeblock/z_obj_timeblock.c
+++ b/soh/src/overlays/actors/ovl_Obj_Timeblock/z_obj_timeblock.c
@@ -7,7 +7,7 @@
#include "z_obj_timeblock.h"
#include "objects/object_timeblock/object_timeblock.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA | ACTOR_FLAG_NO_LOCKON)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA | ACTOR_FLAG_LOCK_ON_DISABLED)
void ObjTimeblock_Init(Actor* thisx, PlayState* play);
void ObjTimeblock_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Obj_Tsubo/z_obj_tsubo.c b/soh/src/overlays/actors/ovl_Obj_Tsubo/z_obj_tsubo.c
index 5c2c58dc4..c4d8c65f4 100644
--- a/soh/src/overlays/actors/ovl_Obj_Tsubo/z_obj_tsubo.c
+++ b/soh/src/overlays/actors/ovl_Obj_Tsubo/z_obj_tsubo.c
@@ -10,7 +10,7 @@
#include "objects/object_tsubo/object_tsubo.h"
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_ALWAYS_THROWN)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_THROW_ONLY)
void ObjTsubo_Init(Actor* thisx, PlayState* play);
void ObjTsubo_Destroy(Actor* thisx, PlayState* play);
@@ -232,7 +232,7 @@ void ObjTsubo_WaitForObject(ObjTsubo* this, PlayState* play) {
}
this->actor.objBankIndex = this->objTsuboBankIndex;
ObjTsubo_SetupIdle(this);
- this->actor.flags &= ~ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags &= ~ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
}
@@ -282,7 +282,7 @@ void ObjTsubo_SetupLiftedUp(ObjTsubo* this) {
this->actionFunc = ObjTsubo_LiftedUp;
this->actor.room = -1;
Player_PlaySfx(&this->actor, NA_SE_PL_PULL_UP_POT);
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
}
void ObjTsubo_LiftedUp(ObjTsubo* this, PlayState* play) {
diff --git a/soh/src/overlays/actors/ovl_Obj_Warp2block/z_obj_warp2block.c b/soh/src/overlays/actors/ovl_Obj_Warp2block/z_obj_warp2block.c
index f4c77c73f..52e916e4b 100644
--- a/soh/src/overlays/actors/ovl_Obj_Warp2block/z_obj_warp2block.c
+++ b/soh/src/overlays/actors/ovl_Obj_Warp2block/z_obj_warp2block.c
@@ -8,7 +8,7 @@
#include "objects/object_timeblock/object_timeblock.h"
#include "vt.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA | ACTOR_FLAG_NO_LOCKON)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA | ACTOR_FLAG_LOCK_ON_DISABLED)
void ObjWarp2block_Init(Actor* thisx, PlayState* play);
void ObjWarp2block_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Object_Kankyo/z_object_kankyo.c b/soh/src/overlays/actors/ovl_Object_Kankyo/z_object_kankyo.c
index a318cf759..26815fb32 100644
--- a/soh/src/overlays/actors/ovl_Object_Kankyo/z_object_kankyo.c
+++ b/soh/src/overlays/actors/ovl_Object_Kankyo/z_object_kankyo.c
@@ -12,7 +12,7 @@
#include "soh/frame_interpolation.h"
#include <assert.h>
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void ObjectKankyo_Init(Actor* thisx, PlayState* play);
void ObjectKankyo_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Oceff_Spot/z_oceff_spot.c b/soh/src/overlays/actors/ovl_Oceff_Spot/z_oceff_spot.c
index 8aa68b160..72ece6769 100644
--- a/soh/src/overlays/actors/ovl_Oceff_Spot/z_oceff_spot.c
+++ b/soh/src/overlays/actors/ovl_Oceff_Spot/z_oceff_spot.c
@@ -7,7 +7,7 @@
#include "z_oceff_spot.h"
#include "vt.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void OceffSpot_Init(Actor* thisx, PlayState* play);
void OceffSpot_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Oceff_Storm/z_oceff_storm.c b/soh/src/overlays/actors/ovl_Oceff_Storm/z_oceff_storm.c
index 228e13d21..fe3876df3 100644
--- a/soh/src/overlays/actors/ovl_Oceff_Storm/z_oceff_storm.c
+++ b/soh/src/overlays/actors/ovl_Oceff_Storm/z_oceff_storm.c
@@ -8,7 +8,7 @@
#include "soh/OTRGlobals.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_DRAW_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void OceffStorm_Init(Actor* thisx, PlayState* play);
void OceffStorm_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Oceff_Wipe/z_oceff_wipe.c b/soh/src/overlays/actors/ovl_Oceff_Wipe/z_oceff_wipe.c
index 052de7f0d..14b60a8b4 100644
--- a/soh/src/overlays/actors/ovl_Oceff_Wipe/z_oceff_wipe.c
+++ b/soh/src/overlays/actors/ovl_Oceff_Wipe/z_oceff_wipe.c
@@ -8,7 +8,7 @@
#include "vt.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void OceffWipe_Init(Actor* thisx, PlayState* play);
void OceffWipe_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Oceff_Wipe2/z_oceff_wipe2.c b/soh/src/overlays/actors/ovl_Oceff_Wipe2/z_oceff_wipe2.c
index a9eabca24..0936b0605 100644
--- a/soh/src/overlays/actors/ovl_Oceff_Wipe2/z_oceff_wipe2.c
+++ b/soh/src/overlays/actors/ovl_Oceff_Wipe2/z_oceff_wipe2.c
@@ -8,7 +8,7 @@
#include "vt.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void OceffWipe2_Init(Actor* thisx, PlayState* play);
void OceffWipe2_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Oceff_Wipe3/z_oceff_wipe3.c b/soh/src/overlays/actors/ovl_Oceff_Wipe3/z_oceff_wipe3.c
index e0ceadeb4..4b9f53d54 100644
--- a/soh/src/overlays/actors/ovl_Oceff_Wipe3/z_oceff_wipe3.c
+++ b/soh/src/overlays/actors/ovl_Oceff_Wipe3/z_oceff_wipe3.c
@@ -8,7 +8,7 @@
#include "vt.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void OceffWipe3_Init(Actor* thisx, PlayState* play);
void OceffWipe3_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Oceff_Wipe4/z_oceff_wipe4.c b/soh/src/overlays/actors/ovl_Oceff_Wipe4/z_oceff_wipe4.c
index 6067ed361..37ccdb531 100644
--- a/soh/src/overlays/actors/ovl_Oceff_Wipe4/z_oceff_wipe4.c
+++ b/soh/src/overlays/actors/ovl_Oceff_Wipe4/z_oceff_wipe4.c
@@ -8,7 +8,7 @@
#include "vt.h"
#include "soh/ResourceManagerHelpers.h"
-#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_NO_FREEZE_OCARINA)
+#define FLAGS (ACTOR_FLAG_UPDATE_CULLING_DISABLED | ACTOR_FLAG_UPDATE_DURING_OCARINA)
void OceffWipe4_Init(Actor* thisx, PlayState* play);
void OceffWipe4_Destroy(Actor* thisx, PlayState* play);
diff --git a/soh/src/overlays/actors/ovl_Shot_Sun/z_shot_sun.c b/soh/src/overlays/actors/ovl_Shot_Sun/z_shot_sun.c
index 5b426e709..03da64049 100644
--- a/soh/src/overlays/actors/ovl_Shot_Sun/z_shot_sun.c
+++ b/soh/src/overlays/actors/ovl_Shot_Sun/z_shot_sun.c
@@ -10,7 +10,7 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "vt.h"
-#define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY)
+#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY)
void ShotSun_Init(Actor* thisx, PlayState* play);
void ShotSun_Destroy(Actor* thisx, PlayState* play);
@@ -63,15 +63,15 @@ void ShotSun_Init(Actor* thisx, PlayState* play) {
params = this->actor.params & 0xFF;
if (params == 0x40 || params == 0x41) {
this->unk_1A4 = 0;
- this->actor.flags |= ACTOR_FLAG_UPDATE_WHILE_CULLED;
- this->actor.flags |= ACTOR_FLAG_NO_FREEZE_OCARINA;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_CULLING_DISABLED;
+ this->actor.flags |= ACTOR_FLAG_UPDATE_DURING_OCARINA;
this->actionFunc = func_80BADF0C;
- this->actor.flags |= ACTOR_FLAG_NO_LOCKON;
+ this->actor.flags |= ACTOR_FLAG_LOCK_ON_DISABLED;
} else {
Collider_InitCylinder(play, &this->collider);
Collider_SetCylinder(play, &this->collider, &this->actor, &sCylinderInit);
this->actionFunc = ShotSun_UpdateHyliaSun;
- this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
+ this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
}
}
diff --git a/soh/src/overlays/actors/ovl_player_actor/z_player.c b/soh/src/overlays/actors/ovl_player_actor/z_player.c
index 496899bc6..7b1454aaf 100644
--- a/soh/src/overlays/actors/ovl_player_actor/z_player.c
+++ b/soh/src/overlays/actors/ovl_player_actor/z_player.c
@@ -1612,7 +1612,7 @@ BAD_RETURN(s32) func_80832224(Player* this) {
s32 Player_IsTalking(PlayState* play) {
Player* this = GET_PLAYER(play);
- return CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_PLAYER_TALKED_TO);
+ return CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_TALK);
}
void Player_AnimPlayOnce(PlayState* play, Player* this, LinkAnimationHeader* anim) {
@@ -2424,7 +2424,7 @@ s32 Player_FriendlyLockOnOrParallel(Player* this) {
*/
s32 Player_UpdateHostileLockOn(Player* this) {
if ((this->focusActor != NULL) &&
- CHECK_FLAG_ALL(this->focusActor->flags, ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE)) {
+ CHECK_FLAG_ALL(this->focusActor->flags, ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE)) {
this->stateFlags1 |= PLAYER_STATE1_HOSTILE_LOCK_ON;
return true;
} else {
@@ -3841,7 +3841,7 @@ void Player_UpdateZTargeting(Player* this, PlayState* play) {
this->stateFlags1 |= PLAYER_STATE1_Z_TARGETING;
- if ((nextLockOnActor != NULL) && !(nextLockOnActor->flags & ACTOR_FLAG_NO_LOCKON)) {
+ if ((nextLockOnActor != NULL) && !(nextLockOnActor->flags & ACTOR_FLAG_LOCK_ON_DISABLED)) {
// Navi hovers over the current lock-on actor, so `nextLockOnActor` and `focusActor`
// will be the same if already locked on.
@@ -3901,7 +3901,7 @@ void Player_UpdateZTargeting(Player* this, PlayState* play) {
// is hostile. This is a special case to allow Player to have more freedom of movement and be able
// to throw a carried actor at the lock-on actor, even if it is hostile.
if ((this->stateFlags1 & PLAYER_STATE1_CARRYING_ACTOR) ||
- !CHECK_FLAG_ALL(this->focusActor->flags, ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE)) {
+ !CHECK_FLAG_ALL(this->focusActor->flags, ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE)) {
this->stateFlags1 |= PLAYER_STATE1_FRIENDLY_ACTOR_FOCUS;
}
} else {
@@ -4845,7 +4845,7 @@ s32 func_808382DC(Player* this, PlayState* play) {
Actor* ac = this->cylinder.base.ac;
s32 sp4C;
- if (ac->flags & ACTOR_FLAG_PLAY_HIT_SFX) {
+ if (ac->flags & ACTOR_FLAG_SFX_FOR_PLAYER_BODY_HIT) {
Player_PlaySfx(this, NA_SE_PL_BODY_HIT);
}
@@ -6029,7 +6029,7 @@ s32 Player_ActionHandler_13(Player* this, PlayState* play) {
this->av2.actionVar2 = 0x50;
this->av1.actionVar1 = -1;
}
- talkActor->flags |= ACTOR_FLAG_PLAYER_TALKED_TO;
+ talkActor->flags |= ACTOR_FLAG_TALK;
this->focusActor = this->talkActor;
} else if (sp2C == EXCH_ITEM_LETTER_RUTO) {
this->av1.actionVar1 = 1;
@@ -6041,7 +6041,7 @@ s32 Player_ActionHandler_13(Player* this, PlayState* play) {
func_80835EA4(play, 4);
}
- this->actor.flags |= ACTOR_FLAG_PLAYER_TALKED_TO;
+ this->actor.flags |= ACTOR_FLAG_TALK;
this->exchangeItemId = sp2C;
if (this->av1.actionVar1 < 0) {
@@ -6115,7 +6115,7 @@ s32 Player_ActionHandler_Talk(Player* this, PlayState* play) {
canTalkToLockOnWithCUp =
(lockOnActor != NULL) &&
- (CHECK_FLAG_ALL(lockOnActor->flags, ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_NAVI_HAS_INFO) ||
+ (CHECK_FLAG_ALL(lockOnActor->flags, ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_TALK_WITH_C_UP) ||
(lockOnActor->naviEnemyId != 0xFF));
if (canTalkToLockOnWithCUp || (this->naviTextId != 0)) {
@@ -6142,13 +6142,13 @@ s32 Player_ActionHandler_Talk(Player* this, PlayState* play) {
if ((lockOnActor == NULL) || (lockOnActor == talkOfferActor) || (lockOnActor == cUpTalkActor)) {
if (!(this->stateFlags1 & PLAYER_STATE1_CARRYING_ACTOR) ||
((this->heldActor != NULL) && (forceTalkToNavi || (talkOfferActor == this->heldActor) || (cUpTalkActor == this->heldActor) ||
- ((talkOfferActor != NULL) && (talkOfferActor->flags & ACTOR_FLAG_WILL_TALK))))) {
+ ((talkOfferActor != NULL) && (talkOfferActor->flags & ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED))))) {
if ((this->actor.bgCheckFlags & 1) || (this->stateFlags1 & PLAYER_STATE1_ON_HORSE) ||
(func_808332B8(this) && !(this->stateFlags2 & PLAYER_STATE2_UNDERWATER))) {
if (talkOfferActor != NULL) {
this->stateFlags2 |= PLAYER_STATE2_CAN_ACCEPT_TALK_OFFER;
- if (CHECK_BTN_ALL(sControlInput->press.button, BTN_A) || (talkOfferActor->flags & ACTOR_FLAG_WILL_TALK)) {
+ if (CHECK_BTN_ALL(sControlInput->press.button, BTN_A) || (talkOfferActor->flags & ACTOR_FLAG_TALK_OFFER_AUTO_ACCEPTED)) {
cUpTalkActor = NULL;
} else if (cUpTalkActor == NULL) {
return 0;
@@ -6213,7 +6213,7 @@ s32 Player_ActionHandler_0(Player* this, PlayState* play) {
return 1;
}
- if ((this->focusActor != NULL) && (CHECK_FLAG_ALL(this->focusActor->flags, ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_NAVI_HAS_INFO) ||
+ if ((this->focusActor != NULL) && (CHECK_FLAG_ALL(this->focusActor->flags, ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_TALK_WITH_C_UP) ||
(this->focusActor->naviEnemyId != 0xFF))) {
this->stateFlags2 |= PLAYER_STATE2_NAVI_ALERT;
} else if ((this->naviTextId == 0 || CVarGetInteger(CVAR_ENHANCEMENT("NaviOnL"), 0)) && !Player_CheckHostileLockOn(this) && CHECK_BTN_ALL(sControlInput->press.button, BTN_CUP) &&
@@ -7436,7 +7436,7 @@ void func_8083EA94(Player* this, PlayState* play) {
}
s32 func_8083EAF0(Player* this, Actor* actor) {
- if ((actor != NULL) && !(actor->flags & ACTOR_FLAG_ALWAYS_THROWN) &&
+ if ((actor != NULL) && !(actor->flags & ACTOR_FLAG_THROW_ONLY) &&
((this->linearVelocity < 1.1f) || (actor->id == ACTOR_EN_BOM_CHU))) {
return 0;
}
@@ -9011,7 +9011,7 @@ void Player_Action_8084279C(Player* this, PlayState* play) {
func_8083A098(this, GET_PLAYER_ANIM(PLAYER_ANIMGROUP_check_end, this->modelAnimType), play);
}
- this->actor.flags &= ~ACTOR_FLAG_PLAYER_TALKED_TO;
+ this->actor.flags &= ~ACTOR_FLAG_TALK;
func_8005B1A4(Play_GetCamera(play, 0));
}
}
@@ -11492,7 +11492,7 @@ void Player_UpdateCamAndSeqModes(PlayState* play, Player* this) {
} else if (this->stateFlags2 & PLAYER_STATE2_GRABBING_DYNAPOLY) {
camMode = CAM_MODE_PUSHPULL;
} else if ((focusActor = this->focusActor) != NULL) {
- if (CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_PLAYER_TALKED_TO)) {
+ if (CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_TALK)) {
camMode = CAM_MODE_TALK;
} else if (this->stateFlags1 & PLAYER_STATE1_FRIENDLY_ACTOR_FOCUS) {
if (this->stateFlags1 & PLAYER_STATE1_BOOMERANG_THROWN) {
@@ -12241,7 +12241,7 @@ void Player_UpdateCommon(Player* this, PlayState* play, Input* input) {
Player_UpdateShapeYaw(this, play);
- if (CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_PLAYER_TALKED_TO)) {
+ if (CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_TALK)) {
this->talkActorDistance = 0.0f;
} else {
this->talkActor = NULL;
@@ -13050,9 +13050,9 @@ void Player_Action_Talk(Player* this, PlayState* play) {
Player_UpdateUpperBody(this, play);
if (Message_GetState(&play->msgCtx) == TEXT_STATE_CLOSING) {
- this->actor.flags &= ~ACTOR_FLAG_PLAYER_TALKED_TO;
+ this->actor.flags &= ~ACTOR_FLAG_TALK;
- if (!CHECK_FLAG_ALL(this->talkActor->flags, ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_HOSTILE)) {
+ if (!CHECK_FLAG_ALL(this->talkActor->flags, ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE)) {
this->stateFlags2 &= ~PLAYER_STATE2_LOCK_ON_WITH_SWITCH;
}
@@ -14840,7 +14840,7 @@ void Player_Action_ExchangeItem(Player* this, PlayState* play) {
this->unk_862 = 0;
if (talkActor->textId != 0xFFFF) {
- this->actor.flags |= ACTOR_FLAG_PLAYER_TALKED_TO;
+ this->actor.flags |= ACTOR_FLAG_TALK;
}
Player_StartTalking(play, talkActor);
@@ -14866,7 +14866,7 @@ void Player_Action_ExchangeItem(Player* this, PlayState* play) {
this->av2.actionVar2 = 1;
} else if (Message_GetState(&play->msgCtx) == TEXT_STATE_CLOSING) {
- this->actor.flags &= ~ACTOR_FLAG_PLAYER_TALKED_TO;
+ this->actor.flags &= ~ACTOR_FLAG_TALK;
this->unk_862 = 0;
if (this->av1.actionVar1 == 1) {
@@ -16631,7 +16631,7 @@ void func_80852C50(PlayState* play, Player* this, CsCmdActorCue* cue) {
}
if (linkCsAction == NULL) {
- this->actor.flags &= ~ACTOR_FLAG_ACTIVE;
+ this->actor.flags &= ~ACTOR_FLAG_INSIDE_CULLING_VOLUME;
return;
}
@@ -16763,8 +16763,8 @@ void Player_StartTalking(PlayState* play, Actor* actor) {
s32 pad;
if ((this->talkActor != NULL) || (actor == this->naviActor) ||
- CHECK_FLAG_ALL(actor->flags, ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_NAVI_HAS_INFO)) {
- actor->flags |= ACTOR_FLAG_PLAYER_TALKED_TO;
+ CHECK_FLAG_ALL(actor->flags, ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_TALK_WITH_C_UP)) {
+ actor->flags |= ACTOR_FLAG_TALK;
}
this->talkActor = actor;
@@ -16774,13 +16774,13 @@ void Player_StartTalking(PlayState* play, Actor* actor) {
// Player will stand and look at the actor with no text appearing.
// This can be used to delay text from appearing, for example.
Player_SetCsActionWithHaltedActors(play, actor, 1);
- actor->flags |= ACTOR_FLAG_PLAYER_TALKED_TO;
+ actor->flags |= ACTOR_FLAG_TALK;
Player_PutAwayHeldItem(play, this);
} else {
- if (this->actor.flags & ACTOR_FLAG_PLAYER_TALKED_TO) {
+ if (this->actor.flags & ACTOR_FLAG_TALK) {
this->actor.textId = 0;
} else {
- this->actor.flags |= ACTOR_FLAG_PLAYER_TALKED_TO;
+ this->actor.flags |= ACTOR_FLAG_TALK;
this->actor.textId = actor->textId;
}
@@ -16823,7 +16823,7 @@ void Player_StartTalking(PlayState* play, Actor* actor) {
}
if ((this->naviActor == this->talkActor) && ((this->talkActor->textId & 0xFF00) != 0x200)) {
- this->naviActor->flags |= ACTOR_FLAG_PLAYER_TALKED_TO;
+ this->naviActor->flags |= ACTOR_FLAG_TALK;
func_80835EA4(play, 0xB);
}
}