From 70044ec8dd10369b64cc52424fb62f913fcfbed0 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 28 Oct 2024 21:16:46 -0700 Subject: [PATCH] Clean up cc enums --- include/SSystem/SComponent/c_cc_d.h | 166 +++++++++++------------ include/d/d_cc_d.h | 192 +++++++++++++++++---------- src/c/c_damagereaction.cpp | 16 +-- src/d/actor/d_a_agbsw0.cpp | 4 +- src/d/actor/d_a_am.cpp | 28 ++-- src/d/actor/d_a_am2.cpp | 24 ++-- src/d/actor/d_a_arrow.cpp | 14 +- src/d/actor/d_a_att.cpp | 12 +- src/d/actor/d_a_bflower.cpp | 14 +- src/d/actor/d_a_bita.cpp | 4 +- src/d/actor/d_a_bk.cpp | 36 ++--- src/d/actor/d_a_bomb2.cpp | 24 ++-- src/d/actor/d_a_bomb3.inc | 24 ++-- src/d/actor/d_a_deku_item.cpp | 6 +- src/d/actor/d_a_fan.cpp | 6 +- src/d/actor/d_a_hitobj.cpp | 4 +- src/d/actor/d_a_hookshot.cpp | 4 +- src/d/actor/d_a_ib.cpp | 8 +- src/d/actor/d_a_item.cpp | 6 +- src/d/actor/d_a_lamp.cpp | 2 +- src/d/actor/d_a_msw.cpp | 6 +- src/d/actor/d_a_nh.cpp | 6 +- src/d/actor/d_a_npc_bs1.cpp | 6 +- src/d/actor/d_a_npc_btsw2.cpp | 6 +- src/d/actor/d_a_npc_ji1.cpp | 18 +-- src/d/actor/d_a_npc_kamome.cpp | 10 +- src/d/actor/d_a_npc_md.cpp | 18 +-- src/d/actor/d_a_npc_os.cpp | 6 +- src/d/actor/d_a_npc_roten.cpp | 4 +- src/d/actor/d_a_obj_barrier.cpp | 8 +- src/d/actor/d_a_obj_dragonhead.cpp | 2 +- src/d/actor/d_a_obj_ebomzo.cpp | 2 +- src/d/actor/d_a_obj_eskban.cpp | 10 +- src/d/actor/d_a_obj_ferris.cpp | 6 +- src/d/actor/d_a_obj_figure.cpp | 6 +- src/d/actor/d_a_obj_hfuck1.cpp | 4 +- src/d/actor/d_a_obj_movebox.cpp | 4 +- src/d/actor/d_a_obj_mtest.cpp | 2 +- src/d/actor/d_a_obj_paper.cpp | 6 +- src/d/actor/d_a_obj_toripost.cpp | 6 +- src/d/actor/d_a_obj_vfan.cpp | 2 +- src/d/actor/d_a_obj_vmc.cpp | 2 +- src/d/actor/d_a_obj_zouK.cpp | 6 +- src/d/actor/d_a_player_main.cpp | 6 +- src/d/actor/d_a_player_main_data.inc | 28 ++-- src/d/actor/d_a_player_sword.inc | 14 +- src/d/actor/d_a_player_weapon.inc | 4 +- src/d/actor/d_a_race_item.cpp | 6 +- src/d/actor/d_a_rd.cpp | 24 ++-- src/d/actor/d_a_spc_item01.cpp | 4 +- src/d/actor/d_a_swattack.cpp | 2 +- src/d/actor/d_a_swhit0.cpp | 4 +- src/d/actor/d_a_switem.cpp | 4 +- src/d/actor/d_a_tag_ret.cpp | 2 +- src/d/actor/d_a_tama.cpp | 6 +- src/d/actor/d_a_toge.cpp | 6 +- src/d/actor/d_a_wall.cpp | 4 +- src/d/actor/d_a_wind_tag.cpp | 6 +- src/d/d_a_bomb_static.cpp | 16 +-- src/d/d_cc_d.cpp | 4 +- src/d/d_cc_s.cpp | 89 +++++++------ src/d/d_cc_uty.cpp | 16 +-- src/d/d_kankyo_rain.cpp | 1 + src/d/d_npc.cpp | 6 +- 64 files changed, 513 insertions(+), 479 deletions(-) diff --git a/include/SSystem/SComponent/c_cc_d.h b/include/SSystem/SComponent/c_cc_d.h index bd8a4e567..fc05c43c8 100644 --- a/include/SSystem/SComponent/c_cc_d.h +++ b/include/SSystem/SComponent/c_cc_d.h @@ -16,67 +16,49 @@ class cCcD_AabAttr; class cCcD_CylAttr; class cCcD_SphAttr; -enum cCcD_ObjAtType { - /* 0x00000002 */ AT_TYPE_SWORD = (1 << 1), - /* 0x00000020 */ AT_TYPE_BOMB = (1 << 5), - /* 0x00000040 */ AT_TYPE_BOOMERANG = (1 << 6), - /* 0x00000080 */ AT_TYPE_BOKO_STICK = (1 << 7), - /* 0x00000100 */ AT_TYPE_WATER = (1 << 8), - /* 0x00000200 */ AT_TYPE_FIRE = (1 << 9), - /* 0x00000400 */ AT_TYPE_MACHETE = (1 << 10), - /* 0x00000800 */ AT_TYPE_UNK800 = (1 << 11), - /* 0x00001000 */ AT_TYPE_UNK1000 = (1 << 12), - /* 0x00002000 */ AT_TYPE_UNK2000 = (1 << 13), - /* 0x00004000 */ AT_TYPE_NORMAL_ARROW = (1 << 14), - /* 0x00008000 */ AT_TYPE_HOOKSHOT = (1 << 15), - /* 0x00010000 */ AT_TYPE_SKULL_HAMMER = (1 << 16), - /* 0x00020000 */ AT_TYPE_UNK20000 = (1 << 17), - /* 0x00040000 */ AT_TYPE_FIRE_ARROW = (1 << 18), - /* 0x00080000 */ AT_TYPE_ICE_ARROW = (1 << 19), - /* 0x00100000 */ AT_TYPE_LIGHT_ARROW = (1 << 20), - /* 0x00200000 */ AT_TYPE_WIND = (1 << 21), - /* 0x00400000 */ AT_TYPE_UNK400000 = (1 << 22), - /* 0x00800000 */ AT_TYPE_LIGHT = (1 << 23), - /* 0x01000000 */ AT_TYPE_STALFOS_MACE = (1 << 24), - /* 0x02000000 */ AT_TYPE_UNK2000000 = (1 << 25), - /* 0x04000000 */ AT_TYPE_DARKNUT_SWORD = (1 << 26), - /* 0x08000000 */ AT_TYPE_GRAPPLING_HOOK = (1 << 27), - /* 0x10000000 */ AT_TYPE_MOBLIN_SPEAR = (1 << 28), - /* 0x20000000 */ AT_TYPE_PGANON_SWORD = (1 << 29), - /* 0xFFFFFFFF */ AT_TYPE_ALL = ~0, +enum cCcD_AtSPrm_e { + /* 0x01 */ cCcD_AtSPrm_Set_e = 0x01, + /* 0x02 */ cCcD_AtSPrm_VsEnemy_e = 0x02, + /* 0x04 */ cCcD_AtSPrm_VsPlayer_e = 0x04, + /* 0x08 */ cCcD_AtSPrm_VsOther_e = 0x08, + /* 0x0E */ cCcD_AtSPrm_GrpAll_e = cCcD_AtSPrm_VsEnemy_e | cCcD_AtSPrm_VsPlayer_e | cCcD_AtSPrm_VsOther_e, + /* 0x10 */ cCcD_AtSPrm_NoTgHitInfSet_e = 0x10, }; -enum cCcD_AtSPrm_e { - /* 0x01 */ AT_SPRM_SET = 0x01, - /* 0x02 */ AT_SPRM_VS_ENEMY = 0x02, - /* 0x04 */ AT_SPRM_VS_PLAYER = 0x04, - /* 0x08 */ AT_SPRM_VS_OTHER = 0x08, - /* 0x0E */ AT_SPRM_GRP = AT_SPRM_VS_ENEMY | AT_SPRM_VS_PLAYER | AT_SPRM_VS_OTHER, - /* 0x10 */ AT_SPRM_NO_TG_HIT_INF_SET = 0x10, +enum cCcD_AtRPrm_e { + cCcD_AtRPrm_Hit_e = 1 << 0, }; enum cCcD_TgSPrm_e { - /* 0x01 */ TG_SPRM_SET = 0x01, - /* 0x02 */ TG_SPRM_IS_ENEMY = 0x02, - /* 0x04 */ TG_SPRM_IS_PLAYER = 0x04, - /* 0x08 */ TG_SPRM_IS_OTHER = 0x08, - /* 0x0E */ TG_SPRM_GRP = TG_SPRM_IS_ENEMY | TG_SPRM_IS_PLAYER | TG_SPRM_IS_OTHER, - /* 0x10 */ TG_SPRM_NO_AT_HIT_INF_SET = 0x10, + /* 0x01 */ cCcD_TgSPrm_Set_e = 0x01, + /* 0x02 */ cCcD_TgSPrm_IsEnemy_e = 0x02, + /* 0x04 */ cCcD_TgSPrm_IsPlayer_e = 0x04, + /* 0x08 */ cCcD_TgSPrm_IsOther_e = 0x08, + /* 0x0E */ cCcD_TgSPrm_GrpAll_e = cCcD_TgSPrm_IsEnemy_e | cCcD_TgSPrm_IsPlayer_e | cCcD_TgSPrm_IsOther_e, + /* 0x10 */ cCcD_TgSPrm_NoAtHitInfSet_e = 0x10, +}; + +enum cCcD_TgRPrm_e { + cCcD_TgRPrm_Hit_e = 1 << 0, }; enum cCcD_CoSPrm_e { - /* 0x0001 */ CO_SPRM_SET = 0x01, - /* 0x0002 */ CO_SPRM_IS_UNK2 = 0x02, - /* 0x0004 */ CO_SPRM_IS_UNK4 = 0x04, - /* 0x0008 */ CO_SPRM_IS_UNK8 = 0x08, - /* 0x0010 */ CO_SPRM_VS_UNK2 = 0x10, - /* 0x0020 */ CO_SPRM_VS_UNK4 = 0x20, - /* 0x0040 */ CO_SPRM_VS_UNK8 = 0x40, - /* 0x000E */ CO_SPRM_IGRP = CO_SPRM_IS_UNK2 | CO_SPRM_IS_UNK4 | CO_SPRM_IS_UNK8, - /* 0x0070 */ CO_SPRM_VSGRP = CO_SPRM_VS_UNK2 | CO_SPRM_VS_UNK4 | CO_SPRM_VS_UNK8, - /* 0x0080 */ CO_SPRM_SPH_3D_CRR = 0x80, - /* 0x0100 */ CO_SPRM_NO_CRR = 0x100, - /* 0x0200 */ CO_SPRM_NO_CO_HIT_INF_SET = 0x200, + /* 0x0001 */ cCcD_CoSPrm_Set_e = 0x01, + /* 0x0002 */ cCcD_CoSPrm_IsEnemy_e = 0x02, + /* 0x0004 */ cCcD_CoSPrm_IsPlayer_e = 0x04, + /* 0x0008 */ cCcD_CoSPrm_IsOther_e = 0x08, + /* 0x0010 */ cCcD_CoSPrm_VsEnemy_e = 0x10, + /* 0x0020 */ cCcD_CoSPrm_VsPlayer_e = 0x20, + /* 0x0040 */ cCcD_CoSPrm_VsOther_e = 0x40, + /* 0x000E */ cCcD_CoSPrm_IGrpAll_e = cCcD_CoSPrm_IsEnemy_e | cCcD_CoSPrm_IsPlayer_e | cCcD_CoSPrm_IsOther_e, + /* 0x0070 */ cCcD_CoSPrm_VsGrpAll_e = cCcD_CoSPrm_VsEnemy_e | cCcD_CoSPrm_VsPlayer_e | cCcD_CoSPrm_VsOther_e, + /* 0x0080 */ cCcD_CoSPrm_Sph3DCrr_e = 0x80, + /* 0x0100 */ cCcD_CoSPrm_NoCrr_e = 0x100, + /* 0x0200 */ cCcD_CoSPrm_NoCoHitInfSet_e = 0x200, +}; + +enum cCcD_CoRPrm_e { + cCcD_CoRPrm_Hit_e = 1 << 0, }; class cCcD_ShapeAttr { @@ -426,7 +408,7 @@ class cCcD_ObjAt : public cCcD_ObjCommonBase { cCcD_ObjAt() { mType = 0; } virtual ~cCcD_ObjAt() {} void SetHit(cCcD_Obj* obj) { - SetRPrm(1); + SetRPrm(cCcD_AtRPrm_Hit_e); SetHitObj(obj); } void Set(cCcD_SrcObjAt const& src) { @@ -434,18 +416,18 @@ class cCcD_ObjAt : public cCcD_ObjCommonBase { mType = src.mType; mAtp = src.mAtp; } - void ClrHit() { ClrRPrm(1); ClrObj(); } + void ClrHit() { ClrRPrm(cCcD_AtRPrm_Hit_e); ClrObj(); } u32 GetType() const { return mType; } - u32 GetGrp() const { return MskSPrm(AT_SPRM_GRP); } - bool ChkSet() const { return MskSPrm(AT_SPRM_SET); } + u32 GetGrp() const { return MskSPrm(cCcD_AtSPrm_GrpAll_e); } + bool ChkSet() const { return MskSPrm(cCcD_AtSPrm_Set_e); } u8 GetAtp() const { return mAtp; } u32 MskType(u32 msk) const { return mType & msk; } void SetType(u32 type) { mType = type; } void SetAtp(int atp) { mAtp = atp; } - void ClrSet() { OffSPrmBit(AT_SPRM_SET); } - void OnHitBit() { SetRPrm(1); } - void OffHitBit() { ClrRPrm(1); } - u32 ChkHit() const { return MskRPrm(1); } + void ClrSet() { OffSPrmBit(cCcD_AtSPrm_Set_e); } + void OnHitBit() { SetRPrm(cCcD_AtRPrm_Hit_e); } + void OffHitBit() { ClrRPrm(cCcD_AtRPrm_Hit_e); } + u32 ChkHit() const { return MskRPrm(cCcD_AtRPrm_Hit_e); } protected: /* 0x10 */ u32 mType; @@ -463,20 +445,20 @@ class cCcD_ObjTg : public cCcD_ObjCommonBase { mType = src.mType; } void SetGrp(u32 grp) { - OffSPrmBit(TG_SPRM_GRP); + OffSPrmBit(cCcD_TgSPrm_GrpAll_e); OnSPrmBit(grp); } - void ClrHit() { ClrRPrm(1); ClrObj(); } + void ClrHit() { ClrRPrm(cCcD_TgRPrm_Hit_e); ClrObj(); } void SetHit(cCcD_Obj* obj) { - SetRPrm(1); + SetRPrm(cCcD_TgRPrm_Hit_e); SetHitObj(obj); } u32 GetType() const { return mType; } void SetType(u32 type) { mType = type; } - u32 GetGrp() const { return MskSPrm(TG_SPRM_GRP); } - bool ChkSet() const { return MskSPrm(TG_SPRM_SET); } - void ClrSet() { OffSPrmBit(TG_SPRM_SET); } - u32 ChkHit() const { return MskRPrm(1); } + u32 GetGrp() const { return MskSPrm(cCcD_TgSPrm_GrpAll_e); } + bool ChkSet() const { return MskSPrm(cCcD_TgSPrm_Set_e); } + void ClrSet() { OffSPrmBit(cCcD_TgSPrm_Set_e); } + u32 ChkHit() const { return MskRPrm(cCcD_TgRPrm_Hit_e); } private: /* 0x10 */ u32 mType; @@ -488,25 +470,25 @@ class cCcD_ObjCo : public cCcD_ObjCommonBase { public: virtual ~cCcD_ObjCo() {} void SetHit(cCcD_Obj* obj) { - SetRPrm(1); + SetRPrm(cCcD_CoRPrm_Hit_e); SetHitObj(obj); } - void ClrHit() { ClrRPrm(1); ClrObj(); } + void ClrHit() { ClrRPrm(cCcD_CoRPrm_Hit_e); ClrObj(); } void SetIGrp(u32 grp) { // Fake inline, but exists in TP - OffSPrmBit(CO_SPRM_IGRP); + OffSPrmBit(cCcD_CoSPrm_IGrpAll_e); OnSPrmBit(grp); } void SetVsGrp(u32 grp) { - OffSPrmBit(CO_SPRM_VSGRP); + OffSPrmBit(cCcD_CoSPrm_VsGrpAll_e); OnSPrmBit(grp); } - bool ChkSet() const { return MskSPrm(CO_SPRM_SET); } - u32 GetVsGrp() const { return MskSPrm(CO_SPRM_VSGRP); } - u32 GetIGrp() const { return MskSPrm(CO_SPRM_IGRP); } - u32 ChkNoCrr() const { return MskSPrm(CO_SPRM_NO_CRR); } - u32 ChkSph3DCrr() const { return MskSPrm(CO_SPRM_SPH_3D_CRR); } - void ClrSet() { OffSPrmBit(CO_SPRM_SET); } - u32 ChkHit() const { return MskRPrm(1); } + bool ChkSet() const { return MskSPrm(cCcD_CoSPrm_Set_e); } + u32 GetVsGrp() const { return MskSPrm(cCcD_CoSPrm_VsGrpAll_e); } + u32 GetIGrp() const { return MskSPrm(cCcD_CoSPrm_IGrpAll_e); } + u32 ChkNoCrr() const { return MskSPrm(cCcD_CoSPrm_NoCrr_e); } + u32 ChkSph3DCrr() const { return MskSPrm(cCcD_CoSPrm_Sph3DCrr_e); } + void ClrSet() { OffSPrmBit(cCcD_CoSPrm_Set_e); } + u32 ChkHit() const { return MskRPrm(cCcD_CoRPrm_Hit_e); } void Set(cCcD_SrcObjCo const& src) { cCcD_ObjCommonBase::Set(src.mBase); @@ -542,9 +524,9 @@ class cCcD_ObjHitInf { u32 GetCoVsGrp() const { return mObjCo.GetVsGrp(); } u32 GetCoIGrp() const { return mObjCo.GetIGrp(); } u8 GetAtAtp() const { return mObjAt.GetAtp(); } - u32 ChkAtNoTgHitInfSet() const { return mObjAt.MskSPrm(AT_SPRM_NO_TG_HIT_INF_SET); } - u32 ChkTgNoAtHitInfSet() const { return mObjTg.MskSPrm(TG_SPRM_NO_AT_HIT_INF_SET); } - u32 ChkCoNoCoHitInfSet() { return mObjCo.MskSPrm(CO_SPRM_NO_CO_HIT_INF_SET); } + u32 ChkAtNoTgHitInfSet() const { return mObjAt.MskSPrm(cCcD_AtSPrm_NoTgHitInfSet_e); } + u32 ChkTgNoAtHitInfSet() const { return mObjTg.MskSPrm(cCcD_TgSPrm_NoAtHitInfSet_e); } + u32 ChkCoNoCoHitInfSet() { return mObjCo.MskSPrm(cCcD_CoSPrm_NoCoHitInfSet_e); } void SetAtHit(cCcD_Obj* obj) { mObjAt.SetHit(obj); } void SetTgHit(cCcD_Obj* obj) { mObjTg.SetHit(obj); } void SetCoHit(cCcD_Obj* obj) { mObjCo.SetHit(obj); } @@ -558,22 +540,22 @@ class cCcD_ObjHitInf { void OnCoSPrmBit(u32 flag) { mObjCo.OnSPrmBit(flag); } void OffCoSPrmBit(u32 flag) { mObjCo.OffSPrmBit(flag); } void SetAtType(u32 type) { mObjAt.SetType(type); } - void OnAtSetBit() { mObjAt.OnSPrmBit(AT_SPRM_SET); } + void OnAtSetBit() { mObjAt.OnSPrmBit(cCcD_AtSPrm_Set_e); } void SetAtAtp(int atp) { mObjAt.SetAtp(atp); } void OffCoSetBit() { mObjCo.ClrSet(); } void SetTgType(u32 type) { mObjTg.SetType(type); } void OffAtSetBit() { mObjAt.ClrSet(); } void OnAtHitBit() { mObjAt.OnHitBit(); } void OffAtHitBit() { mObjAt.OffHitBit(); } - void OnTgSetBit() { mObjTg.OnSPrmBit(TG_SPRM_SET); } + void OnTgSetBit() { mObjTg.OnSPrmBit(cCcD_TgSPrm_Set_e); } void OffTgSetBit() { mObjTg.ClrSet(); } - void OnCoSetBit() { mObjCo.OnSPrmBit(CO_SPRM_SET); } + void OnCoSetBit() { mObjCo.OnSPrmBit(cCcD_CoSPrm_Set_e); } void OnAtVsBitSet(u32 prm) { mObjAt.OnSPrmBit(prm); } void OffAtVsBitSet(u32 prm) { mObjAt.OffSPrmBit(prm); } - void OnAtVsEnemyBit() { mObjAt.OnSPrmBit(AT_SPRM_VS_ENEMY); } - void OffAtVsEnemyBit() { mObjAt.OffSPrmBit(AT_SPRM_VS_ENEMY); } - void OnAtVsPlayerBit() { mObjAt.OnSPrmBit(AT_SPRM_VS_PLAYER); } - void OffAtVsPlayerBit() { mObjAt.OffSPrmBit(AT_SPRM_VS_PLAYER); } + void OnAtVsEnemyBit() { mObjAt.OnSPrmBit(cCcD_AtSPrm_VsEnemy_e); } + void OffAtVsEnemyBit() { mObjAt.OffSPrmBit(cCcD_AtSPrm_VsEnemy_e); } + void OnAtVsPlayerBit() { mObjAt.OnSPrmBit(cCcD_AtSPrm_VsPlayer_e); } + void OffAtVsPlayerBit() { mObjAt.OffSPrmBit(cCcD_AtSPrm_VsPlayer_e); } void SetTgSPrm(u32 prm) { mObjTg.SetSPrm(prm); } // Fake inline, but exists in TP void SetCoSPrm(u32 prm) { mObjCo.SetSPrm(prm); } void ClrAtHit() { mObjAt.ClrHit(); } @@ -589,9 +571,9 @@ class cCcD_ObjHitInf { void ClrTgSet() { OffTgSetBit(); } void ClrCoSet() { OffCoSetBit(); } u32 MskAtSPrm(u32 prm) const { return mObjAt.MskSPrm(prm); } - void OnAtNoTgHitInfSet() { mObjAt.OnSPrmBit(AT_SPRM_NO_TG_HIT_INF_SET); } - void OffAtNoTgHitInfSet() { mObjAt.OffSPrmBit(AT_SPRM_NO_TG_HIT_INF_SET); } - void OnTgNoAtHitInfSet() { mObjTg.OnSPrmBit(TG_SPRM_NO_AT_HIT_INF_SET); } + void OnAtNoTgHitInfSet() { mObjAt.OnSPrmBit(cCcD_AtSPrm_NoTgHitInfSet_e); } + void OffAtNoTgHitInfSet() { mObjAt.OffSPrmBit(cCcD_AtSPrm_NoTgHitInfSet_e); } + void OnTgNoAtHitInfSet() { mObjTg.OnSPrmBit(cCcD_TgSPrm_NoAtHitInfSet_e); } void SetTgGrp(u32 grp) { mObjTg.SetGrp(grp); } void SetCoIGrp(u32 grp) { mObjCo.SetIGrp(grp); } // Fake inline, but exists in TP void SetCoVsGrp(u32 grp) { mObjCo.SetVsGrp(grp); } diff --git a/include/d/d_cc_d.h b/include/d/d_cc_d.h index c52c830fd..88a053acc 100644 --- a/include/d/d_cc_d.h +++ b/include/d/d_cc_d.h @@ -10,45 +10,91 @@ #include "f_pc/f_pc_manager.h" #include "d/d_particle_name.h" -enum dCcG_At_SPrm { - G_AT_SPRM_NO_CON_HIT = 0x01, - G_AT_SPRM_NO_HIT_MARK = 0x02, - G_AT_SPRM_STOP_NO_CON_HIT = 0x04, - G_AT_SPRM_NO_MASS = 0x08, +enum dCcD_ObjAtType { + /* 0x00000002 */ AT_TYPE_SWORD = (1 << 1), + /* 0x00000020 */ AT_TYPE_BOMB = (1 << 5), + /* 0x00000040 */ AT_TYPE_BOOMERANG = (1 << 6), + /* 0x00000080 */ AT_TYPE_BOKO_STICK = (1 << 7), + /* 0x00000100 */ AT_TYPE_WATER = (1 << 8), + /* 0x00000200 */ AT_TYPE_FIRE = (1 << 9), + /* 0x00000400 */ AT_TYPE_MACHETE = (1 << 10), + /* 0x00000800 */ AT_TYPE_UNK800 = (1 << 11), + /* 0x00001000 */ AT_TYPE_UNK1000 = (1 << 12), + /* 0x00002000 */ AT_TYPE_UNK2000 = (1 << 13), + /* 0x00004000 */ AT_TYPE_NORMAL_ARROW = (1 << 14), + /* 0x00008000 */ AT_TYPE_HOOKSHOT = (1 << 15), + /* 0x00010000 */ AT_TYPE_SKULL_HAMMER = (1 << 16), + /* 0x00020000 */ AT_TYPE_UNK20000 = (1 << 17), + /* 0x00040000 */ AT_TYPE_FIRE_ARROW = (1 << 18), + /* 0x00080000 */ AT_TYPE_ICE_ARROW = (1 << 19), + /* 0x00100000 */ AT_TYPE_LIGHT_ARROW = (1 << 20), + /* 0x00200000 */ AT_TYPE_WIND = (1 << 21), + /* 0x00400000 */ AT_TYPE_UNK400000 = (1 << 22), + /* 0x00800000 */ AT_TYPE_LIGHT = (1 << 23), + /* 0x01000000 */ AT_TYPE_STALFOS_MACE = (1 << 24), + /* 0x02000000 */ AT_TYPE_UNK2000000 = (1 << 25), + /* 0x04000000 */ AT_TYPE_DARKNUT_SWORD = (1 << 26), + /* 0x08000000 */ AT_TYPE_GRAPPLING_HOOK = (1 << 27), + /* 0x10000000 */ AT_TYPE_MOBLIN_SPEAR = (1 << 28), + /* 0x20000000 */ AT_TYPE_PGANON_SWORD = (1 << 29), + /* 0xFFFFFFFF */ AT_TYPE_ALL = ~0, }; -enum dCcG_Tg_SPrm { - G_TG_SPRM_SHIELD = 0x01, - G_TG_SPRM_NO_CON_HIT = 0x02, - G_TG_SPRM_NO_HIT_MARK = 0x04, - G_TG_SPRM_SHIELD_FRONT_RANGE = 0x08, +enum dCcG_AtSPrm_e { + dCcG_AtSPrm_NoConHit_e = 1 << 0, + dCcG_AtSPrm_NoHitMark_e = 1 << 1, + dCcG_AtSPrm_StopNoConHit_e = 1 << 2, + dCcG_AtSPrm_NoMass_e = 1 << 3, }; -enum dCcG_Co_SPrm { - G_CO_SPRM_AT_LASSO = 0x01, - G_CO_SPRM_TG_LASSO = 0x02, +enum dCcG_AtRPrm_e { + dCcG_AtRPrm_ShieldHit_e = 1 << 0, + dCcG_AtRPrm_HitNoActor_e = 1 << 1, }; -enum dCcD_hitSe { - /* 0x01 */ dCcD_SE_UNK1 = 1, - /* 0x02 */ dCcD_SE_UNK2 = 2, - /* 0x04 */ dCcD_SE_UNK4 = 4, - /* 0x05 */ dCcD_SE_UNK5 = 5, - /* 0x06 */ dCcD_SE_UNK6 = 6, - /* 0x07 */ dCcD_SE_ARROW = 7, - /* 0x08 */ dCcD_SE_HOOKSHOT = 8, - /* 0x23 */ dCcD_SE_UNK23 = 0x23, - /* 0x25 */ dCcD_SE_UNK25 = 0x25, +enum dCcG_TgSPrm_e { + dCcG_TgSPrm_Shield_e = 1 << 0, + dCcG_TgSPrm_NoConHit_e = 1 << 1, + dCcG_TgSPrm_NoHitMark_e = 1 << 2, + dCcG_TgSPrm_ShieldFrontRange_e = 1 << 3, +}; + +enum dCcG_TgRPrm_e { + dCcG_TgRPrm_HitNoActor_e = 1 << 0, + dCcG_TgRPrm_ShieldHit_e = 1 << 1, +}; + +enum dCcG_CoSPrm_e { + dCcG_CoSPrm_AtLasso_e = 1 << 0, + dCcG_CoSPrm_TgLasso_e = 1 << 1, +}; + +enum dCcG_CoRPrm_e { + dCcG_CoRPrm_HitNoActor_e = 1 << 0, +}; + +enum dCcG_hitSe { + /* 0x01 */ dCcG_SE_UNK1 = 1, + /* 0x02 */ dCcG_SE_UNK2 = 2, + /* 0x04 */ dCcG_SE_UNK4 = 4, + /* 0x05 */ dCcG_SE_UNK5 = 5, + /* 0x06 */ dCcG_SE_UNK6 = 6, + /* 0x07 */ dCcG_SE_ARROW = 7, + /* 0x08 */ dCcG_SE_HOOKSHOT = 8, + /* 0x23 */ dCcG_SE_UNK23 = 0x23, + /* 0x25 */ dCcG_SE_UNK25 = 0x25, }; enum CcG_At_HitMark { - /* 0xD */ G_AT_MARK_NORMAL_HIT = dPa_name::ID_COMMON_NORMAL_HIT, - /* 0xF */ G_AT_MARK_BIG_HIT = dPa_name::ID_COMMON_BIG_HIT, + /* 0x0 */ dCcG_AtHitMark_None_e = 0, + /* 0x1 */ dCcG_AtHitMark_Unk1_e = 1, + /* 0xD */ dCcG_AtHitMark_Nrm_e = dPa_name::ID_COMMON_NORMAL_HIT, + /* 0xF */ dCcG_AtHitMark_Big_e = dPa_name::ID_COMMON_BIG_HIT, }; enum CcG_Tg_HitMark { - /* 0x1 */ G_TG_MARK_UNK1 = 1, - /* 0xC */ G_TG_MARK_PURPLE_HIT = dPa_name::ID_COMMON_PURPLE_HIT, + /* 0x1 */ dCcG_TgHitMark_Unk1_e = 1, + /* 0xC */ dCcg_TgHitMark_Purple_e = dPa_name::ID_COMMON_PURPLE_HIT, }; enum dCcG_At_Spl { @@ -115,6 +161,10 @@ struct dCcD_SrcCps { class dCcD_GStts : public cCcD_GStts { public: + enum { + Stts_NoActor_e = 1 << 0, + }; + dCcD_GStts(); virtual ~dCcD_GStts() {} @@ -128,13 +178,13 @@ class dCcD_GStts : public cCcD_GStts { void SetRoomId(int id) { mRoomId = id; } fpc_ProcID GetAtOldApid() { return mAtOldApid; } fpc_ProcID GetTgOldApid() { return mTgOldApid; } - bool ChkNoActor() { return field_0x1C & 1; } + bool ChkNoActor() { return mFlag & 1; } bool ChkNoneActorPerfTblId() { return mActorPerfTblId == 0xFFFF; } dCcG_At_Spl GetAtSpl() { return (dCcG_At_Spl)mAtSpl; } void SetAtSpl(dCcG_At_Spl spl) { mAtSpl = spl; } dCcG_Tg_Spl GetTgSpl() { return (dCcG_Tg_Spl)mTgSpl; } void SetTgSpl(dCcG_Tg_Spl spl) { mTgSpl = spl; } - void OnNoActor() { field_0x1C |= 1; } + void OnNoActor() { mFlag |= Stts_NoActor_e; } // private: /* 0x04 */ u8 mAtSpl; @@ -145,7 +195,7 @@ class dCcD_GStts : public cCcD_GStts { /* 0x10 */ fpc_ProcID mAtOldApid; /* 0x14 */ fpc_ProcID mTgApid; /* 0x18 */ fpc_ProcID mTgOldApid; - /* 0x1C */ int field_0x1C; + /* 0x1C */ u32 mFlag; }; // Size = 0x20 class dCcD_Stts : public cCcD_Stts, public dCcD_GStts { @@ -183,7 +233,6 @@ class dCcD_GAtTgCoCommonBase { /* 0x0C */ fpc_ProcID mApid; /* 0x10 */ fopAc_ac_c* mAc; /* 0x14 */ s8 mEffCounter; - /* 0x15 */ u8 field_0x15[3]; /* 0x18 vtable */ public: @@ -335,18 +384,18 @@ class dCcD_GObjInf : public cCcD_GObjInf { void SetAtVec(cXyz& vec) { mGObjAt.SetVec(vec); } void SetTgVec(cXyz& vec) { mGObjTg.SetVec(vec); } - bool ChkAtNoMass() { return mGObjAt.ChkSPrm(G_AT_SPRM_NO_MASS); } - bool ChkAtNoHitMark() { return mGObjAt.ChkSPrm(G_AT_SPRM_NO_HIT_MARK); } - void OnAtNoHitMark() { mGObjAt.OnSPrm(G_AT_SPRM_NO_HIT_MARK); } - void OffAtNoHitMark() { mGObjAt.OffSPrm(G_AT_SPRM_NO_HIT_MARK); } - bool ChkTgNoHitMark() { return mGObjTg.ChkSPrm(G_TG_SPRM_NO_HIT_MARK); } - void OnTgNoHitMark() { mGObjTg.OnSPrm(G_TG_SPRM_NO_HIT_MARK); } - void OffTgNoHitMark() { mGObjTg.OffSPrm(G_TG_SPRM_NO_HIT_MARK); } - bool ChkAtNoConHit() { return mGObjAt.ChkSPrm(G_AT_SPRM_NO_CON_HIT); } - void OnAtNoConHit() { mGObjAt.OnSPrm(G_AT_SPRM_NO_CON_HIT); } - void OffAtNoConHit() { mGObjAt.OffSPrm(G_AT_SPRM_NO_CON_HIT); } - bool ChkTgNoConHit() { return mGObjTg.ChkSPrm(G_TG_SPRM_NO_CON_HIT); } - void OnTgNoConHit() { mGObjTg.OnSPrm(G_TG_SPRM_NO_CON_HIT); } + bool ChkAtNoMass() { return mGObjAt.ChkSPrm(dCcG_AtSPrm_NoMass_e); } + bool ChkAtNoHitMark() { return mGObjAt.ChkSPrm(dCcG_AtSPrm_NoHitMark_e); } + void OnAtNoHitMark() { mGObjAt.OnSPrm(dCcG_AtSPrm_NoHitMark_e); } + void OffAtNoHitMark() { mGObjAt.OffSPrm(dCcG_AtSPrm_NoHitMark_e); } + bool ChkTgNoHitMark() { return mGObjTg.ChkSPrm(dCcG_TgSPrm_NoHitMark_e); } + void OnTgNoHitMark() { mGObjTg.OnSPrm(dCcG_TgSPrm_NoHitMark_e); } + void OffTgNoHitMark() { mGObjTg.OffSPrm(dCcG_TgSPrm_NoHitMark_e); } + bool ChkAtNoConHit() { return mGObjAt.ChkSPrm(dCcG_AtSPrm_NoConHit_e); } + void OnAtNoConHit() { mGObjAt.OnSPrm(dCcG_AtSPrm_NoConHit_e); } + void OffAtNoConHit() { mGObjAt.OffSPrm(dCcG_AtSPrm_NoConHit_e); } + bool ChkTgNoConHit() { return mGObjTg.ChkSPrm(dCcG_TgSPrm_NoConHit_e); } + void OnTgNoConHit() { mGObjTg.OnSPrm(dCcG_TgSPrm_NoConHit_e); } int GetAtHitMark() { return mGObjAt.GetHitMark(); } int GetTgHitMark() { return mGObjTg.GetHitMark(); } void SetAtHitMark(u8 mark) { mGObjAt.SetHitMark(mark); } @@ -365,49 +414,50 @@ class dCcD_GObjInf : public cCcD_GObjInf { void SetTgHitCallback(dCcD_HitCallback callback) { mGObjTg.SetHitCallback(callback); } void SetCoHitCallback(dCcD_HitCallback callback) { mGObjCo.SetHitCallback(callback); } u8 GetAtSe() { return mGObjAt.GetSe(); } + bool ChkAtStopNoConHit() { return mGObjAt.ChkSPrm(dCcG_AtSPrm_StopNoConHit_e); } fopAc_ac_c* GetTgHitAc() { return mGObjTg.GetAc(); } void SetTgShieldFrontRangeYAngle(s16* angle) { mGObjTg.SetShieldFrontRangeYAngle(angle); } - bool ChkTgShield() { return mGObjTg.ChkSPrm(G_TG_SPRM_SHIELD); } - void OnTgShield() { mGObjTg.OnSPrm(G_TG_SPRM_SHIELD); } - void OffTgShield() { mGObjTg.OffSPrm(G_TG_SPRM_SHIELD); } - bool ChkTgShieldFrontRange() { return mGObjTg.ChkSPrm(G_TG_SPRM_SHIELD_FRONT_RANGE); } - void OnTgShieldFrontRange() { mGObjTg.OnSPrm(G_TG_SPRM_SHIELD_FRONT_RANGE); } - void OffTgShieldFrontRange() { mGObjTg.OffSPrm(G_TG_SPRM_SHIELD_FRONT_RANGE); } + bool ChkTgShield() { return mGObjTg.ChkSPrm(dCcG_TgSPrm_Shield_e); } + void OnTgShield() { mGObjTg.OnSPrm(dCcG_TgSPrm_Shield_e); } + void OffTgShield() { mGObjTg.OffSPrm(dCcG_TgSPrm_Shield_e); } + bool ChkTgShieldFrontRange() { return mGObjTg.ChkSPrm(dCcG_TgSPrm_ShieldFrontRange_e); } + void OnTgShieldFrontRange() { mGObjTg.OnSPrm(dCcG_TgSPrm_ShieldFrontRange_e); } + void OffTgShieldFrontRange() { mGObjTg.OffSPrm(dCcG_TgSPrm_ShieldFrontRange_e); } s16* GetTgShieldFrontRangeYAngle() { return mGObjTg.GetShieldFrontRangeYAngle(); } - bool ChkAtStopNoConHit() { return mGObjAt.ChkSPrm(G_AT_SPRM_STOP_NO_CON_HIT); } - bool ChkCoAtLasso() { return mGObjCo.ChkSPrm(G_CO_SPRM_AT_LASSO); } - bool ChkCoTgLasso() { return mGObjCo.ChkSPrm(G_CO_SPRM_TG_LASSO); } + bool ChkCoAtLasso() { return mGObjCo.ChkSPrm(dCcG_CoSPrm_AtLasso_e); } + bool ChkCoTgLasso() { return mGObjCo.ChkSPrm(dCcG_CoSPrm_TgLasso_e); } dCcD_HitCallback GetCoHitCallback() { return mGObjCo.GetHitCallback(); } dCcD_HitCallback GetAtHitCallback() { return mGObjAt.GetHitCallback(); } dCcD_HitCallback GetTgHitCallback() { return mGObjTg.GetHitCallback(); } void SetCoHitApid(fpc_ProcID apid) { mGObjCo.SetHitApid(apid); } void SetAtHitApid(fpc_ProcID apid) { mGObjAt.SetHitApid(apid); } void SetTgHitApid(fpc_ProcID apid) { mGObjTg.SetHitApid(apid); } - void OnCoHitNoActor() { mGObjCo.OnRPrm(1); } - void OffCoHitNoActor() { mGObjCo.OffRPrm(1); } - void OnAtHitNoActor() { mGObjAt.OnRPrm(2); } - void OffAtHitNoActor() { mGObjAt.OffRPrm(2); } - void OnTgHitNoActor() { mGObjTg.OnRPrm(1); } - void OffTgHitNoActor() { mGObjTg.OffRPrm(1); } - bool ChkCoHitNoActor() { return mGObjCo.ChkRPrm(1); } - bool ChkAtHitNoActor() { return mGObjAt.ChkRPrm(2); } - bool ChkTgHitNoActor() { return mGObjTg.ChkRPrm(1); } + bool ChkAtHitNoActor() { return mGObjAt.ChkRPrm(dCcG_AtRPrm_HitNoActor_e); } + void OnAtHitNoActor() { mGObjAt.OnRPrm(dCcG_AtRPrm_HitNoActor_e); } + void OffAtHitNoActor() { mGObjAt.OffRPrm(dCcG_AtRPrm_HitNoActor_e); } + bool ChkTgHitNoActor() { return mGObjTg.ChkRPrm(dCcG_TgRPrm_HitNoActor_e); } + void OnTgHitNoActor() { mGObjTg.OnRPrm(dCcG_TgRPrm_HitNoActor_e); } + void OffTgHitNoActor() { mGObjTg.OffRPrm(dCcG_TgRPrm_HitNoActor_e); } + bool ChkCoHitNoActor() { return mGObjCo.ChkRPrm(dCcG_CoRPrm_HitNoActor_e); } + void OnCoHitNoActor() { mGObjCo.OnRPrm(dCcG_CoRPrm_HitNoActor_e); } + void OffCoHitNoActor() { mGObjCo.OffRPrm(dCcG_CoRPrm_HitNoActor_e); } + bool ChkTgShieldHit() { return mGObjTg.ChkRPrm(dCcG_TgRPrm_ShieldHit_e); } + void OnTgShieldHit() { mGObjTg.OnRPrm(dCcG_TgRPrm_ShieldHit_e); } + void OffTgShieldHit() { mGObjTg.OffRPrm(dCcG_TgRPrm_ShieldHit_e); } + bool ChkAtShieldHit() { return mGObjAt.ChkRPrm(dCcG_AtRPrm_ShieldHit_e); } + void OnAtShieldHit() { mGObjAt.OnRPrm(dCcG_AtRPrm_ShieldHit_e); } + void OffAtShieldHit() { mGObjAt.OffRPrm(dCcG_AtRPrm_ShieldHit_e); } + bool ChkAtEffCounter() { return mGObjAt.ChkEffCounter(); } - bool ChkTgEffCounter() { return mGObjTg.ChkEffCounter(); } void ClrAtEffCounter() { mGObjAt.ClrEffCounter(); } - void ClrTgEffCounter() { mGObjTg.ClrEffCounter(); } - void ClrCoEffCounter() { mGObjCo.ClrEffCounter(); } void SetAtEffCounterTimer() { mGObjAt.SetEffCounterTimer(); } - void SetTgEffCounterTimer() { mGObjTg.SetEffCounterTimer(); } void SubtractAtEffCounter() { mGObjAt.SubtractEffCounter(); } + bool ChkTgEffCounter() { return mGObjTg.ChkEffCounter(); } + void ClrTgEffCounter() { mGObjTg.ClrEffCounter(); } + void SetTgEffCounterTimer() { mGObjTg.SetEffCounterTimer(); } void SubtractTgEffCounter() { mGObjTg.SubtractEffCounter(); } + void ClrCoEffCounter() { mGObjCo.ClrEffCounter(); } void SubtractCoEffCounter() { mGObjCo.SubtractEffCounter(); } - void OnTgShieldHit() { mGObjTg.OnRPrm(2); } - void OffTgShieldHit() { mGObjTg.OffRPrm(2); } - bool ChkTgShieldHit() { return mGObjTg.ChkRPrm(2); } - void OnAtShieldHit() { mGObjAt.OnRPrm(1); } - void OffAtShieldHit() { mGObjAt.OffRPrm(1); } - bool ChkAtShieldHit() { return mGObjAt.ChkRPrm(1); } void SetTgRVec(cXyz& vec) { mGObjTg.SetRVec(vec); } void SetAtRVec(cXyz& vec) { mGObjAt.SetRVec(vec); } void SetTgHitPos(cXyz& pos) { mGObjTg.SetHitPos(pos); } diff --git a/src/c/c_damagereaction.cpp b/src/c/c_damagereaction.cpp index 721b7f63b..80e319742 100644 --- a/src/c/c_damagereaction.cpp +++ b/src/c/c_damagereaction.cpp @@ -77,20 +77,20 @@ dCcD_SrcCyl cc_cyl_src = { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_SKULL_HAMMER, /* SrcObjAt Atp */ 0, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_GRP, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_GrpAll_e, /* SrcObjTg Type */ AT_TYPE_ALL, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK4 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsPlayer_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, /* SrcGObjAt SPrm */ 0, - /* SrcGObjTg Se */ dCcD_SE_UNK5, - /* SrcGObjTg HitMark */ G_TG_MARK_PURPLE_HIT, + /* SrcGObjTg Se */ dCcG_SE_UNK5, + /* SrcGObjTg HitMark */ dCcg_TgHitMark_Purple_e, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_SHIELD | G_TG_SPRM_NO_CON_HIT, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_Shield_e | dCcG_TgSPrm_NoConHit_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS @@ -407,7 +407,7 @@ dCcD_SrcSph fire_at_sph_src = { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_FIRE, /* SrcObjAt Atp */ 0x02, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_GRP, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_GrpAll_e, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, /* SrcObjCo SPrm */ 0, @@ -415,7 +415,7 @@ dCcD_SrcSph fire_at_sph_src = { /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, - /* SrcGObjAt SPrm */ G_AT_SPRM_NO_CON_HIT, + /* SrcGObjAt SPrm */ dCcG_AtSPrm_NoConHit_e, /* SrcGObjTg Se */ 0, /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, diff --git a/src/d/actor/d_a_agbsw0.cpp b/src/d/actor/d_a_agbsw0.cpp index b0d2ef0af..6f54bfeed 100644 --- a/src/d/actor/d_a_agbsw0.cpp +++ b/src/d/actor/d_a_agbsw0.cpp @@ -32,7 +32,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_BOMB, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -43,7 +43,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_am.cpp b/src/d/actor/d_a_am.cpp index 9c3eadeed..7b5459e9d 100644 --- a/src/d/actor/d_a_am.cpp +++ b/src/d/actor/d_a_am.cpp @@ -268,7 +268,7 @@ static BOOL medama_atari_check(am_class* i_this) { if (i_this->mCurrBckIdx == AM_BCK_SLEEP || i_this->mCurrBckIdx == AM_BCK_SLEEP_LOOP) { anm_init(i_this, AM_BCK_OKIRU, 1.0f, J3DFrameCtrl::LOOP_ONCE_e, 1.0f, -1); i_this->attention_info.flags = fopAc_Attn_LOCKON_BATTLE_e; - i_this->mNeedleCyl.OnAtSPrmBit(AT_SPRM_SET); + i_this->mNeedleCyl.OnAtSPrmBit(cCcD_AtSPrm_Set_e); i_this->mNeedleCyl.OnAtHitBit(); i_this->mAction = ACTION_DOUSA; i_this->mState = 2; @@ -519,7 +519,7 @@ static void action_dousa(am_class* i_this) { // Fall-through case 4: { if (i_this->mCountDownTimers[2] == 1) { - i_this->mNeedleCyl.OnAtSPrmBit(AT_SPRM_SET); + i_this->mNeedleCyl.OnAtSPrmBit(cCcD_AtSPrm_Set_e); i_this->mNeedleCyl.OnAtHitBit(); } if (i_this->mCountDownTimers[2] != 0) { @@ -1186,7 +1186,7 @@ static s32 daAM_Create(fopAc_ac_c* i_actor) { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_NORMAL_ARROW | AT_TYPE_FIRE_ARROW | AT_TYPE_ICE_ARROW | AT_TYPE_LIGHT_ARROW | AT_TYPE_GRAPPLING_HOOK, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -1197,7 +1197,7 @@ static s32 daAM_Create(fopAc_ac_c* i_actor) { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_CON_HIT | G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoConHit_e | dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGSphS @@ -1218,7 +1218,7 @@ static s32 daAM_Create(fopAc_ac_c* i_actor) { /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK4 | CO_SPRM_VS_UNK8 | CO_SPRM_NO_CRR, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsPlayer_e | cCcD_CoSPrm_VsOther_e | cCcD_CoSPrm_NoCrr_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -1228,7 +1228,7 @@ static s32 daAM_Create(fopAc_ac_c* i_actor) { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_CON_HIT, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoConHit_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGSphS @@ -1248,18 +1248,18 @@ static s32 daAM_Create(fopAc_ac_c* i_actor) { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_WATER | AT_TYPE_UNK20000 | AT_TYPE_WIND | AT_TYPE_UNK400000 | AT_TYPE_LIGHT), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK4 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsPlayer_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, /* SrcGObjAt SPrm */ 0, /* SrcGObjTg Se */ 0, - /* SrcGObjTg HitMark */ G_TG_MARK_PURPLE_HIT, + /* SrcGObjTg HitMark */ dCcg_TgHitMark_Purple_e, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_SHIELD | G_TG_SPRM_NO_CON_HIT, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_Shield_e | dCcG_TgSPrm_NoConHit_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS @@ -1278,20 +1278,20 @@ static s32 daAM_Create(fopAc_ac_c* i_actor) { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_UNK1000, /* SrcObjAt Atp */ 2, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_GRP, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_GrpAll_e, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK4 | CO_SPRM_VSGRP, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsPlayer_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ dCcG_At_Spl_UNK6, /* SrcGObjAt Mtrl */ 0, /* SrcGObjAt SPrm */ 0, /* SrcGObjTg Se */ 0, - /* SrcGObjTg HitMark */ G_TG_MARK_PURPLE_HIT, + /* SrcGObjTg HitMark */ dCcg_TgHitMark_Purple_e, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_SHIELD | G_TG_SPRM_NO_CON_HIT, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_Shield_e | dCcG_TgSPrm_NoConHit_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_am2.cpp b/src/d/actor/d_a_am2.cpp index 78bbd3dd8..18e4f4f53 100644 --- a/src/d/actor/d_a_am2.cpp +++ b/src/d/actor/d_a_am2.cpp @@ -1319,7 +1319,7 @@ static s32 daAM2_Create(fopAc_ac_c* i_actor) { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_NORMAL_ARROW | AT_TYPE_FIRE_ARROW | AT_TYPE_ICE_ARROW | AT_TYPE_LIGHT_ARROW | AT_TYPE_GRAPPLING_HOOK, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -1330,7 +1330,7 @@ static s32 daAM2_Create(fopAc_ac_c* i_actor) { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_CON_HIT | G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoConHit_e | dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGSphS @@ -1351,7 +1351,7 @@ static s32 daAM2_Create(fopAc_ac_c* i_actor) { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_WATER | AT_TYPE_UNK20000 | AT_TYPE_WIND | AT_TYPE_UNK400000 | AT_TYPE_LIGHT), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -1362,7 +1362,7 @@ static s32 daAM2_Create(fopAc_ac_c* i_actor) { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_CON_HIT | G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoConHit_e | dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGSphS @@ -1383,18 +1383,18 @@ static s32 daAM2_Create(fopAc_ac_c* i_actor) { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_WATER | AT_TYPE_UNK20000 | AT_TYPE_WIND | AT_TYPE_UNK400000 | AT_TYPE_LIGHT), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK4 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsPlayer_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, /* SrcGObjAt SPrm */ 0, /* SrcGObjTg Se */ 0, - /* SrcGObjTg HitMark */ G_TG_MARK_PURPLE_HIT, + /* SrcGObjTg HitMark */ dCcg_TgHitMark_Purple_e, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_SHIELD | G_TG_SPRM_NO_CON_HIT, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_Shield_e | dCcG_TgSPrm_NoConHit_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS @@ -1413,20 +1413,20 @@ static s32 daAM2_Create(fopAc_ac_c* i_actor) { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_UNK1000, /* SrcObjAt Atp */ 1, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_PLAYER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsPlayer_e, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_VS_UNK4 | CO_SPRM_VS_UNK8, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_VsPlayer_e | cCcD_CoSPrm_VsOther_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ dCcG_At_Spl_UNK6, /* SrcGObjAt Mtrl */ 0, /* SrcGObjAt SPrm */ 0, /* SrcGObjTg Se */ 0, - /* SrcGObjTg HitMark */ G_TG_MARK_PURPLE_HIT, + /* SrcGObjTg HitMark */ dCcg_TgHitMark_Purple_e, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_SHIELD | G_TG_SPRM_NO_CON_HIT, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_Shield_e | dCcG_TgSPrm_NoConHit_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_arrow.cpp b/src/d/actor/d_a_arrow.cpp index b0072683f..71a965064 100644 --- a/src/d/actor/d_a_arrow.cpp +++ b/src/d/actor/d_a_arrow.cpp @@ -35,12 +35,12 @@ const dCcD_SrcCps daArrow_c::m_at_cps_src = { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_NORMAL_ARROW, /* SrcObjAt Atp */ 2, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_ENEMY | AT_SPRM_VS_OTHER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsEnemy_e | cCcD_AtSPrm_VsOther_e, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, /* SrcObjCo SPrm */ 0, - /* SrcGObjAt Se */ dCcD_SE_ARROW, - /* SrcGObjAt HitMark */ G_AT_MARK_NORMAL_HIT, + /* SrcGObjAt Se */ dCcG_SE_ARROW, + /* SrcGObjAt HitMark */ dCcG_AtHitMark_Nrm_e, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, /* SrcGObjAt SPrm */ 0, @@ -68,8 +68,8 @@ const dCcD_SrcSph daArrow_c::m_co_sph_src = { /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VS_UNK2 | CO_SPRM_NO_CRR, - /* SrcGObjAt Se */ dCcD_SE_ARROW, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsEnemy_e | cCcD_CoSPrm_NoCrr_e, + /* SrcGObjAt Se */ dCcG_SE_ARROW, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, @@ -78,7 +78,7 @@ const dCcD_SrcSph daArrow_c::m_co_sph_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGSphS @@ -262,7 +262,7 @@ void daArrow_c::setDrawShapeMaterial() { if (mbSetByZelda) { mAtCps.SetAtAtp(4); mAtCps.SetAtType(arrow_mat[0].mAtType); - mAtCps.OnAtSPrmBit(AT_SPRM_GRP); + mAtCps.OnAtSPrmBit(cCcD_AtSPrm_GrpAll_e); } if (arrow_mat[mArrowType].mTipJointIdx != 0) { diff --git a/src/d/actor/d_a_att.cpp b/src/d/actor/d_a_att.cpp index aa787c6cd..5c17d288b 100644 --- a/src/d/actor/d_a_att.cpp +++ b/src/d/actor/d_a_att.cpp @@ -120,9 +120,9 @@ static s32 daAtt_Create(fopAc_ac_c* i_this) { /* Flags */ 0, /* SrcObjAt Type */ 0, /* SrcObjAt Atp */ 0, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_PLAYER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsPlayer_e, /* SrcObjTg Type */ AT_TYPE_HOOKSHOT, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -151,8 +151,8 @@ static s32 daAtt_Create(fopAc_ac_c* i_this) { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_WATER | AT_TYPE_UNK20000 | AT_TYPE_WIND | AT_TYPE_UNK400000 | AT_TYPE_LIGHT), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK4 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsPlayer_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -178,9 +178,9 @@ static s32 daAtt_Create(fopAc_ac_c* i_this) { /* Flags */ 0, /* SrcObjAt Type */ 0, /* SrcObjAt Atp */ 0, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_PLAYER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsPlayer_e, /* SrcObjTg Type */ ~(AT_TYPE_WATER | AT_TYPE_UNK20000 | AT_TYPE_WIND | AT_TYPE_UNK400000 | AT_TYPE_LIGHT), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, diff --git a/src/d/actor/d_a_bflower.cpp b/src/d/actor/d_a_bflower.cpp index bda5df3cb..d56fe944c 100644 --- a/src/d/actor/d_a_bflower.cpp +++ b/src/d/actor/d_a_bflower.cpp @@ -22,7 +22,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_WATER, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -33,7 +33,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cCcD_SrcCylAttr @@ -52,8 +52,8 @@ static dCcD_SrcSph l_sph_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_WATER | AT_TYPE_UNK20000 | AT_TYPE_WIND | AT_TYPE_UNK400000 | AT_TYPE_LIGHT), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -63,7 +63,7 @@ static dCcD_SrcSph l_sph_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGSphS @@ -82,7 +82,7 @@ static dCcD_SrcSph l_sph_src2 = { /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VSGRP, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -92,7 +92,7 @@ static dCcD_SrcSph l_sph_src2 = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGSphS diff --git a/src/d/actor/d_a_bita.cpp b/src/d/actor/d_a_bita.cpp index ac04b792f..7c0305a89 100644 --- a/src/d/actor/d_a_bita.cpp +++ b/src/d/actor/d_a_bita.cpp @@ -211,9 +211,9 @@ static s32 daBita_Create(fopAc_ac_c* i_ac) { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_FIRE, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, /* SrcObjCo SPrm */ 0, - /* SrcGObjAt Se */ dCcD_SE_UNK6, + /* SrcGObjAt Se */ dCcG_SE_UNK6, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ dCcG_At_Spl_UNK1, /* SrcGObjAt Mtrl */ 0, diff --git a/src/d/actor/d_a_bk.cpp b/src/d/actor/d_a_bk.cpp index 62e0be34e..3590a0c78 100644 --- a/src/d/actor/d_a_bk.cpp +++ b/src/d/actor/d_a_bk.cpp @@ -1709,13 +1709,13 @@ static void attack_set(bk_class* i_this, u8 r28) { if (r28 == 2) { i_this->m1040.SetAtType(AT_TYPE_UNK2000); - i_this->m1040.SetAtSe(dCcD_SE_UNK6); + i_this->m1040.SetAtSe(dCcG_SE_UNK6); } else if (i_this->m02D5 != 0) { i_this->m1040.SetAtType(AT_TYPE_UNK800); - i_this->m1040.SetAtSe(dCcD_SE_UNK2); + i_this->m1040.SetAtSe(dCcG_SE_UNK2); } else { i_this->m1040.SetAtType(AT_TYPE_UNK2000); - i_this->m1040.SetAtSe(dCcD_SE_UNK4); + i_this->m1040.SetAtSe(dCcG_SE_UNK4); } if (r28 == 0) { @@ -3394,7 +3394,7 @@ static s32 daBk_Create(fopAc_ac_c* i_actor) { /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK4 | CO_SPRM_VSGRP, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsPlayer_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -3404,7 +3404,7 @@ static s32 daBk_Create(fopAc_ac_c* i_actor) { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_CON_HIT, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoConHit_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS @@ -3424,7 +3424,7 @@ static s32 daBk_Create(fopAc_ac_c* i_actor) { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_WATER | AT_TYPE_UNK20000 | AT_TYPE_WIND | AT_TYPE_UNK400000 | AT_TYPE_LIGHT), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -3432,10 +3432,10 @@ static s32 daBk_Create(fopAc_ac_c* i_actor) { /* SrcGObjAt Mtrl */ 0, /* SrcGObjAt SPrm */ 0, /* SrcGObjTg Se */ 0, - /* SrcGObjTg HitMark */ G_TG_MARK_UNK1, + /* SrcGObjTg HitMark */ dCcG_TgHitMark_Unk1_e, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_CON_HIT, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoConHit_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS @@ -3455,7 +3455,7 @@ static s32 daBk_Create(fopAc_ac_c* i_actor) { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_WATER | AT_TYPE_UNK20000 | AT_TYPE_WIND | AT_TYPE_UNK400000 | AT_TYPE_LIGHT), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -3463,10 +3463,10 @@ static s32 daBk_Create(fopAc_ac_c* i_actor) { /* SrcGObjAt Mtrl */ 0, /* SrcGObjAt SPrm */ 0, /* SrcGObjTg Se */ 0, - /* SrcGObjTg HitMark */ G_TG_MARK_UNK1, + /* SrcGObjTg HitMark */ dCcG_TgHitMark_Unk1_e, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_CON_HIT, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoConHit_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGSphS @@ -3483,15 +3483,15 @@ static s32 daBk_Create(fopAc_ac_c* i_actor) { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_UNK800, /* SrcObjAt Atp */ 2, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_ENEMY | AT_SPRM_VS_PLAYER | AT_SPRM_VS_OTHER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsEnemy_e | cCcD_AtSPrm_VsPlayer_e | cCcD_AtSPrm_VsOther_e, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, - /* SrcGObjAt HitMark */ G_AT_MARK_NORMAL_HIT, + /* SrcGObjAt HitMark */ dCcG_AtHitMark_Nrm_e, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, - /* SrcGObjAt SPrm */ G_AT_SPRM_NO_CON_HIT, + /* SrcGObjAt SPrm */ dCcG_AtSPrm_NoConHit_e, /* SrcGObjTg Se */ 0, /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, @@ -3515,18 +3515,18 @@ static s32 daBk_Create(fopAc_ac_c* i_actor) { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_WATER | AT_TYPE_UNK20000 | AT_TYPE_WIND | AT_TYPE_UNK400000 | AT_TYPE_LIGHT), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, /* SrcGObjAt SPrm */ 0, - /* SrcGObjTg Se */ dCcD_SE_UNK6, - /* SrcGObjTg HitMark */ G_TG_MARK_PURPLE_HIT, + /* SrcGObjTg Se */ dCcG_SE_UNK6, + /* SrcGObjTg HitMark */ dCcg_TgHitMark_Purple_e, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_SHIELD | G_TG_SPRM_NO_CON_HIT, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_Shield_e | dCcG_TgSPrm_NoConHit_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGSphS diff --git a/src/d/actor/d_a_bomb2.cpp b/src/d/actor/d_a_bomb2.cpp index f984e310d..7e2fb2ead 100644 --- a/src/d/actor/d_a_bomb2.cpp +++ b/src/d/actor/d_a_bomb2.cpp @@ -306,10 +306,10 @@ namespace daBomb2 { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_BOMB, /* SrcObjAt Atp */ 0x04, - /* SrcObjAt SPrm */ AT_SPRM_GRP, + /* SrcObjAt SPrm */ cCcD_AtSPrm_GrpAll_e, /* SrcObjTg Type */ ~(AT_TYPE_WATER | AT_TYPE_UNK20000 | AT_TYPE_UNK400000 | AT_TYPE_LIGHT), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ dCcG_At_Spl_UNK1, @@ -319,7 +319,7 @@ namespace daBomb2 { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_CON_HIT, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoConHit_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGSphS @@ -966,7 +966,7 @@ namespace daBomb2 { void Act_c::mode_wait_init() { mState = 0; gravity = attr().gravity; - mSph.OnCoSPrmBit(CO_SPRM_SET); + mSph.OnCoSPrmBit(cCcD_CoSPrm_Set_e); } void Act_c::mode_wait() { @@ -1024,7 +1024,7 @@ namespace daBomb2 { speedF = 0.0f; speed = cXyz::Zero; off_carry(); - mSph.OffCoSPrmBit(CO_SPRM_SET); + mSph.OffCoSPrmBit(cCcD_CoSPrm_Set_e); } void Act_c::mode_carry() { @@ -1060,9 +1060,9 @@ namespace daBomb2 { speed = cXyz::Zero; gravity = 0.0f; off_carry(); - mSph.OffTgSPrmBit(TG_SPRM_SET); - mSph.OffCoSPrmBit(CO_SPRM_SET); - mSph.OnAtSPrmBit(AT_SPRM_SET); + mSph.OffTgSPrmBit(cCcD_TgSPrm_Set_e); + mSph.OffCoSPrmBit(cCcD_CoSPrm_Set_e); + mSph.OnAtSPrmBit(cCcD_AtSPrm_Set_e); fopAcM_cancelCarryNow(this); mBombTimer = 0; field_0x73C = 4; @@ -1080,9 +1080,9 @@ namespace daBomb2 { mState = 3; speed.y *= 0.8f; speedF *= 0.8f; - mSph.OffAtSPrmBit(AT_SPRM_SET); - mSph.OffTgSPrmBit(TG_SPRM_SET); - mSph.OffCoSPrmBit(CO_SPRM_SET); + mSph.OffAtSPrmBit(cCcD_AtSPrm_Set_e); + mSph.OffTgSPrmBit(cCcD_TgSPrm_Set_e); + mSph.OffCoSPrmBit(cCcD_CoSPrm_Set_e); off_carry(); fopAcM_cancelCarryNow(this); field_0x698 = 4; diff --git a/src/d/actor/d_a_bomb3.inc b/src/d/actor/d_a_bomb3.inc index a613af1f8..e49f1ab5c 100644 --- a/src/d/actor/d_a_bomb3.inc +++ b/src/d/actor/d_a_bomb3.inc @@ -666,9 +666,9 @@ void daBomb_c::makeWaterEffect() { if(field_0x77D == 0) { fopAcM_seStart(this, JA_SE_OBJ_BOMB_WATER, 0); fopKyM_createWpillar(¤t.pos, 1.0f, 1.0f, 1); - mSph.OffTgSPrmBit(TG_SPRM_SET); - mSph.OffCoSPrmBit(CO_SPRM_SET); - mSph.OnAtSPrmBit(AT_SPRM_SET); + mSph.OffTgSPrmBit(cCcD_TgSPrm_Set_e); + mSph.OffCoSPrmBit(cCcD_CoSPrm_Set_e); + mSph.OnAtSPrmBit(cCcD_AtSPrm_Set_e); mSph.SetR(200.0f); mSph.SetC(current.pos); if(mMassCounter != g_Counter.mCounter0) { @@ -828,9 +828,9 @@ int daBomb_c::procExplode_init() { field_0x6F0 = 0; } - mSph.OffTgSPrmBit(TG_SPRM_SET); - mSph.OffCoSPrmBit(CO_SPRM_SET); - mSph.OnAtSPrmBit(AT_SPRM_SET); + mSph.OffTgSPrmBit(cCcD_TgSPrm_Set_e); + mSph.OffCoSPrmBit(cCcD_CoSPrm_Set_e); + mSph.OnAtSPrmBit(cCcD_AtSPrm_Set_e); mSph.SetR(200.0f); mSph.SetC(current.pos); if(mMassCounter != g_Counter.mCounter0) { @@ -927,7 +927,7 @@ bool daBomb_c::procCarry_init() { speedF = 0.0f; speed.set(cXyz::Zero); attention_info.flags &= ~fopAc_Attn_ACTION_CARRY_e; - mSph.OffCoSPrmBit(CO_SPRM_SET); + mSph.OffCoSPrmBit(cCcD_CoSPrm_Set_e); return true; } @@ -963,7 +963,7 @@ bool daBomb_c::procWait_init() { change_state(STATE_1); } - mSph.OnCoSPrmBit(CO_SPRM_SET); + mSph.OnCoSPrmBit(cCcD_CoSPrm_Set_e); return true; } @@ -1367,10 +1367,10 @@ static dCcD_SrcSph l_sph_src = { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_BOMB, /* SrcObjAt Atp */ 0x04, - /* SrcObjAt SPrm */ AT_SPRM_GRP, + /* SrcObjAt SPrm */ cCcD_AtSPrm_GrpAll_e, /* SrcObjTg Type */ ~(AT_TYPE_WATER | AT_TYPE_UNK20000 | AT_TYPE_UNK400000 | AT_TYPE_LIGHT), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ dCcG_At_Spl_UNK1, @@ -1380,7 +1380,7 @@ static dCcD_SrcSph l_sph_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_CON_HIT, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoConHit_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGSphS diff --git a/src/d/actor/d_a_deku_item.cpp b/src/d/actor/d_a_deku_item.cpp index df7acaf0a..72da83fcf 100644 --- a/src/d/actor/d_a_deku_item.cpp +++ b/src/d/actor/d_a_deku_item.cpp @@ -20,8 +20,8 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_ALL, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VS_UNK2, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsEnemy_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -31,7 +31,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cCcD_SrcCylAttr diff --git a/src/d/actor/d_a_fan.cpp b/src/d/actor/d_a_fan.cpp index 140b3e413..95bf6b641 100644 --- a/src/d/actor/d_a_fan.cpp +++ b/src/d/actor/d_a_fan.cpp @@ -32,7 +32,7 @@ static dCcD_SrcCps l_cps_src = { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_WIND, /* SrcObjAt Atp */ 0, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_GRP, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_GrpAll_e, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, /* SrcObjCo SPrm */ 0, @@ -40,12 +40,12 @@ static dCcD_SrcCps l_cps_src = { /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, - /* SrcGObjAt SPrm */ G_AT_SPRM_NO_HIT_MARK, + /* SrcGObjAt SPrm */ dCcG_AtSPrm_NoHitMark_e, /* SrcGObjTg Se */ 0, /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCpsS diff --git a/src/d/actor/d_a_hitobj.cpp b/src/d/actor/d_a_hitobj.cpp index c9381d4fd..5e563c976 100644 --- a/src/d/actor/d_a_hitobj.cpp +++ b/src/d/actor/d_a_hitobj.cpp @@ -56,9 +56,9 @@ static s32 daHitobj_Create(fopAc_ac_c* pActor) { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_WATER, /* SrcObjAt Atp */ 0, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_ENEMY | AT_SPRM_VS_OTHER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsEnemy_e | cCcD_AtSPrm_VsOther_e, /* SrcObjTg Type */ 0, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, diff --git a/src/d/actor/d_a_hookshot.cpp b/src/d/actor/d_a_hookshot.cpp index d6e69ba2a..c5f353c28 100644 --- a/src/d/actor/d_a_hookshot.cpp +++ b/src/d/actor/d_a_hookshot.cpp @@ -337,11 +337,11 @@ static dCcD_SrcCps l_at_cps_src = { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_HOOKSHOT, /* SrcObjAt Atp */ 0x01, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_ENEMY | AT_SPRM_VS_OTHER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsEnemy_e | cCcD_AtSPrm_VsOther_e, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, /* SrcObjCo SPrm */ 0, - /* SrcGObjAt Se */ dCcD_SE_HOOKSHOT, + /* SrcGObjAt Se */ dCcG_SE_HOOKSHOT, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, diff --git a/src/d/actor/d_a_ib.cpp b/src/d/actor/d_a_ib.cpp index 81590467e..d22e9631c 100644 --- a/src/d/actor/d_a_ib.cpp +++ b/src/d/actor/d_a_ib.cpp @@ -489,18 +489,18 @@ dCcD_SrcCyl daIball_c::m_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_LIGHT), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, - /* SrcGObjAt SPrm */ G_AT_SPRM_STOP_NO_CON_HIT, + /* SrcGObjAt SPrm */ dCcG_AtSPrm_StopNoConHit_e, /* SrcGObjTg Se */ 0, /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_item.cpp b/src/d/actor/d_a_item.cpp index 78e7aa1ab..ba0a7a826 100644 --- a/src/d/actor/d_a_item.cpp +++ b/src/d/actor/d_a_item.cpp @@ -1472,8 +1472,8 @@ dCcD_SrcCyl daItem_c::m_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_ALL, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VS_UNK2 | CO_SPRM_VS_UNK8, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsEnemy_e | cCcD_CoSPrm_VsOther_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -1483,7 +1483,7 @@ dCcD_SrcCyl daItem_c::m_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_lamp.cpp b/src/d/actor/d_a_lamp.cpp index 0fbdc246b..054fff13b 100644 --- a/src/d/actor/d_a_lamp.cpp +++ b/src/d/actor/d_a_lamp.cpp @@ -18,7 +18,7 @@ static dCcD_SrcSph sph_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_FIRE | AT_TYPE_UNK20000 | AT_TYPE_FIRE_ARROW | AT_TYPE_WIND | AT_TYPE_UNK400000, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, diff --git a/src/d/actor/d_a_msw.cpp b/src/d/actor/d_a_msw.cpp index f4de35a46..e7a2db050 100644 --- a/src/d/actor/d_a_msw.cpp +++ b/src/d/actor/d_a_msw.cpp @@ -257,8 +257,8 @@ static s32 daMsw_Create(fopAc_ac_c* i_this) { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_WATER | AT_TYPE_UNK20000 | AT_TYPE_WIND | AT_TYPE_UNK400000 | AT_TYPE_LIGHT), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK4 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsPlayer_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -268,7 +268,7 @@ static s32 daMsw_Create(fopAc_ac_c* i_this) { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_SHIELD, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_Shield_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_nh.cpp b/src/d/actor/d_a_nh.cpp index 3175142e3..ea981104e 100644 --- a/src/d/actor/d_a_nh.cpp +++ b/src/d/actor/d_a_nh.cpp @@ -26,8 +26,8 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_ALL, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VS_UNK2, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsEnemy_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -37,7 +37,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_npc_bs1.cpp b/src/d/actor/d_a_npc_bs1.cpp index abcfad1f9..2537735f1 100644 --- a/src/d/actor/d_a_npc_bs1.cpp +++ b/src/d/actor/d_a_npc_bs1.cpp @@ -35,8 +35,8 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_ALL, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, - /* SrcObjCo SPrm */ CO_SPRM_VS_UNK8 | CO_SPRM_VS_UNK4 | CO_SPRM_VS_UNK2 | CO_SPRM_IS_UNK4 | CO_SPRM_SET, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_VsOther_e | cCcD_CoSPrm_VsPlayer_e | cCcD_CoSPrm_VsEnemy_e | cCcD_CoSPrm_IsPlayer_e | cCcD_CoSPrm_Set_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -46,7 +46,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_npc_btsw2.cpp b/src/d/actor/d_a_npc_btsw2.cpp index 5573af62e..afa8d2a5e 100644 --- a/src/d/actor/d_a_npc_btsw2.cpp +++ b/src/d/actor/d_a_npc_btsw2.cpp @@ -26,8 +26,8 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_BOOMERANG), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK4 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsPlayer_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -37,7 +37,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_npc_ji1.cpp b/src/d/actor/d_a_npc_ji1.cpp index 5638ccf6d..249f827d7 100644 --- a/src/d/actor/d_a_npc_ji1.cpp +++ b/src/d/actor/d_a_npc_ji1.cpp @@ -31,8 +31,8 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_ALL, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK4 | CO_SPRM_VS_UNK2 | CO_SPRM_VS_UNK4 | CO_SPRM_VS_UNK8, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsPlayer_e | cCcD_CoSPrm_VsEnemy_e | cCcD_CoSPrm_VsPlayer_e | cCcD_CoSPrm_VsOther_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -42,7 +42,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS @@ -61,7 +61,7 @@ static dCcD_SrcCyl l_cyl2_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_ALL, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -72,7 +72,7 @@ static dCcD_SrcCyl l_cyl2_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS @@ -89,7 +89,7 @@ static dCcD_SrcCyl l_cylAt_src = { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_BOMB, /* SrcObjAt Atp */ 0, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_ENEMY | AT_SPRM_VS_OTHER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsEnemy_e | cCcD_AtSPrm_VsOther_e, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, /* SrcObjCo SPrm */ 0, @@ -102,7 +102,7 @@ static dCcD_SrcCyl l_cylAt_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS @@ -119,7 +119,7 @@ static dCcD_SrcCps l_cpsAt_src = { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_UNK800, /* SrcObjAt Atp */ 0, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_PLAYER | AT_SPRM_VS_OTHER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsPlayer_e | cCcD_AtSPrm_VsOther_e, /* SrcObjTg Type */ AT_TYPE_ALL, /* SrcObjTg SPrm */ 0, /* SrcObjCo SPrm */ 0, @@ -132,7 +132,7 @@ static dCcD_SrcCps l_cpsAt_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCpsS diff --git a/src/d/actor/d_a_npc_kamome.cpp b/src/d/actor/d_a_npc_kamome.cpp index 842a3a30e..52a557ce2 100644 --- a/src/d/actor/d_a_npc_kamome.cpp +++ b/src/d/actor/d_a_npc_kamome.cpp @@ -286,10 +286,10 @@ static dCcD_SrcSph l_sph_src = { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_SWORD, /* SrcObjAt Atp */ 0, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_OTHER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsOther_e, /* SrcObjTg Type */ AT_TYPE_ALL, /* SrcObjTg SPrm */ 0, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VSGRP, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -317,7 +317,7 @@ static dCcD_SrcSph l_tg_sph_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_ALL, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_PLAYER, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsPlayer_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -344,7 +344,7 @@ static dCcD_SrcCps l_kam_at_cps_src = { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_SWORD, /* SrcObjAt Atp */ 0, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_OTHER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsOther_e, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, /* SrcObjCo SPrm */ 0, @@ -352,7 +352,7 @@ static dCcD_SrcCps l_kam_at_cps_src = { /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, - /* SrcGObjAt SPrm */ G_AT_SPRM_NO_HIT_MARK, + /* SrcGObjAt SPrm */ dCcG_AtSPrm_NoHitMark_e, /* SrcGObjTg Se */ 0, /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, diff --git a/src/d/actor/d_a_npc_md.cpp b/src/d/actor/d_a_npc_md.cpp index 324e4fda0..c6090fdd9 100644 --- a/src/d/actor/d_a_npc_md.cpp +++ b/src/d/actor/d_a_npc_md.cpp @@ -49,8 +49,8 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_BOOMERANG | AT_TYPE_WIND | AT_TYPE_LIGHT), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_PLAYER, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK4 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsPlayer_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsPlayer_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -60,7 +60,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS @@ -79,7 +79,7 @@ static dCcD_SrcCyl l_light_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_LIGHT, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -90,7 +90,7 @@ static dCcD_SrcCyl l_light_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS @@ -107,7 +107,7 @@ static dCcD_SrcCps l_fan_light_cps_src = { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_LIGHT, /* SrcObjAt Atp */ 0, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_GRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_GrpAll_e, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, /* SrcObjCo SPrm */ 0, @@ -115,7 +115,7 @@ static dCcD_SrcCps l_fan_light_cps_src = { /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, - /* SrcGObjAt SPrm */ G_AT_SPRM_NO_HIT_MARK, + /* SrcGObjAt SPrm */ dCcG_AtSPrm_NoHitMark_e, /* SrcGObjTg Se */ 0, /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, @@ -139,7 +139,7 @@ static dCcD_SrcCyl l_wind_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_WIND, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -150,7 +150,7 @@ static dCcD_SrcCyl l_wind_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_npc_os.cpp b/src/d/actor/d_a_npc_os.cpp index 8bb7af031..7df508f05 100644 --- a/src/d/actor/d_a_npc_os.cpp +++ b/src/d/actor/d_a_npc_os.cpp @@ -27,8 +27,8 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~AT_TYPE_BOOMERANG, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, - /* SrcObjCo SPrm */ CO_SPRM_VSGRP | CO_SPRM_IS_UNK4 | CO_SPRM_SET, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_VsGrpAll_e | cCcD_CoSPrm_IsPlayer_e | cCcD_CoSPrm_Set_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -38,7 +38,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_npc_roten.cpp b/src/d/actor/d_a_npc_roten.cpp index 952f3a570..18baea745 100644 --- a/src/d/actor/d_a_npc_roten.cpp +++ b/src/d/actor/d_a_npc_roten.cpp @@ -1356,7 +1356,7 @@ static dCcD_SrcSph l_sph_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_WIND, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -1367,7 +1367,7 @@ static dCcD_SrcSph l_sph_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGSphS diff --git a/src/d/actor/d_a_obj_barrier.cpp b/src/d/actor/d_a_obj_barrier.cpp index ece99613d..2e7897fee 100644 --- a/src/d/actor/d_a_obj_barrier.cpp +++ b/src/d/actor/d_a_obj_barrier.cpp @@ -23,7 +23,7 @@ static const dCcD_SrcCyl l_cyl_at_src = { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_UNK800, /* SrcObjAt Atp */ 1, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_PLAYER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsPlayer_e, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, /* SrcObjCo SPrm */ 0, @@ -31,7 +31,7 @@ static const dCcD_SrcCyl l_cyl_at_src = { /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ dCcG_At_Spl_UNK9, /* SrcGObjAt Mtrl */ 0, - /* SrcGObjAt SPrm */ G_AT_SPRM_NO_CON_HIT | G_AT_SPRM_NO_HIT_MARK, + /* SrcGObjAt SPrm */ dCcG_AtSPrm_NoConHit_e | dCcG_AtSPrm_NoHitMark_e, /* SrcGObjTg Se */ 0, /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, @@ -55,7 +55,7 @@ static const dCcD_SrcCyl l_cyl_tg_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_WATER | AT_TYPE_UNK20000 | AT_TYPE_UNK400000 | AT_TYPE_LIGHT), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -66,7 +66,7 @@ static const dCcD_SrcCyl l_cyl_tg_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_CON_HIT | G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoConHit_e | dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_obj_dragonhead.cpp b/src/d/actor/d_a_obj_dragonhead.cpp index efd069ccb..32f7c3d97 100644 --- a/src/d/actor/d_a_obj_dragonhead.cpp +++ b/src/d/actor/d_a_obj_dragonhead.cpp @@ -22,7 +22,7 @@ static dCcD_SrcSph sph_check_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_FIRE_ARROW, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, diff --git a/src/d/actor/d_a_obj_ebomzo.cpp b/src/d/actor/d_a_obj_ebomzo.cpp index 6159ba52f..8d4811184 100644 --- a/src/d/actor/d_a_obj_ebomzo.cpp +++ b/src/d/actor/d_a_obj_ebomzo.cpp @@ -26,7 +26,7 @@ dCcD_SrcSph sph_check_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_BOMB, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, diff --git a/src/d/actor/d_a_obj_eskban.cpp b/src/d/actor/d_a_obj_eskban.cpp index f7dc2b05c..3e46d3ece 100644 --- a/src/d/actor/d_a_obj_eskban.cpp +++ b/src/d/actor/d_a_obj_eskban.cpp @@ -27,7 +27,7 @@ static dCcD_SrcCyl cyl_check_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_BOMB, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -57,7 +57,7 @@ static dCcD_SrcCyl cyl_camera_src = { /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VS_UNK8 | CO_SPRM_NO_CRR, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsOther_e | cCcD_CoSPrm_NoCrr_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -85,9 +85,9 @@ static dCcD_SrcSph sph_check_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_BOMB, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VS_UNK4 | CO_SPRM_VS_UNK2 | - CO_SPRM_NO_CRR, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsPlayer_e | cCcD_CoSPrm_VsEnemy_e | + cCcD_CoSPrm_NoCrr_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, diff --git a/src/d/actor/d_a_obj_ferris.cpp b/src/d/actor/d_a_obj_ferris.cpp index a46fdd4ae..2c88625a5 100644 --- a/src/d/actor/d_a_obj_ferris.cpp +++ b/src/d/actor/d_a_obj_ferris.cpp @@ -28,8 +28,8 @@ namespace daObjFerris { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_LIGHT | AT_TYPE_UNK400000 | AT_TYPE_WIND | AT_TYPE_UNK20000 | AT_TYPE_WATER), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_GRP, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_GrpAll_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -59,7 +59,7 @@ namespace daObjFerris { /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VSGRP, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, diff --git a/src/d/actor/d_a_obj_figure.cpp b/src/d/actor/d_a_obj_figure.cpp index 616f63406..763c8081a 100644 --- a/src/d/actor/d_a_obj_figure.cpp +++ b/src/d/actor/d_a_obj_figure.cpp @@ -62,8 +62,8 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_ALL, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -73,7 +73,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_obj_hfuck1.cpp b/src/d/actor/d_a_obj_hfuck1.cpp index b18d1afcf..4ef9bdc75 100644 --- a/src/d/actor/d_a_obj_hfuck1.cpp +++ b/src/d/actor/d_a_obj_hfuck1.cpp @@ -25,7 +25,7 @@ namespace { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_HOOKSHOT, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -36,7 +36,7 @@ namespace { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_CON_HIT | G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoConHit_e | dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGSphS diff --git a/src/d/actor/d_a_obj_movebox.cpp b/src/d/actor/d_a_obj_movebox.cpp index 26ec4b4f1..79886801b 100644 --- a/src/d/actor/d_a_obj_movebox.cpp +++ b/src/d/actor/d_a_obj_movebox.cpp @@ -318,8 +318,8 @@ namespace daObjMovebox { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_BOMB, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, diff --git a/src/d/actor/d_a_obj_mtest.cpp b/src/d/actor/d_a_obj_mtest.cpp index 3e8d98258..6b729455a 100644 --- a/src/d/actor/d_a_obj_mtest.cpp +++ b/src/d/actor/d_a_obj_mtest.cpp @@ -45,7 +45,7 @@ const dCcD_SrcCyl daObjMtest::Act_c::M_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_BOMB, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, diff --git a/src/d/actor/d_a_obj_paper.cpp b/src/d/actor/d_a_obj_paper.cpp index 7136440b4..52020ad92 100644 --- a/src/d/actor/d_a_obj_paper.cpp +++ b/src/d/actor/d_a_obj_paper.cpp @@ -95,8 +95,8 @@ namespace daObjPaper { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_WATER | AT_TYPE_UNK20000 | AT_TYPE_WIND | AT_TYPE_UNK400000 | AT_TYPE_LIGHT), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_GRP, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_GrpAll_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -106,7 +106,7 @@ namespace daObjPaper { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_SHIELD | G_TG_SPRM_NO_CON_HIT, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_Shield_e | dCcG_TgSPrm_NoConHit_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_obj_toripost.cpp b/src/d/actor/d_a_obj_toripost.cpp index 74489b86f..a5dc57dd0 100644 --- a/src/d/actor/d_a_obj_toripost.cpp +++ b/src/d/actor/d_a_obj_toripost.cpp @@ -48,8 +48,8 @@ const dCcD_SrcCyl daObjTpost_c::m_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_BOOMERANG), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_GRP, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_GrpAll_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -59,7 +59,7 @@ const dCcD_SrcCyl daObjTpost_c::m_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_SHIELD | G_TG_SPRM_NO_CON_HIT | G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_Shield_e | dCcG_TgSPrm_NoConHit_e | dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_obj_vfan.cpp b/src/d/actor/d_a_obj_vfan.cpp index 7959f6045..ef55c5eeb 100644 --- a/src/d/actor/d_a_obj_vfan.cpp +++ b/src/d/actor/d_a_obj_vfan.cpp @@ -24,7 +24,7 @@ static dCcD_SrcCyl cyl_check_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_PGANON_SWORD, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, diff --git a/src/d/actor/d_a_obj_vmc.cpp b/src/d/actor/d_a_obj_vmc.cpp index 1185253a5..2bb257fb7 100644 --- a/src/d/actor/d_a_obj_vmc.cpp +++ b/src/d/actor/d_a_obj_vmc.cpp @@ -24,7 +24,7 @@ static dCcD_SrcCyl cyl_src_base = { /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_VS_UNK2 | CO_SPRM_IS_UNK8 | CO_SPRM_NO_CRR, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_VsEnemy_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_NoCrr_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, diff --git a/src/d/actor/d_a_obj_zouK.cpp b/src/d/actor/d_a_obj_zouK.cpp index 1ba835c7e..3f8c24837 100644 --- a/src/d/actor/d_a_obj_zouK.cpp +++ b/src/d/actor/d_a_obj_zouK.cpp @@ -33,8 +33,8 @@ namespace daObjZouk { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_LIGHT | AT_TYPE_UNK400000 | AT_TYPE_WIND | AT_TYPE_UNK20000 | AT_TYPE_WATER), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_GRP, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_GrpAll_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -44,7 +44,7 @@ namespace daObjZouk { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_SHIELD | G_TG_SPRM_NO_CON_HIT, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_Shield_e | dCcG_TgSPrm_NoConHit_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_player_main.cpp b/src/d/actor/d_a_player_main.cpp index 13142f63d..ba1a42f0e 100644 --- a/src/d/actor/d_a_player_main.cpp +++ b/src/d/actor/d_a_player_main.cpp @@ -1971,11 +1971,11 @@ BOOL daPy_lk_c::changeDamageProc() { setDashDamage(); } else { u8 hitSe = mCyl.GetTgHitObjSe(); - if (hitSe == dCcD_SE_UNK6) { + if (hitSe == dCcG_SE_UNK6) { seStartOnlyReverb(JA_SE_OBJ_COL_N_BDY_MPLT); - } else if (hitSe == dCcD_SE_UNK2 || hitSe == dCcD_SE_UNK5) { + } else if (hitSe == dCcG_SE_UNK2 || hitSe == dCcG_SE_UNK5) { seStartOnlyReverb(JA_SE_OBJ_COL_SWS_NMTLP); - } else if (hitSe == dCcD_SE_UNK4) { + } else if (hitSe == dCcG_SE_UNK4) { seStartOnlyReverb(JA_SE_OBJ_COL_NWHP_NMTL); } else { seStartOnlyReverb(JA_SE_OBJ_COL_SWM_NSWL); diff --git a/src/d/actor/d_a_player_main_data.inc b/src/d/actor/d_a_player_main_data.inc index 9cdeb5ddb..2f8f9a615 100644 --- a/src/d/actor/d_a_player_main_data.inc +++ b/src/d/actor/d_a_player_main_data.inc @@ -49,15 +49,15 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_WATER | AT_TYPE_UNK20000 | AT_TYPE_WIND | AT_TYPE_UNK400000 | AT_TYPE_LIGHT), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_PLAYER, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK2 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsPlayer_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsEnemy_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, /* SrcGObjAt SPrm */ 0, - /* SrcGObjTg Se */ dCcD_SE_UNK25, - /* SrcGObjTg HitMark */ G_TG_MARK_PURPLE_HIT, + /* SrcGObjTg Se */ dCcG_SE_UNK25, + /* SrcGObjTg HitMark */ dCcg_TgHitMark_Purple_e, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, /* SrcGObjTg SPrm */ 0, @@ -79,13 +79,13 @@ static dCcD_SrcCyl l_wind_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_WIND, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_PLAYER, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsPlayer_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, - /* SrcGObjAt SPrm */ G_AT_SPRM_NO_HIT_MARK, + /* SrcGObjAt SPrm */ dCcG_AtSPrm_NoHitMark_e, /* SrcGObjTg Se */ 0, /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, @@ -107,12 +107,12 @@ static dCcD_SrcCyl l_at_cyl_src = { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_SWORD, /* SrcObjAt Atp */ 0x02, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_ENEMY | AT_SPRM_VS_OTHER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsEnemy_e | cCcD_AtSPrm_VsOther_e, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, - /* SrcGObjAt HitMark */ G_AT_MARK_BIG_HIT, + /* SrcGObjAt HitMark */ dCcG_AtHitMark_Big_e, /* SrcGObjAt Spl */ dCcG_At_Spl_UNK1, /* SrcGObjAt Mtrl */ 0, /* SrcGObjAt SPrm */ 0, @@ -137,12 +137,12 @@ static dCcD_SrcCps l_at_cps_src = { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_SWORD, /* SrcObjAt Atp */ 0x01, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_ENEMY | AT_SPRM_VS_OTHER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsEnemy_e | cCcD_AtSPrm_VsOther_e, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, /* SrcObjCo SPrm */ 0, - /* SrcGObjAt Se */ dCcD_SE_UNK1, - /* SrcGObjAt HitMark */ G_AT_MARK_NORMAL_HIT, + /* SrcGObjAt Se */ dCcG_SE_UNK1, + /* SrcGObjAt HitMark */ dCcG_AtHitMark_Nrm_e, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, /* SrcGObjAt SPrm */ 0, @@ -167,7 +167,7 @@ static dCcD_SrcCps l_fan_wind_cps_src = { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_WIND, /* SrcObjAt Atp */ 0, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_ENEMY | AT_SPRM_VS_OTHER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsEnemy_e | cCcD_AtSPrm_VsOther_e, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, /* SrcObjCo SPrm */ 0, @@ -175,7 +175,7 @@ static dCcD_SrcCps l_fan_wind_cps_src = { /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, - /* SrcGObjAt SPrm */ G_AT_SPRM_NO_HIT_MARK, + /* SrcGObjAt SPrm */ dCcG_AtSPrm_NoHitMark_e, /* SrcGObjTg Se */ 0, /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, @@ -197,7 +197,7 @@ static dCcD_SrcSph l_fan_wind_sph_src = { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_WIND, /* SrcObjAt Atp */ 0, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_ENEMY | AT_SPRM_VS_OTHER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsEnemy_e | cCcD_AtSPrm_VsOther_e, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, /* SrcObjCo SPrm */ 0, diff --git a/src/d/actor/d_a_player_sword.inc b/src/d/actor/d_a_player_sword.inc index a436e63f3..c5dffe649 100644 --- a/src/d/actor/d_a_player_sword.inc +++ b/src/d/actor/d_a_player_sword.inc @@ -165,7 +165,7 @@ void daPy_lk_c::setNormalCutAtParam(u8 cutType) { radius = daPy_HIO_cut_c0::m.field_0x44; m35FC = daPy_HIO_cut_c0::m.field_0x48; } - setAtParam(AT_TYPE_SWORD, atp, dCcG_At_Spl_UNK0, dCcD_SE_UNK1, G_AT_MARK_NORMAL_HIT, cutType, radius); + setAtParam(AT_TYPE_SWORD, atp, dCcG_At_Spl_UNK0, dCcG_SE_UNK1, dCcG_AtHitMark_Nrm_e, cutType, radius); } /* 80155694-8015572C .text setFinishCutAtParam__9daPy_lk_cFUc */ @@ -181,7 +181,7 @@ void daPy_lk_c::setFinishCutAtParam(u8 cutType) { radius = daPy_HIO_cut_c0::m.field_0x44; m35FC = daPy_HIO_cut_c0::m.field_0x48; } - setAtParam(AT_TYPE_SWORD, atp, dCcG_At_Spl_UNK1, dCcD_SE_UNK1, G_AT_MARK_BIG_HIT, cutType, radius); + setAtParam(AT_TYPE_SWORD, atp, dCcG_At_Spl_UNK1, dCcG_SE_UNK1, dCcG_AtHitMark_Big_e, cutType, radius); } /* 8015572C-801557C4 .text setExtraCutAtParam__9daPy_lk_cFUc */ @@ -197,7 +197,7 @@ void daPy_lk_c::setExtraCutAtParam(u8 cutType) { radius = daPy_HIO_cut_c0::m.field_0x64; m35FC = daPy_HIO_cut_c0::m.field_0x68; } - setAtParam(AT_TYPE_SWORD, atp, dCcG_At_Spl_UNK0, dCcD_SE_UNK1, G_AT_MARK_NORMAL_HIT, cutType, radius); + setAtParam(AT_TYPE_SWORD, atp, dCcG_At_Spl_UNK0, dCcG_SE_UNK1, dCcG_AtHitMark_Nrm_e, cutType, radius); } /* 801557C4-8015585C .text setExtraFinishCutAtParam__9daPy_lk_cFUc */ @@ -213,7 +213,7 @@ void daPy_lk_c::setExtraFinishCutAtParam(u8 cutType) { radius = daPy_HIO_cut_c0::m.field_0x64; m35FC = daPy_HIO_cut_c0::m.field_0x68; } - setAtParam(AT_TYPE_SWORD, atp, dCcG_At_Spl_UNK1, dCcD_SE_UNK1, G_AT_MARK_BIG_HIT, cutType, radius); + setAtParam(AT_TYPE_SWORD, atp, dCcG_At_Spl_UNK1, dCcG_SE_UNK1, dCcG_AtHitMark_Big_e, cutType, radius); } /* 8015585C-80155970 .text setJumpCutAtParam__9daPy_lk_cFv */ @@ -231,13 +231,13 @@ void daPy_lk_c::setJumpCutAtParam() { radius = daPy_HIO_cut_c0::m.field_0x54; m35FC = daPy_HIO_cut_c0::m.field_0x58; } - setAtParam(AT_TYPE_SWORD, atp, dCcG_At_Spl_UNK1, dCcD_SE_UNK1, G_AT_MARK_BIG_HIT, 0xA, radius); + setAtParam(AT_TYPE_SWORD, atp, dCcG_At_Spl_UNK1, dCcG_SE_UNK1, dCcG_AtHitMark_Big_e, 0xA, radius); } else if (mEquipItem == dItem_SKULL_HAMMER_e) { - setAtParam(AT_TYPE_SKULL_HAMMER, 4, dCcG_At_Spl_UNK1, dCcD_SE_UNK5, G_AT_MARK_NORMAL_HIT, 0x13, 50.0f); + setAtParam(AT_TYPE_SKULL_HAMMER, 4, dCcG_At_Spl_UNK1, dCcG_SE_UNK5, dCcG_AtHitMark_Nrm_e, 0x13, 50.0f); } else if (mActorKeepEquip.getActor()) { setEnemyWeaponAtParam(TRUE); } else { - setAtParam(AT_TYPE_MACHETE, 2, dCcG_At_Spl_UNK1, dCcD_SE_UNK1, G_AT_MARK_BIG_HIT, 0xE, 30.0f); + setAtParam(AT_TYPE_MACHETE, 2, dCcG_At_Spl_UNK1, dCcG_SE_UNK1, dCcG_AtHitMark_Big_e, 0xE, 30.0f); } } diff --git a/src/d/actor/d_a_player_weapon.inc b/src/d/actor/d_a_player_weapon.inc index 272a692ad..b6b0ce3ae 100644 --- a/src/d/actor/d_a_player_weapon.inc +++ b/src/d/actor/d_a_player_weapon.inc @@ -29,11 +29,11 @@ void daPy_lk_c::setEnemyWeaponAtParam(BOOL r4) { u8 hitMark; if (r4) { spl = dCcG_At_Spl_UNK1; - hitMark = G_AT_MARK_BIG_HIT; + hitMark = dCcG_AtHitMark_Big_e; cutType++; } else { spl = dCcG_At_Spl_UNK0; - hitMark = G_AT_MARK_NORMAL_HIT; + hitMark = dCcG_AtHitMark_Nrm_e; } setAtParam(boko->getAtType(), boko->getAtPoint(), spl, boko->getSeType(), hitMark, cutType, boko->getCpsR()); } diff --git a/src/d/actor/d_a_race_item.cpp b/src/d/actor/d_a_race_item.cpp index f484320ac..9eb888543 100644 --- a/src/d/actor/d_a_race_item.cpp +++ b/src/d/actor/d_a_race_item.cpp @@ -19,8 +19,8 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_ALL, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VS_UNK2, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsEnemy_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -30,7 +30,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_rd.cpp b/src/d/actor/d_a_rd.cpp index e8f275d0d..2eb669814 100644 --- a/src/d/actor/d_a_rd.cpp +++ b/src/d/actor/d_a_rd.cpp @@ -34,18 +34,18 @@ const dCcD_SrcCyl daRd_c::m_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_WATER | AT_TYPE_UNK20000 | AT_TYPE_WIND | AT_TYPE_UNK400000), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IGRP | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IGrpAll_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, /* SrcGObjAt SPrm */ 0, - /* SrcGObjTg Se */ dCcD_SE_UNK23, + /* SrcGObjTg Se */ dCcG_SE_UNK23, /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_CON_HIT | G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoConHit_e | dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS @@ -656,16 +656,16 @@ bool daRd_c::checkTgHit() { /* 00001650-000017D0 .text setCollision__6daRd_cFv */ void daRd_c::setCollision() { if (mMode == MODE_DEATH) { - mCyl.OffCoSPrmBit(CO_SPRM_VS_UNK2); - mCyl.OffCoSPrmBit(CO_SPRM_IS_UNK2); - mCyl.OffTgSPrmBit(TG_SPRM_SET); - mCyl.OffTgSPrmBit(TG_SPRM_IS_OTHER); + mCyl.OffCoSPrmBit(cCcD_CoSPrm_VsEnemy_e); + mCyl.OffCoSPrmBit(cCcD_CoSPrm_IsEnemy_e); + mCyl.OffTgSPrmBit(cCcD_TgSPrm_Set_e); + mCyl.OffTgSPrmBit(cCcD_TgSPrm_IsOther_e); } else if (mMode == MODE_ATTACK || mMode == MODE_CRY || dComIfGp_evmng_startCheck("DEFAULT_RD_CRY")) { - mCyl.OffCoSPrmBit(CO_SPRM_VS_UNK2); - mCyl.OffCoSPrmBit(CO_SPRM_IS_UNK2); + mCyl.OffCoSPrmBit(cCcD_CoSPrm_VsEnemy_e); + mCyl.OffCoSPrmBit(cCcD_CoSPrm_IsEnemy_e); } else { - mCyl.OnCoSPrmBit(CO_SPRM_VS_UNK2); - mCyl.OnCoSPrmBit(CO_SPRM_IS_UNK2); + mCyl.OnCoSPrmBit(cCcD_CoSPrm_VsEnemy_e); + mCyl.OnCoSPrmBit(cCcD_CoSPrm_IsEnemy_e); } if (isAnm(AnmPrm_SUWARIP)) { diff --git a/src/d/actor/d_a_spc_item01.cpp b/src/d/actor/d_a_spc_item01.cpp index 44722cf8e..27c2acb3f 100644 --- a/src/d/actor/d_a_spc_item01.cpp +++ b/src/d/actor/d_a_spc_item01.cpp @@ -29,8 +29,8 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_ALL, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VS_UNK2, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsEnemy_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, diff --git a/src/d/actor/d_a_swattack.cpp b/src/d/actor/d_a_swattack.cpp index 360aab7fe..e46ebd9d7 100644 --- a/src/d/actor/d_a_swattack.cpp +++ b/src/d/actor/d_a_swattack.cpp @@ -17,7 +17,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_ALL, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, diff --git a/src/d/actor/d_a_swhit0.cpp b/src/d/actor/d_a_swhit0.cpp index 75141a94f..09615b74f 100644 --- a/src/d/actor/d_a_swhit0.cpp +++ b/src/d/actor/d_a_swhit0.cpp @@ -18,7 +18,7 @@ static dCcD_SrcSph l_sph_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_LIGHT | AT_TYPE_UNK400000 | AT_TYPE_WIND | AT_TYPE_UNK20000 | AT_TYPE_WATER), // 0xFF1DFEFF - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -48,7 +48,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK4 | CO_SPRM_VSGRP, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsPlayer_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, diff --git a/src/d/actor/d_a_switem.cpp b/src/d/actor/d_a_switem.cpp index a4748826f..661d486dd 100644 --- a/src/d/actor/d_a_switem.cpp +++ b/src/d/actor/d_a_switem.cpp @@ -20,7 +20,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_ALL, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_OTHER, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsOther_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -31,7 +31,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS diff --git a/src/d/actor/d_a_tag_ret.cpp b/src/d/actor/d_a_tag_ret.cpp index deb2b9f25..6d92c6f4a 100644 --- a/src/d/actor/d_a_tag_ret.cpp +++ b/src/d/actor/d_a_tag_ret.cpp @@ -20,7 +20,7 @@ static dCcD_SrcCyl cyl_check_src = { /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VS_UNK2 | CO_SPRM_NO_CRR, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsEnemy_e | cCcD_CoSPrm_NoCrr_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, diff --git a/src/d/actor/d_a_tama.cpp b/src/d/actor/d_a_tama.cpp index 030ddc83d..8c8b13b6d 100644 --- a/src/d/actor/d_a_tama.cpp +++ b/src/d/actor/d_a_tama.cpp @@ -16,8 +16,8 @@ static dCcD_SrcSph l_sph_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_ALL, - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_VS_UNK2 | CO_SPRM_VS_UNK8 | CO_SPRM_IS_UNK4, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_VsEnemy_e | cCcD_CoSPrm_VsOther_e | cCcD_CoSPrm_IsPlayer_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -27,7 +27,7 @@ static dCcD_SrcSph l_sph_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGSphS diff --git a/src/d/actor/d_a_toge.cpp b/src/d/actor/d_a_toge.cpp index 53dd117e2..c455b7b49 100644 --- a/src/d/actor/d_a_toge.cpp +++ b/src/d/actor/d_a_toge.cpp @@ -22,10 +22,10 @@ static dCcD_SrcCyl l_cyl_src = { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_UNK800, /* SrcObjAt Atp */ 0x1, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_PLAYER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsPlayer_e, /* SrcObjTg Type */ AT_TYPE_ALL, /* SrcObjTg SPrm */ 0, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK8 | CO_SPRM_VS_UNK2 | CO_SPRM_VS_UNK4 | CO_SPRM_VS_UNK8, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsOther_e | cCcD_CoSPrm_VsEnemy_e | cCcD_CoSPrm_VsPlayer_e | cCcD_CoSPrm_VsOther_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ dCcG_At_Spl_UNK1, @@ -35,7 +35,7 @@ static dCcD_SrcCyl l_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cCcD_SrcCylAttr diff --git a/src/d/actor/d_a_wall.cpp b/src/d/actor/d_a_wall.cpp index d3d2af3c1..8e0820e17 100644 --- a/src/d/actor/d_a_wall.cpp +++ b/src/d/actor/d_a_wall.cpp @@ -61,7 +61,7 @@ static dCcD_SrcTri l_tri_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ AT_TYPE_BOMB, - /* SrcObjTg SPrm */ G_TG_SPRM_SHIELD | G_TG_SPRM_SHIELD_FRONT_RANGE, + /* SrcObjTg SPrm */ dCcG_TgSPrm_Shield_e | dCcG_TgSPrm_ShieldFrontRange_e, /* SrcObjCo SPrm */ 0, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, @@ -72,7 +72,7 @@ static dCcD_SrcTri l_tri_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGTriS diff --git a/src/d/actor/d_a_wind_tag.cpp b/src/d/actor/d_a_wind_tag.cpp index 75ebf5206..e8f847f6f 100644 --- a/src/d/actor/d_a_wind_tag.cpp +++ b/src/d/actor/d_a_wind_tag.cpp @@ -21,7 +21,7 @@ namespace daWindTag { /* Flags */ 0, /* SrcObjAt Type */ AT_TYPE_WIND, /* SrcObjAt Atp */ 0, - /* SrcObjAt SPrm */ AT_SPRM_SET | AT_SPRM_VS_PLAYER | AT_SPRM_VS_OTHER, + /* SrcObjAt SPrm */ cCcD_AtSPrm_Set_e | cCcD_AtSPrm_VsPlayer_e | cCcD_AtSPrm_VsOther_e, /* SrcObjTg Type */ 0, /* SrcObjTg SPrm */ 0, /* SrcObjCo SPrm */ 0, @@ -29,12 +29,12 @@ namespace daWindTag { /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, /* SrcGObjAt Mtrl */ 0, - /* SrcGObjAt SPrm */ G_AT_SPRM_NO_HIT_MARK, + /* SrcGObjAt SPrm */ dCcG_AtSPrm_NoHitMark_e, /* SrcGObjTg Se */ 0, /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCpsS diff --git a/src/d/d_a_bomb_static.cpp b/src/d/d_a_bomb_static.cpp index ae4810fa9..cff831245 100644 --- a/src/d/d_a_bomb_static.cpp +++ b/src/d/d_a_bomb_static.cpp @@ -41,9 +41,9 @@ void daBomb_c::setBombFire_ON() { void daBomb_c::setBombNoHit() { _prm_chk_version(); - mSph.OffTgSPrmBit(TG_SPRM_SET); - mSph.OffCoSPrmBit(CO_SPRM_SET); - mSph.OffAtSPrmBit(AT_SPRM_SET); + mSph.OffTgSPrmBit(cCcD_TgSPrm_Set_e); + mSph.OffCoSPrmBit(cCcD_CoSPrm_Set_e); + mSph.OffAtSPrmBit(cCcD_AtSPrm_Set_e); mSph.ClrAtSet(); field_0x6F3 = true; @@ -53,14 +53,14 @@ void daBomb_c::setBombNoHit() { void daBomb_c::setBombOffCoSet() { _prm_chk_version(); - mSph.OffCoSPrmBit(CO_SPRM_SET); + mSph.OffCoSPrmBit(cCcD_CoSPrm_Set_e); } /* 80068104-8006813C .text setBombOnCoSet__8daBomb_cFv */ void daBomb_c::setBombOnCoSet() { _prm_chk_version(); - mSph.OnCoSPrmBit(CO_SPRM_SET); + mSph.OnCoSPrmBit(cCcD_CoSPrm_Set_e); } /* 8006813C-800681CC .text setBombNoEff__8daBomb_cFv */ @@ -178,9 +178,9 @@ void daBomb2::Act_c::set_eat() { /* 800684AC-800684E0 .text set_no_hit__Q27daBomb25Act_cFv */ void daBomb2::Act_c::set_no_hit() { - mSph.OffTgSPrmBit(TG_SPRM_SET); - mSph.OffCoSPrmBit(CO_SPRM_SET); - mSph.OffAtSPrmBit(AT_SPRM_SET); + mSph.OffTgSPrmBit(cCcD_TgSPrm_Set_e); + mSph.OffCoSPrmBit(cCcD_CoSPrm_Set_e); + mSph.OffAtSPrmBit(cCcD_AtSPrm_Set_e); mSph.ClrAtSet(); } diff --git a/src/d/d_cc_d.cpp b/src/d/d_cc_d.cpp index 8c6098587..da757329d 100644 --- a/src/d/d_cc_d.cpp +++ b/src/d/d_cc_d.cpp @@ -37,7 +37,7 @@ dCcD_GStts::dCcD_GStts() { mAtOldApid = fpcM_ERROR_PROCESS_ID_e; mTgApid = fpcM_ERROR_PROCESS_ID_e; mTgOldApid = fpcM_ERROR_PROCESS_ID_e; - field_0x1C = 0; + mFlag = 0; } /* 800AB384-800AB3BC .text Ct__10dCcD_GSttsFv */ @@ -50,7 +50,7 @@ void dCcD_GStts::Ct() { mAtOldApid = fpcM_ERROR_PROCESS_ID_e; mTgApid = fpcM_ERROR_PROCESS_ID_e; mTgOldApid = fpcM_ERROR_PROCESS_ID_e; - field_0x1C = 0; + mFlag = 0; } /* 800AB3BC-800AB3DC .text Move__10dCcD_GSttsFv */ diff --git a/src/d/d_cc_s.cpp b/src/d/d_cc_s.cpp index 95ed2c225..ed7bbff16 100644 --- a/src/d/d_cc_s.cpp +++ b/src/d/d_cc_s.cpp @@ -74,25 +74,25 @@ void dCcS::CalcTgPlusDmg(cCcD_Obj* obj1, cCcD_Obj* obj2, cCcD_Stts* stts1, cCcD_ } /* 800AD86C-800AD8EC .text ChkAtTgHitAfterCross__4dCcSFbbPC12cCcD_GObjInfPC12cCcD_GObjInfP9cCcD_SttsP9cCcD_SttsP10cCcD_GSttsP10cCcD_GStts */ -bool dCcS::ChkAtTgHitAfterCross(bool r4, bool r5, const cCcD_GObjInf* inf1_, const cCcD_GObjInf* inf2_, - cCcD_Stts* stts1_, cCcD_Stts* stts2_, cCcD_GStts* gstts1_, cCcD_GStts* gstts2_) { - dCcD_GObjInf* inf1 = (dCcD_GObjInf*)inf1_; - dCcD_GObjInf* inf2 = (dCcD_GObjInf*)inf2_; - dCcD_Stts* stts1 = (dCcD_Stts*)stts1_; - dCcD_Stts* stts2 = (dCcD_Stts*)stts2_; - dCcD_GStts* gstts1 = (dCcD_GStts*)gstts1_; - dCcD_GStts* gstts2 = (dCcD_GStts*)gstts2_; - fpc_ProcID r11 = stts1->GetApid(); - fpc_ProcID r3 = stts2->GetApid(); - if (r4) { - gstts1->SetAtApid(r3); - if (inf1->ChkAtNoConHit() && gstts1->GetAtOldApid() == stts2->GetApid()) { +bool dCcS::ChkAtTgHitAfterCross(bool i_setAt, bool i_setTg, const cCcD_GObjInf* i_atInf, const cCcD_GObjInf* i_tgInf, + cCcD_Stts* i_atStts, cCcD_Stts* i_tgStts, cCcD_GStts* i_atGStts, cCcD_GStts* i_tgGStts) { + dCcD_GObjInf* atInf = (dCcD_GObjInf*)i_atInf; + dCcD_GObjInf* tgInf = (dCcD_GObjInf*)i_tgInf; + dCcD_Stts* atStts = (dCcD_Stts*)i_atStts; + dCcD_Stts* stts2 = (dCcD_Stts*)i_tgStts; + dCcD_GStts* atGStts = (dCcD_GStts*)i_atGStts; + dCcD_GStts* tgGStts = (dCcD_GStts*)i_tgGStts; + fpc_ProcID atApid = atStts->GetApid(); + fpc_ProcID tgApid = stts2->GetApid(); + if (i_setAt) { + atGStts->SetAtApid(tgApid); + if (atInf->ChkAtNoConHit() && atGStts->GetAtOldApid() == stts2->GetApid()) { return true; } } - if (r5) { - gstts2->SetTgApid(r11); - if (inf2->ChkTgNoConHit() && !inf1->ChkAtStopNoConHit() && gstts2->GetTgOldApid() == stts1->GetApid()) { + if (i_setTg) { + tgGStts->SetTgApid(atApid); + if (tgInf->ChkTgNoConHit() && !atInf->ChkAtStopNoConHit() && tgGStts->GetTgOldApid() == atStts->GetApid()) { return true; } } @@ -299,27 +299,27 @@ void dCcS::CalcParticleAngle(dCcD_GObjInf* i_atObjInf, cCcD_Stts* i_atStts, cCcD } /* 800ADFF8-800AE308 .text ProcAtTgHitmark__4dCcSFbbP8cCcD_ObjP8cCcD_ObjP12dCcD_GObjInfP12dCcD_GObjInfP9cCcD_SttsP9cCcD_SttsP10dCcD_GSttsP10dCcD_GSttsP4cXyz */ -void dCcS::ProcAtTgHitmark(bool, bool, cCcD_Obj* r6, cCcD_Obj* r7, dCcD_GObjInf* atInf, dCcD_GObjInf* tgInf, - cCcD_Stts* r10, cCcD_Stts* r30, dCcD_GStts*, dCcD_GStts* r4, cXyz* pos) +void dCcS::ProcAtTgHitmark(bool, bool, cCcD_Obj* atObj, cCcD_Obj* tgObj, dCcD_GObjInf* atInf, dCcD_GObjInf* tgInf, + cCcD_Stts* atStts, cCcD_Stts* tgStts, dCcD_GStts* atGStts, dCcD_GStts* tgGStts, cXyz* pos) { if (atInf->ChkAtNoHitMark()) { return; } if (tgInf->ChkTgNoHitMark()) { return; } if (tgInf->GetTgHitMark() == 0xFF) { return; } - if (!r4->ChkNoneActorPerfTblId()) { return; } + if (!tgGStts->ChkNoneActorPerfTblId()) { return; } - if (!ChkShield(r6, r7, atInf, tgInf)) { - if (atInf->GetAtHitMark() == 0) { return; } - if (atInf->GetAtHitMark() == 1 && tgInf->GetTgHitMark() == 1) { + if (!ChkShield(atObj, tgObj, atInf, tgInf)) { + if (atInf->GetAtHitMark() == dCcG_AtHitMark_None_e) { return; } + if (atInf->GetAtHitMark() == dCcG_AtHitMark_Unk1_e && tgInf->GetTgHitMark() == dCcG_TgHitMark_Unk1_e) { dComIfGp_particle_set(dPa_name::ID_COMMON_STARS_BLOW, pos); } else { csXyz angle; - CalcParticleAngle(atInf, r10, r30, &angle); - if (atInf->GetAtHitMark() == 0xF) { + CalcParticleAngle(atInf, atStts, tgStts, &angle); + if (atInf->GetAtHitMark() == dCcG_AtHitMark_Big_e) { dComIfGp_particle_set(0x10, pos); cXyz scale; scale.x = scale.y = scale.z = 2.0f; dComIfGp_particle_set(dPa_name::ID_COMMON_NORMAL_HIT, pos, &angle, &scale); - } else if (atInf->GetAtHitMark() == 1) { + } else if (atInf->GetAtHitMark() == dCcG_AtHitMark_Unk1_e) { dComIfGp_particle_set(dPa_name::ID_COMMON_NORMAL_HIT, pos, &angle); } else { dComIfGp_particle_set(atInf->GetAtHitMark(), pos, &angle); @@ -330,38 +330,40 @@ void dCcS::ProcAtTgHitmark(bool, bool, cCcD_Obj* r6, cCcD_Obj* r7, dCcD_GObjInf* if (tgInf->GetTgHitMark() == 0) { return; } dKy_SordFlush_set(*pos, 0); csXyz angle; - CalcParticleAngle(atInf, r10, r30, &angle); + CalcParticleAngle(atInf, atStts, tgStts, &angle); dComIfGp_particle_set(tgInf->GetTgHitMark(), pos, &angle); } } /* 800AE308-800AE5AC .text SetAtTgGObjInf__4dCcSFbbP8cCcD_ObjP8cCcD_ObjP12cCcD_GObjInfP12cCcD_GObjInfP9cCcD_SttsP9cCcD_SttsP10cCcD_GSttsP10cCcD_GSttsP4cXyz */ -void dCcS::SetAtTgGObjInf(bool i_setAt, bool i_setTg, cCcD_Obj* param_2, cCcD_Obj* param_3, - cCcD_GObjInf* i_atObjInf, cCcD_GObjInf* i_tgObjInf, cCcD_Stts* param_6, - cCcD_Stts* param_7, cCcD_GStts* param_8, cCcD_GStts* param_9, - cXyz* i_hitPos) { +void dCcS::SetAtTgGObjInf(bool i_setAt, bool i_setTg, + cCcD_Obj* i_atObj, cCcD_Obj* i_tgObj, + cCcD_GObjInf* i_atObjInf, cCcD_GObjInf* i_tgObjInf, + cCcD_Stts* i_atStts, cCcD_Stts* i_tgStts, + cCcD_GStts* i_atGStts, cCcD_GStts* i_tgGStts, + cXyz* i_hitPos) { dCcD_GObjInf* atObjInf = (dCcD_GObjInf*)i_atObjInf; dCcD_GObjInf* tgObjInf = (dCcD_GObjInf*)i_tgObjInf; - dCcD_GStts* stts1 = (dCcD_GStts*)param_8; - dCcD_GStts* stts2 = (dCcD_GStts*)param_9; + dCcD_GStts* atGStts = (dCcD_GStts*)i_atGStts; + dCcD_GStts* tgGStts = (dCcD_GStts*)i_tgGStts; - bool chk_shield = ChkShield(param_2, param_3, atObjInf, tgObjInf); + bool chk_shield = ChkShield(i_atObj, i_tgObj, atObjInf, tgObjInf); if (i_setAt) { atObjInf->SetAtHitPos(*i_hitPos); atObjInf->SetAtRVec(*tgObjInf->GetTgVecP()); - if (stts1 != NULL && stts1->GetTgSpl() == 0) { - stts1->SetTgSpl(tgObjInf->GetTgSpl()); + if (atGStts != NULL && atGStts->GetTgSpl() == 0) { + atGStts->SetTgSpl(tgObjInf->GetTgSpl()); } - atObjInf->SetAtHitApid(param_7->GetApid()); + atObjInf->SetAtHitApid(i_tgStts->GetApid()); if (chk_shield) { atObjInf->OnAtShieldHit(); } - if (stts2->ChkNoActor()) { + if (tgGStts->ChkNoActor()) { atObjInf->OnAtHitNoActor(); } } @@ -370,17 +372,17 @@ void dCcS::SetAtTgGObjInf(bool i_setAt, bool i_setTg, cCcD_Obj* param_2, cCcD_Ob tgObjInf->SetTgHitPos(*i_hitPos); tgObjInf->SetTgRVec(*atObjInf->GetAtVecP()); - if (stts2 != NULL && stts1->GetAtSpl() == 0) { - stts2->SetAtSpl(atObjInf->GetAtSpl()); + if (tgGStts != NULL && atGStts->GetAtSpl() == 0) { + tgGStts->SetAtSpl(atObjInf->GetAtSpl()); } - tgObjInf->SetTgHitApid(param_6->GetApid()); + tgObjInf->SetTgHitApid(i_atStts->GetApid()); if (chk_shield) { tgObjInf->OnTgShieldHit(); } - if (stts1->ChkNoActor()) { + if (atGStts->ChkNoActor()) { tgObjInf->OnTgHitNoActor(); } } @@ -409,8 +411,8 @@ void dCcS::SetAtTgGObjInf(bool i_setAt, bool i_setTg, cCcD_Obj* param_2, cCcD_Ob atObjInf->SetAtEffCounterTimer(); tgObjInf->SetTgEffCounterTimer(); - ProcAtTgHitmark(i_setAt, i_setTg, param_2, param_3, atObjInf, tgObjInf, param_6, param_7, - stts1, stts2, i_hitPos); + ProcAtTgHitmark(i_setAt, i_setTg, i_atObj, i_tgObj, atObjInf, tgObjInf, i_atStts, i_tgStts, + atGStts, tgGStts, i_hitPos); } } @@ -482,4 +484,3 @@ bool dCcS::ChkNoHitGCo(cCcD_Obj* obj1, cCcD_Obj* obj2) { bool cCcS::ChkNoHitGAtTg(const cCcD_GObjInf*, const cCcD_GObjInf*, cCcD_GStts*, cCcD_GStts*) { return false; } - diff --git a/src/d/d_cc_uty.cpp b/src/d/d_cc_uty.cpp index f04a0dc9b..9f7ea6ef9 100644 --- a/src/d/d_cc_uty.cpp +++ b/src/d/d_cc_uty.cpp @@ -43,13 +43,13 @@ u32 at_se_get(cCcD_Obj* obj) { dCcD_GObjInf* gObjInf = dCcD_GetGObjInf(obj); if (gObjInf->ChkAtType(AT_TYPE_SKULL_HAMMER | AT_TYPE_STALFOS_MACE)) { return JA_SE_LK_HAMMER_HIT; - } else if (gObjInf->GetAtSe() == dCcD_SE_UNK4) { + } else if (gObjInf->GetAtSe() == dCcG_SE_UNK4) { return JA_SE_LK_W_WEP_HIT; - } else if (gObjInf->GetAtSe() == dCcD_SE_UNK5) { + } else if (gObjInf->GetAtSe() == dCcG_SE_UNK5) { return JA_SE_LK_MS_WEP_HIT; - } else if (gObjInf->GetAtSe() == dCcD_SE_ARROW) { + } else if (gObjInf->GetAtSe() == dCcG_SE_ARROW) { return JA_SE_LK_ARROW_HIT; - } else if (gObjInf->GetAtSe() == dCcD_SE_HOOKSHOT) { + } else if (gObjInf->GetAtSe() == dCcG_SE_HOOKSHOT) { return JA_SE_LK_HS_SPIKE; } else { return JA_SE_LK_SW_HIT_S; @@ -61,13 +61,13 @@ u32 at_se_getC(cCcD_Obj* obj) { dCcD_GObjInf* gObjInf = dCcD_GetGObjInf(obj); if (gObjInf->ChkAtType(AT_TYPE_SKULL_HAMMER | AT_TYPE_STALFOS_MACE)) { return JA_SE_LK_HAMMER_HIT; - } else if (gObjInf->GetAtSe() == dCcD_SE_UNK4) { + } else if (gObjInf->GetAtSe() == dCcG_SE_UNK4) { return JA_SE_LK_W_WEP_CRT_HIT; - } else if (gObjInf->GetAtSe() == dCcD_SE_UNK5) { + } else if (gObjInf->GetAtSe() == dCcG_SE_UNK5) { return JA_SE_LK_MS_WEP_CRT_HIT; - } else if (gObjInf->GetAtSe() == dCcD_SE_ARROW) { + } else if (gObjInf->GetAtSe() == dCcG_SE_ARROW) { return JA_SE_LK_ARROW_HIT; - } else if (gObjInf->GetAtSe() == dCcD_SE_HOOKSHOT) { + } else if (gObjInf->GetAtSe() == dCcG_SE_HOOKSHOT) { return JA_SE_LK_HS_SPIKE; } else { return JA_SE_LK_SW_CRT_HIT; diff --git a/src/d/d_kankyo_rain.cpp b/src/d/d_kankyo_rain.cpp index e93f2c244..f0bd33ec1 100644 --- a/src/d/d_kankyo_rain.cpp +++ b/src/d/d_kankyo_rain.cpp @@ -6,6 +6,7 @@ #include "d/d_kankyo_rain.h" #include "d/d_bg_s_gnd_chk.h" #include "d/d_bg_s_roof_chk.h" +#include "d/d_cc_d.h" #include "d/d_com_inf_game.h" #include "d/d_kankyo.h" #include "d/d_kankyo_wether.h" diff --git a/src/d/d_npc.cpp b/src/d/d_npc.cpp index 97ff2e63f..531189d81 100644 --- a/src/d/d_npc.cpp +++ b/src/d/d_npc.cpp @@ -949,8 +949,8 @@ dCcD_SrcCyl dNpc_cyl_src = { /* SrcObjAt Atp */ 0, /* SrcObjAt SPrm */ 0, /* SrcObjTg Type */ ~(AT_TYPE_BOOMERANG), - /* SrcObjTg SPrm */ TG_SPRM_SET | TG_SPRM_IS_ENEMY, - /* SrcObjCo SPrm */ CO_SPRM_SET | CO_SPRM_IS_UNK4 | CO_SPRM_VSGRP, + /* SrcObjTg SPrm */ cCcD_TgSPrm_Set_e | cCcD_TgSPrm_IsEnemy_e, + /* SrcObjCo SPrm */ cCcD_CoSPrm_Set_e | cCcD_CoSPrm_IsPlayer_e | cCcD_CoSPrm_VsGrpAll_e, /* SrcGObjAt Se */ 0, /* SrcGObjAt HitMark */ 0, /* SrcGObjAt Spl */ 0, @@ -960,7 +960,7 @@ dCcD_SrcCyl dNpc_cyl_src = { /* SrcGObjTg HitMark */ 0, /* SrcGObjTg Spl */ 0, /* SrcGObjTg Mtrl */ 0, - /* SrcGObjTg SPrm */ G_TG_SPRM_NO_HIT_MARK, + /* SrcGObjTg SPrm */ dCcG_TgSPrm_NoHitMark_e, /* SrcGObjCo SPrm */ 0, }, // cM3dGCylS