Skip to content

Commit

Permalink
Fix ik_foot_ray for versions before 1.08.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinjul1704 committed May 26, 2024
1 parent 0dc78f8 commit d7602f4
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion lib/libds3/src/pointers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,30 @@ impl From<BaseAddresses> for PointerChains {
| Version::V1_15_2 => 0x65,
};

let offs_ik_foot_ray = match *VERSION {
Version::V1_01_1
| Version::V1_03_1
| Version::V1_03_2
| Version::V1_04_1
| Version::V1_04_2
| Version::V1_04_3
| Version::V1_05_0
| Version::V1_05_1
| Version::V1_06_0
| Version::V1_07_0 => 0x5B,

Version::V1_08_0
| Version::V1_09_0
| Version::V1_10_0
| Version::V1_11_0
| Version::V1_12_0
| Version::V1_13_0
| Version::V1_14_0
| Version::V1_15_0
| Version::V1_15_1
| Version::V1_15_2 => 0x6B,
};

let offs_no_update_ai = 0xD;
let mesh_hi = 0xEC;
let mesh_lo = 0xED;
Expand Down Expand Up @@ -305,7 +329,7 @@ impl From<BaseAddresses> for PointerChains {
rend_hurtbox: bitflag!(0b1; base_hbd + hurtbox as usize),
debug_draw: bitflag!(0b1; world_chr_man_dbg, offs_debug_draw),
all_draw_hit: bitflag!(0b1; world_chr_man_dbg, 0x66),
ik_foot_ray: bitflag!(0b1; world_chr_man_dbg, 0x6B),
ik_foot_ray: bitflag!(0b1; world_chr_man_dbg, offs_ik_foot_ray),
debug_sphere_1: bitflag!(0b1; base_hbd, 0x30),
debug_sphere_2: bitflag!(0b1; base_hbd, 0x31),
gravity: bitflag!(0b1000000; world_chr_man, 0x80, 0x1a08),
Expand Down

0 comments on commit d7602f4

Please sign in to comment.